:root {
    --page: #fffafc;
    --panel: #fff9fb;
    --panel-strong: #fff3f7;
    --panel-alt: #fff7fa;
    --ink: #151326;
    --muted: #6f6777;
    --line: #f0d8e1;
    --line-strong: #e7bccb;
    --pink-100: #ffe9f0;
    --pink-200: #ffdce8;
    --pink-300: #f7bdd0;
    --pink-500: #df4d7d;
    --pink-700: #bb245a;
    --mint-100: #edf9f3;
    --mint-300: #b6e1c8;
    --mint-700: #20864d;
    --danger-bg: #fff0f4;
    --danger: #b93463;
    --shadow: 0 18px 55px rgba(179, 113, 140, .12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--page);
    color: var(--ink);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 212, 226, 0.28), transparent 38rem),
        linear-gradient(180deg, #fffdfd 0%, #fff9fb 100%);
}

a { color: var(--pink-700); }

button,
input,
fieldset,
legend { font: inherit; }

.site-shell {
    width: min(100% - 2rem, 1160px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 1rem;
    border-bottom: 1px solid rgba(231, 188, 203, .45);
}

.brand {
    position: relative;
    color: var(--pink-700);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.brand::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.2rem;
    width: 1.6rem;
    height: 3px;
    border-radius: 999px;
    background: var(--pink-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .22rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
}

.language-switcher a {
    min-width: 2.1rem;
    padding: .35rem .45rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.language-switcher a.active {
    background: var(--pink-100);
    color: var(--pink-700);
}

.logout-form { margin: 0; }

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--pink-700);
    cursor: pointer;
    font-weight: 700;
}

main { padding: 2rem 0 4rem; }

.hero,
.card,
.pairing-card,
.self-card,
.partner-card,
.status-banner,
.invite-box {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    gap: 1.6rem;
    padding: clamp(2rem, 5vw, 4.2rem);
}

.hero h1,
.card h1,
.dashboard-page h1 {
    margin: 0;
    letter-spacing: -0.06em;
}

.hero h1 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 9vw, 5.6rem);
    line-height: .95;
}

.hero p {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-score { margin: -.4rem 0 .2rem !important; }

.card {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.card-wide { width: min(100%, 900px); }

.eyebrow {
    margin: 0 0 .7rem;
    color: var(--pink-700);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lead {
    color: var(--muted);
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.5rem;
}

.field {
    display: grid;
    gap: .5rem;
    margin: 0;
    border: 0;
    padding: 0;
}

.field label,
.field legend {
    font-size: .93rem;
    font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    padding: .76rem .95rem;
    background: #fff;
    color: var(--ink);
}

.field input:focus {
    border-color: var(--pink-300);
    box-shadow: 0 0 0 4px rgba(255, 233, 240, .8);
}

.error {
    margin: 0;
    color: var(--danger);
    font-size: .9rem;
}

.alert {
    border: 1px solid #f0bdc9;
    border-radius: 16px;
    padding: .95rem 1rem;
    background: var(--danger-bg);
    color: var(--danger);
    margin-bottom: 1rem;
}

.alert strong { display: block; margin-bottom: .2rem; }

.alert-prominent {
    background: linear-gradient(180deg, #fff4f7, #fff0f4);
}

.alert-soft {
    background: #fff7fb;
    border-color: var(--line);
    color: var(--pink-700);
}

.form-footer {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .94rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: .78rem 1.3rem;
    background: linear-gradient(180deg, #ef5b89, #d93b6f);
    color: white;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.button.secondary {
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
}

.dashboard-page {
    display: grid;
    gap: 1.4rem;
}


.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.success-banner {
    background: linear-gradient(180deg, #f6fffa, #f2fbf6);
    border-color: var(--mint-300);
    color: var(--mint-700);
    box-shadow: none;
}

.status-icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #3db76b, #289955);
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, .95fr);
    gap: 1.25rem;
    align-items: start;
}

.dashboard-grid.solo {
    grid-template-columns: 1fr;
}

.pairing-card {
    padding: 1.5rem;
}

.self-card,
.partner-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(255, 214, 228, .55), transparent 22rem),
        linear-gradient(180deg, #fffdfd, #fff8fb);
}

.self-card {
    display: grid;
    grid-template-columns: 1.1fr auto;
    gap: 1.5rem;
    min-height: 370px;
}

.profile-bloc {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.initial-box {
    display: inline-grid;
    width: 10rem;
    height: 10rem;
    place-items: center;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: white;
    color: var(--pink-700);
    font-size: 4rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.initial-box.small {
    width: 6rem;
    height: 6rem;
    border-radius: 20px;
    font-size: 2.4rem;
}

.identity-bloc {
    display: grid;
    gap: .4rem;
}

.kicker,
.mini-kicker {
    margin: 0;
    color: var(--pink-500);
    font-weight: 700;
}

.identity-bloc h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.score-circle-link {
    align-self: center;
    color: inherit;
    text-decoration: none;
    text-align: center;
}

.score-circle {
    display: inline-grid;
    width: 17rem;
    height: 17rem;
    place-items: center;
    border-radius: 999px;
    border: 14px solid var(--pink-200);
    background: radial-gradient(circle at 50% 40%, white 0%, #fff8fb 70%);
    box-shadow:
        inset 0 0 0 6px rgba(255,255,255,.8),
        0 14px 35px rgba(235, 102, 149, .16);
    color: var(--pink-700);
}

.score-heart {
    margin-top: .8rem;
    font-size: 1.9rem;
    line-height: 1;
}

.score-circle strong {
    font-size: 5.7rem;
    line-height: .9;
    letter-spacing: -.08em;
}

.score-circle small {
    margin-top: -.9rem;
    font-size: 2rem;
    color: #856b78;
}

.score-link-text {
    display: inline-block;
    margin-top: 1rem;
    color: var(--pink-700);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .22rem;
}

.partner-card h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: .95;
    letter-spacing: -.05em;
}

.partner-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1rem;
    background: rgba(255,255,255,.6);
    color: inherit;
    text-decoration: none;
}

.partner-mini-left {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.partner-mini-left strong {
    display: block;
    font-size: 1.9rem;
    letter-spacing: -.04em;
}

.partner-mini-right {
    text-align: right;
    color: var(--pink-700);
}

.partner-mini-right strong {
    font-size: 3rem;
    line-height: .9;
    letter-spacing: -.06em;
}

.partner-mini-right small {
    display: block;
    font-size: 1.3rem;
    color: #866d7b;
}

.partner-mini-right span {
    display: inline-block;
    margin-top: .35rem;
    font-size: .92rem;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.partner-actions-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin: 1.2rem 0 .85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-strong);
}

.partner-actions-head strong {
    font-size: 1.25rem;
    letter-spacing: -.03em;
}

.partner-actions-head span {
    color: var(--muted);
    font-size: .92rem;
}

.partner-actions {
    display: grid;
    gap: .8rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: .95rem;
    border-radius: 22px;
    padding: 1rem 1.05rem;
    text-decoration: none;
    border: 1px solid var(--line);
    font-weight: 800;
}

.action-give {
    background: linear-gradient(180deg, #ef5b89, #d53a6d);
    color: white;
    border-color: transparent;
}

.action-remove {
    background: #fffdfd;
    color: var(--pink-700);
}

.action-icon {
    display: inline-grid;
    min-width: 4.2rem;
    place-items: center;
    font-size: 1.28rem;
    letter-spacing: .04em;
}






.dashboard-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: .3rem;
}

.footer-rule {
    height: 1px;
    background: rgba(111, 103, 119, .22);
}

.dashboard-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    text-align: center;
}

.invite-box {
    margin-top: 1.1rem;
    padding: 1rem;
    box-shadow: none;
}

.invite-box label {
    display: block;
    margin-bottom: .55rem;
    font-weight: 700;
}

.invite-copy-row {
    display: flex;
    gap: .8rem;
}

.invite-copy-row input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .76rem .95rem;
}

.copy-status { margin: .6rem 0 0; }

.password-feedback,
.password-rule { width: 100%; }

.password-rule {
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    margin: .45rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.password-rule span[aria-hidden] {
    display: inline-grid;
    flex: 0 0 1.2rem;
    width: 1.2rem;
    place-items: center;
    font-weight: 900;
}

.password-rule [data-rule-text] {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}

.password-rule.valid {
    color: #27633d;
}

.password-rule.invalid {
    color: var(--danger);
}

.point-options {
    display: flex;
    gap: .8rem;
}

.point-option {
    position: relative;
}

.point-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.point-option span {
    display: inline-flex;
    min-width: 3.2rem;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    font-weight: 800;
    cursor: pointer;
}

.point-option input:checked + span {
    border-color: var(--pink-500);
    background: var(--pink-100);
    color: var(--pink-700);
}

.history-list {
    display: grid;
    gap: .8rem;
    margin: 1.5rem 0;
}

.history-row {
    display: grid;
    grid-template-columns: 160px 1fr 120px;
    gap: .9rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: .95rem 1rem;
    background: rgba(255,255,255,.8);
}

.history-type {
    display: inline-flex;
    width: fit-content;
    min-height: 2.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 .9rem;
    font-weight: 800;
}

.history-type.gain {
    background: #eef8f1;
    color: #2e7d4b;
}

.history-type.loss {
    background: #fff1f5;
    color: var(--danger);
}

.history-date {
    text-align: right;
    color: var(--muted);
}

.empty-history {
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,.7);
    color: var(--muted);
}

@media (max-width: 980px) {
    .dashboard-grid,
    .dashboard-grid.solo {
        grid-template-columns: 1fr;
    }

    .self-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .score-circle-link {
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: .85rem 0;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .initial-box {
        width: 6.7rem;
        height: 6.7rem;
        font-size: 2.7rem;
    }

    .score-circle {
        width: 13rem;
        height: 13rem;
        border-width: 10px;
    }

    .score-circle strong { font-size: 4rem; }
    .score-circle small { font-size: 1.45rem; }

    .partner-actions-head,
    .history-row {
        grid-template-columns: 1fr;
    }

    .partner-actions-head {
        display: grid;
    }

    .invite-copy-row {
        flex-direction: column;
    }

    .history-row {
        display: grid;
        gap: .55rem;
    }

    .history-date {
        text-align: left;
    }
}

/* ============================================================
   KissPass Dashboard V2 — UX validée
   ============================================================ */

.dashboard-page {
    display: grid;
    gap: 1.15rem;
}


.status-banner {
    display: flex;
    align-items: center;
    gap: .9rem;
    border-radius: 22px;
    padding: .9rem 1rem;
}

.success-banner {
    border: 1px solid #b6e4c9;
    background: linear-gradient(180deg, #f7fffa, #f0faf5);
    color: #21804b;
    box-shadow: none;
}

.status-icon {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #3eb76b, #299955);
    color: white;
    font-size: 1.2rem;
    font-weight: 900;
    flex: 0 0 auto;
}







.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .9fr);
    gap: 1rem;
    align-items: stretch;
}

.dashboard-grid.solo {
    grid-template-columns: 1fr;
}

.self-card,
.partner-card,
.pairing-card,
.dashboard-footer {
    border: 1px solid var(--line, #efd6df);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 216, 229, .45), transparent 20rem),
        linear-gradient(180deg, #fffdfd, #fff8fb);
    box-shadow: var(--shadow, 0 18px 55px rgba(179, 113, 140, .11));
}

.self-card,
.partner-card {
    overflow: hidden;
    padding: 1.2rem;
}

.self-card {
    min-height: 290px;
}

.self-identity {
    display: grid;
    grid-template-columns: minmax(145px, .7fr) 1fr;
    gap: 1.4rem;
    height: 100%;
    align-items: center;
}

.avatar-column {
    display: grid;
    justify-items: center;
    gap: .6rem;
}

.initial-box {
    display: inline-grid;
    width: 7.5rem;
    height: 7.5rem;
    place-items: center;
    border: 1px solid var(--line, #efd6df);
    border-radius: 22px;
    background: white;
    color: var(--pink-700, #be235b);
    font-size: 3rem;
    font-weight: 850;
}

.initial-box.small {
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 16px;
    font-size: 1.75rem;
}

.avatar-name {
    max-width: 12rem;
    overflow-wrap: anywhere;
    color: var(--ink, #14131f);
    font-size: 1.45rem;
    letter-spacing: -.04em;
    text-align: center;
}

.score-circle-link {
    display: grid;
    justify-items: center;
    align-content: center;
    color: inherit;
    text-decoration: none;
}

.score-circle {
    display: grid;
    width: 13.5rem;
    height: 13.5rem;
    grid-template-rows: auto 1fr;
    place-items: center;
    align-content: center;
    border: 10px solid var(--pink-200, #ffdae6);
    border-radius: 999px;
    background: radial-gradient(circle at 50% 40%, white 0%, #fff8fb 72%);
    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,.8),
        0 13px 31px rgba(235, 102, 149, .15);
    color: var(--pink-700, #be235b);
}

.score-heart {
    align-self: end;
    margin-bottom: .1rem;
    font-size: 1.3rem;
    line-height: 1;
}

.score-circle strong {
    align-self: start;
    max-width: 11rem;
    overflow-wrap: anywhere;
    font-size: clamp(3.2rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.075em;
}

.score-link-text {
    display: block;
    margin-top: .6rem;
    color: var(--pink-700, #be235b);
    font-size: .9rem;
    font-weight: 750;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.partner-card {
    display: grid;
    align-content: start;
    gap: .8rem;
}

.partner-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.partner-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    border: 1px solid var(--line, #efd6df);
    border-radius: 18px;
    padding: .8rem;
    background: rgba(255,255,255,.62);
}

.partner-identity {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.partner-identity > strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.45rem;
    letter-spacing: -.04em;
}

.partner-score-link {
    display: grid;
    justify-items: end;
    flex: 0 0 auto;
    color: var(--pink-700, #be235b);
    text-decoration: none;
}

.partner-score-link strong {
    font-size: 2.75rem;
    line-height: .95;
    letter-spacing: -.065em;
}

.partner-score-link span {
    margin-top: .22rem;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: .16rem;
}

.partner-actions {
    display: grid;
    gap: .6rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 46px;
    border: 1px solid var(--line, #efd6df);
    border-radius: 16px;
    padding: .7rem .85rem;
    text-decoration: none;
    font-size: .91rem;
    font-weight: 800;
}

.action-give {
    border-color: transparent;
    background: linear-gradient(180deg, #ed5985, #d9396d);
    color: white;
}

.action-remove {
    background: #fffdfd;
    color: var(--pink-700, #be235b);
}

.action-icon {
    min-width: 3rem;
    font-size: .95rem;
    text-align: center;
}

.pairing-card {
    padding: 1.35rem;
}

.dashboard-footer {
    display: grid;
    justify-items: center;
    gap: .15rem;
    margin-top: .05rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, #fff8fb, #fff0f5);
    box-shadow: none;
}

.footer-brand {
    color: var(--ink, #14131f);
    font-size: 2rem;
    letter-spacing: -.055em;
}

.dashboard-footer p {
    margin: 0;
    color: var(--pink-700, #be235b);
    font-size: 1rem;
    text-align: center;
}

.reason-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .55rem;
}

.field select,
.custom-reason-wrap input,
.custom-points-wrap input {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--pink-300, #f5adc4);
    border-radius: 15px;
    background: var(--pink-100, #ffe8ef);
    color: var(--pink-700, #be235b);
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 850;
    line-height: 1;
}

.custom-reason-wrap,
.custom-points-wrap {
    display: grid;
    gap: .4rem;
    margin-top: .4rem;
    border: 1px solid var(--line, #efd6df);
    border-radius: 15px;
    padding: .75rem;
    background: #fff7fa;
}

.field-hint {
    margin: .15rem 0 0;
    color: var(--muted, #756b76);
    font-size: .84rem;
    line-height: 1.4;
}

.point-options {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.point-option {
    position: relative;
}

.point-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.point-option span {
    display: inline-flex;
    min-width: 3.1rem;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line, #efd6df);
    border-radius: 14px;
    background: white;
    color: var(--ink, #14131f);
    font-weight: 850;
    cursor: pointer;
}

.point-option input:checked + span {
    border-color: var(--pink-500, #df4c7c);
    background: var(--pink-100, #ffe8ef);
    color: var(--pink-700, #be235b);
}

.history-list {
    display: grid;
    gap: .7rem;
    margin: 1.3rem 0;
}

.history-row {
    display: grid;
    grid-template-columns: 160px 1fr 110px;
    gap: .8rem;
    align-items: center;
    border: 1px solid var(--line, #efd6df);
    border-radius: 17px;
    padding: .8rem .9rem;
    background: rgba(255,255,255,.82);
}

.history-type {
    display: inline-flex;
    width: fit-content;
    min-height: 2.1rem;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: 0 .8rem;
    font-weight: 800;
}

.history-type.gain {
    background: #eef8f1;
    color: #2e7d4b;
}

.history-type.loss {
    background: #fff1f5;
    color: var(--danger, #b93463);
}

.history-date {
    color: var(--muted, #756b76);
    text-align: right;
}

.confetti-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}

.confetti-layer span {
    position: absolute;
    top: -2rem;
    color: var(--pink-500, #df4c7c);
    font-size: .85rem;
    animation-name: kisspass-confetti-fall;
    animation-timing-function: cubic-bezier(.22,.61,.36,1);
    animation-fill-mode: forwards;
}

.confetti-layer span:nth-child(3n) { color: #efb34c; }
.confetti-layer span:nth-child(4n) { color: #65b98a; }

@keyframes kisspass-confetti-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -5vh, 0) rotate(0deg);
    }

    10% { opacity: 1; }

    100% {
        opacity: 0;
        transform: translate3d(0, 105vh, 0) rotate(540deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .confetti-layer { display: none; }
}

@media (max-width: 930px) {
    .dashboard-grid,
    .dashboard-grid.solo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .self-identity {
        grid-template-columns: 1fr;
    }

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

    .history-date {
        text-align: left;
    }
}


/* ============================================================
   Score bounds / responsive digits
   Domain is [-9999, 9999], no visual overflow.
   ============================================================ */

.score-circle strong,
.partner-score-link strong {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.partner-score-link .partner-score-xl {
    font-size: 2.9rem;
}

.partner-score-link .partner-score-lg {
    font-size: 2.45rem;
}

.partner-score-link .partner-score-md {
    font-size: 2.05rem;
}

.partner-score-link .partner-score-sm {
    font-size: 1.72rem;
}


/* ============================================================
   UX V4 — davantage de contraste et contrôles de raisons
   ============================================================ */

.pairing-card,
.self-card,
.partner-card {
    border-color: #edbfd0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 198, 218, .62),
            transparent 22rem
        ),
        linear-gradient(
            145deg,
            #fff3f7 0%,
            #ffe9f0 100%
        );
}

.invite-box,
.partner-summary {
    background: rgba(255, 255, 255, .82);
}

.dashboard-footer {
    border-color: #edbfd0;
    background:
        linear-gradient(
            135deg,
            #ffeaf1,
            #fff6f9
        );
}

.footer-brand {
    display: inline-flex;
    align-items: baseline;
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: -.065em;
}

.footer-brand-kiss {
    color: var(--pink-700);
}

.footer-brand-pass {
    color: #16203c;
}

.reason-picker {
    grid-template-columns: minmax(0, 1fr) auto;
}

.reason-picker > [hidden] {
    display: none !important;
}

.reason-delete-button {
    border-color: #e5b7c5;
    background: #fff;
    color: #a52b56;
    font-size: 1.1rem;
}

.reason-delete-button:hover {
    background: #fff0f4;
}

.check-option {
    display: flex !important;
    align-items: center;
    gap: .6rem;
    width: fit-content;
    cursor: pointer;
}

.check-option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--pink-700);
}

.hidden-form {
    display: none;
}


/* ============================================================
   UX polish patch — dashboard / points / brand
   ============================================================ */
.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: inherit;
}

.brand-kiss {
    color: var(--pink-700);
}

.brand-pass {
    color: #16203c;
}

.brand::after {
    background: linear-gradient(90deg, var(--pink-500), #16203c);
}

.self-card,
.partner-card,
.pairing-card,
.dashboard-footer {
    background:
        radial-gradient(circle at top right, rgba(255, 201, 220, .58), transparent 22rem),
        linear-gradient(145deg, #fff2f7 0%, #ffe7ef 100%);
}


.score-panel {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: .4rem;
}

.score-caption {
    color: var(--muted, #756b76);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.score-circle-link {
    margin-top: .1rem;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding-top: .35rem;
}

.score-heart {
    margin: 0;
    font-size: 1.45rem;
}

.score-circle strong {
    display: block;
    text-align: center;
}

.partner-score-link {
    gap: .18rem;
}

.partner-score-link span {
    white-space: nowrap;
}

.action-button {
    gap: .9rem;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    min-width: 3.4rem;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.arrow-glyph {
    font-size: 1.22em;
    font-weight: 900;
}

.heart-glyph {
    font-size: 1.18em;
}

.broken-heart {
    font-size: 1.2em;
}

.dashboard-footer {
    display: grid;
    justify-items: center;
    gap: .45rem;
    padding: 1.45rem 1.2rem;
}

.footer-brand {
    font-size: 2.45rem;
}

.footer-slogan,
.dashboard-footer p {
    margin: 0;
    max-width: 40rem;
    color: var(--pink-700, #be235b);
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 800;
    text-align: center;
}

.reason-field > label {
    display: none;
}

.collapsible-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
    transition:
        max-height .28s ease,
        opacity .22s ease,
        margin-top .22s ease,
        padding-top .22s ease,
        padding-bottom .22s ease,
        border-width .22s ease;
}

.collapsible-panel.is-open {
    max-height: 14rem;
    opacity: 1;
    margin-top: .45rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
    border-width: 1px;
    pointer-events: auto;
}

.client-form-error {
    margin-bottom: 1rem;
}

.client-form-error p {
    margin: 0;
}

.point-option span {
    min-width: 3.35rem;
    padding-inline: .9rem;
}

.point-option-plus span {
    font-size: 1.45rem;
}

@media (max-width: 720px) {
    .footer-brand {
        font-size: 2rem;
    }

    .footer-slogan,
    .dashboard-footer p {
        font-size: 1rem;
    }
}


/* ============================================================
   UX fix pack — centering / footer / logo-heart / forms
   ============================================================ */
.brand-lockup {
    display: inline-flex;
    align-items: baseline;
    position: relative;
}

.brand-i-wrap {
    position: relative;
    display: inline-block;
    line-height: 1;
    margin-right: -.02em;
}

.brand-heart-dot {
    position: absolute;
    top: -.42em;
    left: .23em;
    font-size: .42em;
    line-height: 1;
    color: var(--pink-500);
}

.site-header .brand-heart-dot {
    top: -.48em;
    left: .25em;
}

.score-panel {
    gap: .55rem;
}

.score-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    text-align: center;
}

.score-circle strong,
.score-circle .score-size-xl,
.score-circle .score-size-lg,
.score-circle .score-size-md,
.score-circle .score-size-sm {
    margin: 0;
    line-height: .9;
    letter-spacing: -.08em;
    text-align: center;
}

.dashboard-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-brand {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.footer-brand .brand-lockup {
    justify-content: center;
}

.footer-slogan,
.dashboard-footer p {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.custom-points-wrap .field-hint {
    display: none !important;
}


/* ============================================================
   UX fix v2 — exact score centering + dotless i logo
   ============================================================ */
.brand-dotless-i {
    display: inline-block;
    position: relative;
    transform: translateY(.01em);
}

/* ============================================================
   SVG logo + points page title polish
   ============================================================ */
.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand-image {
    display: block;
    width: 130px;
    height: auto;
}

.brand::after {
    width: 1.85rem;
    background: linear-gradient(90deg, var(--pink-500) 0%, #16203c 100%);
}

.footer-brand {
    display: block;
    text-align: center;
}

.footer-brand-image {
    display: block;
    width: 136px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.points-page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0;
}

.points-page-title-icon {
    color: var(--pink-500);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-.05em);
}

.points-page-title-prefix {
    color: var(--pink-700);
}

.points-page-title-name {
    color: #16203c;
}

.points-page-lead {
    margin-top: .95rem;
}

.points-page-lead-name {
    font-weight: 800;
    color: var(--ink);
}

@media (max-width: 640px) {
    .brand-image {
        width: 107px;
    }

    .footer-brand-image {
        width: 117px;
    }

    .points-page-title {
        align-items: flex-start;
        gap: .35rem;
    }

    .points-page-title-icon {
        font-size: 1.7rem;
    }
}

/* ============================================================
   UX polish — honeypot / reasons select / holder stars
   ============================================================ */

/* Keep the anti-bot field submitted, but fully out of the visual flow. */
.form-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* Native select kept for accessibility/form semantics, visually aligned with KissPass. */
.reason-picker select {
    width: 100%;
    min-height: 50px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--line-strong, #e7bccb);
    border-radius: 15px;
    outline: none;
    padding: .76rem 3rem .76rem 1rem;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #9f3158 50%),
        linear-gradient(135deg, #9f3158 50%, transparent 50%),
        linear-gradient(180deg, #fffdfd 0%, #fff7fa 100%);
    background-position:
        calc(100% - 19px) 50%,
        calc(100% - 13px) 50%,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    color: var(--ink, #151326);
    cursor: pointer;
    font-weight: 650;
    line-height: 1.25;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 4px 14px rgba(179, 113, 140, .06);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.reason-picker select:hover {
    border-color: var(--pink-300, #f7bdd0);
}

.reason-picker select:focus-visible {
    border-color: var(--pink-500, #df4d7d);
    box-shadow: 0 0 0 4px rgba(255, 233, 240, .9);
}

.reason-picker select option {
    background: #fff;
    color: var(--ink, #151326);
}

.reason-picker .icon-button {
    box-shadow: 0 4px 14px rgba(179, 113, 140, .06);
    transition:
        transform .16s ease,
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease;
}

.reason-picker .icon-button:hover {
    border-color: var(--pink-500, #df4d7d);
    background: #ffe1eb;
    box-shadow: 0 6px 16px rgba(179, 113, 140, .11);
    transform: translateY(-1px);
}

.reason-picker .icon-button:active {
    transform: translateY(0);
}

/* Decorative 0-to-5 star layer. Score 12+ reaches the full five-star backdrop. */
.self-card {
    isolation: isolate;
}

.self-card-stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.self-card-star {
    position: absolute;
    color: rgba(223, 77, 125, .13);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(187, 36, 90, .05));
    transform: rotate(-12deg);
}

.self-card-star:nth-child(1) {
    top: 1rem;
    left: 1.2rem;
    font-size: 2.7rem;
}

.self-card-star:nth-child(2) {
    top: 1.25rem;
    left: 38%;
    font-size: 1.8rem;
    transform: rotate(14deg);
}

.self-card-star:nth-child(3) {
    top: 45%;
    right: 1.1rem;
    font-size: 3.6rem;
    transform: rotate(9deg);
}

.self-card-star:nth-child(4) {
    bottom: .9rem;
    left: 30%;
    font-size: 2.3rem;
    transform: rotate(-18deg);
}

.self-card-star:nth-child(5) {
    right: 28%;
    bottom: 1.2rem;
    font-size: 1.55rem;
    transform: rotate(18deg);
}

.self-card > :not(.self-card-stars) {
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .reason-picker select {
        min-height: 48px;
        padding-left: .9rem;
        font-size: .95rem;
    }

    .self-card-star {
        opacity: .8;
    }
}



/* History notification preference */
.history-notification-preference {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    margin: -0.15rem 0 1.35rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(217, 47, 105, 0.16);
    border-radius: 14px;
    background: rgba(255, 247, 250, 0.72);
}

.history-notification-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: var(--ink, #17142d);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.history-notification-toggle input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #d92f69;
    cursor: pointer;
}

.history-notification-bell {
    font-size: 1rem;
    line-height: 1;
    filter: saturate(0.85);
}

.button.compact {
    min-height: auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.86rem;
}

.notification-result {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

.notification-result .button {
    margin-top: 1rem;
}

/* ============================================================
   Reason picker — custom dropdown with recent/searchable reasons
   ============================================================ */
.reason-picker {
    position: relative;
    display: block;
}

.reason-picker-trigger {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    border: 1px solid var(--line-strong, #e7bccb);
    border-radius: 15px;
    padding: .76rem 1rem;
    background: linear-gradient(180deg, #fffdfd 0%, #fff7fa 100%);
    color: var(--ink, #151326);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 4px 14px rgba(179, 113, 140, .06);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.reason-picker-trigger:hover,
.reason-picker.is-open .reason-picker-trigger {
    border-color: var(--pink-300, #f7bdd0);
}

.reason-picker-trigger:focus-visible {
    outline: none;
    border-color: var(--pink-500, #df4d7d);
    box-shadow: 0 0 0 4px rgba(255, 233, 240, .9);
}

.reason-picker-chevron {
    flex: 0 0 auto;
    width: .62rem;
    height: .62rem;
    border-right: 2px solid #9f3158;
    border-bottom: 2px solid #9f3158;
    transform: translateY(-.15rem) rotate(45deg);
    transition: transform .18s ease;
}

.reason-picker.is-open .reason-picker-chevron {
    transform: translateY(.12rem) rotate(225deg);
}

.reason-picker-menu {
    position: absolute;
    top: calc(100% + .45rem);
    left: 0;
    z-index: 40;
    width: 100%;
    max-height: min(430px, 70vh);
    overflow-y: auto;
    border: 1px solid var(--line-strong, #e7bccb);
    border-radius: 16px;
    padding: .55rem;
    background: #fff;
    box-shadow: 0 16px 36px rgba(70, 28, 48, .16);
}

.reason-picker-menu[hidden],
.reason-search-view[hidden],
.reason-picker-row[hidden],
.reason-search-hint[hidden],
.reason-search-empty[hidden],
[data-reason-default-view][hidden] {
    display: none !important;
}

.reason-picker-heading {
    margin: .2rem .55rem .35rem;
    color: var(--muted, #756b76);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.reason-picker-heading-spaced {
    margin-top: .7rem;
}

.reason-picker-group {
    display: grid;
    gap: .16rem;
}

.reason-picker-row {
    display: flex;
    align-items: stretch;
    gap: .3rem;
    border-radius: 11px;
}

.reason-picker-option,
.reason-picker-action {
    border: 0;
    background: transparent;
    color: var(--ink, #151326);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.reason-picker-option {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    border-radius: 11px;
    padding: .68rem .72rem;
    font-weight: 650;
    line-height: 1.25;
}

.reason-picker-option > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.reason-picker-option:hover,
.reason-picker-option:focus-visible,
.reason-picker-action:hover,
.reason-picker-action:focus-visible {
    outline: none;
    background: #fff1f6;
}

.reason-picker-option.is-selected {
    background: #fff5f8;
    color: var(--pink-700, #be235b);
}

.reason-picker-check {
    flex: 0 0 auto;
    opacity: 0;
    color: var(--pink-700, #be235b);
    font-size: .9rem;
}

.reason-picker-option.is-selected .reason-picker-check {
    opacity: 1;
}

.reason-row-delete {
    display: inline-grid;
    width: 2.55rem;
    min-width: 2.55rem;
    place-items: center;
    align-self: stretch;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #a52b56;
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
}

.reason-row-delete:hover,
.reason-row-delete:focus-visible {
    outline: none;
    background: #ffe8ef;
}

.reason-picker-action {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .55rem;
    margin-top: .5rem;
    border-top: 1px solid #f1dde5;
    border-radius: 0 0 11px 11px;
    padding: .76rem .72rem .68rem;
    color: var(--pink-700, #be235b);
    font-weight: 750;
}

.reason-picker-custom-action {
    margin-top: .2rem;
}

.reason-picker-custom-action.is-selected {
    background: #fff5f8;
}

.reason-search-view {
    display: grid;
    gap: .55rem;
}

.reason-search-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .45rem;
    align-items: center;
}

.reason-search-back {
    display: inline-grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid #ead1da;
    border-radius: 10px;
    background: #fff8fb;
    color: var(--pink-700, #be235b);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.reason-search-back:hover,
.reason-search-back:focus-visible {
    outline: none;
    background: #ffeaf1;
}

.reason-search-input {
    width: 100%;
    min-height: 2.45rem;
    border: 1px solid #e7c8d3;
    border-radius: 10px;
    padding: .55rem .7rem;
    background: #fff;
    color: var(--ink, #151326);
    font: inherit;
}

.reason-search-input:focus-visible {
    outline: none;
    border-color: var(--pink-500, #df4d7d);
    box-shadow: 0 0 0 3px rgba(255, 233, 240, .9);
}

.reason-search-hint,
.reason-search-empty {
    margin: .35rem .35rem .2rem;
    color: var(--muted, #756b76);
    font-size: .88rem;
    line-height: 1.4;
}

.reason-search-results {
    display: grid;
    gap: .16rem;
}

.reason-delete-dialog {
    width: min(92vw, 440px);
    border: 1px solid #ead1da;
    border-radius: 18px;
    padding: 0;
    background: #fff;
    color: var(--ink, #151326);
    box-shadow: 0 22px 60px rgba(60, 20, 40, .24);
}

.reason-delete-dialog::backdrop {
    background: rgba(25, 17, 30, .38);
    backdrop-filter: blur(2px);
}

.reason-delete-dialog-body {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.reason-delete-dialog-body p {
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
}

.reason-delete-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
}

@media (max-width: 640px) {
    .reason-picker-trigger {
        min-height: 48px;
        padding-left: .9rem;
        font-size: .95rem;
    }

    .reason-picker-menu {
        max-height: min(390px, 65vh);
    }
}

/* ============================================================
   Invitation par e-mail
   ============================================================ */
.invite-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.15rem 0;
    color: var(--muted, #756b76);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.invite-divider::before,
.invite-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(190, 35, 91, .16);
}

.invite-email-box {
    padding: 1rem;
    border: 1px solid rgba(223, 77, 125, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.invite-email-heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
    color: var(--pink-700, #be235b);
}

.invite-email-icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    background: #ffe6ef;
    color: var(--pink-700, #be235b);
    font-size: 1rem;
}

.invite-email-box label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
}

.invite-email-row {
    display: flex;
    gap: .8rem;
    align-items: stretch;
}

.invite-email-row input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line, #efd6df);
    border-radius: 16px;
    padding: .76rem .95rem;
    background: #fff;
    color: var(--ink, #151326);
    font: inherit;
}

.invite-email-row input:focus-visible {
    outline: none;
    border-color: var(--pink-500, #df4d7d);
    box-shadow: 0 0 0 3px rgba(255, 233, 240, .9);
}

/* ============================================================
   Reason picker — croix de retrait claire dans la ligne
   ============================================================ */
.reason-row-delete {
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    align-self: center;
    margin-right: .22rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid #f0b9cc;
    border-radius: 999px;
    background: #fff3f7;
    color: #cf2f66;
    box-shadow: 0 2px 8px rgba(190, 35, 91, .08);
    font-size: 1rem;
}

.reason-row-delete:hover,
.reason-row-delete:focus-visible {
    background: #ffe2ec;
    border-color: #df7ca0;
    color: #a81f50;
    box-shadow: 0 0 0 3px rgba(255, 226, 236, .8);
}

.reason-row-delete-icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

@media (max-width: 640px) {
    .invite-email-row {
        flex-direction: column;
    }

    .invite-email-row .button {
        width: 100%;
    }
}

/* ============================================================
   Portraits — sélection après inscription
   ============================================================ */
.portrait-trigger {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 24px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.portrait-trigger:hover .initial-box,
.portrait-trigger:hover .profile-portrait,
.portrait-trigger:focus-visible .initial-box,
.portrait-trigger:focus-visible .profile-portrait {
    border-color: var(--pink-500, #df4d7d);
    box-shadow: 0 0 0 4px rgba(255, 226, 236, .85);
}

.portrait-trigger:focus-visible {
    outline: none;
}

.profile-portrait {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    border: 1px solid var(--line, #efd6df);
    border-radius: 22px;
    background: #fff;
    object-fit: cover;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.profile-portrait.small {
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 16px;
}

.portrait-trigger:hover .profile-portrait {
    transform: translateY(-1px);
}

.portrait-prompt {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--pink-700, #be235b);
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.portrait-prompt:hover,
.portrait-prompt:focus-visible {
    color: #961b49;
    outline: none;
}

.portrait-dialog {
    width: min(92vw, 620px);
    max-height: 92vh;
    border: 1px solid #edc8d6;
    border-radius: 28px;
    padding: 0;
    background: #fffdfd;
    color: var(--ink, #151326);
    box-shadow: 0 28px 80px rgba(72, 31, 50, .24);
    overflow: auto;
}

.portrait-dialog::backdrop {
    background: rgba(25, 17, 30, .42);
    backdrop-filter: blur(3px);
}

.portrait-dialog-shell {
    position: relative;
    display: grid;
    gap: 1.15rem;
    justify-items: center;
    padding: 1.7rem 1.7rem 1.85rem;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 229, 238, .75), transparent 13rem),
        linear-gradient(180deg, #fffdfd, #fff9fb);
}

.portrait-dialog-logo {
    width: 99px;
    height: auto;
    justify-self: start;
}

.portrait-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #30354a;
    cursor: pointer;
    font: inherit;
    font-size: 2rem;
    font-weight: 350;
    line-height: 1;
}

.portrait-dialog-close:hover,
.portrait-dialog-close:focus-visible {
    outline: none;
    background: #fff0f5;
    color: var(--pink-700, #be235b);
}

.portrait-dialog h2 {
    margin: .2rem 0 .1rem;
    color: #16203c;
    font-size: clamp(2rem, 6vw, 2.65rem);
    line-height: 1;
    letter-spacing: -.05em;
    text-align: center;
}

.portrait-tabs {
    display: grid;
    width: min(100%, 460px);
    grid-template-columns: 1fr 1fr;
    padding: .25rem;
    border-radius: 18px;
    background: #f0edf1;
}

.portrait-tab {
    min-height: 3rem;
    border: 0;
    border-radius: 15px;
    padding: .65rem 1rem;
    background: transparent;
    color: #34374c;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.portrait-tab.is-active {
    background: linear-gradient(180deg, #ef5484, #dc356b);
    color: #fff;
    box-shadow: 0 5px 14px rgba(190, 35, 91, .17);
}

.portrait-tab:focus-visible {
    outline: 3px solid rgba(223, 77, 125, .28);
    outline-offset: 2px;
}

.portrait-carousel {
    display: grid;
    width: min(100%, 500px);
    min-height: 12.5rem;
    grid-template-columns: minmax(0, .75fr) minmax(9rem, 1.25fr) minmax(0, .75fr);
    gap: .2rem;
    align-items: center;
    justify-items: center;
    padding: .25rem 0;
    overflow: hidden;
}

.portrait-preview {
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
}

.portrait-preview img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(72, 31, 50, .10);
}

.portrait-preview-current {
    width: 10.2rem;
    height: 10.2rem;
    z-index: 2;
    transform: scale(1.2);
}

.portrait-preview-current img {
    border: 4px solid #fff;
    box-shadow:
        0 0 0 2px rgba(223, 77, 125, .18),
        0 13px 30px rgba(72, 31, 50, .16);
}

.portrait-preview-side {
    width: 7.6rem;
    height: 7.6rem;
    opacity: .33;
    cursor: pointer;
    transition: opacity .16s ease, transform .16s ease;
}

.portrait-preview-side:hover,
.portrait-preview-side:focus-visible {
    opacity: .6;
    outline: none;
    transform: scale(1.03);
}

.portrait-arrow {
    position: absolute;
    top: 50%;
    display: inline-grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 237, 244, .96);
    color: var(--pink-700, #be235b);
    box-shadow: 0 4px 14px rgba(72, 31, 50, .12);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

.portrait-arrow-left {
    left: .1rem;
}

.portrait-arrow-right {
    right: .1rem;
}

.portrait-position {
    min-height: 1.2rem;
    margin: -.2rem 0 0;
    color: var(--muted, #756b76);
    font-size: .82rem;
    font-weight: 700;
}

.portrait-dialog form {
    display: grid;
    width: 100%;
    justify-items: center;
}

.portrait-choose-button {
    min-width: min(100%, 18rem);
    font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
    .profile-portrait,
    .portrait-preview-side {
        transition: none;
    }
}

@media (max-width: 640px) {
    .profile-portrait {
        width: 6.7rem;
        height: 6.7rem;
        border-radius: 20px;
    }

    .profile-portrait.small {
        width: 4.3rem;
        height: 4.3rem;
        border-radius: 16px;
    }

    .portrait-dialog {
        width: min(94vw, 620px);
        border-radius: 24px;
    }

    .portrait-dialog-shell {
        gap: .95rem;
        padding: 1.25rem 1rem 1.35rem;
    }

    .portrait-dialog-logo {
        width: 86px;
    }

    .portrait-dialog h2 {
        margin-top: .35rem;
        font-size: 2rem;
    }

    .portrait-tab {
        padding-inline: .55rem;
        font-size: .92rem;
    }

    .portrait-carousel {
        min-height: 10rem;
        grid-template-columns: minmax(0, .6fr) minmax(7.2rem, 1.4fr) minmax(0, .6fr);
    }

    .portrait-preview-current {
        width: 7.7rem;
        height: 7.7rem;
    }

    .portrait-preview-side {
        width: 5.3rem;
        height: 5.3rem;
    }

    .portrait-arrow {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.6rem;
    }
}


/* Dashboard action buttons match modal primary button typography. */
.action-button {
    font-size: 1rem;
}


/* ============================================================
   Dashboard / navigation polish — 2026-09-11
   ============================================================ */
:root {
    --pass-blue: #16203c;
}

/* Fallback avatar initials and displayed nicknames. */
.initial-box {
    color: var(--pass-blue);
    text-transform: uppercase;
}

.nickname-display,
.avatar-name,
.partner-identity > strong,
.points-page-title-name,
.points-page-lead-name,
.nickname-context-title {
    color: var(--pass-blue);
}

/* Language selector stays in the top-right corner; logout sits directly below. */
.site-header {
    align-items: flex-start;
    padding: .8rem 0;
}

.header-actions {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: .5rem;
}

.logout-form {
    align-self: flex-end;
}

.history-top-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.1rem;
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        min-height: 82px;
        gap: .75rem;
        padding: .75rem 0;
    }

    .header-actions {
        width: auto;
        flex: 0 0 auto;
        align-items: flex-end;
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .site-shell {
        width: min(100% - 1.25rem, 1160px);
    }

    .brand-image {
        width: 97px;
    }

    .language-switcher a {
        min-width: 1.95rem;
        padding-inline: .38rem;
    }
}


/* ============================================================
   UI polish — score, back actions, hearts and responsive header
   ============================================================ */

/* Keep the language controls pinned to the real top-right corner at every width. */
.site-header {
    position: relative;
    min-height: 96px;
    padding: .75rem 0 1rem;
}

.header-actions {
    position: absolute;
    top: .7rem;
    right: 0;
    width: max-content !important;
    display: flex;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: .5rem;
}

.logout-form {
    width: auto;
    align-self: flex-end;
    text-align: right;
}

/* A little air between the upper Back action and the notification preference. */
.history-top-actions {
    margin-bottom: 1.65rem;
}

.history-top-actions + .history-notification-preference {
    margin-top: 0;
}

/* The score uses normal layout centering: one grid cell, centered in both axes. */
.score-circle {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    padding: 0;
}

.score-circle strong,
.score-circle .score-size-xl,
.score-circle .score-size-lg,
.score-circle .score-size-md,
.score-circle .score-size-sm {
    position: static;
    top: auto;
    left: auto;
    align-self: center;
    justify-self: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    transform: none;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    line-height: 1;
    letter-spacing: -.055em;
    text-align: center;
    white-space: nowrap;
}

/* 1–2 digits share the same size; 3 and 4 digits progressively shrink. */
.score-circle .score-size-xl {
    font-size: clamp(4.8rem, 8vw, 5.8rem);
}

.score-circle .score-size-lg {
    font-size: clamp(4.2rem, 7vw, 5rem);
}

.score-circle .score-size-md,
.score-circle .score-size-sm {
    font-size: clamp(3.6rem, 6vw, 4.3rem);
}

/* Give / remove labels start from the same left edge. */
.action-button {
    justify-content: flex-start;
    text-align: left;
}

.action-button > span:last-child {
    flex: 1 1 auto;
    text-align: left;
}

/* Matching custom heart silhouettes. Color follows the surrounding UI. */
.heart-icon {
    display: block;
    width: 1.35em;
    height: 1.35em;
    flex: 0 0 auto;
    overflow: visible;
}

.action-icon .heart-icon {
    width: 1.45em;
    height: 1.45em;
}

.points-page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    color: var(--pink-500);
    font-size: 2rem;
    transform: translateY(-.03em);
}

.points-page-title-icon .heart-icon {
    width: 1em;
    height: 1em;
}

@media (max-width: 760px) {
    .site-header {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 96px;
        gap: 0;
        padding: .7rem 0 1rem;
    }

    .header-actions {
        position: absolute;
        top: .65rem;
        right: 0;
        width: max-content !important;
        flex: 0 0 auto;
        align-items: flex-end !important;
    }

    .score-circle .score-size-xl {
        font-size: 4.8rem;
    }

    .score-circle .score-size-lg {
        font-size: 4.15rem;
    }

    .score-circle .score-size-md,
    .score-circle .score-size-sm {
        font-size: 3.55rem;
    }
}

@media (max-width: 420px) {
    .site-header {
        min-height: 92px;
    }

    .header-actions {
        top: .6rem;
    }

    .language-switcher {
        gap: .08rem;
        padding: .18rem;
    }

    .language-switcher a {
        min-width: 1.8rem;
        padding: .32rem .32rem;
    }
}

/* ============================================================
   Back button — single continuous arrow silhouette
   ============================================================ */
.back-button {
    position: relative;
    isolation: isolate;
    min-height: 52px;
    margin-left: 26px;
    padding: .78rem 1.55rem .78rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.back-button::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: -26px;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 52' preserveAspectRatio='none'%3E%3Cpath d='M28 1H162Q179 1 179 18V34Q179 51 162 51H28L4 29Q1 27.5 1 26Q1 24.5 4 23Z' fill='%23fff' stroke='%23f0d8e1' stroke-width='1.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
    pointer-events: none;
}

.back-button::after {
    content: none;
}

.back-button:hover,
.back-button:focus-visible {
    background: transparent;
}

/* ============================================================
   Profile settings
   ============================================================ */
.dashboard-profile-link {
    display: inline-block;
    width: fit-content;
    text-decoration: none;
}

.dashboard-profile-link:hover,
.dashboard-profile-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .24rem;
}

.history-notification-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .18rem .35rem;
}

.history-notification-address-link {
    color: var(--pink-700);
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.35;
    text-underline-offset: .18rem;
}

.profile-settings-card {
    width: min(100%, 620px);
}

.profile-back-actions {
    margin-bottom: 1.35rem;
}

.profile-notification-setting {
    padding: .9rem 1rem;
    border: 1px solid rgba(217, 47, 105, .16);
    border-radius: 14px;
    background: rgba(255, 247, 250, .72);
}

.profile-form-actions {
    margin-top: .15rem;
}

@media (max-width: 640px) {
    .history-notification-copy {
        align-items: flex-start;
    }

    .history-notification-address-link {
        margin-left: 1.7rem;
    }
}


/* ============================================================
   Profile password dialog
   ============================================================ */
.profile-password-link {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    width: fit-content;
    margin-top: .55rem;
    color: var(--pink-700, #be235b);
    font-size: .92rem;
    font-weight: 750;
    text-underline-offset: .18rem;
}

.profile-password-key {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.profile-password-status {
    margin: .55rem 0 0;
    color: #39724a;
    font-size: .9rem;
    font-weight: 700;
}

.profile-notification-setting {
    margin-top: .75rem;
}

.profile-password-dialog {
    width: min(92vw, 520px);
    max-width: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 24px 70px rgba(22, 32, 60, .2);
}

.profile-password-dialog::backdrop {
    background: rgba(22, 32, 60, .34);
    backdrop-filter: blur(2px);
}

.profile-password-dialog-shell {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--line, #f0d8e1);
    border-radius: 24px;
    background: #fff;
}

.profile-password-dialog-shell h2 {
    margin-top: .15rem;
}

.profile-password-dialog-close {
    position: absolute;
    top: .85rem;
    right: .9rem;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--line, #f0d8e1);
    border-radius: 999px;
    background: #fff7fa;
    color: var(--pass-blue, #16203c);
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
}

.profile-password-actions {
    justify-content: flex-end;
    margin-top: .35rem;
}

@media (max-width: 520px) {
    .profile-password-dialog-shell {
        padding: 1.45rem 1.15rem 1.25rem;
    }

    .profile-password-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .profile-password-actions .button {
        width: 100%;
    }
}

/* ============================================================
   UI polish patch — profile icon, partner card, RGPD, back button
   ============================================================ */
.dashboard-grid {
    grid-template-columns: minmax(0, 1.78fr) minmax(340px, 1.02fr);
}

.dashboard-profile-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    padding: .25rem 0;
    color: var(--pink-700);
    text-decoration: none;
}

.dashboard-profile-link:hover,
.dashboard-profile-link:focus-visible {
    color: #a91f50;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .24rem;
}

.dashboard-profile-link-icon {
    display: inline-grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    flex: 0 0 auto;
}

.dashboard-profile-link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-nickname-link {
    display: inline-block;
    color: var(--pass-blue);
    text-decoration: none;
}

.profile-nickname-link:hover,
.profile-nickname-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.partner-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1rem;
    background: rgba(255,255,255,.6);
    color: inherit;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.partner-summary:hover,
.partner-summary:focus-visible {
    border-color: #e7a9bf;
    box-shadow: 0 10px 24px rgba(72, 31, 50, .08);
    transform: translateY(-1px);
    outline: none;
}

.partner-identity {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.partner-score-link {
    text-align: right;
    color: var(--pink-700);
}

.partner-history-link {
    display: inline-block;
    margin-top: .35rem;
    font-size: .82rem;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.profile-password-link {
    gap: .5rem;
    font-size: .94rem;
}

.profile-password-lock {
    width: 1.28rem;
    height: 1.28rem;
    flex: 0 0 auto;
}

.back-button {
    min-height: 52px;
    margin-left: 24px;
    padding: .78rem 1.6rem .78rem 1.28rem;
}

.back-button::before {
    left: -24px;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 172 52' preserveAspectRatio='none'%3E%3Cpath d='M31 1H154Q171 1 171 18V34Q171 51 154 51H31L10 32Q4 26 10 20L31 1Z' fill='%23fff' stroke='%23f0d8e1' stroke-width='1.5' vector-effect='non-scaling-stroke' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dashboard-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.footer-legal-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--pink-700);
    cursor: pointer;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    color: #9f1d4c;
    outline: none;
}

.rgpd-dialog {
    width: min(92vw, 620px);
    max-height: 92vh;
    border: 1px solid #edc8d6;
    border-radius: 28px;
    padding: 0;
    background: #fffdfd;
    color: var(--ink, #151326);
    box-shadow: 0 28px 80px rgba(72, 31, 50, .24);
    overflow: auto;
}

.rgpd-dialog::backdrop {
    background: rgba(25, 17, 30, .42);
    backdrop-filter: blur(3px);
}

.rgpd-dialog-shell {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.6rem 1.6rem 1.75rem;
    background: linear-gradient(180deg, #fffdfd, #fff9fb);
}

.rgpd-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #30354a;
    cursor: pointer;
    font: inherit;
    font-size: 2rem;
    font-weight: 350;
    line-height: 1;
}

.rgpd-dialog-close:hover,
.rgpd-dialog-close:focus-visible {
    outline: none;
    background: #fff0f5;
    color: var(--pink-700, #be235b);
}

.rgpd-dialog h2 {
    margin: .2rem 0 .1rem;
    color: #16203c;
    font-size: clamp(2rem, 6vw, 2.65rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.rgpd-dialog-content {
    display: grid;
    gap: .8rem;
    color: var(--muted, #756b76);
    line-height: 1.65;
}

.rgpd-dialog-content p,
.rgpd-dialog-content ul {
    margin: 0;
}

.rgpd-dialog-content ul {
    padding-left: 1.2rem;
}

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

/* Micro-fix — back button right edge cleanup */
.back-button {
    margin-left: 22px;
    padding: .78rem 1.55rem .78rem 1.22rem;
}

.back-button::before {
    left: -22px;
    right: -2px;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 54' preserveAspectRatio='none'%3E%3Cpath d='M34 2H154Q170 2 170 18V36Q170 52 154 52H34L14 33Q8 27 14 21L34 2Z' fill='%23fff' stroke='%23f0d8e1' stroke-width='1.5' vector-effect='non-scaling-stroke' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============================================================
   Micro polish — final back button / profile spacing / dashboard links
   ============================================================ */

/* The nickname remains visually identical after becoming a link. */
.profile-nickname-link {
    font-weight: 800;
}

/* Partner history stays secondary to the partner score. */
.partner-summary .partner-history-link,
.partner-summary .partner-score-link span {
    font-size: .72rem;
}

/* Password action sits on the right edge of the nickname field. */
.profile-settings-card .profile-password-link {
    justify-self: end;
    margin-top: .35rem;
}

.profile-settings-card .profile-email-field {
    margin-top: .8rem;
}

/* Remove the native secondary-button rectangle completely. The SVG owns the silhouette. */
.button.secondary.back-button {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.button.secondary.back-button:hover,
.button.secondary.back-button:focus-visible {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* One clean closed path, with a slightly softened left tip and no extra right edge. */
.button.secondary.back-button::before {
    top: 0;
    right: 0;
    bottom: 0;
    left: -22px;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 174 52' preserveAspectRatio='none'%3E%3Cpath d='M31 1.5H155Q172.5 1.5 172.5 19V33Q172.5 50.5 155 50.5H31L11.5 32.5Q5 26 11.5 19.5L31 1.5Z' fill='%23fff' stroke='%23f0d8e1' stroke-width='1.5' vector-effect='non-scaling-stroke' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* ============================================================
   Mentions légales — lien séparé sous le footer
   ============================================================ */
.partner-summary .partner-history-link,
.partner-summary .partner-score-link span {
    font-size: .62rem;
    line-height: 1.1;
}

.footer-legal-link,
.rgpd-dialog {
    display: none !important;
}

.dashboard-legal {
    display: flex;
    justify-content: center;
    margin-top: 2.4rem;
    padding-bottom: .4rem;
}

.dashboard-legal-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #9a9197;
    cursor: pointer;
    font: inherit;
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .14rem;
}

.dashboard-legal-link:hover,
.dashboard-legal-link:focus-visible {
    color: #6f666c;
    outline: none;
}

.legal-dialog {
    width: min(92vw, 700px);
    max-height: 88vh;
    border: 1px solid #edc8d6;
    border-radius: 26px;
    padding: 0;
    background: #fffdfd;
    color: var(--ink, #151326);
    box-shadow: 0 28px 80px rgba(72, 31, 50, .24);
    overflow: auto;
}

.legal-dialog::backdrop {
    background: rgba(25, 17, 30, .42);
    backdrop-filter: blur(3px);
}

.legal-dialog-shell {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.65rem 1.7rem 1.8rem;
    background: linear-gradient(180deg, #fffdfd, #fff9fb);
}

.legal-dialog-close {
    position: absolute;
    top: .95rem;
    right: .95rem;
    display: inline-grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #30354a;
    cursor: pointer;
    font: inherit;
    font-size: 1.9rem;
    line-height: 1;
}

.legal-dialog-close:hover,
.legal-dialog-close:focus-visible {
    outline: none;
    background: #fff0f5;
    color: var(--pink-700, #be235b);
}

.legal-dialog h2 {
    margin: .15rem 0 .15rem;
    color: #16203c;
    font-size: clamp(1.9rem, 5vw, 2.45rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.legal-dialog-content {
    display: grid;
    gap: 1.15rem;
    color: var(--muted, #756b76);
    line-height: 1.62;
}

.legal-dialog-content section {
    display: grid;
    gap: .35rem;
}

.legal-dialog-content h3 {
    margin: 0;
    color: #16203c;
    font-size: 1rem;
}

.legal-dialog-content p {
    margin: 0;
}

/* ============================================================
   Profile / score micro-polish — 2026-09-12
   ============================================================ */
.score-circle {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.score-circle-link:hover .score-circle,
.score-circle-link:focus-visible .score-circle {
    transform: scale(1.018);
    border-color: #ffd2e1;
    box-shadow:
        inset 0 0 0 6px rgba(255, 255, 255, .86),
        0 17px 38px rgba(235, 102, 149, .22);
}

.score-circle-link:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .score-circle {
        transition: none;
    }

    .score-circle-link:hover .score-circle,
    .score-circle-link:focus-visible .score-circle {
        transform: none;
    }
}

/* ============================================================
   Fresh-start proposal / score reset
   ============================================================ */
.reset-request-banner {
    margin-bottom: 1rem;
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--pink-300, #f7bdd0);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 220, 232, .66), transparent 18rem),
        linear-gradient(180deg, #fffdfd, #fff4f8);
    box-shadow: var(--shadow, 0 18px 55px rgba(179, 113, 140, .11));
}

.reset-request-banner h2 {
    margin: 0;
    color: #16203c;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.reset-request-message {
    margin: 1rem 0 0;
    padding: .85rem 1rem;
    border: 1px solid rgba(223, 77, 125, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    color: #554c58;
    font-style: italic;
    line-height: 1.55;
}

.reset-request-question {
    margin: 1rem 0 .2rem;
    color: var(--pass-blue, #16203c);
    font-weight: 800;
}

.reset-response-actions {
    justify-content: space-between;
    margin-top: .8rem;
}

.partner-reset-area {
    display: grid;
    gap: .35rem;
    margin-top: .25rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(231, 188, 203, .58);
}

.reset-proposal-button {
    justify-self: center;
    border: 0;
    padding: .2rem .35rem;
    background: transparent;
    color: var(--pink-700, #bb245a);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .18rem;
}

.reset-proposal-button:hover,
.reset-proposal-button:focus-visible {
    color: #9f1e4d;
}

.reset-proposal-button:disabled {
    color: var(--muted, #6f6777);
    cursor: default;
    opacity: .82;
    text-decoration: none;
}

.reset-pending-note {
    margin: 0;
    color: var(--muted, #6f6777);
    font-size: .74rem;
    line-height: 1.35;
    text-align: center;
}

.reset-dialog {
    width: min(92vw, 560px);
    max-width: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 24px 70px rgba(22, 32, 60, .2);
}

.reset-dialog::backdrop {
    background: rgba(22, 32, 60, .34);
    backdrop-filter: blur(2px);
}

.reset-dialog-shell {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--line, #f0d8e1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 229, 238, .72), transparent 13rem),
        #fff;
}

.reset-dialog-shell h2 {
    margin: .15rem 0 .45rem;
    color: #16203c;
    font-size: clamp(2rem, 6vw, 2.55rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.reset-dialog-shell .lead {
    margin-bottom: 0;
}

.reset-dialog-close {
    position: absolute;
    top: .85rem;
    right: .9rem;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--line, #f0d8e1);
    border-radius: 999px;
    background: #fff7fa;
    color: var(--pass-blue, #16203c);
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
}

.reset-form textarea,
.reset-form input[type="number"] {
    width: 100%;
    border: 1px solid var(--line, #f0d8e1);
    border-radius: 16px;
    outline: none;
    padding: .76rem .95rem;
    background: #fff;
    color: var(--ink, #151326);
    font: inherit;
}

.reset-form textarea {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.5;
}

.reset-form textarea:focus,
.reset-form input[type="number"]:focus {
    border-color: var(--pink-300, #f7bdd0);
    box-shadow: 0 0 0 4px rgba(255, 233, 240, .8);
}

.reset-dialog-actions {
    justify-content: space-between;
}

.history-reset-row {
    align-items: start;
}

.history-reset-main {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.history-reset-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.history-reset-heading > strong {
    color: var(--pass-blue, #16203c);
}

.reset-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 800;
}

.reset-status-pending {
    background: #fff1c9;
    color: #775700;
}

.reset-status-accepted {
    background: #eaf8ef;
    color: #247444;
}

.reset-status-rejected {
    background: #fff0f4;
    color: #a82d59;
}

.history-reset-summary,
.history-reset-message {
    margin: 0;
    line-height: 1.45;
}

.history-reset-message {
    color: var(--muted, #6f6777);
    font-size: .9rem;
    font-style: italic;
}

@media (max-width: 640px) {
    .reset-request-banner {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .reset-response-actions,
    .reset-dialog-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .65rem;
    }

    .reset-response-actions .button,
    .reset-dialog-actions .button {
        width: 100%;
    }

    .reset-dialog-shell {
        padding: 1.45rem 1.15rem 1.25rem;
    }

    .history-reset-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}
