:root {
    --font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-body: "Segoe UI Variable Text", "Gill Sans", "Trebuchet MS", sans-serif;
    --ink: #f5efe3;
    --ink-soft: rgba(245, 239, 227, 0.78);
    --line: rgba(255, 255, 255, 0.18);
    --glass: rgba(8, 15, 14, 0.34);
    --shadow: 0 24px 60px rgba(4, 13, 11, 0.3);
}

/* Nemorias buyer mock interface */
.page-buyer-space {
    background: #070b0b;
    color: #f5efe4;
}

.nem-buyer-app,
.nem-buyer-app * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.nem-buyer-app {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 18%, rgba(113, 142, 90, 0.11), transparent 34%),
        radial-gradient(circle at 32% 84%, rgba(185, 165, 122, 0.07), transparent 30%),
        linear-gradient(135deg, #070b0b 0%, #0b1110 45%, #080b0b 100%);
    color: #f5efe4;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.nem-buyer-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    width: 192px;
    flex-direction: column;
    padding: 32px 16px 28px;
    border-right: 1px solid rgba(245, 239, 228, 0.07);
    background:
        linear-gradient(145deg, rgba(31, 38, 35, 0.96), rgba(13, 18, 18, 0.98)),
        rgba(13, 18, 18, 0.96);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.24);
}

.nem-buyer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #f8efe1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    text-decoration: none;
}

.nem-buyer-brand::before {
    display: block;
    width: 15px;
    height: 15px;
    content: "";
    background:
        linear-gradient(45deg, transparent 44%, currentColor 45% 55%, transparent 56%) 50% 0 / 100% 42% no-repeat,
        linear-gradient(135deg, transparent 44%, currentColor 45% 55%, transparent 56%) 50% 0 / 100% 42% no-repeat,
        linear-gradient(45deg, transparent 44%, currentColor 45% 55%, transparent 56%) 50% 42% / 78% 36% no-repeat,
        linear-gradient(135deg, transparent 44%, currentColor 45% 55%, transparent 56%) 50% 42% / 78% 36% no-repeat,
        linear-gradient(currentColor, currentColor) 50% 100% / 1px 52% no-repeat;
    opacity: 0.92;
}

.nem-buyer-nav {
    display: grid;
    gap: 8px;
    margin-top: 56px;
}

.nem-buyer-nav a,
.nem-buyer-logout {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: 6px;
    color: rgba(245, 239, 228, 0.74);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.nem-buyer-nav a > span:not(.nem-buyer-nav-icon),
.nem-buyer-logout > span:not(.nem-buyer-nav-icon) {
    min-width: 0;
    flex: 1;
}

.nem-buyer-nav-badge {
    display: grid;
    min-width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #8fbf68;
    color: #0b1110;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.nem-buyer-nav a:hover,
.nem-buyer-nav a:focus-visible,
.nem-buyer-nav a.is-active,
.nem-buyer-logout:hover,
.nem-buyer-logout:focus-visible {
    background: rgba(245, 239, 228, 0.07);
    color: #fff7ec;
    outline: none;
}

.nem-buyer-logout {
    margin-top: auto;
}

.nem-buyer-nav-icon {
    position: relative;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    opacity: 0.9;
}

.nem-buyer-nav-icon::before,
.nem-buyer-nav-icon::after {
    position: absolute;
    content: "";
    border-color: currentColor;
}

.nem-buyer-nav-icon-dashboard::before {
    inset: 2px;
    border: 1px solid currentColor;
    border-radius: 3px;
}

.nem-buyer-nav-icon-dashboard::after {
    inset: 6px 2px auto;
    border-top: 1px solid currentColor;
}

.nem-buyer-nav-icon-parcel::before {
    inset: 1px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.nem-buyer-nav-icon-parcel::after {
    inset: 4px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.nem-buyer-nav-icon-heart::before {
    inset: 2px;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: rotate(45deg);
}

.nem-buyer-nav-icon-message::before {
    inset: 2px 1px 3px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.nem-buyer-nav-icon-message::after {
    left: 3px;
    right: 3px;
    top: 5px;
    border-top: 1px solid currentColor;
    transform: rotate(18deg);
}

/* Mes factures : une feuille et deux lignes de texte. */
.nem-buyer-nav-icon-invoice::before {
    inset: 0 2px;
    border: 1px solid currentColor;
    border-radius: 1px;
}

.nem-buyer-nav-icon-invoice::after {
    left: 4px;
    right: 4px;
    top: 4px;
    height: 3px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.nem-buyer-nav-icon-account::before {
    left: 4px;
    top: 1px;
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.nem-buyer-nav-icon-account::after {
    left: 2px;
    right: 2px;
    bottom: 1px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50% 50% 3px 3px;
}

.nem-buyer-nav-icon-logout::before {
    inset: 2px 5px 2px 1px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.nem-buyer-nav-icon-logout::after {
    top: 6px;
    right: 0;
    width: 7px;
    border-top: 1px solid currentColor;
}

.nem-buyer-main {
    width: min(1320px, calc(100% - 192px));
    margin-left: 192px;
    padding: 64px 44px 42px;
}

.nem-buyer-detail-main {
    padding-top: 48px;
}

.nem-buyer-page-head {
    margin-bottom: 34px;
}

.nem-buyer-page-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.nem-buyer-page-head h1,
.nem-detail-primary h1 {
    margin: 0;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.08;
}

.nem-buyer-page-head p {
    max-width: 520px;
    margin: 10px 0 0;
    color: rgba(245, 239, 228, 0.72);
    font-size: 13px;
    line-height: 1.7;
}

.nem-ghost-button,
.nem-filter-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid rgba(245, 239, 228, 0.18);
    border-radius: 8px;
    background: rgba(13, 18, 18, 0.68);
    color: #f8efe1;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-decoration: none;
}

.nem-ghost-button:hover,
.nem-ghost-button:focus-visible,
.nem-filter-button:hover,
.nem-filter-button:focus-visible {
    border-color: rgba(245, 239, 228, 0.38);
    background: rgba(245, 239, 228, 0.06);
    outline: none;
}

.nem-filter-icon {
    position: relative;
    width: 13px;
    height: 12px;
}

.nem-filter-icon::before,
.nem-filter-icon::after {
    position: absolute;
    left: 0;
    width: 13px;
    content: "";
    border-top: 1px solid currentColor;
}

.nem-filter-icon::before {
    top: 3px;
}

.nem-filter-icon::after {
    top: 8px;
    width: 9px;
}

.nem-buyer-section {
    margin-top: 12px;
}

.nem-section-heading {
    margin-bottom: 16px;
}

.nem-section-heading h2,
.nem-info-panel h2 {
    margin: 0;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.2;
}

.nem-parcel-grid {
    display: grid;
    gap: 18px;
}

.nem-parcel-grid-dashboard,
.nem-parcel-grid-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nem-parcel-card {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border: 1px solid rgba(245, 239, 228, 0.07);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 37, 35, 0.92), rgba(17, 23, 23, 0.97));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.nem-parcel-card-compact {
    min-height: 260px;
}

.nem-parcel-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.nem-parcel-media {
    position: relative;
    height: 198px;
    margin: 0;
    overflow: hidden;
    background: #111816;
}

.nem-parcel-card-compact .nem-parcel-media {
    height: 128px;
}

.nem-parcel-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(4, 7, 7, 0.08), rgba(4, 7, 7, 0.62)),
        linear-gradient(90deg, rgba(8, 12, 11, 0.2), transparent 50%, rgba(8, 12, 11, 0.2));
}

.nem-parcel-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.76) brightness(0.68) contrast(1.06);
    transition: transform 180ms ease;
}

.nem-parcel-card:hover .nem-parcel-media img {
    transform: scale(1.025);
}

.nem-parcel-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f5efe4;
    color: #18201c;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.nem-favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(245, 239, 228, 0.34);
    border-radius: 999px;
    background: rgba(6, 9, 9, 0.22);
    color: #f8efe1;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.nem-favorite-button:hover,
.nem-favorite-button:focus-visible {
    background: rgba(245, 239, 228, 0.12);
    outline: none;
}

.nem-favorite-form {
    margin: 0;
}

.nem-favorite-button.is-active {
    border-color: rgba(159, 205, 120, 0.62);
    background: rgba(159, 205, 120, 0.16);
    color: #bce28e;
}

.nem-parcel-card-body {
    display: flex;
    min-height: 204px;
    flex: 1;
    flex-direction: column;
    padding: 17px 16px 16px;
}

.nem-parcel-card-compact .nem-parcel-card-body {
    min-height: 132px;
    padding: 13px 14px 14px;
}

.nem-parcel-location {
    display: inline-flex;
    color: rgba(245, 239, 228, 0.68);
    font-size: 11px;
    line-height: 1.2;
}

.nem-parcel-card h3 {
    margin: 8px 0 13px;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.15;
}

.nem-parcel-card-compact h3 {
    margin: 6px 0 9px;
    font-size: 15px;
}

.nem-parcel-card p {
    margin: 0 0 9px;
    color: rgba(245, 239, 228, 0.76);
    font-size: 12px;
    line-height: 1.2;
}

.nem-parcel-card-compact p {
    margin-bottom: 6px;
    font-size: 11px;
}

.nem-parcel-price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(245, 239, 228, 0.06);
}

.nem-parcel-card-compact .nem-parcel-price-row {
    padding-top: 9px;
}

.nem-parcel-price-row strong {
    color: #9fcd78;
    font-size: 18px;
    line-height: 1;
}

.nem-parcel-card-compact .nem-parcel-price-row strong {
    font-size: 15px;
}

.nem-parcel-price-row span {
    color: rgba(245, 239, 228, 0.72);
    font-size: 11px;
    white-space: nowrap;
}

.nem-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #f8efe1;
    font-size: 12px;
    text-decoration: none;
}

.nem-inline-link:hover,
.nem-inline-link:focus-visible {
    color: #b7da8c;
    outline: none;
}

.nem-dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 58px;
}

.nem-info-panel {
    min-height: 148px;
    padding: 27px 28px;
    border: 1px solid rgba(245, 239, 228, 0.06);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(18, 24, 23, 0.94));
}

.nem-info-panel p {
    margin: 15px 0 24px;
    color: rgba(245, 239, 228, 0.68);
    font-size: 12px;
    line-height: 1.7;
}

.nem-light-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    background: #f5efe4;
    color: #171d1b;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.nem-light-button:hover,
.nem-light-button:focus-visible {
    background: #fff9ef;
    outline: none;
}

.nem-flash,
.nem-empty-panel,
.nem-request-card {
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(18, 24, 23, 0.94));
}

.nem-flash {
    margin: 0 0 22px;
    padding: 13px 16px;
    color: #f8efe1;
    font-size: 12px;
    line-height: 1.5;
}

.nem-flash-success {
    border-color: rgba(159, 205, 120, 0.34);
    color: #c7ec9b;
}

.nem-flash-error {
    border-color: rgba(226, 120, 98, 0.36);
    color: #ffb5a2;
}

.nem-empty-panel {
    max-width: 620px;
    padding: 30px;
}

.nem-empty-panel h2 {
    margin: 0;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.nem-empty-panel p {
    margin: 12px 0 22px;
    color: rgba(245, 239, 228, 0.7);
    font-size: 13px;
    line-height: 1.7;
}

.nem-account-main {
    max-width: 1080px;
}

.nem-account-tabs {
    display: flex;
    gap: 42px;
    margin: -8px 0 18px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}

.nem-account-tabs a {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: rgba(245, 239, 228, 0.58);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.nem-account-tabs a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    background: transparent;
}

.nem-account-tabs a:hover,
.nem-account-tabs a:focus-visible,
.nem-account-tabs a.is-active {
    color: #d3f29e;
    outline: none;
}

.nem-account-tabs a.is-active::after {
    background: #9fcd78;
}

.nem-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
    gap: 16px;
    margin-top: 18px;
}

.nem-account-side-stack {
    display: grid;
    gap: 16px;
}

.nem-account-card {
    border: 1px solid rgba(245, 239, 228, 0.07);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(17, 23, 22, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.nem-account-grid .nem-account-card {
    min-height: 158px;
    padding: 25px 28px;
}

.nem-account-card-large {
    min-height: 320px;
}

.nem-account-card h2 {
    margin: 0;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.15;
}

.nem-account-card p {
    margin: 16px 0 22px;
    color: rgba(245, 239, 228, 0.68);
    font-size: 12px;
    line-height: 1.7;
}

.nem-account-details {
    display: grid;
    gap: 15px;
    margin: 22px 0 20px;
}

.nem-account-details div {
    display: grid;
    gap: 5px;
}

.nem-account-details dt,
.nem-account-muted {
    color: rgba(245, 239, 228, 0.56);
    font-size: 11px;
    line-height: 1.2;
}

.nem-account-details dd {
    margin: 0;
    color: #f8efe1;
    font-size: 13px;
    line-height: 1.3;
}

.nem-account-muted {
    display: block;
    margin-top: 18px;
}

.nem-account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(245, 239, 228, 0.07);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(17, 23, 22, 0.96));
}

.nem-account-stats a {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.nem-account-stats a:hover span,
.nem-account-stats a:focus-visible span {
    color: #d3f29e;
}

.nem-account-stats a:focus-visible {
    outline: none;
}

.nem-account-stats span {
    color: #f8efe1;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.nem-account-stats small {
    color: rgba(245, 239, 228, 0.66);
    font-size: 11px;
    line-height: 1.35;
}

.nem-account-forms {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.nem-account-form-card {
    padding: 26px 28px 28px;
    scroll-margin-top: 28px;
}

.nem-account-form-head {
    margin-bottom: 18px;
}

.nem-account-form-head + .nem-account-form-grid,
.nem-account-form-grid + .nem-account-form-head {
    margin-top: 22px;
}

.nem-account-form-head p {
    margin: 9px 0 0;
}

.nem-account-form {
    margin: 0;
}

.nem-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.nem-account-form-grid label,
.nem-account-toggles label {
    display: grid;
    gap: 8px;
}

.nem-account-form-grid span {
    color: rgba(245, 239, 228, 0.66);
    font-size: 11px;
    line-height: 1.2;
}

.nem-account-form-grid input {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(245, 239, 228, 0.14);
    border-radius: 7px;
    background: rgba(5, 10, 9, 0.66);
    color: #f8efe1;
    font: inherit;
    font-size: 12px;
    padding: 0 12px;
}

.nem-account-form-grid input:disabled {
    color: rgba(245, 239, 228, 0.6);
    background: rgba(245, 239, 228, 0.04);
}

.nem-account-form-grid input:focus-visible {
    border-color: rgba(211, 242, 158, 0.54);
    outline: none;
}

.nem-account-form-grid em {
    color: #ffb5a2;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.nem-account-submit {
    margin-top: 20px;
    border: 0;
    cursor: pointer;
}

.nem-account-toggles {
    display: grid;
    gap: 12px;
}

.nem-account-toggles label {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 7px;
    background: rgba(5, 10, 9, 0.28);
    color: rgba(245, 239, 228, 0.78);
    font-size: 12px;
    line-height: 1.4;
}

.nem-account-toggles input {
    width: 17px;
    height: 17px;
    accent-color: #9fcd78;
}

.nem-view-toggle {
    display: inline-flex;
    gap: 4px;
    margin: -16px 0 24px;
    padding: 3px;
    border-radius: 7px;
    background: rgba(245, 239, 228, 0.04);
}

.nem-view-toggle a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 12px;
    border-radius: 5px;
    color: rgba(245, 239, 228, 0.72);
    font-size: 11px;
    text-decoration: none;
}

.nem-view-toggle a.is-active,
.nem-view-toggle a:hover,
.nem-view-toggle a:focus-visible {
    background: rgba(152, 189, 117, 0.17);
    color: #f8efe1;
    outline: none;
}

.nem-filter-menu {
    position: relative;
}

.nem-filter-menu summary {
    list-style: none;
}

.nem-filter-menu summary::-webkit-details-marker {
    display: none;
}

.nem-filter-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 5;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(245, 239, 228, 0.12);
    border-radius: 8px;
    background: rgba(16, 22, 21, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.nem-filter-panel label {
    display: grid;
    gap: 6px;
}

.nem-filter-panel label span {
    color: rgba(245, 239, 228, 0.72);
    font-size: 11px;
}

.nem-filter-panel select,
.nem-filter-panel input {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(245, 239, 228, 0.14);
    border-radius: 6px;
    background: #0b1110;
    color: #f8efe1;
    font: inherit;
    font-size: 12px;
    padding: 0 10px;
}

.nem-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.nem-filter-actions a {
    color: rgba(245, 239, 228, 0.72);
    font-size: 11px;
    text-decoration: none;
}

.nem-filter-actions a:hover,
.nem-filter-actions a:focus-visible {
    color: #f8efe1;
    outline: none;
}

.nem-map-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(500px, 1fr);
    gap: 12px;
    min-height: 560px;
    padding: 14px;
    border: 1px solid rgba(245, 239, 228, 0.09);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(18, 26, 23, 0.96), rgba(7, 11, 10, 0.98)),
        #08100e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 22px 60px rgba(0, 0, 0, 0.22);
}

.nem-map-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Localisation exacte reservee : etat affiche a la place de la carte precise.
   Ce n'est PAS un masquage -- la page ne contient aucune coordonnee a masquer. */
.nem-map-panel-locked {
    grid-template-rows: 1fr;
    place-items: center;
    text-align: center;
}

.nem-map-locked-inner {
    max-width: 460px;
    padding: 28px 24px;
}

.nem-map-locked-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border: 1px solid rgba(245, 239, 228, 0.18);
    border-radius: 50%;
    color: rgba(245, 239, 228, 0.55);
    font-size: 13px;
}

.nem-map-locked-title {
    margin: 0 0 10px;
    color: rgba(245, 239, 228, 0.9);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.nem-map-locked-text {
    margin: 0;
    color: rgba(245, 239, 228, 0.6);
    font-size: 0.86rem;
    line-height: 1.6;
}

.lot-reg-commune-locked,
.nem-detail-location-locked,
.buyer-sales-location-locked {
    color: rgba(245, 239, 227, 0.45);
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.45;
}

.nem-detail-location-locked {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-left: 2px solid rgba(245, 239, 228, 0.14);
    font-style: normal;
}

.nem-map-status {
    margin: 0;
    color: rgba(245, 239, 228, 0.7);
    font-size: 12px;
    line-height: 1.5;
}

.nem-map-leaflet {
    z-index: 1;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 6px;
    background: #07100e;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.nem-map-leaflet .leaflet-control-zoom a,
.nem-map-leaflet .leaflet-control-layers,
.nem-map-leaflet .leaflet-bar a {
    border-color: rgba(245, 239, 228, 0.12);
    background: rgba(10, 17, 15, 0.92);
    color: #f5efe4;
}

.nem-map-leaflet .leaflet-control-zoom a:hover,
.nem-map-leaflet .leaflet-bar a:hover {
    background: rgba(245, 239, 228, 0.12);
    color: #fff8ec;
}

.nem-map-leaflet .leaflet-control-attribution,
.nem-map-leaflet .leaflet-control-scale-line {
    border-color: rgba(245, 239, 228, 0.16);
    background: rgba(9, 14, 13, 0.74);
    color: rgba(245, 239, 228, 0.74);
}

.nem-map-leaflet .leaflet-control-attribution a {
    color: #d7efb0;
}

.nem-map-leaflet .leaflet-popup-content-wrapper,
.nem-map-leaflet .leaflet-popup-tip {
    background: rgba(13, 19, 17, 0.97);
    color: #f5efe4;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.nem-map-leaflet .leaflet-popup-content {
    margin: 0;
}

.nem-leaflet-marker {
    border: 0;
    background: transparent;
}

.nem-leaflet-marker span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 3px solid rgba(8, 13, 12, 0.76);
    border-radius: 999px;
    background: #d9f4b1;
    color: #16211c;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.nem-leaflet-marker.is-approximate span {
    background: #f3ecdc;
}

.nem-map-popup {
    width: 230px;
    padding: 14px;
}

.nem-map-popup strong {
    display: block;
    margin-bottom: 5px;
    color: #f9f1e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.15;
}

.nem-map-popup > span,
.nem-map-popup small {
    display: block;
    color: rgba(245, 239, 228, 0.7);
    font-size: 11px;
    line-height: 1.45;
}

.nem-map-popup dl {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.nem-map-popup dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nem-map-popup dt {
    color: rgba(245, 239, 228, 0.58);
    font-size: 11px;
}

.nem-map-popup dd {
    margin: 0;
    color: #d3f29e;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.nem-map-popup a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 0 12px;
    border-radius: 6px;
    background: #f3ecdc;
    color: #14201b;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.nem-map-popup a:hover,
.nem-map-popup a:focus-visible {
    background: #d9f4b1;
    outline: none;
}

.nem-map-noscript {
    margin: 0;
    color: rgba(245, 239, 228, 0.72);
    font-size: 12px;
}

.nem-map-texture {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background:
        repeating-linear-gradient(28deg, rgba(235, 225, 204, 0.1) 0 1px, transparent 1px 68px),
        repeating-linear-gradient(112deg, rgba(235, 225, 204, 0.06) 0 1px, transparent 1px 92px),
        radial-gradient(circle at 20% 68%, rgba(105, 128, 88, 0.44), transparent 14%),
        radial-gradient(circle at 68% 36%, rgba(105, 128, 88, 0.36), transparent 18%);
}

.nem-map-marker {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 3px solid rgba(8, 13, 12, 0.72);
    border-radius: 999px;
    background: #f3ecdc;
    color: #17201c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}

.nem-map-marker:hover,
.nem-map-marker:focus-visible {
    background: #b7da8c;
    outline: none;
}

.nem-back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: rgba(245, 239, 228, 0.78);
    font-size: 12px;
    text-decoration: none;
}

.nem-back-link:hover,
.nem-back-link:focus-visible {
    color: #f8efe1;
    outline: none;
}

.nem-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 32px;
    align-items: start;
}

.nem-detail-primary h1 {
    margin-bottom: 24px;
}

.nem-detail-hero {
    overflow: hidden;
    height: 308px;
    margin: 0;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 8px;
    background: #111816;
}

.nem-detail-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) brightness(0.72) contrast(1.08);
}

/* Vignettes de toutes les photos de l'annonce (fiche acheteur). Sur un ecran
   etroit, la rangee defile de cote sans elargir la page. */
.nem-detail-thumbs {
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 0 0 6px;
    overflow-x: auto;
    list-style: none;
}

.nem-detail-thumbs li {
    flex: 0 0 auto;
}

.nem-detail-thumbs a {
    display: block;
    width: 104px;
    height: 70px;
    overflow: hidden;
    border: 1px solid rgba(245, 239, 228, 0.1);
    border-radius: 6px;
    opacity: 0.62;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.nem-detail-thumbs a:hover,
.nem-detail-thumbs a:focus-visible,
.nem-detail-thumbs a[aria-current="true"] {
    opacity: 1;
    border-color: rgba(245, 239, 228, 0.48);
}

.nem-detail-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) brightness(0.82) contrast(1.05);
}

.nem-detail-tabs {
    display: flex;
    gap: 24px;
    margin-top: 22px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}

.nem-detail-tabs a {
    position: relative;
    padding: 0 0 13px;
    color: rgba(245, 239, 228, 0.64);
    font-size: 12px;
    text-decoration: none;
}

.nem-detail-tabs a.is-active,
.nem-detail-tabs a:hover,
.nem-detail-tabs a:focus-visible {
    color: #f8efe1;
    outline: none;
}

.nem-detail-tabs a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: #f8efe1;
    content: "";
}

.nem-detail-copy {
    max-width: 690px;
    margin-top: 22px;
    color: rgba(245, 239, 228, 0.78);
    font-size: 13px;
    line-height: 1.75;
}

.nem-detail-copy p {
    margin: 0 0 20px;
}

.nem-detail-copy ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nem-detail-copy li {
    position: relative;
    padding-left: 20px;
}

.nem-detail-copy li::before {
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(245, 239, 228, 0.5);
    border-radius: 50%;
    content: "";
}

.nem-detail-panel {
    padding-top: 30px;
}

.nem-detail-location {
    margin-bottom: 11px;
}

.nem-detail-panel h2 {
    margin: 0;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1.1;
}

.nem-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.nem-detail-badges span {
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(245, 239, 228, 0.08);
    color: rgba(245, 239, 228, 0.82);
    font-size: 11px;
}

.nem-detail-badges .is-green {
    background: rgba(141, 184, 103, 0.2);
    color: #bce28e;
}

.nem-detail-specs {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
}

.nem-detail-specs div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
}

.nem-detail-specs dt,
.nem-detail-specs dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.nem-detail-specs dt {
    color: rgba(245, 239, 228, 0.62);
}

.nem-detail-specs dd {
    max-width: 142px;
    color: #f8efe1;
    text-align: right;
}

.nem-detail-price {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 239, 228, 0.1);
}

.nem-detail-price span,
.nem-detail-price small {
    display: block;
    color: rgba(245, 239, 228, 0.7);
}

.nem-detail-price span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.nem-detail-price strong {
    display: block;
    margin-top: 9px;
    color: #9fcd78;
    font-size: 24px;
    line-height: 1;
}

.nem-detail-price small {
    margin-top: 8px;
    font-size: 12px;
}

.nem-primary-action,
.nem-secondary-action {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.nem-primary-action {
    border: 1px solid #f5efe4;
    background: #f5efe4;
    color: #151b19;
}

.nem-secondary-action {
    margin-top: 12px;
    border: 1px solid rgba(245, 239, 228, 0.18);
    background: transparent;
    color: #f8efe1;
}

.nem-primary-action:hover,
.nem-primary-action:focus-visible {
    background: #fff9ef;
    outline: none;
}

.nem-secondary-action:hover,
.nem-secondary-action:focus-visible {
    border-color: rgba(245, 239, 228, 0.38);
    background: rgba(245, 239, 228, 0.06);
    outline: none;
}

.nem-primary-action-link.is-disabled {
    pointer-events: auto;
    opacity: 0.82;
}

.nem-detail-action-form {
    margin: 0;
}

.nem-request-list {
    display: grid;
    gap: 16px;
}

.nem-request-card {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.nem-request-card > div:first-child span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(245, 239, 228, 0.08);
    color: rgba(245, 239, 228, 0.76);
    font-size: 11px;
}

.nem-request-card-validated > div:first-child span {
    background: rgba(159, 205, 120, 0.16);
    color: #bce28e;
}

.nem-request-card-refused > div:first-child span {
    background: rgba(226, 120, 98, 0.16);
    color: #ffb5a2;
}

.nem-request-card h2 {
    margin: 0;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.nem-request-card dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.nem-request-card dt,
.nem-request-card dd,
.nem-request-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.nem-request-card dt {
    color: rgba(245, 239, 228, 0.56);
}

.nem-request-card dd,
.nem-request-card p {
    color: rgba(245, 239, 228, 0.78);
}

.nem-message-main {
    max-width: 1320px;
}

.seller-messages-content {
    min-height: calc(100vh - var(--seller-topbar-height));
}

.seller-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #d6aa55;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nem-message-shell {
    display: grid;
    min-height: 650px;
    grid-template-columns: minmax(270px, 350px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(245, 239, 228, 0.1);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(14, 19, 18, 0.96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.seller-dashboard-app .nem-message-shell {
    border-color: rgba(214, 170, 85, 0.16);
    background: linear-gradient(145deg, rgba(8, 34, 26, 0.95), rgba(5, 21, 17, 0.97));
}

.nem-message-list-panel {
    min-width: 0;
    border-right: 1px solid rgba(245, 239, 228, 0.08);
    background: rgba(6, 11, 10, 0.2);
}

.seller-dashboard-app .nem-message-list-panel {
    border-right-color: rgba(214, 170, 85, 0.16);
}

.nem-message-list-head {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.08);
}

.nem-message-list-head h2 {
    margin: 0;
    color: #fbf3e6;
    font-size: 16px;
}

.nem-message-list-head span {
    display: grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 239, 228, 0.08);
    color: rgba(245, 239, 228, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.nem-message-list {
    display: grid;
    max-height: 580px;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
}

.nem-conversation-card {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 8px;
    background: rgba(245, 239, 228, 0.04);
    color: rgba(245, 239, 228, 0.74);
    text-decoration: none;
}

.nem-conversation-card:hover,
.nem-conversation-card:focus-visible,
.nem-conversation-card.is-active {
    border-color: rgba(143, 191, 104, 0.46);
    background: rgba(143, 191, 104, 0.12);
    color: #fff7ec;
    outline: none;
}

.seller-dashboard-app .nem-conversation-card:hover,
.seller-dashboard-app .nem-conversation-card:focus-visible,
.seller-dashboard-app .nem-conversation-card.is-active {
    border-color: rgba(214, 170, 85, 0.5);
    background: rgba(214, 170, 85, 0.12);
}

.nem-conversation-lot {
    color: rgba(245, 239, 228, 0.56);
    font-size: 11px;
    line-height: 1.4;
}

.nem-conversation-card strong {
    min-width: 0;
    overflow: hidden;
    color: #fbf3e6;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nem-conversation-card p {
    min-height: 38px;
    margin: 0;
    color: rgba(245, 239, 228, 0.66);
    font-size: 12px;
    line-height: 1.55;
}

.nem-conversation-meta {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(245, 239, 228, 0.5);
    font-size: 11px;
}

.nem-conversation-meta em {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #8fbf68;
    color: #0b1110;
    font-style: normal;
    font-weight: 800;
}

.nem-message-thread-panel {
    display: grid;
    min-width: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.nem-message-thread-head {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.08);
}

.nem-message-thread-head span {
    display: block;
    margin-bottom: 5px;
    color: rgba(245, 239, 228, 0.56);
    font-size: 12px;
}

.nem-message-thread-head h2 {
    margin: 0;
    color: #fbf3e6;
    font-size: 20px;
}

.nem-message-thread-head a,
.nem-message-empty-list a,
.nem-message-empty-thread-large a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid rgba(245, 239, 228, 0.14);
    border-radius: 6px;
    color: #f8efe1;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.nem-message-thread-head a:hover,
.nem-message-thread-head a:focus-visible,
.nem-message-empty-list a:hover,
.nem-message-empty-list a:focus-visible,
.nem-message-empty-thread-large a:hover,
.nem-message-empty-thread-large a:focus-visible {
    border-color: rgba(245, 239, 228, 0.34);
    background: rgba(245, 239, 228, 0.07);
    outline: none;
}

.nem-message-thread-body {
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
}

.nem-message-items {
    display: grid;
    gap: 14px;
}

.nem-message-bubble {
    display: grid;
    max-width: min(620px, 82%);
    gap: 7px;
    justify-self: start;
    padding: 13px 15px;
    border: 1px solid rgba(245, 239, 228, 0.09);
    border-radius: 8px;
    background: rgba(245, 239, 228, 0.06);
}

.nem-message-bubble.is-own {
    justify-self: end;
    border-color: rgba(143, 191, 104, 0.34);
    background: rgba(143, 191, 104, 0.14);
}

.seller-dashboard-app .nem-message-bubble.is-own {
    border-color: rgba(214, 170, 85, 0.36);
    background: rgba(214, 170, 85, 0.13);
}

.nem-message-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: rgba(245, 239, 228, 0.56);
    font-size: 11px;
}

.nem-message-meta strong {
    color: #fbf3e6;
    font-size: 12px;
}

.nem-message-bubble p {
    margin: 0;
    color: rgba(245, 239, 228, 0.84);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.nem-message-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid rgba(245, 239, 228, 0.08);
    background: rgba(6, 11, 10, 0.22);
}

.nem-message-form textarea {
    width: 100%;
    min-height: 54px;
    max-height: 150px;
    resize: vertical;
    border: 1px solid rgba(245, 239, 228, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #fbf3e6;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 13px;
}

.nem-message-form textarea:focus {
    border-color: rgba(143, 191, 104, 0.6);
    outline: none;
}

.seller-dashboard-app .nem-message-form textarea:focus {
    border-color: rgba(214, 170, 85, 0.64);
}

.nem-message-form button {
    min-width: 112px;
    min-height: 44px;
    align-self: end;
    border: 0;
    border-radius: 7px;
    background: #f5efe4;
    color: #151b19;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.nem-message-form button:hover,
.nem-message-form button:focus-visible {
    background: #fff9ef;
    outline: none;
}

.nem-message-empty-list,
.nem-message-empty-thread {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px dashed rgba(245, 239, 228, 0.16);
    border-radius: 8px;
    color: rgba(245, 239, 228, 0.68);
}

.nem-message-empty-thread-large {
    align-self: center;
    justify-self: center;
    width: min(420px, calc(100% - 44px));
}

.nem-message-empty-list h2,
.nem-message-empty-thread h2 {
    margin: 0;
    color: #fbf3e6;
    font-size: 18px;
}

.nem-message-empty-list p,
.nem-message-empty-thread p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .nem-message-shell {
        grid-template-columns: 1fr;
    }

    .nem-message-list-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(245, 239, 228, 0.08);
    }

    .nem-message-list {
        max-height: 310px;
    }
}

@media (max-width: 640px) {
    .nem-message-thread-head {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px;
    }

    .nem-message-thread-body {
        padding: 16px;
    }

    .nem-message-bubble {
        max-width: 100%;
    }

    .nem-message-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .nem-message-form button {
        width: 100%;
    }
}

@media (max-width: 880px) {
    .nem-parcel-grid-dashboard,
    .nem-parcel-grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nem-detail-layout {
        grid-template-columns: 1fr;
    }

    .nem-account-grid,
    .nem-account-stats {
        grid-template-columns: 1fr 1fr;
    }

    .nem-detail-panel {
        width: min(100%, 460px);
        padding-top: 0;
    }
}

@media (max-width: 760px) {
    .nem-buyer-app {
        padding-top: 84px;
    }

    .nem-buyer-sidebar {
        right: 0;
        bottom: auto;
        width: auto;
        min-height: 84px;
        padding: 14px 16px;
    }

    .nem-buyer-brand {
        font-size: 17px;
    }

    .nem-buyer-nav {
        display: flex;
        gap: 6px;
        margin-top: 13px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nem-buyer-nav a {
        min-width: max-content;
    }

    /* Recette du 2026-10-04 (B-M4) : la deconnexion etait MASQUEE ici -- un
       acheteur sur telephone ne pouvait pas quitter son espace. Elle remonte en
       haut a droite de la barre, sur la ligne du logo. */
    .nem-buyer-logout {
        position: absolute;
        top: 12px;
        right: 12px;
        min-height: 32px;
        margin-top: 0;
        border: 1px solid rgba(245, 239, 228, 0.14);
    }

    .nem-buyer-main {
        width: 100%;
        margin-left: 0;
        padding: 34px 18px 30px;
    }

    .nem-buyer-page-head-row {
        display: grid;
    }

    .nem-buyer-page-head h1,
    .nem-detail-primary h1 {
        font-size: 30px;
    }

    .nem-parcel-grid-dashboard,
    .nem-parcel-grid-list,
    .nem-dashboard-panels {
        grid-template-columns: 1fr;
    }

    .nem-map-panel {
        grid-template-rows: auto minmax(360px, 1fr);
        min-height: 420px;
        padding: 10px;
    }

    .nem-account-tabs {
        gap: 22px;
        overflow-x: auto;
    }

    .nem-account-grid,
    .nem-account-stats,
    .nem-account-form-grid {
        grid-template-columns: 1fr;
    }

    .nem-account-grid .nem-account-card,
    .nem-account-form-card,
    .nem-account-stats {
        padding: 20px;
    }

    .nem-map-leaflet {
        min-height: 360px;
    }

    .nem-detail-hero {
        height: 260px;
    }

    .nem-detail-specs div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .nem-detail-specs dd {
        max-width: none;
        text-align: left;
    }

    .nem-request-card dl {
        grid-template-columns: 1fr;
    }

    .nem-filter-panel {
        right: auto;
        left: 0;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background: #091310;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-home {
    overflow-x: hidden;
    background: #09110b;
}

.home-landing {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: #09110b url("../images/vendeur.jpg") center center / cover no-repeat;
    background-attachment: fixed;
}

.home-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(5, 9, 6, 0.72);
    pointer-events: none;
}

.home-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: transparent;
}

.home-hero::before {
    display: none;
}

.home-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    min-height: calc(100vh - (2 * clamp(1.25rem, 3vw, 2.5rem)));
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(0.8rem, 1.8vw, 1.2rem);
}

.home-header {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.home-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem clamp(2rem, 4vw, 3.5rem);
}

.home-logo {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.home-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem clamp(1.4rem, 3vw, 2.2rem);
}

.home-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem clamp(1rem, 2vw, 1.5rem);
}

.home-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    border-bottom: 1px solid rgba(197, 175, 120, 0.48);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 239, 227, 0.72);
    transition: color 220ms ease, border-color 220ms ease;
}

.home-nav-link:hover,
.home-nav-link:focus-visible {
    border-color: rgba(245, 239, 227, 0.9);
    color: rgba(255, 255, 255, 0.96);
}

.home-nav-link:focus-visible,
.home-login-menu summary:focus-visible,
.home-login-panel a:focus-visible,
.home-scroll-cue:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.86);
    outline-offset: 4px;
}

.home-login-menu {
    position: relative;
}

.home-login-menu summary {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(245, 239, 227, 0.34);
    border-radius: 4px;
    background: rgba(8, 15, 14, 0.48);
    color: rgba(245, 239, 227, 0.92);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.home-login-menu summary::-webkit-details-marker {
    display: none;
}

.home-login-menu summary::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 220ms ease;
}

.home-login-menu[open] summary,
.home-login-menu summary:hover {
    border-color: rgba(245, 239, 227, 0.68);
    background: rgba(245, 239, 227, 0.1);
    color: #fffaf0;
}

.home-login-menu[open] summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.home-login-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 5;
    display: grid;
    width: min(16rem, calc(100vw - 2rem));
    gap: 0.2rem;
    padding: 0.45rem;
    border: 1px solid rgba(245, 239, 227, 0.18);
    border-radius: 6px;
    background: rgba(8, 15, 14, 0.94);
    box-shadow: 0 24px 48px rgba(2, 8, 6, 0.32);
}

.home-login-panel a {
    display: grid;
    gap: 0.2rem;
    padding: 0.78rem 0.85rem;
    border-radius: 4px;
    color: #f5efe3;
    text-decoration: none;
}

.home-login-panel a:hover,
.home-login-panel a:focus-visible {
    background: rgba(245, 239, 227, 0.08);
}

.home-login-panel span {
    font-size: 0.86rem;
    font-weight: 800;
}

.home-login-panel small {
    color: rgba(245, 239, 227, 0.66);
    font-size: 0.73rem;
    line-height: 1.35;
}

.home-header h1 {
    margin: 0;
    max-width: 34rem;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.home-header p {
    margin: 0;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.eyebrow::before {
    content: "";
    width: 2.75rem;
    height: 1px;
    background: currentColor;
}

.home-split {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: clamp(26rem, 62vh, 40rem);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.home-split::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 50%;
    width: 1px;
    transform: translateX(-0.5px);
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.22) 20%,
        rgba(255, 255, 255, 0.22) 80%,
        transparent
    );
}

.home-choice {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(24rem, 56vh, 37rem);
    padding: clamp(1.5rem, 3vw, 2.75rem);
    padding-bottom: clamp(2.6rem, 5vw, 4.1rem);
    isolation: isolate;
    transition: transform 220ms ease;
}

.home-choice + .home-choice {
    border-left: 0;
}

.home-choice::before,
.home-choice::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 220ms ease, transform 220ms ease;
}

.owner-choice::before {
    background: rgba(8, 14, 9, 0.04);
}

.buyer-choice::before {
    background: rgba(18, 15, 9, 0.04);
}

.home-choice::after {
    background: linear-gradient(45deg, rgba(226, 197, 134, 0.14), transparent 58%);
    opacity: 0;
}

.home-choice:hover::after,
.home-choice:focus-visible::after {
    opacity: 1;
}

.home-choice:hover,
.home-choice:focus-visible {
    transform: translateY(-2px);
}

.home-choice-content {
    display: grid;
    gap: 0.9rem;
    max-width: 25rem;
    animation: rise-in 720ms ease-out both;
}

.buyer-choice .home-choice-content {
    animation-delay: 120ms;
}

.home-choice-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.home-choice h2,
.journey-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.home-choice h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    max-width: 11ch;
}

.home-choice p,
.journey-hero p,
.journey-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.home-choice-action,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    font-weight: 700;
}

.home-choice-action {
    margin-top: 0.4rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: #f5efe3;
    color: #132017;
    transition: transform 220ms ease, background 220ms ease;
}

.home-choice p {
    color: rgba(245, 239, 227, 0.84);
}

.home-scroll-cue {
    position: absolute;
    z-index: 2;
    right: clamp(1.25rem, 3vw, 3rem);
    bottom: clamp(6rem, 14vh, 8.8rem);
    display: grid;
    place-items: center;
    width: clamp(2.65rem, 4.6vw, 3.35rem);
    height: clamp(2.65rem, 4.6vw, 3.35rem);
    border: 1px solid rgba(245, 239, 227, 0.38);
    border-radius: 50%;
    background: rgba(245, 239, 227, 0.08);
    color: rgba(245, 239, 227, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(4, 13, 11, 0.18);
    opacity: 0.82;
    transition: background 220ms ease, border-color 220ms ease, color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.home-scroll-cue span {
    width: 0.58rem;
    height: 0.58rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 220ms ease;
}

.home-scroll-cue::before {
    content: "";
    position: absolute;
    inset: -0.38rem;
    border: 1px solid rgba(245, 239, 227, 0.08);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.home-scroll-cue:hover,
.home-scroll-cue:focus-visible {
    border-color: rgba(245, 239, 227, 0.72);
    background: rgba(245, 239, 227, 0.14);
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.96;
    transform: translateY(2px);
}

.home-scroll-cue:hover span,
.home-scroll-cue:focus-visible span {
    transform: translateY(1px) rotate(45deg);
}

.home-scroll-cue:hover::before,
.home-scroll-cue:focus-visible::before {
    opacity: 1;
    transform: scale(1.04);
}

.home-how {
    position: relative;
    z-index: 1;
    scroll-margin-top: 0;
    margin-top: -1px;
    padding: clamp(4.1rem, 7vw, 6.8rem) clamp(1.25rem, 3vw, 2.5rem) clamp(3.4rem, 6vw, 5.6rem);
    overflow: visible;
    border-top: 1px solid rgba(245, 239, 227, 0.07);
    background: transparent;
}

.home-how::before {
    display: none;
}

.home-how-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 3.6vw, 3rem);
    align-items: start;
}

.home-how-heading {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding-right: clamp(0.5rem, 2vw, 1.2rem);
}

.home-how-kicker {
    width: fit-content;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(197, 175, 120, 0.56);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(245, 239, 227, 0.62);
}

.home-how h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 3.6vw, 3.1rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.home-how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(245, 239, 227, 0.14);
    border-bottom: 1px solid rgba(245, 239, 227, 0.1);
}

.home-how-step {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    padding: clamp(1.25rem, 2.4vw, 1.85rem) clamp(1rem, 2.2vw, 1.5rem);
}

.home-how-step + .home-how-step {
    border-left: 1px solid rgba(245, 239, 227, 0.12);
}

.home-how-step span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(197, 175, 120, 0.78);
}

.home-how-step h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 1.86rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.94);
}

.home-how-step p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.62;
    color: rgba(245, 239, 227, 0.72);
}

.home-values {
    position: relative;
    z-index: 1;
    scroll-margin-top: 0;
    margin-top: -1px;
    padding: clamp(4.1rem, 7vw, 6.8rem) clamp(1.25rem, 3vw, 2.5rem) clamp(3.6rem, 6.4vw, 6.2rem);
    overflow: visible;
    border-top: 1px solid rgba(245, 239, 227, 0.07);
    background: transparent;
}

.home-values::before {
    display: none;
}

.home-values-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1.5rem, 3.6vw, 3rem);
    align-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.home-values-heading {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding-right: clamp(0.5rem, 2vw, 1.2rem);
}

.home-values-kicker {
    width: fit-content;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(197, 175, 120, 0.56);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: rgba(245, 239, 227, 0.62);
}

.home-values h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.home-values-heading p {
    margin: 0;
    max-width: 28rem;
    font-size: clamp(0.95rem, 1.2vw, 1.04rem);
    line-height: 1.65;
    color: rgba(245, 239, 227, 0.74);
}

.home-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    gap: 0;
    border-top: 1px solid rgba(245, 239, 227, 0.14);
    border-bottom: 1px solid rgba(245, 239, 227, 0.1);
}

.home-value {
    position: relative;
    padding: clamp(1.25rem, 2.4vw, 1.85rem) clamp(1rem, 2.2vw, 1.5rem);
    display: grid;
    align-content: start;
    gap: 1rem;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-value + .home-value {
    border-left: 1px solid rgba(245, 239, 227, 0.12);
}

.home-value-mark {
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 175, 120, 0.84), rgba(197, 175, 120, 0.12));
}

.home-value h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.3vw, 2.05rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.94);
}

.home-value p {
    margin: 0;
    max-width: 18rem;
    font-size: 0.96rem;
    line-height: 1.62;
    color: rgba(245, 239, 227, 0.72);
}

.home-choice:hover .home-choice-action,
.home-choice:focus-visible .home-choice-action {
    transform: translateX(4px);
    background: #ffffff;
}

.home-choice:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.88);
    outline-offset: 2px;
}

.page-seller-gateway {
    background: #0b120d;
}

.seller-gateway {
    position: relative;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    background:
        linear-gradient(180deg, rgba(5, 8, 6, 0.76), rgba(5, 8, 6, 0.68)),
        url("../images/Forest-trees-sunshine-morning_3840x2160.jpg") center center / cover no-repeat;
}

.seller-gateway::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(219, 203, 170, 0.12), transparent 24%),
        linear-gradient(90deg, rgba(5, 8, 6, 0.24), rgba(5, 8, 6, 0.06));
}

.seller-gateway-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    min-height: calc(100vh - (2 * clamp(1rem, 3vw, 2.5rem)));
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 1.5rem;
}

.seller-gateway-heading {
    max-width: 40rem;
    display: grid;
    gap: 0.85rem;
}

.seller-gateway-heading .back-link {
    margin-bottom: 0.1rem;
}

.seller-gateway-heading h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.seller-gateway-heading p {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    color: rgba(245, 239, 227, 0.82);
}

.seller-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.seller-option-card {
    padding: 0;
    display: grid;
    gap: 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.seller-option-card-alt {
    background: transparent;
}

.seller-option-card + .seller-option-card {
    padding-left: clamp(1.25rem, 2vw, 1.75rem);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.seller-option-label {
    width: fit-content;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.seller-option-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 15ch;
}

.seller-option-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(245, 239, 227, 0.84);
}

.seller-option-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
}

.seller-option-list li {
    line-height: 1.55;
}

.seller-option-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 3.4rem;
    margin-top: 0.35rem;
    padding: 0.95rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: #f5efe3;
    color: #132017;
    font-weight: 700;
    text-align: center;
    transition: transform 220ms ease, background 220ms ease;
}

.seller-option-action:hover,
.seller-option-action:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
}

.seller-option-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.88);
    outline-offset: 2px;
}

.page-seller-dashboard {
    background: #0b120d;
    color: #f5efe3;
}

.seller-dashboard {
    position: relative;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    background:
        linear-gradient(180deg, rgba(5, 8, 6, 0.8), rgba(5, 8, 6, 0.72)),
        url("../images/Forest-trees-sunshine-morning_3840x2160.jpg") center center / cover no-repeat fixed;
}

.seller-dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(219, 203, 170, 0.12), transparent 24%),
        linear-gradient(90deg, rgba(5, 8, 6, 0.32), rgba(5, 8, 6, 0.08));
    pointer-events: none;
}

.seller-dashboard-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    min-height: calc(100vh - (2 * clamp(1rem, 3vw, 2.5rem)));
    margin: 0 auto;
    display: grid;
    align-content: start;
    gap: clamp(1rem, 2vw, 1.4rem);
}

.seller-dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, auto);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.seller-dashboard-header h1 {
    margin: 0;
    max-width: 12ch;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.6vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.seller-dashboard-header p {
    margin: 0.85rem 0 0;
    max-width: 39rem;
    color: rgba(245, 239, 227, 0.78);
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
    line-height: 1.65;
}

.seller-dashboard-user {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    padding-top: 0.3rem;
    color: rgba(245, 239, 227, 0.74);
    font-size: 0.86rem;
    text-align: right;
}

.seller-dashboard-user strong {
    color: #fffaf0;
    font-weight: 700;
}

.seller-dashboard-user a,
.seller-lot-footer a {
    color: #f5efe3;
    text-decoration: underline;
    text-decoration-color: rgba(197, 175, 120, 0.56);
    text-underline-offset: 0.24rem;
}

.seller-dashboard-alert {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(245, 239, 227, 0.14);
    border-radius: 4px;
    background: rgba(7, 15, 11, 0.62);
    color: rgba(245, 239, 227, 0.88);
}

.seller-dashboard-alert-success {
    border-color: rgba(142, 163, 111, 0.5);
    color: #d8efb4;
}

.seller-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(245, 239, 227, 0.14);
    border-bottom: 1px solid rgba(245, 239, 227, 0.1);
}

.seller-dashboard-stats article {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.35rem) clamp(0.9rem, 2vw, 1.4rem);
    border-right: 1px solid rgba(245, 239, 227, 0.1);
}

.seller-dashboard-stats article:last-child {
    border-right: 0;
}

.seller-dashboard-stats span {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1;
}

.seller-dashboard-stats p {
    margin: 0.35rem 0 0;
    color: rgba(245, 239, 227, 0.66);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seller-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seller-dashboard-primary,
.seller-dashboard-secondary {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.05rem;
    border-radius: 4px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.seller-dashboard-primary {
    border: 1px solid rgba(245, 239, 227, 0.9);
    background: #f5efe3;
    color: #132017;
}

.seller-dashboard-secondary {
    border: 1px solid rgba(245, 239, 227, 0.2);
    background: rgba(7, 15, 11, 0.54);
    color: #f5efe3;
}

.seller-dashboard-primary:hover,
.seller-dashboard-primary:focus-visible,
.seller-dashboard-secondary:hover,
.seller-dashboard-secondary:focus-visible,
.seller-dashboard-user a:hover,
.seller-dashboard-user a:focus-visible,
.seller-lot-footer a:hover,
.seller-lot-footer a:focus-visible {
    outline: none;
    text-decoration-color: currentColor;
}

.seller-dashboard-primary:hover,
.seller-dashboard-primary:focus-visible {
    background: #ffffff;
}

.seller-dashboard-secondary:hover,
.seller-dashboard-secondary:focus-visible {
    border-color: rgba(245, 239, 227, 0.42);
    background: rgba(245, 239, 227, 0.08);
}

.seller-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.85fr);
    gap: clamp(1.1rem, 2.5vw, 1.75rem);
    align-items: start;
}

.seller-dashboard-panel {
    min-width: 0;
}

.seller-dashboard-panel-head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.seller-dashboard-panel-head span {
    width: fit-content;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(197, 175, 120, 0.56);
    color: rgba(245, 239, 227, 0.58);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.seller-dashboard-panel h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.seller-lot-list,
.seller-request-list {
    display: grid;
    gap: 0.75rem;
}

.seller-lot-card,
.seller-request-card,
.seller-dashboard-empty {
    border: 1px solid rgba(245, 239, 227, 0.1);
    border-radius: 6px;
    background: rgba(7, 15, 11, 0.7);
    backdrop-filter: blur(8px);
}

.seller-lot-card {
    display: grid;
    grid-template-columns: clamp(5.6rem, 11vw, 8.5rem) minmax(0, 1fr);
    min-height: 9.8rem;
    overflow: hidden;
}

.seller-lot-photo {
    width: 100%;
    height: 100%;
    min-height: 9.8rem;
    object-fit: cover;
    display: block;
    background: rgba(245, 239, 227, 0.06);
}

.seller-lot-photo-empty {
    position: relative;
}

.seller-lot-photo-empty::after {
    content: "";
    position: absolute;
    inset: 38% 34%;
    border: 1px solid rgba(197, 175, 120, 0.24);
    border-radius: 50%;
}

.seller-lot-body {
    display: grid;
    gap: 0.75rem;
    padding: clamp(0.9rem, 1.6vw, 1.15rem);
}

.seller-lot-topline,
.seller-lot-footer,
.seller-request-head,
.seller-request-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.85rem;
}

.seller-lot-topline span,
.seller-request-head span {
    color: rgba(197, 175, 120, 0.68);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.seller-lot-topline strong,
.seller-request-status {
    display: inline-flex;
    min-height: 1.55rem;
    align-items: center;
    padding: 0.25rem 0.52rem;
    border-radius: 999px;
    background: rgba(142, 163, 111, 0.16);
    color: #d8efb4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seller-lot-card h3,
.seller-request-card h3,
.seller-dashboard-empty h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.08;
}

.seller-lot-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.seller-lot-meta div {
    min-width: 0;
}

.seller-lot-meta dt {
    color: rgba(245, 239, 227, 0.44);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seller-lot-meta dd {
    margin: 0.25rem 0 0;
    color: rgba(245, 239, 227, 0.9);
    font-size: 0.86rem;
}

.seller-lot-footer {
    padding-top: 0.7rem;
    border-top: 1px solid rgba(245, 239, 227, 0.08);
    color: rgba(245, 239, 227, 0.66);
    font-size: 0.82rem;
}

.seller-request-card {
    display: grid;
    gap: 0.8rem;
    padding: clamp(0.9rem, 1.6vw, 1.15rem);
}

.seller-request-head {
    align-items: flex-start;
}

.seller-request-head > div {
    min-width: 0;
}

.seller-request-card p {
    margin: 0;
    color: rgba(245, 239, 227, 0.72);
    font-size: 0.88rem;
    line-height: 1.58;
}

.seller-request-status-new {
    background: rgba(197, 175, 120, 0.18);
    color: #f2d79b;
}

.seller-request-status-pending {
    background: rgba(245, 239, 227, 0.1);
    color: #f5efe3;
}

.seller-request-status-accepted {
    background: rgba(142, 163, 111, 0.18);
    color: #d8efb4;
}

.seller-request-status-rejected {
    background: rgba(188, 92, 73, 0.18);
    color: #ffb5a2;
}

.seller-request-meta {
    justify-content: flex-start;
    color: rgba(245, 239, 227, 0.5);
    font-size: 0.76rem;
}

.seller-request-reply {
    width: fit-content;
    min-height: 2.35rem;
}

.seller-request-reply-disabled {
    color: rgba(245, 239, 227, 0.45);
    font-size: 0.78rem;
}

.seller-dashboard-empty {
    display: grid;
    gap: 0.8rem;
    padding: clamp(1.25rem, 2vw, 1.6rem);
}

.seller-dashboard-empty p {
    margin: 0;
    color: rgba(245, 239, 227, 0.68);
    line-height: 1.62;
}

.seller-dashboard-empty .seller-dashboard-primary {
    width: fit-content;
}

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

    .seller-dashboard-user {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .seller-dashboard {
        background-attachment: scroll;
        padding: 1rem;
    }

    .seller-dashboard-stats,
    .seller-lot-meta {
        grid-template-columns: 1fr;
    }

    .seller-dashboard-stats article {
        border-right: 0;
        border-bottom: 1px solid rgba(245, 239, 227, 0.1);
    }

    .seller-dashboard-stats article:last-child {
        border-bottom: 0;
    }

    .seller-lot-card {
        grid-template-columns: 1fr;
    }

    .seller-lot-photo {
        height: 10.5rem;
    }

    .seller-dashboard-primary,
    .seller-dashboard-secondary,
    .seller-request-reply,
    .seller-dashboard-empty .seller-dashboard-primary {
        width: 100%;
    }
}

.page-path-entry {
    background: #0b120d;
}

.path-entry-page {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    display: grid;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(5, 8, 6, 0.8), rgba(5, 8, 6, 0.72)),
        url("../images/vendeur1.jpg") center center / cover no-repeat;
}

.path-entry-card {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(10, 15, 11, 0.74);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.path-entry-card h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.path-entry-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(245, 239, 227, 0.82);
}

.path-entry-note {
    color: rgba(245, 239, 227, 0.66);
}

.page-seller-assisted {
    background: #0b120d;
}

.seller-assist-page {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    background:
        linear-gradient(180deg, rgba(5, 8, 6, 0.78), rgba(5, 8, 6, 0.66)),
        url("../images/BBK_3173\ Counozouls\ 2024\ 10\ 02\ du\ côté\ de\ l\'Ayguette\ \(1\).jpg") center center / cover no-repeat;
}

.seller-assist-shell {
    width: min(1180px, 100%);
    min-height: calc(100vh - (2 * clamp(1rem, 3vw, 2.5rem)));
    margin: 0 auto;
    display: grid;
    align-content: center;
}

.seller-assist-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.seller-assist-intro,
.seller-assist-form-card {
    padding: 0;
    display: grid;
    gap: 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.seller-assist-intro h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.seller-assist-intro p,
.seller-assist-section-text,
.seller-assist-note p {
    margin: 0;
    line-height: 1.7;
    color: rgba(245, 239, 227, 0.82);
}

.seller-assist-note {
    padding: 1rem 1.1rem;
    border: 0;
    border-left: 1px solid rgba(197, 175, 120, 0.48);
    border-radius: 0;
    background: transparent;
}

.seller-assist-note strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.seller-assist-form {
    display: grid;
    gap: 1.4rem;
}

.seller-assist-section {
    margin: 0;
    padding: 1.15rem 0 0;
    display: grid;
    gap: 1rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
}

.seller-assist-section legend {
    padding: 0 0.2rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.seller-assist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.seller-assist-field {
    display: grid;
    gap: 0.45rem;
}

.seller-assist-field-full {
    grid-column: 1 / -1;
}

.seller-assist-field label {
    font-size: 0.96rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.seller-assist-field input,
.seller-assist-field select,
.seller-assist-field textarea {
    width: 100%;
    min-height: 3.45rem;
    padding: 0.92rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(5, 9, 6, 0.54);
    color: var(--ink);
    font: inherit;
}

.seller-assist-field select {
    color-scheme: dark;
}

.seller-assist-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.seller-assist-field input::placeholder,
.seller-assist-field textarea::placeholder {
    color: rgba(245, 239, 227, 0.46);
}

.seller-assist-field select option {
    background: #0b120d;
    color: rgba(245, 239, 227, 0.96);
}

.seller-assist-field select option:checked,
.seller-assist-field select option:hover {
    background: #2f3f36;
    color: #ffffff;
}

.seller-assist-field input:focus-visible,
.seller-assist-field select:focus-visible,
.seller-assist-field textarea:focus-visible,
.seller-assist-primary:focus-visible,
.seller-assist-secondary:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.86);
    outline-offset: 2px;
}

.seller-assist-error {
    color: #f1c4b5;
    font-size: 0.86rem;
    line-height: 1.5;
}

.seller-assist-alert {
    padding: 0.95rem 1rem;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 0;
    line-height: 1.6;
}

.seller-assist-alert-success {
    background: transparent;
    border-left-color: rgba(109, 145, 101, 0.72);
}

.seller-assist-alert-error {
    background: transparent;
    border-left-color: rgba(201, 132, 115, 0.72);
}

.seller-assist-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.2rem;
}

.seller-assist-primary,
.seller-assist-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.95rem 1.35rem;
    border-radius: 4px;
    font-weight: 700;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.seller-assist-primary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #f5efe3;
    color: #132017;
    font: inherit;
    cursor: pointer;
}

.seller-assist-primary:hover,
.seller-assist-primary:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
}

.seller-assist-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.02);
}

.seller-assist-secondary:hover,
.seller-assist-secondary:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ------------------------------------------------------------------
   Controle admin de la localisation d'une annonce (§13) : parcelles,
   sources, dates, statut, journal des modifications.
   ------------------------------------------------------------------ */

.admin-location {
    margin: 0.6rem 0 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(5, 9, 6, 0.35);
}

.admin-location > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    color: rgba(245, 239, 227, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-location-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-location-badge.is-ok {
    background: rgba(109, 145, 101, 0.24);
    color: #cfe0c4;
}

.admin-location-badge.is-warn {
    background: rgba(201, 132, 115, 0.22);
    color: #f1c4b5;
}

.admin-location-count,
.admin-location-empty,
.admin-location-total {
    color: rgba(245, 239, 227, 0.62);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.5;
}

.admin-location-reasons {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    color: #f1c4b5;
    font-size: 0.84rem;
    line-height: 1.6;
}

.admin-location-table-wrap {
    margin-top: 0.7rem;
    overflow-x: auto;
}

.admin-location-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-location-table th,
.admin-location-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    text-align: left;
    white-space: nowrap;
}

.admin-location-table thead th {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-location-table small {
    display: block;
    color: rgba(245, 239, 227, 0.5);
    font-size: 0.72rem;
}

.admin-location-journal-title {
    margin: 0.9rem 0 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.admin-location-journal {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(245, 239, 227, 0.72);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ------------------------------------------------------------------
   Bloc "Localisation des parcelles" (formulaire de mise en vente).
   Reprend les variables et le vocabulaire visuel de .seller-assist-* :
   ce bloc doit se lire comme une section du formulaire, pas comme un
   composant rapporte.
   ------------------------------------------------------------------ */

.seller-assist-help {
    color: rgba(245, 239, 227, 0.6);
    font-size: 0.84rem;
    line-height: 1.5;
}

.seller-location-error-global {
    padding: 0.8rem 1rem;
    border-left: 2px solid rgba(201, 132, 115, 0.72);
}

/* Parcelles changees depuis l'estimation : alerte + « Re-estimer avec ces parcelles ». */
.seller-location-lot {
    display: grid;
    justify-items: start;
    gap: 0.7rem;
}

.seller-location-lot[hidden],
.seller-location-lot-info[hidden],
.seller-location-lot-essence[hidden] {
    display: none;
}

.seller-location-lot-essence {
    margin: 0;
    padding: 0.8rem 1rem;
    border-left: 2px solid rgba(224, 181, 107, 0.8);
    color: #ecd9b0;
}

.seller-location-lot .seller-location-error-global {
    margin: 0;
}

.seller-location-reestimer {
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
}

.seller-location-lot-etat:empty {
    display: none;
}

.seller-location-lot-info {
    margin: 0;
    padding: 0.8rem 1rem;
    border-left: 2px solid rgba(157, 192, 139, 0.72);
    color: #cfe0c4;
}

.seller-location-commune {
    position: relative;
}

.seller-location-suggestions {
    position: absolute;
    z-index: 20;
    top: 5.6rem;
    left: 0;
    right: 0;
    max-height: 15rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: #0b120d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.seller-location-suggestion {
    padding: 0.7rem 0.9rem;
    color: rgba(245, 239, 227, 0.92);
    font-size: 0.94rem;
    cursor: pointer;
}

.seller-location-suggestion:hover,
.seller-location-suggestion:focus-visible {
    background: rgba(255, 255, 255, 0.09);
}

.seller-location-commune-selected {
    margin: 0;
    color: #cfe0c4;
    font-size: 0.88rem;
}

.seller-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.seller-location-add {
    min-height: 3rem;
    padding: 0.75rem 1.2rem;
}

.seller-location-feedback {
    margin: 0.3rem 0 0;
}

.seller-location-recap {
    display: grid;
    gap: 1rem;
    padding-top: 0.4rem;
}

.seller-location-subtitle {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.seller-location-empty {
    margin: 0;
    color: rgba(245, 239, 227, 0.6);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Le tableau defile horizontalement sur mobile plutot que de deborder. */
.seller-location-table-wrap {
    overflow-x: auto;
}

.seller-location-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.seller-location-caption {
    padding-bottom: 0.5rem;
    color: rgba(245, 239, 227, 0.6);
    font-size: 0.84rem;
    text-align: left;
}

.seller-location-table th,
.seller-location-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    white-space: nowrap;
}

.seller-location-table thead th,
.seller-location-table tfoot th {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seller-location-table .is-numeric {
    text-align: right;
}

.seller-location-remove {
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: transparent;
    color: rgba(245, 239, 227, 0.85);
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
}

.seller-location-remove:hover,
.seller-location-remove:focus-visible {
    background: rgba(201, 132, 115, 0.16);
    border-color: rgba(201, 132, 115, 0.6);
}

.seller-location-map {
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.seller-location-map-wrap {
    display: grid;
    gap: 0.5rem;
}

.seller-location-privacy {
    margin: 0;
    padding: 0.85rem 1rem;
    border-left: 2px solid rgba(109, 145, 101, 0.72);
    color: rgba(245, 239, 227, 0.72);
    font-size: 0.88rem;
    line-height: 1.6;
}

.seller-location-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .seller-location-suggestions {
        top: 5.2rem;
    }

    .seller-location-map {
        height: 240px;
    }

    .seller-location-actions {
        align-items: stretch;
    }

    .seller-location-add,
    .seller-location-reestimer {
        width: 100%;
    }

    .seller-location-lot {
        justify-items: stretch;
    }
}

.page-seller-estimation {
    background: #0b120d;
}

/* L'ancienne interface de l'outil d'estimation (seller-estimate / estimate-*)
   a ete remplacee par l'interface V2 (voir estimation.css). Seule survit
   .estimate-help, encore utilisee par dashboard-vendeur.php. */
.estimate-help {
    margin: 0;
    color: rgba(245, 239, 227, 0.66);
    font-size: 0.92rem;
    line-height: 1.55;
}

.back-link::after {
    content: "->";
    transition: transform 220ms ease;
}

.back-link:hover::after {
    transform: translateX(4px);
}

.page-journey {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 34%),
        #091310;
}

.journey-page {
    min-height: 100vh;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: grid;
    align-content: center;
    gap: 1.5rem;
}

.seller-journey {
    background:
        radial-gradient(circle at 12% 12%, rgba(214, 182, 112, 0.18), transparent 22%),
        linear-gradient(135deg, #0d1815 0%, #173227 55%, #4d3a23 100%);
}

.buyer-journey {
    background:
        radial-gradient(circle at 18% 16%, rgba(94, 180, 196, 0.2), transparent 24%),
        linear-gradient(135deg, #0b1720 0%, #123848 55%, #5a3f27 100%);
}

.journey-hero {
    max-width: 48rem;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    display: grid;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 30px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    animation: rise-in 650ms ease-out both;
}

.journey-hero h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.journey-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    animation: rise-in 820ms ease-out both;
}

.journey-card:nth-child(2) {
    animation-delay: 80ms;
}

.journey-card:nth-child(3) {
    animation-delay: 160ms;
}

.journey-card span {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.journey-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.page-buyer-auth,
.page-buyer-register,
.page-buyer-account,
.page-buyer-sales {
    background: #09110c;
}

.buyer-entry-page {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    background:
        linear-gradient(180deg, rgba(5, 8, 6, 0.72), rgba(5, 8, 6, 0.56)),
        url("../images/Connexion.jpg") center center / cover no-repeat;
}

.buyer-entry-shell {
    width: min(1180px, 100%);
    min-height: calc(100vh - (2 * clamp(1rem, 3vw, 2.5rem)));
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 1rem;
}

.buyer-auth-card,
.buyer-register-card,
.buyer-status-card,
.buyer-summary-card,
.buyer-sales-panel,
.buyer-sales-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: rgba(9, 15, 11, 0.76);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.page-buyer-auth .buyer-auth-card {
    position: relative;
    overflow: visible;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.page-buyer-auth .buyer-auth-card::before {
    display: none;
}

.buyer-auth-card,
.buyer-status-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1rem;
}

.buyer-register-card {
    padding: clamp(1.25rem, 2.6vw, 2rem);
    display: grid;
    gap: 1rem;
}

.page-buyer-register .buyer-register-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.buyer-auth-intro,
.buyer-form-panel,
.buyer-status-card,
.buyer-summary-card,
.buyer-sales-panel,
.buyer-sales-card {
    padding: clamp(1.4rem, 2.6vw, 2rem);
}

.page-buyer-auth .buyer-auth-intro,
.page-buyer-auth .buyer-form-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-buyer-auth .buyer-auth-intro {
    padding-right: clamp(0.4rem, 1vw, 0.75rem);
}

.page-buyer-auth .buyer-form-panel {
    align-self: start;
    position: relative;
    margin-top: 0;
    padding-top: clamp(4.6rem, 7vw, 6rem);
    padding-left: clamp(1.25rem, 2vw, 1.75rem);
    border-left: 0;
}

.page-buyer-auth .buyer-form-panel::before {
    content: "";
    position: absolute;
    top: clamp(4.8rem, 7.2vw, 6.15rem);
    bottom: clamp(3.6rem, 7vw, 4.75rem);
    left: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.2) 18%,
        rgba(255, 255, 255, 0.2) 82%,
        transparent
    );
}

.buyer-auth-intro,
.buyer-register-header,
.buyer-form-panel,
.buyer-status-card,
.buyer-summary-card,
.buyer-sales-panel,
.buyer-sales-card {
    display: grid;
    gap: 1rem;
}

.buyer-auth-intro h1,
.buyer-register-header h1,
.buyer-status-card h1,
.buyer-sales-panel h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.buyer-summary-card h2,
.buyer-sales-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.buyer-auth-intro p,
.buyer-register-header p,
.buyer-form-panel p,
.buyer-status-card p,
.buyer-summary-card p,
.buyer-sales-panel p,
.buyer-sales-card p {
    margin: 0;
    color: rgba(245, 239, 227, 0.82);
    line-height: 1.7;
}

.buyer-auth-note {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-buyer-auth .buyer-auth-note {
    padding: 1rem 0 1rem 1.1rem;
    border: 0;
    border-left: 1px solid rgba(197, 175, 120, 0.48);
    border-radius: 0;
    background: transparent;
}

.page-buyer-register .buyer-auth-note {
    border: 0;
    border-left: 1px solid rgba(197, 175, 120, 0.48);
    border-radius: 0;
    background: transparent;
}

.buyer-auth-note strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.buyer-form-panel {
    align-content: start;
}

.buyer-form-panel-wide {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.buyer-form {
    display: grid;
    gap: 1rem;
}

.buyer-form-extended {
    gap: 1.15rem;
}

.page-buyer-register .buyer-form-extended {
    gap: 1.4rem;
}

.buyer-form-section {
    margin: 0;
    padding: 1.15rem;
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.page-buyer-register .buyer-form-section {
    padding: 1.15rem 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
}

.buyer-form-section legend {
    padding: 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.page-buyer-register .buyer-form-section legend {
    padding: 0 0.2rem 0 0;
}

.buyer-form-grid,
.buyer-summary-grid,
.buyer-sales-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.buyer-sales-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-field {
    display: grid;
    gap: 0.45rem;
}

.buyer-field-full {
    grid-column: 1 / -1;
}

.buyer-field label {
    font-size: 0.94rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.buyer-field input,
.buyer-field select,
.buyer-field textarea {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(5, 9, 6, 0.7);
    color: var(--ink);
    font: inherit;
    color-scheme: dark;
}

.buyer-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.page-buyer-auth .buyer-field input,
.page-buyer-auth .buyer-field select {
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(5, 9, 6, 0.72);
}

.page-buyer-register .buyer-field input,
.page-buyer-register .buyer-field select {
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(5, 9, 6, 0.72);
}

.buyer-field input::placeholder {
    color: rgba(245, 239, 227, 0.46);
}

.buyer-field select option {
    background: #0b120d;
    color: rgba(245, 239, 227, 0.96);
}

.buyer-field select option:checked,
.buyer-field select option:hover {
    background: #2f3f36;
    color: #ffffff;
}

.buyer-field input:focus-visible,
.buyer-field select:focus-visible,
.buyer-primary-button:focus-visible,
.buyer-secondary-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.86);
    outline-offset: 2px;
}

.buyer-field-error {
    color: #f1c4b5;
    font-size: 0.86rem;
    line-height: 1.5;
}

.buyer-checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.buyer-checkbox {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.page-buyer-register .buyer-checkbox {
    padding: 0.95rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
}

.buyer-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: #c5af78;
}

.buyer-alert {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1.6;
}

.page-buyer-auth .buyer-alert {
    padding: 0.95rem 0 0.95rem 1rem;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 0;
    background: transparent;
}

.page-buyer-register .buyer-alert {
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 0;
    background: transparent;
}

.buyer-alert-info {
    background: rgba(88, 128, 143, 0.18);
}

.buyer-alert-success {
    background: rgba(109, 145, 101, 0.18);
}

.buyer-alert-error {
    background: rgba(148, 90, 76, 0.22);
}

.page-buyer-auth .buyer-alert-info {
    border-left-color: rgba(88, 128, 143, 0.72);
}

.page-buyer-auth .buyer-alert-success {
    border-left-color: rgba(109, 145, 101, 0.72);
}

.page-buyer-auth .buyer-alert-error {
    border-left-color: rgba(201, 132, 115, 0.72);
}

.page-buyer-register .buyer-alert-info {
    border-left-color: rgba(88, 128, 143, 0.72);
}

.page-buyer-register .buyer-alert-success {
    border-left-color: rgba(109, 145, 101, 0.72);
}

.page-buyer-register .buyer-alert-error {
    border-left-color: rgba(201, 132, 115, 0.72);
}

.buyer-actions {
    display: grid;
    gap: 0.8rem;
}

.buyer-actions-inline {
    grid-template-columns: repeat(2, max-content);
    align-items: center;
}

.buyer-primary-button,
.buyer-primary-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 3.4rem;
    padding: 0.95rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: #f5efe3;
    color: #132017;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease;
}

.page-buyer-auth .buyer-primary-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.page-buyer-auth .buyer-actions {
    gap: 0.65rem;
}

.page-buyer-register .buyer-primary-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.buyer-primary-button:hover,
.buyer-primary-button-link:hover,
.buyer-primary-button:focus-visible,
.buyer-primary-button-link:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
}

.buyer-secondary-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2.8rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.buyer-secondary-link-muted {
    color: rgba(245, 239, 227, 0.66);
}

.page-buyer-auth .buyer-forgot-link {
    justify-self: end;
    font-size: 0.88rem;
    color: rgba(245, 239, 227, 0.72);
    text-decoration: underline;
    text-decoration-color: rgba(245, 239, 227, 0.3);
    text-underline-offset: 3px;
}

.page-buyer-auth .buyer-forgot-link:hover {
    color: #f5efe3;
}

.page-buyer-auth .buyer-auth-help {
    font-size: 0.92rem;
    color: rgba(245, 239, 227, 0.66);
}

.page-buyer-auth .buyer-auth-help a {
    color: #f5efe3;
    text-decoration: underline;
    text-decoration-color: rgba(245, 239, 227, 0.4);
    text-underline-offset: 3px;
}

/* Pages "fil du bois" (contact, mot de passe) : les veines s'ecartent autour du bloc .grain-core comme autour d'un noeud (fil-du-bois.js). */
.page-grain {
    background: #0c1612;
}

.grain-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
    overflow: hidden;
    color: #f5efe3;
    background: radial-gradient(ellipse at 50% 48%, #1a2a22 0%, #0f1b16 46%, #0a120f 100%);
}

.grain-back {
    justify-self: start;
    position: relative;
    z-index: 1;
    color: rgba(245, 239, 227, 0.82);
}

.grain-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Fondu haut et bas : les veines s'effacent sous les liens de navigation. */
.grain-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #0b1410 0%, rgba(11, 20, 16, 0) 16%, rgba(11, 20, 16, 0) 82%, #0b1410 100%);
}

.grain-core {
    position: relative;
    z-index: 1;
    align-self: center;
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    max-width: 40rem;
    text-align: center;
}

.grain-core h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    color: rgba(245, 239, 227, 0.72);
}

.contact-email {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 6.4vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.035em;
    color: #f5efe3;
    overflow-wrap: anywhere;
}

.grain-core p {
    margin: 0;
    color: rgba(245, 239, 227, 0.7);
    text-wrap: balance;
}

.grain-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.grain-button {
    padding: 0.9rem 1.45rem;
    border: 1px solid #f5efe3;
    border-radius: 4px;
    background: #f5efe3;
    color: #17221d;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.grain-button:hover {
    background: #ffffff;
}

.grain-button-ghost {
    background: transparent;
    color: #f5efe3;
    border-color: rgba(245, 239, 227, 0.4);
}

.grain-button-ghost:hover {
    background: rgba(245, 239, 227, 0.08);
    border-color: #f5efe3;
}

.grain-status {
    min-height: 1.5em;
    font-size: 0.92rem;
    color: #c5af78;
}

.grain-core .grain-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #f5efe3;
    text-wrap: balance;
}

.grain-form {
    display: grid;
    gap: 1rem;
    width: min(24rem, 100%);
    margin-top: 0.6rem;
    text-align: left;
}

.grain-field {
    display: grid;
    gap: 0.4rem;
}

.grain-field label {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(245, 239, 227, 0.86);
}

.grain-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(245, 239, 227, 0.28);
    border-radius: 4px;
    background: rgba(8, 14, 12, 0.72);
    color: #f5efe3;
    font: inherit;
}

.grain-field input:focus-visible {
    outline: 2px solid #f5efe3;
    outline-offset: 2px;
    border-color: #f5efe3;
}

.grain-field-error,
.grain-alert {
    margin: 0;
    padding-left: 0.8rem;
    border-left: 2px solid rgba(201, 132, 115, 0.85);
    font-size: 0.9rem;
    color: #f0cfc4;
    text-align: left;
}

.grain-form .grain-button {
    width: 100%;
    margin-top: 0.4rem;
}

.grain-hint {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(245, 239, 227, 0.6);
}

.grain-more {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 2rem;
    font-size: 0.92rem;
}

.grain-more a {
    color: rgba(245, 239, 227, 0.62);
    text-decoration: underline;
    text-decoration-color: rgba(245, 239, 227, 0.25);
    text-underline-offset: 4px;
}

.grain-more a:hover {
    color: #f5efe3;
}

.grain-page a:focus-visible,
.grain-button:focus-visible {
    outline: 2px solid #f5efe3;
    outline-offset: 4px;
}

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

/* Page "Mes documents" (compte-conformite.php) : meme fil du bois. Chaque document est une ligne cliquable (nom souligne + "Lire"), sans cadre. */
.conditions-page {
    row-gap: 2.5rem;
    color-scheme: dark;
}

.conditions-core {
    width: min(44rem, 100%);
    max-width: none;
    gap: 1.2rem;
}

.grain-core .conditions-surtitre {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c5af78;
}

.grain-core .conditions-flash {
    width: 100%;
    padding: 0.2rem 0 0.2rem 0.8rem;
    border-left: 2px solid #c5af78;
    color: #f5efe3;
    text-align: left;
}

.grain-core .conditions-flash-erreur {
    border-left-color: rgba(201, 132, 115, 0.85);
    color: #f0cfc4;
}

.conditions-docs {
    width: 100%;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    border-top: 1px solid rgba(197, 175, 120, 0.3);
}

.conditions-docs li {
    border-bottom: 1px solid rgba(197, 175, 120, 0.3);
}

.conditions-doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 1.5rem;
    padding: 1.15rem 0.9rem;
    color: #f5efe3;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.conditions-doc:hover {
    background: rgba(245, 239, 227, 0.05);
}

.conditions-doc-nom {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.3vw, 1.42rem);
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-color: rgba(197, 175, 120, 0.55);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.conditions-doc:hover .conditions-doc-nom {
    text-decoration-color: #c5af78;
}

.conditions-doc-meta {
    grid-column: 1;
    font-size: 0.88rem;
    color: rgba(245, 239, 227, 0.62);
}

.conditions-doc-nouveau {
    font-weight: 700;
    color: #c5af78;
}

.conditions-doc-lire {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(197, 175, 120, 0.6);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c5af78;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.conditions-doc-lire svg {
    transition: transform 0.2s ease;
}

.conditions-doc:hover .conditions-doc-lire {
    background: #c5af78;
    color: #0c1612;
}

.conditions-doc:hover .conditions-doc-lire svg {
    transform: translate(2px, -2px);
}

.conditions-doc:focus-visible {
    outline: 2px solid #f5efe3;
    outline-offset: 2px;
}

.conditions-accord {
    display: grid;
    gap: 1.1rem;
    width: 100%;
    margin-top: 0.6rem;
}

.conditions-case {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    color: #f5efe3;
    cursor: pointer;
}

.conditions-case input {
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    margin: 0.05rem 0 0;
    border: 1.5px solid #c5af78;
    border-radius: 3px;
    background: rgba(8, 14, 12, 0.72) center / 0.95rem no-repeat;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.conditions-case input:checked {
    background-color: #c5af78;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%230c1612' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.conditions-case input:focus-visible {
    outline: 2px solid #f5efe3;
    outline-offset: 3px;
}

.conditions-case-accord {
    font-size: 1.05rem;
}

.conditions-bouton {
    width: 100%;
    padding: 1.05rem 1.45rem;
    font-size: 1.05rem;
}

.conditions-volet {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(197, 175, 120, 0.2);
}

.conditions-volet summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0.9rem;
    color: rgba(245, 239, 227, 0.86);
    cursor: pointer;
    list-style: none;
}

.conditions-volet summary::-webkit-details-marker {
    display: none;
}

.conditions-volet summary::after {
    content: "+";
    color: #c5af78;
}

.conditions-volet[open] summary::after {
    content: "\2212";
}

.conditions-volet summary:hover {
    color: #f5efe3;
}

.conditions-volet summary:focus-visible {
    outline: 2px solid #f5efe3;
    outline-offset: 2px;
}

/* Le refus est un choix reel mais secondaire : un lien sous le bouton, pas une rubrique. */
.conditions-refus {
    border-bottom: 0;
}

.conditions-refus summary {
    justify-content: center;
    padding: 0.4rem;
    font-size: 0.92rem;
    color: rgba(245, 239, 227, 0.62);
    text-decoration: underline;
    text-decoration-color: rgba(245, 239, 227, 0.25);
    text-underline-offset: 4px;
}

.conditions-volet.conditions-refus summary::after {
    content: none;
}

.conditions-volet-corps {
    display: grid;
    gap: 1rem;
    padding: 0.4rem 0.9rem 1.4rem;
}

.grain-core .conditions-volet-corps p {
    font-size: 0.92rem;
    text-wrap: pretty;
}

.conditions-champ,
.conditions-profil p label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(245, 239, 227, 0.86);
}

.conditions-champ textarea,
.conditions-profil input,
.conditions-profil select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(245, 239, 227, 0.28);
    border-radius: 4px;
    background: rgba(8, 14, 12, 0.72);
    color: #f5efe3;
    font: inherit;
    font-weight: 400;
}

.conditions-champ textarea {
    resize: vertical;
}

.conditions-champ textarea:focus-visible,
.conditions-profil input:focus-visible,
.conditions-profil select:focus-visible {
    outline: 2px solid #f5efe3;
    outline-offset: 2px;
    border-color: #f5efe3;
}

.conditions-profil {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conditions-profil > p:first-of-type,
.conditions-profil > details,
.conditions-profil > .grain-button {
    grid-column: 1 / -1;
}

.conditions-fermeture .grain-button {
    justify-self: start;
}

.conditions-anciens {
    margin: 0;
    padding: 0.2rem 0.9rem 1.2rem 2rem;
    font-size: 0.9rem;
    color: rgba(245, 239, 227, 0.7);
}

.grain-core .conditions-note {
    width: 100%;
    font-size: 0.92rem;
    color: #c5af78;
}

@media (max-width: 560px) {
    .conditions-doc {
        padding: 1rem 0.2rem;
        gap: 0.35rem 0.9rem;
    }

    .conditions-volet summary,
    .conditions-volet-corps {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .conditions-profil {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .conditions-doc,
    .conditions-doc-lire,
    .conditions-doc-lire svg,
    .conditions-case input {
        transition: none;
    }
}

.buyer-muted {
    color: rgba(245, 239, 227, 0.7);
}

.buyer-status-badge,
.buyer-sales-card span,
.buyer-summary-item span {
    display: inline-flex;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.buyer-status-badge {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.buyer-status-badge-pending {
    background: rgba(197, 175, 120, 0.16);
    color: #f0ddb0;
}

.buyer-status-badge-validated {
    background: rgba(112, 165, 118, 0.18);
    color: #d7f0d5;
}

.buyer-status-badge-refused {
    background: rgba(159, 95, 77, 0.22);
    color: #f6d4c9;
}

.buyer-summary-item,
.buyer-sales-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.buyer-summary-item {
    display: grid;
    gap: 0.35rem;
}

.buyer-summary-item strong,
.buyer-sales-card h2 {
    color: rgba(255, 255, 255, 0.94);
}

.buyer-summary-item small {
    color: rgba(245, 239, 227, 0.66);
    line-height: 1.5;
}

.buyer-space-shell {
    align-content: start;
}

.buyer-space-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.buyer-space-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.buyer-space-nav a {
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(245, 239, 227, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
}

.buyer-space-nav a:hover,
.buyer-space-nav a:focus-visible,
.buyer-space-nav a.is-active {
    background: rgba(245, 239, 227, 0.12);
    color: rgba(255, 255, 255, 0.96);
}

.buyer-stats-grid,
.buyer-action-strip,
.buyer-filter-panel,
.buyer-request-list {
    display: grid;
    gap: 1rem;
}

.buyer-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buyer-stats-grid .buyer-summary-item strong {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
}

.buyer-action-strip {
    grid-template-columns: repeat(4, max-content);
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.buyer-filter-panel {
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(9, 15, 11, 0.62);
}

.buyer-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 3.1rem;
    padding: 0.8rem 1.05rem;
    border: 1px solid rgba(245, 239, 227, 0.2);
    border-radius: 6px;
    background: rgba(245, 239, 227, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease;
}

.buyer-secondary-button:hover,
.buyer-secondary-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(245, 239, 227, 0.14);
}

.buyer-lot-card {
    align-content: start;
}

.buyer-lot-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.buyer-lot-meta,
.buyer-detail-meta {
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.buyer-lot-meta div {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.buyer-lot-meta dt {
    color: rgba(245, 239, 227, 0.56);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.buyer-lot-meta dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
}

.buyer-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.buyer-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.buyer-photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.buyer-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(19rem, 0.55fr);
    gap: 1rem;
    align-items: start;
}

.buyer-detail-card,
.buyer-detail-actions,
.buyer-request-card {
    align-content: start;
}

.buyer-request-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1040px) {
    .seller-assist-layout,
    .buyer-auth-card,
    .buyer-status-layout,
    .buyer-sales-grid,
    .buyer-space-header,
    .buyer-detail-layout,
    .buyer-request-list {
        grid-template-columns: 1fr;
    }

    .buyer-space-nav {
        justify-content: flex-start;
    }

    .page-buyer-auth .buyer-auth-card::before {
        display: none;
    }

    /* La regle generique ci-dessus est battue par la specificite de
       ".page-buyer-auth .buyer-auth-card" (deux colonnes) : on la repete ici. */
    .page-buyer-auth .buyer-auth-card {
        grid-template-columns: 1fr;
    }

    .page-buyer-auth .buyer-form-panel {
        margin-top: 0;
        padding-left: 0;
        padding-top: 1.25rem;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .page-buyer-auth .buyer-form-panel::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .home-split {
        grid-template-columns: 1fr;
    }

    .home-split::before {
        display: none;
    }

    .home-choice + .home-choice {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .home-choice {
        min-height: 20rem;
    }

    .home-how-shell,
    .home-values-shell {
        grid-template-columns: 1fr;
    }

    .home-values-heading p {
        max-width: 42rem;
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .seller-gateway-shell {
        align-content: start;
    }

    .seller-gateway-grid {
        grid-template-columns: 1fr;
    }

    .seller-option-card + .seller-option-card {
        padding-left: 0;
        padding-top: 1.25rem;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .seller-assist-grid,
    .buyer-form-grid,
    .buyer-summary-grid,
    .buyer-stats-grid,
    .buyer-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-landing {
        background-attachment: scroll;
    }

    .home-hero {
        padding: 1rem;
    }

    .home-shell {
        min-height: calc(100vh - 2rem);
    }

    .home-topline {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0.85rem 1rem;
    }

    .home-top-actions {
        display: contents;
    }

    .home-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .home-login-menu {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .home-header:has(.home-login-menu[open]) h1 {
        margin-top: 8.75rem;
    }

    .home-header h1,
    .home-choice h2,
    .journey-hero h1 {
        font-size: clamp(2.4rem, 11vw, 4rem);
    }

    .home-choice {
        min-height: 18rem;
    }

    .home-scroll-cue {
        right: 1rem;
        bottom: 2rem;
        width: 2.65rem;
        height: 2.65rem;
    }

    .home-scroll-cue:hover,
    .home-scroll-cue:focus-visible {
        transform: translateY(2px);
    }

    .home-how-steps {
        grid-template-columns: 1fr;
    }

    .home-how-step + .home-how-step {
        border-left: 0;
        border-top: 1px solid rgba(245, 239, 227, 0.12);
    }

    .home-how-step {
        padding: 1.25rem 0;
    }

    .home-values-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-value + .home-value {
        border: 0;
        border-top: 1px solid rgba(245, 239, 227, 0.12);
    }

    .home-value {
        padding: 1.25rem 0;
        align-content: start;
        gap: 0.9rem;
    }

    .home-choice-action {
        width: 100%;
        justify-content: center;
    }

    .seller-gateway,
    .path-entry-page,
    .seller-assist-page {
        padding: 1rem;
    }

    .seller-gateway-shell,
    .path-entry-page,
    .seller-assist-shell {
        min-height: calc(100vh - 2rem);
    }

    .seller-option-card h2,
    .path-entry-card h1,
    .seller-assist-intro h1 {
        font-size: clamp(2.1rem, 10vw, 3.5rem);
    }

    .seller-option-action {
        width: 100%;
    }

    .seller-assist-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .seller-assist-primary,
    .seller-assist-secondary {
        width: 100%;
    }

    .buyer-entry-page {
        padding: 1rem;
    }

    .buyer-entry-shell {
        min-height: calc(100vh - 2rem);
    }

    .buyer-auth-intro h1,
    .buyer-register-header h1,
    .buyer-status-card h1,
    .buyer-sales-panel h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .buyer-actions-inline {
        grid-template-columns: 1fr;
    }

    .buyer-primary-button,
    .buyer-primary-button-link,
    .buyer-secondary-link,
    .buyer-secondary-button {
        width: 100%;
        justify-content: center;
    }

    .buyer-action-strip {
        grid-template-columns: 1fr;
    }

    .buyer-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.page-buyer-space {
    background: #07100c;
    color: #f5efe3;
}

.page-buyer-space .buyer-space-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(5, 10, 7, 0.9), rgba(7, 16, 12, 0.94)),
        url("../images/Connexion.jpg") center top / cover fixed no-repeat;
}

.buyer-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.buyer-app-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(197, 175, 120, 0.18);
    background: rgba(5, 12, 9, 0.94);
    backdrop-filter: blur(16px);
}

.buyer-app-header-inner {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(17rem, 1fr) auto;
    gap: clamp(1rem, 2.4vw, 2rem);
    align-items: center;
}

.buyer-app-logo {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.buyer-global-search {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    align-items: center;
    border: 1px solid rgba(197, 175, 120, 0.22);
    border-radius: 4px;
    background: rgba(3, 9, 7, 0.72);
}

.buyer-global-search input {
    min-width: 0;
    min-height: 2.7rem;
    padding: 0.7rem 0.95rem;
    border: 0;
    background: transparent;
    color: rgba(245, 239, 227, 0.94);
    font: inherit;
}

.buyer-global-search input::placeholder {
    color: rgba(245, 239, 227, 0.46);
}

.buyer-global-search button {
    position: relative;
    width: 2.75rem;
    height: 2.7rem;
    border: 0;
    border-left: 1px solid rgba(197, 175, 120, 0.18);
    background: rgba(245, 239, 227, 0.04);
    color: rgba(245, 239, 227, 0.82);
    cursor: pointer;
}

.buyer-global-search button span,
.buyer-global-search button span::after {
    position: absolute;
    display: block;
    content: "";
}

.buyer-global-search button span {
    top: 0.78rem;
    left: 0.82rem;
    width: 0.78rem;
    height: 0.78rem;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.buyer-global-search button span::after {
    right: -0.43rem;
    bottom: -0.28rem;
    width: 0.54rem;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.buyer-primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
}

.buyer-primary-nav a {
    color: rgba(245, 239, 227, 0.7);
    transition: color 180ms ease;
}

.buyer-primary-nav a:hover,
.buyer-primary-nav a:focus-visible,
.buyer-primary-nav a.is-active {
    color: rgba(255, 255, 255, 0.96);
}

.page-buyer-space .buyer-space-nav {
    border-bottom: 1px solid rgba(245, 239, 227, 0.1);
    background: rgba(6, 14, 10, 0.78);
}

.page-buyer-space .buyer-space-nav-inner {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.4rem);
    align-items: center;
    min-height: 3.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.page-buyer-space .buyer-space-nav a {
    position: relative;
    min-height: 3.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: rgba(245, 239, 227, 0.62);
    font-size: 0.9rem;
    font-weight: 700;
}

.page-buyer-space .buyer-space-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
}

.page-buyer-space .buyer-space-nav a:hover,
.page-buyer-space .buyer-space-nav a:focus-visible,
.page-buyer-space .buyer-space-nav a.is-active {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
}

.page-buyer-space .buyer-space-nav a.is-active::after {
    background: #8ea36f;
}

.buyer-page-title {
    padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.4rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(245, 239, 227, 0.08);
    background: linear-gradient(180deg, rgba(9, 19, 14, 0.78), rgba(9, 19, 14, 0.38));
}

.buyer-page-label {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: rgba(197, 175, 120, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.buyer-page-title h1 {
    margin: 0;
    max-width: 54rem;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.8vw, 4.15rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.buyer-page-title p {
    margin: 1rem 0 0;
    max-width: 42rem;
    color: rgba(245, 239, 227, 0.74);
    line-height: 1.7;
}

.buyer-page-flash {
    max-width: 42rem;
    margin-top: 1.25rem;
}

.buyer-page-content {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

.buyer-content-stack {
    display: grid;
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.page-buyer-space .buyer-summary-card,
.page-buyer-space .buyer-sales-card,
.page-buyer-space .buyer-filter-panel {
    border: 1px solid rgba(245, 239, 227, 0.12);
    border-radius: 6px;
    background: rgba(8, 17, 13, 0.78);
    box-shadow: none;
    backdrop-filter: none;
}

.page-buyer-space .buyer-summary-card,
.page-buyer-space .buyer-sales-card {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.page-buyer-space .buyer-summary-item {
    border: 1px solid rgba(245, 239, 227, 0.1);
    border-radius: 4px;
    background: rgba(245, 239, 227, 0.045);
}

.page-buyer-space .buyer-status-layout {
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.page-buyer-space .buyer-sales-grid {
    gap: clamp(1rem, 2vw, 1.35rem);
}

.buyer-section-heading {
    padding-top: 0.5rem;
    display: grid;
    gap: 0.6rem;
}

.buyer-section-heading .eyebrow {
    margin-bottom: 0;
}

.buyer-section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 400;
    letter-spacing: 0;
}

.page-buyer-space .buyer-field input,
.page-buyer-space .buyer-field select,
.page-buyer-space .buyer-field textarea {
    border-radius: 4px;
    border-color: rgba(245, 239, 227, 0.14);
    background: rgba(3, 9, 7, 0.66);
}

.page-buyer-space .buyer-primary-button,
.page-buyer-space .buyer-primary-button-link,
.page-buyer-space .buyer-secondary-button {
    min-height: 2.9rem;
    border-radius: 4px;
    box-shadow: none;
}

.page-buyer-space .buyer-primary-button,
.page-buyer-space .buyer-primary-button-link {
    background: #f5efe3;
    color: #101b13;
}

.page-buyer-space .buyer-secondary-button {
    border-color: rgba(197, 175, 120, 0.24);
    background: rgba(245, 239, 227, 0.06);
}

.page-buyer-space .buyer-status-badge {
    border-radius: 4px;
}

.page-buyer-space .buyer-alert {
    border-radius: 4px;
}

.page-buyer-space .buyer-lot-thumb,
.page-buyer-space .buyer-photo-grid img {
    border-radius: 4px;
}

.page-buyer-space .buyer-action-strip {
    gap: 0.75rem;
}

@media (max-width: 1120px) {
    .buyer-app-header {
        padding: 0.85rem 0;
    }

    .buyer-app-header-inner {
        grid-template-columns: minmax(8rem, 1fr) auto;
    }

    .buyer-global-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .buyer-primary-nav {
        gap: 0.8rem;
    }
}

@media (max-width: 760px) {
    .buyer-container {
        padding-inline: 1rem;
    }

    .buyer-app-header-inner {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .buyer-primary-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        flex-wrap: nowrap;
    }

    .buyer-primary-nav a {
        flex: 0 0 auto;
    }

    .buyer-page-title {
        padding-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ================================================================
   ESPACE ACHETEUR — REGISTRE FORESTIER
   Extension design pour les pages authentifiées acheteur.
================================================================ */

/* --- Chrome collant --- */
.page-buyer-space .buyer-app-header {
    position: sticky;
    top: 0;
    z-index: 200;
}

.page-buyer-space .buyer-space-nav {
    position: sticky;
    top: 72px;
    z-index: 190;
    backdrop-filter: blur(12px);
}

/* Logo : marqueur losange vert */
.page-buyer-space .buyer-app-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.page-buyer-space .buyer-app-logo::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background: #8ea36f;
    transform: rotate(45deg);
}

/* --- Bandeau statistiques (dashboard) --- */
.byr-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(245, 239, 227, 0.1);
    background: rgba(6, 13, 9, 0.65);
    overflow: hidden;
}

.byr-stat-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.25rem, 2.5vw, 2rem);
    border-right: 1px solid rgba(245, 239, 227, 0.08);
}

.byr-stat-cell:last-child {
    border-right: 0;
}

.byr-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(197, 175, 120, 0.65);
}

.byr-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 400;
    line-height: 1;
    color: #f5efe3;
    letter-spacing: -0.01em;
}

/* --- Grille de lots : pile registre --- */
.page-buyer-space .buyer-sales-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(245, 239, 227, 0.1);
    overflow: hidden;
}

/* --- Carte de lot : rangée registre (vignette | intérieur) --- */
.page-buyer-space .buyer-lot-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    border: 0;
    border-bottom: 1px solid rgba(245, 239, 227, 0.07);
    border-radius: 0;
    background: rgba(7, 15, 11, 0.72);
    padding: 0;
    transition: background 180ms ease;
}

.page-buyer-space .buyer-lot-card:last-child {
    border-bottom: 0;
}

.page-buyer-space .buyer-lot-card:hover {
    background: rgba(12, 24, 18, 0.9);
}

/* Vignette photo */
.lot-reg-thumb {
    overflow: hidden;
    background: rgba(4, 10, 7, 0.85);
}

.lot-reg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lot-reg-thumb-placeholder {
    position: relative;
}

.lot-reg-thumb-placeholder::after {
    content: "";
    position: absolute;
    inset: 28% 30%;
    border: 1px solid rgba(197, 175, 120, 0.15);
    border-radius: 50%;
}

/* Intérieur : 3 colonnes (identité | specs | prix-actions) */
.lot-reg-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.85fr) minmax(9.5rem, 0.62fr);
    border-left: 1px solid rgba(245, 239, 227, 0.055);
}

/* Colonne identité */
.lot-reg-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    padding: clamp(0.85rem, 1.4vw, 1.2rem) clamp(0.9rem, 1.5vw, 1.35rem);
    border-right: 1px solid rgba(245, 239, 227, 0.055);
}

.lot-reg-inner .lot-reg-dept {
    display: block;
    margin-bottom: 0.08rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(197, 175, 120, 0.62);
}

.lot-reg-inner .lot-reg-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(0.88rem, 1.25vw, 1.08rem);
    font-weight: 400;
    line-height: 1.25;
    color: #f5efe3;
}

.lot-reg-inner .lot-reg-commune {
    margin: 0.14rem 0 0;
    font-size: 0.78rem;
    color: rgba(245, 239, 227, 0.52);
    line-height: 1.3;
}

.lot-reg-inner .lot-reg-ref {
    margin: 0.3rem 0 0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(197, 175, 120, 0.36);
    font-family: 'Courier New', Courier, monospace;
}

/* Colonne specs */
.lot-reg-specs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: clamp(0.85rem, 1.4vw, 1.2rem) clamp(0.9rem, 1.5vw, 1.35rem);
    border-right: 1px solid rgba(245, 239, 227, 0.055);
}

.lot-reg-specs > div {
    display: grid;
    grid-template-columns: 4.8rem 1fr;
    gap: 0.35rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(245, 239, 227, 0.048);
    align-items: baseline;
}

.lot-reg-specs > div:last-child {
    border-bottom: 0;
}

.lot-reg-specs dt {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 239, 227, 0.38);
}

.lot-reg-specs dd {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(245, 239, 227, 0.86);
}

/* Colonne fin : prix + actions */
.lot-reg-end {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(0.85rem, 1.4vw, 1.2rem) clamp(0.9rem, 1.5vw, 1.35rem);
    gap: 0.65rem;
}

.lot-reg-inner .lot-reg-price-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(197, 175, 120, 0.58);
    margin-bottom: 0.18rem;
}

.lot-reg-inner .lot-reg-price-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.96rem, 1.5vw, 1.18rem);
    color: #f5efe3;
    line-height: 1.25;
}

/* Boutons d'action dans la rangée */
.lot-reg-btns {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lot-reg-btns > form {
    display: contents;
}

.lot-reg-btns .buyer-primary-button,
.lot-reg-btns .buyer-primary-button-link {
    width: 100%;
    justify-content: center;
    padding-inline: 0.75rem;
    font-size: 0.8rem;
    min-height: 2.25rem;
}

.lot-reg-btns .buyer-secondary-button {
    width: 100%;
    justify-content: center;
    padding-inline: 0.75rem;
    font-size: 0.8rem;
    min-height: 2.1rem;
}

/* Carte vide (état sans lots) : restaure l'aspect carte */
.page-buyer-space .buyer-sales-grid .buyer-sales-card:not(.buyer-lot-card) {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
    border: 0;
    border-radius: 0;
    background: rgba(8, 17, 13, 0.78);
}

/* --- Barre de filtres --- */
.byr-filter-bar {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgba(245, 239, 227, 0.1);
    background: rgba(5, 12, 9, 0.72);
    overflow: hidden;
}

.byr-filter-cell {
    flex: 1 1 9rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(245, 239, 227, 0.07);
    min-width: 0;
}

.byr-filter-cell:focus-within {
    background: rgba(197, 175, 120, 0.04);
}

.byr-filter-label {
    display: block;
    padding: 0.5rem 0.9rem 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(197, 175, 120, 0.6);
    pointer-events: none;
}

.byr-filter-cell select,
.byr-filter-cell input[type="number"],
.byr-filter-cell input[type="text"] {
    flex: 1;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.2rem 0.9rem 0.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(245, 239, 227, 0.9);
    font: inherit;
    font-size: 0.86rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: 0;
}

.byr-filter-cell select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(197%2C175%2C120%2C0.45)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2rem;
}

.byr-filter-cell input[type="number"]::-webkit-inner-spin-button,
.byr-filter-cell input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.byr-filter-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    flex: 0 0 auto;
    border-right: 0;
}

.byr-filter-actions .buyer-primary-button,
.byr-filter-actions .buyer-secondary-link {
    white-space: nowrap;
    width: auto;
    justify-content: center;
    font-size: 0.82rem;
    padding-inline: 1rem;
    min-height: 2.1rem;
}

/* --- Détail lot : bande photo --- */
.buyer-detail-photo-strip {
    display: flex;
    gap: 3px;
    height: clamp(13rem, 25vw, 21rem);
    overflow: hidden;
    border-radius: 2px;
}

.buyer-detail-photo-strip img {
    flex: 1 1 0;
    min-width: 0;
    object-fit: cover;
    display: block;
}

/* Détail lot : override espacement layout */
.page-buyer-space .buyer-detail-layout {
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Cadastre (colonne gauche) */
.buyer-detail-card {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid rgba(245, 239, 227, 0.1);
    border-radius: 2px;
    background: rgba(6, 13, 9, 0.6);
}

.buyer-cadastre {
    width: 100%;
    border-collapse: collapse;
}

.buyer-cadastre caption {
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 400;
    color: #f5efe3;
    padding-bottom: 1.2rem;
    caption-side: top;
}

.buyer-cadastre th,
.buyer-cadastre td {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(245, 239, 227, 0.07);
    vertical-align: baseline;
    text-align: left;
}

.buyer-cadastre th {
    width: 11rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 239, 227, 0.42);
    padding-right: 1.5rem;
}

.buyer-cadastre td {
    color: rgba(245, 239, 227, 0.9);
}

.buyer-cadastre tr:last-child th,
.buyer-cadastre tr:last-child td {
    border-bottom: 0;
}

.buyer-cadastre-heading {
    margin: 1.75rem 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
}

.buyer-cadastre-desc {
    margin: 0;
    color: rgba(245, 239, 227, 0.7);
    line-height: 1.78;
    font-size: 0.9rem;
}

/* Carte d'intérêt (colonne droite) */
.buyer-interest-card {
    position: sticky;
    top: calc(72px + 3.25rem + 1.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(1.2rem, 2vw, 1.65rem);
    border: 1px solid rgba(197, 175, 120, 0.2);
    border-radius: 2px;
    background: rgba(7, 15, 11, 0.82);
}

.int-card-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(197, 175, 120, 0.7);
}

.buyer-interest-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 400;
    line-height: 1.2;
}

.buyer-interest-card > p {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(245, 239, 227, 0.64);
    line-height: 1.65;
}

.buyer-interest-card .buyer-form {
    margin: 0;
}

/* --- Demandes : liste verticale avec accent tonal --- */
.page-buyer-space .buyer-request-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(245, 239, 227, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.page-buyer-space .buyer-request-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(245, 239, 227, 0.07);
    border-left: 3px solid rgba(245, 239, 227, 0.14);
    padding: clamp(0.9rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
    background: rgba(7, 15, 11, 0.65);
}

.page-buyer-space .buyer-request-card:last-child {
    border-bottom: 0;
}

.page-buyer-space .buyer-request-card.req-tone-pending {
    border-left-color: rgba(197, 175, 120, 0.72);
}

.page-buyer-space .buyer-request-card.req-tone-validated {
    border-left-color: #8ea36f;
}

.page-buyer-space .buyer-request-card.req-tone-refused {
    border-left-color: rgba(182, 72, 72, 0.72);
}

.buyer-req-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.buyer-req-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(0.98rem, 1.5vw, 1.18rem);
    font-weight: 400;
    line-height: 1.25;
}

.buyer-req-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.85rem;
    font-size: 0.76rem;
    color: rgba(245, 239, 227, 0.48);
}

.buyer-req-message {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(245, 239, 227, 0.56);
    font-style: italic;
    border-left: 2px solid rgba(245, 239, 227, 0.1);
    padding-left: 0.9rem;
    line-height: 1.65;
}

/* --- Profil : carte identité + carte préférences --- */
.buyer-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

.buyer-id-card {
    padding: clamp(1.2rem, 2vw, 1.65rem);
    border: 1px solid rgba(245, 239, 227, 0.12);
    border-radius: 2px;
    background: rgba(7, 15, 11, 0.78);
}

.buyer-id-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(245, 239, 227, 0.08);
    flex-wrap: wrap;
}

.buyer-id-card-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
}

.buyer-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(142, 163, 111, 0.35);
    border-radius: 2px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8ea36f;
    background: rgba(142, 163, 111, 0.08);
    white-space: nowrap;
}

.buyer-id-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.buyer-id-table th,
.buyer-id-table td {
    padding: 0.58rem 0;
    border-bottom: 1px solid rgba(245, 239, 227, 0.06);
    vertical-align: baseline;
    text-align: left;
}

.buyer-id-table th {
    width: 7.5rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(245, 239, 227, 0.38);
    padding-right: 0.85rem;
}

.buyer-id-table td {
    color: rgba(245, 239, 227, 0.86);
}

.buyer-id-table tr:last-child th,
.buyer-id-table tr:last-child td {
    border-bottom: 0;
}

.buyer-prefs-card {
    padding: clamp(1.2rem, 2vw, 1.65rem);
    border: 1px solid rgba(197, 175, 120, 0.17);
    border-radius: 2px;
    background: rgba(7, 15, 11, 0.78);
}

.buyer-prefs-card h2 {
    margin: 0 0 1.2rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(245, 239, 227, 0.08);
}

/* --- Points de rupture responsive --- */
@media (max-width: 960px) {
    .lot-reg-inner {
        grid-template-columns: 1fr minmax(8.5rem, auto);
    }

    .lot-reg-identity {
        border-right: 0;
    }

    .lot-reg-specs {
        grid-column: 1;
        grid-row: 2;
        border-right: 0;
        border-top: 1px solid rgba(245, 239, 227, 0.055);
    }

    .lot-reg-end {
        grid-row: 1 / 3;
        border-left: 1px solid rgba(245, 239, 227, 0.055);
    }
}

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

    .page-buyer-space .buyer-detail-layout {
        grid-template-columns: 1fr;
    }

    .buyer-interest-card {
        position: static;
    }

    .byr-filter-cell {
        flex: 1 1 14rem;
    }
}

@media (max-width: 600px) {
    .page-buyer-space .buyer-lot-card {
        grid-template-columns: 64px 1fr;
    }

    .lot-reg-inner {
        grid-template-columns: 1fr;
    }

    .lot-reg-identity {
        border-right: 0;
    }

    .lot-reg-specs {
        grid-column: auto;
        grid-row: auto;
        border-right: 0;
        border-top: 1px solid rgba(245, 239, 227, 0.055);
    }

    .lot-reg-end {
        grid-row: auto;
        border-left: 0;
        border-top: 1px solid rgba(245, 239, 227, 0.055);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .lot-reg-btns {
        flex-direction: row;
    }

    .byr-stat-strip {
        grid-template-columns: 1fr;
    }

    .byr-stat-cell {
        border-right: 0;
        border-bottom: 1px solid rgba(245, 239, 227, 0.08);
    }

    .byr-stat-cell:last-child {
        border-bottom: 0;
    }

    .byr-filter-bar {
        flex-direction: column;
    }

    .byr-filter-cell {
        border-right: 0;
        border-bottom: 1px solid rgba(245, 239, 227, 0.07);
    }

    .byr-filter-cell:last-child {
        border-bottom: 0;
    }

    .byr-filter-actions {
        flex-direction: row;
        border-top: 1px solid rgba(245, 239, 227, 0.07);
        border-bottom: 0;
    }

    .byr-filter-actions .buyer-primary-button,
    .byr-filter-actions .buyer-secondary-link {
        flex: 1;
        width: auto;
    }

    .buyer-detail-photo-strip {
        height: 11rem;
    }
}

/* ==========================================================================
   JETONS ET RESERVATIONS
   Reprend la palette et les gabarits de l'espace acheteur (fonds degrades
   sombres, ink #f5efe4, rayon 8px, titres Georgia). Aucun !important, aucune
   surcharge des classes existantes : uniquement des classes nouvelles.
   ========================================================================== */

.nem-section-title {
    margin: 38px 0 18px;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
}

.nem-visually-hidden {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- Note de facturation (page Mes reservations) --- */

.nem-token-invoice-note {
    margin: 12px 0 12px;
    color: rgba(245, 239, 228, 0.7);
    font-size: 12px;
    line-height: 1.7;
}

/* --- Tableaux --- */

.nem-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(18, 24, 23, 0.94));
}

.nem-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.nem-data-table th,
.nem-data-table td {
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

.nem-data-table thead th {
    border-bottom: 1px solid rgba(245, 239, 228, 0.1);
    color: rgba(245, 239, 228, 0.6);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nem-data-table tbody tr + tr td {
    border-top: 1px solid rgba(245, 239, 228, 0.06);
}

.nem-data-table td {
    color: rgba(245, 239, 228, 0.88);
}

.nem-amount-positive {
    color: #9fcd78;
    font-weight: 700;
}

.nem-amount-negative {
    color: #e5a07b;
    font-weight: 700;
}

.nem-tag {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid rgba(245, 239, 228, 0.16);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nem-tag-actif,
.nem-tag-active,
.nem-tag-payee {
    border-color: rgba(159, 205, 120, 0.36);
    color: #9fcd78;
}

.nem-tag-expire,
.nem-tag-expiree,
.nem-tag-echouee,
.nem-tag-annulee {
    border-color: rgba(229, 160, 123, 0.34);
    color: #e5a07b;
}

.nem-tag-en_attente,
.nem-tag-epuise,
.nem-tag-finalisation {
    border-color: rgba(229, 192, 123, 0.34);
    color: #e5c07b;
}

.nem-inline-form {
    display: inline;
}

.nem-mini-button {
    padding: 5px 11px;
    border: 1px solid rgba(245, 239, 228, 0.18);
    border-radius: 6px;
    background: transparent;
    color: #f8efe1;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.nem-mini-button:hover {
    border-color: rgba(245, 239, 228, 0.4);
}

/* --- Mes reservations --- */

.nem-reservation-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}

.nem-reservation-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    border: 1px solid rgba(159, 205, 120, 0.2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 40, 35, 0.94), rgba(17, 23, 23, 0.97));
}

.nem-reservation-card.is-urgent {
    border-color: rgba(229, 192, 123, 0.36);
}

.nem-reservation-card h3 {
    margin: 10px 0 2px;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.nem-reservation-dept {
    margin: 0;
    color: rgba(245, 239, 228, 0.6);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nem-reservation-specs {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 239, 228, 0.08);
}

.nem-reservation-specs div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 12px;
}

.nem-reservation-specs dt {
    color: rgba(245, 239, 228, 0.62);
}

.nem-reservation-specs dd {
    margin: 0;
    color: #f5efe4;
    font-weight: 600;
}

.nem-reservation-countdown {
    color: #9fcd78;
}

.nem-reservation-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(229, 192, 123, 0.28);
    border-radius: 6px;
    color: #e5c07b;
    font-size: 11px;
    line-height: 1.6;
}

/* --- Bloc de reservation sur la fiche --- */

.nem-reservation-cta {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(159, 205, 120, 0.22);
    border-radius: 8px;
    background: rgba(24, 33, 29, 0.6);
}

.nem-reservation-cta.is-blocked {
    border-color: rgba(245, 239, 228, 0.12);
}

.nem-reservation-cta p {
    margin: 0;
    color: rgba(245, 239, 228, 0.78);
    font-size: 12px;
    line-height: 1.6;
}

.nem-reservation-balance strong {
    color: #9fcd78;
}

.nem-reservation-banner {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(159, 205, 120, 0.34);
    border-radius: 8px;
    background: rgba(31, 45, 34, 0.6);
}

.nem-reservation-banner strong {
    display: block;
    margin-bottom: 5px;
    color: #9fcd78;
    font-size: 13px;
}

.nem-reservation-banner p {
    margin: 0;
    color: rgba(245, 239, 228, 0.78);
    font-size: 12px;
    line-height: 1.6;
}

.nem-reservation-banner a {
    color: #f5efe4;
}

/* Vendeur (identite + coordonnees) : seulement pendant une reservation active. */
.nem-seller-contact {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(159, 205, 120, 0.34);
    border-radius: 8px;
    background: rgba(31, 45, 34, 0.6);
}

.nem-seller-contact h3 {
    margin: 0 0 6px;
    color: #9fcd78;
    font-size: 13px;
}

.nem-seller-contact-name {
    margin: 0 0 10px;
    color: #f5efe4;
    font-size: 15px;
}

.nem-seller-contact-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.nem-seller-contact-list div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
}

.nem-seller-contact-list dt {
    color: rgba(245, 239, 228, 0.6);
    font-size: 12px;
}

.nem-seller-contact-list dd {
    margin: 0;
    color: #f5efe4;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.nem-seller-contact-list a {
    color: #f5efe4;
}

/* Confirmation en deux temps : le resume ouvre le volet, il ne reserve pas. */
.nem-reservation-confirm summary {
    list-style: none;
    margin-top: 12px;
}

.nem-reservation-confirm summary::-webkit-details-marker {
    display: none;
}

.nem-reservation-confirm-body {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(245, 239, 228, 0.12);
    border-radius: 7px;
    background: rgba(12, 17, 16, 0.6);
}

.nem-reservation-confirm-body h3 {
    margin: 0 0 10px;
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.nem-reservation-confirm-body p,
.nem-reservation-confirm-body li {
    color: rgba(245, 239, 228, 0.78);
    font-size: 12px;
    line-height: 1.65;
}

.nem-reservation-confirm-body ul {
    margin: 6px 0 12px;
    padding-left: 18px;
}

.nem-reservation-warning {
    padding: 9px 11px;
    border-left: 2px solid rgba(229, 192, 123, 0.5);
    color: #e5c07b;
}

.nem-reservation-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nem-reservation-confirm-actions form {
    flex: 1 1 190px;
}

.nem-reservation-confirm-actions .nem-secondary-action {
    flex: 1 1 120px;
}

.nem-contact-locked,
.nem-location-unlocked {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 239, 228, 0.12);
    border-radius: 7px;
    color: rgba(245, 239, 228, 0.68);
    font-size: 12px;
    line-height: 1.6;
}

.nem-location-unlocked {
    border-color: rgba(159, 205, 120, 0.3);
    color: #9fcd78;
}

/* --- Cartes reservees dans les listes ---
   Attenuation VISUELLE seulement : la donnee protegee n'est jamais envoyee au
   navigateur d'un acquereur non autorise. Volontairement lisible -- essence,
   surface, volume et prix doivent rester dechiffrables. */

.nem-parcel-card-locked {
    border-color: rgba(229, 192, 123, 0.26);
}

/* L'attenuation porte sur le CONTENU (image + corps), pas sur le conteneur :
   pose sur .nem-parcel-card-link, elle voilait aussi les mentions d'etat et de
   provenance, qui doivent justement rester nettes. */
.nem-parcel-card-locked .nem-parcel-card-link {
    cursor: default;
}

.nem-parcel-card-locked .nem-parcel-card-body {
    opacity: 0.68;
    filter: saturate(0.65);
}

.nem-parcel-card-locked .nem-parcel-media img {
    filter: blur(3px) saturate(0.5) brightness(0.6);
    transform: scale(1.04);
}

.nem-parcel-card-locked:hover .nem-parcel-media img {
    transform: scale(1.04);
}

.nem-parcel-lock {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(10, 14, 13, 0.78);
    font-size: 13px;
}

/* Mention d'etat conservee pour la liste sans visuel de public/ventes.php
   (dashboard-acheteur.php), qui n'a pas de carte-image a coiffer. */
.nem-parcel-reserved-note {
    margin: 0;
    padding: 9px 14px;
    border-top: 1px solid rgba(245, 239, 228, 0.08);
    background: rgba(229, 192, 123, 0.1);
    color: #e5c07b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.nem-parcel-card-mine {
    border-color: rgba(159, 205, 120, 0.34);
}

/* --- Mention d'etat SOUS L'IMAGE de la carte acheteur ---
   Le cadenas signale, ce bandeau nomme. Il etait auparavant rendu tout en bas
   de la carte, sous le prix : a 410 px du haut, personne ne le reliait a
   l'image voilee. Selecteur en deux classes pour passer devant
   `.nem-parcel-card p` (0,1,1) sans recourir a !important. */

.nem-parcel-card .nem-parcel-state-note {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 8px 12px;
    border-top: 1px solid rgba(245, 239, 228, 0.08);
    border-bottom: 1px solid rgba(245, 239, 228, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.nem-parcel-card .nem-parcel-state-note.is-locked {
    background: rgba(229, 192, 123, 0.12);
    color: #e5c07b;
}

.nem-parcel-card .nem-parcel-state-note.is-mine {
    background: rgba(159, 205, 120, 0.12);
    color: #9fcd78;
}

.nem-parcel-card-compact .nem-parcel-state-note {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 0.06em;
}

/* --- Provenance de l'image, en incrustation discrete ---
   Coin bas-gauche : les trois autres coins de la vignette sont deja pris
   (cadenas / "Nouveau" en haut a gauche, favori en haut a droite). z-index 2
   pour passer devant le degrade .nem-parcel-media::after ; le flou du mode
   verrouille ne porte que sur l'<img>, le badge reste donc net. */

.nem-parcel-image-source {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 4px 9px;
    border: 1px solid rgba(245, 239, 228, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(2px);
    background: rgba(8, 12, 11, 0.74);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nem-parcel-image-source-seller_uploaded {
    border-color: rgba(159, 205, 120, 0.4);
    color: #bce28e;
}

.nem-parcel-image-source-illustrative {
    color: rgba(245, 239, 228, 0.74);
}

.nem-parcel-card-compact .nem-parcel-image-source {
    bottom: 8px;
    left: 8px;
    padding: 3px 7px;
    font-size: 8px;
}

/* --- Administration : jetons et reservations --- */

.nem-admin-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 22px;
}

.nem-admin-metric {
    padding: 18px 20px;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.94), rgba(18, 24, 23, 0.94));
}

.nem-admin-metric span {
    display: block;
    margin-bottom: 6px;
    color: rgba(245, 239, 228, 0.62);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nem-admin-metric strong {
    color: #fbf3e6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.nem-admin-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nem-admin-form-row input,
.nem-admin-form-row select {
    padding: 6px 9px;
    border: 1px solid rgba(245, 239, 228, 0.18);
    border-radius: 6px;
    background: rgba(12, 17, 16, 0.7);
    color: #f5efe4;
    font: inherit;
    font-size: 11px;
}

.nem-admin-form-row input[type="number"] {
    width: 66px;
}

.nem-admin-form-row input[type="text"] {
    min-width: 150px;
}

@media (max-width: 900px) {
    .nem-reservation-confirm-actions {
        flex-direction: column;
    }

    .nem-data-table th,
    .nem-data-table td {
        padding: 10px 12px;
    }
}

/* Vente reservee dans la liste publique : attenuation legere, contenu lisible. */
.buyer-sales-card-locked {
    border-color: rgba(229, 192, 123, 0.26);
    opacity: 0.78;
}

/* --- Notifications de l'espace acheteur --- */

.nem-notification-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nem-notification {
    padding: 14px 16px;
    border: 1px solid rgba(245, 239, 228, 0.08);
    border-left: 2px solid rgba(245, 239, 228, 0.14);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(31, 38, 35, 0.9), rgba(18, 24, 23, 0.9));
}

.nem-notification.is-unread {
    border-left-color: #9fcd78;
}

.nem-notification strong {
    display: block;
    margin-bottom: 4px;
    color: #fbf3e6;
    font-size: 13px;
}

.nem-notification p {
    margin: 0 0 6px;
    color: rgba(245, 239, 228, 0.72);
    font-size: 12px;
    line-height: 1.6;
}

.nem-notification a {
    color: #9fcd78;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   PAGE "MES JETONS" : LE PLAN CADASTRAL (refonte du 2026-10-03, CGV 3.2.1)
   Les offres sont dessinees comme des parcelles : "Une fois" d'un cote de la
   limite, "Chaque mois" (1, 3, 5 jetons) de l'autre, de plus en plus grandes.
   Aucun cadre : de la typographie, des limites en pointilles cadastraux et
   des courbes de niveau. Classes nem-cad-* uniquement, aucun !important.
   ========================================================================== */

.nem-cad {
    --cad-ink: #f5efe4;
    --cad-ink-2: rgba(245, 239, 228, 0.74);
    --cad-ink-3: rgba(245, 239, 228, 0.5);
    --cad-line: rgba(245, 239, 228, 0.12);
    --cad-vein: #b9a57a;
    --cad-sap: #9fcd78;
    --cad-amber: #e5c07b;
    --cad-display: var(--font-display, "Palatino Linotype", "Book Antiqua", Georgia, serif);
}

.nem-cad-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px 40px;
}

.nem-cad-head h1 {
    margin: 0;
    color: var(--cad-ink);
    font-family: var(--cad-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.05;
}

.nem-cad-intro {
    max-width: 56ch;
    margin: 12px 0 0;
    color: var(--cad-ink-2);
    font-size: 13px;
    line-height: 1.7;
}

.nem-cad-balance {
    display: grid;
    justify-items: end;
    gap: 2px;
    margin: 0 0 0 auto;
    text-align: right;
}

.nem-cad-balance span {
    color: var(--cad-ink-3);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nem-cad-balance strong {
    color: var(--cad-ink);
    font-family: var(--cad-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
}

.nem-cad-balance em {
    color: var(--cad-ink-3);
    font-size: 12px;
    font-style: normal;
}

.nem-cad-balance em.is-warning,
.nem-cad-sub .is-warning {
    color: var(--cad-amber);
}

/* --- Abonnement en cours --- */

.nem-cad-sub {
    margin-top: 30px;
    padding: 4px 0 4px 18px;
    border-left: 2px solid var(--cad-sap);
    color: var(--cad-ink-2);
    font-size: 13px;
}

.nem-cad-sub p {
    margin: 0 0 4px;
}

.nem-cad-eyebrow {
    color: var(--cad-sap);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nem-cad-sub-main strong {
    color: var(--cad-ink);
    font-family: var(--cad-display);
    font-size: 21px;
    font-weight: 400;
}

.nem-cad-stop {
    margin-top: 8px;
}

.nem-cad-stop summary {
    display: inline-block;
    border-bottom: 1px solid rgba(245, 239, 228, 0.35);
    color: var(--cad-ink);
    cursor: pointer;
    list-style: none;
}

.nem-cad-stop summary::-webkit-details-marker {
    display: none;
}

.nem-cad-stop[open] summary {
    display: none;
}

.nem-cad-confirm {
    margin-top: 6px;
    padding-left: 14px;
    border-left: 2px solid var(--cad-amber);
}

.nem-cad-confirm p {
    max-width: 62ch;
    margin: 0 0 12px;
    color: var(--cad-ink);
}

.nem-cad-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Boutons de la page --- */

.nem-cad-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid var(--cad-ink);
    border-radius: 7px;
    background: var(--cad-ink);
    color: #121816;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.nem-cad-btn.is-ghost {
    border-color: rgba(245, 239, 228, 0.3);
    background: transparent;
    color: var(--cad-ink);
}

.nem-cad-btn.is-warn {
    border-color: var(--cad-amber);
    background: var(--cad-amber);
    color: #1a160c;
}

.nem-cad-btn.is-small {
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
}

.nem-cad-btn[disabled] {
    border-color: rgba(245, 239, 228, 0.2);
    background: transparent;
    color: rgba(245, 239, 228, 0.45);
    cursor: not-allowed;
}

/* --- Le plan --- */

.nem-cad-title {
    margin: 52px 0 6px;
    color: var(--cad-ink);
    font-family: var(--cad-display);
    font-size: 26px;
    font-weight: 400;
}

.nem-cad-notice {
    margin: 0 0 6px;
    color: var(--cad-amber);
    font-size: 13px;
}

.nem-cad-lead {
    max-width: 70ch;
    margin: 0 0 18px;
    color: var(--cad-ink-3);
    font-size: 13px;
}

.nem-cad-defs {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
}

.nem-cad-map {
    container-type: inline-size;
}

.nem-cad-plan {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.nem-cad-plan.is-etroit {
    display: none;
}

@container (max-width: 620px) {
    .nem-cad-plan.is-large {
        display: none;
    }

    .nem-cad-plan.is-etroit {
        display: block;
        max-width: 460px;
        margin: 0 auto;
    }
}

.nem-cad-relief {
    fill: none;
    stroke: rgba(185, 165, 122, 0.09);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.nem-cad-parcel {
    cursor: pointer;
    outline: none;
}

.nem-cad-area {
    fill: rgba(245, 239, 228, 0.015);
    stroke: rgba(245, 239, 228, 0.45);
    stroke-dasharray: 10 4 2 4;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.nem-cad-parcel:hover .nem-cad-area {
    fill: url(#nem-cad-hachure-legere);
}

.nem-cad-parcel[aria-current="true"] .nem-cad-area {
    fill: url(#nem-cad-hachure);
    stroke: var(--cad-sap);
    stroke-dasharray: none;
    stroke-width: 2.4;
}

.nem-cad-parcel:focus-visible .nem-cad-area {
    stroke: var(--cad-sap);
    stroke-dasharray: none;
    stroke-width: 3;
}

.nem-cad-plan text {
    text-anchor: middle;
    pointer-events: none;
}

.nem-cad-num {
    fill: var(--cad-ink-3);
    letter-spacing: 0.08em;
}

.nem-cad-big {
    fill: var(--cad-ink);
    font-family: var(--cad-display);
}

.nem-cad-small {
    fill: var(--cad-ink-2);
}

.nem-cad-price {
    fill: var(--cad-ink);
    font-weight: 700;
}

.nem-cad-mine {
    fill: var(--cad-sap);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nem-cad-limit {
    fill: none;
    stroke: var(--cad-vein);
    stroke-dasharray: 18 6 3 6 3 6;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.nem-cad-place {
    fill: var(--cad-vein);
    font-family: var(--cad-display);
    font-style: italic;
    letter-spacing: 0.32em;
}

/* --- Resume de la parcelle choisie --- */

.nem-cad-summaries {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cad-line);
}

.nem-cad-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
}

.nem-cad-summary[hidden] {
    display: none;
}

.nem-cad-summary p {
    margin: 0;
}

.nem-cad-summary-title {
    color: var(--cad-ink);
    font-family: var(--cad-display);
    font-size: 24px;
}

.nem-cad-summary-price {
    color: var(--cad-ink-3);
    font-size: 13px;
}

.nem-cad-summary-price strong {
    color: var(--cad-ink);
    font-size: 15px;
}

.nem-cad-summary-note {
    margin-top: 4px;
    color: var(--cad-ink-2);
    font-size: 12px;
}

.nem-cad-summary-action {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.nem-cad-current {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 22px;
    border: 1px solid rgba(159, 205, 120, 0.45);
    border-radius: 7px;
    color: var(--cad-sap);
    font-size: 13px;
    font-weight: 700;
}

.nem-cad-soon {
    color: var(--cad-ink-3);
    font-size: 11px;
}

.nem-cad-fine {
    max-width: 90ch;
    margin: 18px 0 0;
    color: var(--cad-ink-3);
    font-size: 12px;
    line-height: 1.7;
}

/* --- Mon registre : des lignes, pas des cadres --- */

.nem-cad-history {
    border-top: 1px solid var(--cad-line);
}

.nem-cad-history details {
    border-bottom: 1px solid var(--cad-line);
}

.nem-cad-history summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 2px;
    color: var(--cad-ink);
    cursor: pointer;
    font-size: 14px;
    list-style: none;
}

.nem-cad-history summary::-webkit-details-marker {
    display: none;
}

.nem-cad-history summary::after {
    margin-left: auto;
    color: var(--cad-ink-3);
    content: "+";
    font-size: 18px;
}

.nem-cad-history details[open] summary::after {
    content: "\2212";
}

.nem-cad-history summary span {
    color: var(--cad-ink-3);
    font-size: 12px;
}

.nem-cad-history .nem-table-wrap {
    margin: 0 0 18px;
    border: 0;
    background: transparent;
}

.nem-cad-empty {
    margin: 0 0 16px;
    color: var(--cad-ink-3);
    font-size: 12px;
}

@media (max-width: 760px) {
    .nem-cad-head h1 {
        font-size: 32px;
    }

    .nem-cad-balance {
        justify-items: start;
        margin-left: 0;
        text-align: left;
    }

    .nem-cad-summary-action {
        justify-items: stretch;
        width: 100%;
    }

    .nem-cad-summary-action .nem-cad-btn,
    .nem-cad-summary-action form {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nem-cad-area {
        transition: none;
    }
}

/* =====================================================================
   ADMINISTRATION -- coquille "balisage" (refonte du 2026-10-03)
   Menu "Itineraires" a gauche ; la rubrique courante porte la marque de
   balisage (trait blanc, trait vert) ; les nombres = ce qui attend.
   ===================================================================== */

.nem-adm {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 14%, rgba(113, 142, 90, 0.1), transparent 34%),
        radial-gradient(circle at 30% 88%, rgba(185, 165, 122, 0.06), transparent 30%),
        linear-gradient(135deg, #070b0b 0%, #0b1110 45%, #080b0b 100%);
    color: #f5efe4;
}

.nem-adm-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: 224px;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    padding: 28px 14px 22px;
    border-right: 1px solid rgba(245, 239, 228, 0.08);
    background: linear-gradient(145deg, rgba(27, 34, 30, 0.97), rgba(12, 17, 16, 0.98));
}

.nem-adm-brand {
    margin: 0 6px;
    color: #f8efe1;
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.1;
    text-decoration: none;
}

.nem-adm-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(245, 239, 228, 0.56);
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nem-adm-cap {
    margin: 0 6px -12px;
    color: rgba(245, 239, 228, 0.56);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nem-adm-nav,
.nem-adm-foot {
    display: grid;
    gap: 2px;
}

.nem-adm-nav a,
.nem-adm-foot a {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    color: rgba(245, 239, 228, 0.76);
    font-size: 13.5px;
    text-decoration: none;
}

.nem-adm-nav a:hover,
.nem-adm-foot a:hover,
.nem-adm-nav a[aria-current="page"],
.nem-adm-foot a[aria-current="page"] {
    color: #f5efe4;
}

.nem-adm-nav a[aria-current="page"],
.nem-adm-foot a[aria-current="page"] {
    background: rgba(245, 239, 228, 0.06);
}

.nem-adm-mark {
    width: 16px;
    height: 11px;
    flex: none;
    background: linear-gradient(to bottom, #f5efe4 0 40%, transparent 40% 60%, #9fcd78 60%);
    opacity: 0;
}

.nem-adm-nav a[aria-current="page"] .nem-adm-mark,
.nem-adm-foot a[aria-current="page"] .nem-adm-mark {
    opacity: 1;
}

.nem-adm-label {
    min-width: 0;
    flex: 1;
}

.nem-adm-count {
    color: #e5c07b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.nem-adm-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 239, 228, 0.12);
}

.nem-adm-main {
    width: min(1180px, calc(100% - 224px));
    margin-left: 224px;
    padding: 44px 48px 88px;
}

.nem-adm + footer {
    margin-left: 224px;
}

@media (max-width: 760px) {
    .nem-adm-side {
        position: static;
        width: auto;
        gap: 12px;
        overflow: visible;
        padding: 16px 16px 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(245, 239, 228, 0.08);
    }

    .nem-adm-cap {
        display: none;
    }

    .nem-adm-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nem-adm-nav a {
        white-space: nowrap;
    }

    .nem-adm-foot {
        display: flex;
        margin-top: 0;
        padding-top: 6px;
    }

    .nem-adm-main {
        width: 100%;
        margin-left: 0;
        padding: 28px 16px 64px;
    }

    .nem-adm + footer {
        margin-left: 0;
    }
}

/* --- Administration : composants "balisage" (pages, sentiers, formulaires) --- */

.nem-b-head {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.nem-b-kicker {
    margin: 0;
    color: rgba(245, 239, 228, 0.56);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nem-b-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(32px, 4.4vw, 46px);
    font-weight: 400;
    line-height: 1.08;
}

.nem-b-sum {
    max-width: 70ch;
    margin: 0;
    color: rgba(245, 239, 228, 0.76);
}

.nem-b-sum strong,
.nem-b-h2 .nem-b-count {
    color: #e5c07b;
    font-weight: 600;
}

.nem-b-flash {
    margin: 0 0 22px;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(159, 205, 120, 0.1);
    color: #cfe6b8;
}

.nem-b-flash.is-error {
    background: rgba(229, 143, 114, 0.12);
    color: #f1b49f;
}

.nem-b-section {
    margin-top: 44px;
}

.nem-b-h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 400;
}

.nem-b-intro {
    max-width: 72ch;
    margin: 0 0 10px;
    color: rgba(245, 239, 228, 0.6);
    font-size: 13.5px;
}

.nem-b-empty {
    margin: 8px 0 0;
    color: rgba(245, 239, 228, 0.56);
    font-style: italic;
}

.nem-b-back {
    display: inline-block;
    margin-bottom: 16px;
    color: rgba(245, 239, 228, 0.7);
    font-size: 13.5px;
}

.nem-b-back:hover {
    color: #f5efe4;
}

.nem-b-bark {
    display: inline-grid;
    width: 32px;
    height: 40px;
    flex: none;
    place-items: center;
    border-radius: 5px 5px 4px 4px;
    background: repeating-linear-gradient(90deg, #2d261d 0 4px, #362d22 4px 6px, #2a231b 6px 11px);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.nem-b-bark svg {
    width: 26px;
    height: 26px;
}

.nem-b-bark.is-small {
    width: 24px;
    height: 30px;
}

.nem-b-bark.is-small svg {
    width: 20px;
    height: 20px;
}

.nem-b-trail {
    position: relative;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.nem-b-trail::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    border-left: 2px dashed rgba(185, 165, 122, 0.34);
    content: "";
}

.nem-b-stop {
    position: relative;
}

.nem-b-step {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    color: inherit;
    cursor: pointer;
    list-style: none;
    text-decoration: none;
}

.nem-b-step::-webkit-details-marker {
    display: none;
}

.nem-b-t1 {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
}

.nem-b-t2 {
    display: block;
    color: rgba(245, 239, 228, 0.56);
    font-size: 13px;
}

.nem-b-t3 {
    font-size: 13.5px;
    text-align: right;
    white-space: nowrap;
}

.nem-b-step:hover .nem-b-t1,
details[open] > .nem-b-step .nem-b-t1,
.nem-b-step:focus-visible .nem-b-t1 {
    text-decoration: underline;
    text-decoration-color: #b9a57a;
    text-underline-offset: 4px;
}

.nem-b-detail {
    margin-left: 50px;
    padding: 4px 0 22px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.12);
}

.nem-b .is-attente {
    color: #e5c07b;
}

.nem-b .is-ok {
    color: #9fcd78;
}

.nem-b .is-tourne {
    color: #c9b383;
}

.nem-b .is-stop {
    color: #f1b49f;
}

.nem-b .is-fin {
    color: rgba(245, 239, 228, 0.56);
}

.nem-b-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
}

.nem-b-facts {
    display: grid;
    align-content: start;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 7px 18px;
    margin: 0;
    font-size: 14px;
}

.nem-b-facts dt {
    color: rgba(245, 239, 228, 0.56);
}

.nem-b-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.nem-b-form {
    display: grid;
    align-content: start;
    gap: 12px;
}

.nem-b-form h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
}

.nem-b-field {
    display: grid;
    gap: 6px;
    color: rgba(245, 239, 228, 0.76);
    font-size: 13px;
}

.nem-b-field input,
.nem-b-field select,
.nem-b-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(245, 239, 228, 0.24);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    color: #f5efe4;
    font: inherit;
    font-size: 14px;
}

.nem-b-field textarea {
    min-height: 86px;
    resize: vertical;
}

.nem-b-field select option {
    background: #10160f;
}

.nem-b-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.nem-b-check input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 2px 0 0;
    accent-color: #9fcd78;
}

.nem-b-hint {
    color: rgba(245, 239, 228, 0.56);
    font-size: 12.5px;
}

.nem-b-error {
    color: #f1b49f;
    font-size: 12.5px;
}

.nem-b-field input[aria-invalid="true"] {
    border-color: rgba(229, 143, 114, 0.7);
}

.nem-b-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nem-b-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #f5efe4;
    border-radius: 7px;
    background: #f5efe4;
    color: #121816;
    cursor: pointer;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.nem-b-btn.is-ghost {
    border-color: rgba(245, 239, 228, 0.32);
    background: transparent;
    color: #f5efe4;
}

.nem-b-btn.is-stop {
    border-color: rgba(229, 143, 114, 0.6);
    background: transparent;
    color: #f1b49f;
}

.nem-b-btn:hover {
    filter: brightness(1.08);
}

.nem-b-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(229, 192, 123, 0.09);
    color: #e5c07b;
    font-size: 13.5px;
}

.nem-b-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
}

.nem-b-filters a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid rgba(185, 165, 122, 0.4);
    border-radius: 4px;
    color: rgba(245, 239, 228, 0.76);
    font-size: 13px;
}

.nem-b-filters a span {
    color: #e5c07b;
}

.nem-b-filters a[aria-current="true"] {
    border-color: #6b5236;
    background: #6b5236;
    color: #fbf3e2;
}

.nem-b-filters a[aria-current="true"] span {
    color: #fbf3e2;
}

.nem-b-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin-top: 14px;
}

.nem-b-search .nem-b-field {
    flex: 1 1 180px;
}

.nem-b-search .nem-b-field.is-short {
    flex: 0 1 160px;
}

.nem-b-group {
    display: grid;
    gap: 12px;
    padding-left: 14px;
    border-left: 2px solid rgba(185, 165, 122, 0.3);
}

.nem-b-group .nem-b-hint {
    margin: 0;
}

.nem-b-tablewrap {
    margin-top: 14px;
    overflow-x: auto;
}

.nem-b-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.nem-b-table th {
    padding: 10px 12px 8px;
    border-bottom: 2px solid rgba(185, 165, 122, 0.32);
    color: rgba(245, 239, 228, 0.56);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.nem-b-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(185, 165, 122, 0.17);
    vertical-align: middle;
}

.nem-b-table a,
.nem-b-pages a,
.nem-b-link {
    text-decoration: underline;
    text-decoration-color: rgba(185, 165, 122, 0.6);
    text-underline-offset: 3px;
}

.nem-b-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nem-b-pages {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 14px;
}

.nem-b-log {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.nem-b-log li {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 239, 228, 0.1);
    font-size: 14px;
}

.nem-b-log time {
    color: rgba(245, 239, 228, 0.56);
    font-size: 13px;
}

.nem-b-log p {
    margin: 2px 0 0;
    color: rgba(245, 239, 228, 0.7);
}

@media (max-width: 760px) {
    .nem-b-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .nem-b-step {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .nem-b-t3 {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }

    .nem-b-detail {
        position: relative;
        z-index: 1;
        margin-left: 0;
        background: #0a0f0e;
    }

    .nem-b-log li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

/* Formulaires anciens inclus tels quels (ex. profil vendeur) */
.nem-b-legacy p {
    margin: 0;
}

.nem-b-legacy label {
    display: grid;
    gap: 6px;
    color: rgba(245, 239, 228, 0.76);
    font-size: 13px;
}

.nem-b-legacy input,
.nem-b-legacy select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(245, 239, 228, 0.24);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    color: #f5efe4;
    font: inherit;
    font-size: 14px;
}

.nem-b-legacy summary {
    color: rgba(245, 239, 228, 0.76);
    cursor: pointer;
}

.nem-b-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    color: rgba(245, 239, 228, 0.7);
    font-size: 13px;
}

.nem-b-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nem-b-h3 {
    margin: 22px 0 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
}

.nem-b-quote {
    margin: 16px 0 6px;
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(245, 239, 228, 0.04);
    color: rgba(245, 239, 228, 0.82);
    font-size: 14px;
}

ul.nem-b-note {
    padding-left: 30px;
}

/* Fiche de moderation : photos du vendeur (recette du 2026-10-04, B-M5). */
.nem-b-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.nem-b-photos a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(245, 239, 228, 0.14);
    border-radius: 6px;
}

.nem-b-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.nem-b-more {
    margin-top: 14px;
}

div.nem-b-step {
    cursor: default;
}

.nem-b-text {
    max-height: 420px;
    margin-top: 10px;
    overflow: auto;
    padding: 14px 16px;
    border-radius: 6px;
    background: rgba(245, 239, 228, 0.04);
    color: rgba(245, 239, 228, 0.82);
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.nem-b-t3 strong {
    font-size: 15px;
}

.nem-b-btn .nem-b-bark {
    margin-left: -6px;
}

/* --- Administration : l'arbre de l'accueil (admin-arbre.js) ---
   Sans JavaScript ou sans WebGL : seule la liste s'affiche (.x-list).
   Quand l'arbre est dessine, le script ajoute .is-3d : l'arbre et ses
   etiquettes remplacent la liste (sauf sur telephone, ou la liste reste). */

.x-wrap {
    container-type: inline-size;
    margin: 10px -48px 0;
}

.x-hero {
    position: relative;
    display: none;
    height: clamp(560px, 56vw, 720px);
    overflow: hidden;
    background:
        radial-gradient(ellipse 40% 42% at 50% 36%, rgba(229, 192, 123, 0.2), transparent 70%),
        radial-gradient(ellipse 70% 58% at 50% 46%, rgba(113, 142, 90, 0.15), transparent 76%);
}

.x-wrap.is-3d .x-hero {
    display: block;
}

.x-sky {
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 196deg at 52% -14%, rgba(240, 208, 143, 0.06) 0deg 2.5deg, transparent 2.5deg 8deg);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 58% 72% at 52% 0%, #000 25%, transparent 76%);
    mask-image: radial-gradient(ellipse 58% 72% at 52% 0%, #000 25%, transparent 76%);
}

.x-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: pan-y;
}

.x-labels {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.x-hero.is-ready .x-labels {
    opacity: 1;
}

.x-lbl {
    position: absolute;
    display: flex;
    align-items: center;
    color: #f5efe4;
    pointer-events: auto;
    text-decoration: none;
    transform: translate(-7px, -50%);
}

.x-lbl.left {
    flex-direction: row-reverse;
    transform: translate(calc(-100% + 7px), -50%);
}

.x-dot {
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 50%;
    background: #e5c07b;
    box-shadow: 0 0 0 5px rgba(229, 192, 123, 0.18), 0 0 24px 5px rgba(229, 192, 123, 0.55);
    transition: transform 0.2s;
}

.x-line {
    width: 46px;
    height: 1px;
    flex: none;
    background: linear-gradient(90deg, rgba(229, 192, 123, 0.9), rgba(229, 192, 123, 0.2));
}

.x-lbl.left .x-line {
    background: linear-gradient(270deg, rgba(229, 192, 123, 0.9), rgba(229, 192, 123, 0.2));
}

.x-txt {
    display: grid;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(8, 12, 11, 0.52);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.x-lbl.left .x-txt {
    justify-items: end;
    text-align: right;
}

.x-num {
    color: #e5c07b;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
}

.x-name {
    max-width: 17ch;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
}

.x-lbl.is-zero .x-dot {
    background: #9fcd78;
    box-shadow: 0 0 0 5px rgba(159, 205, 120, 0.14);
}

.x-lbl.is-zero .x-line {
    background: rgba(159, 205, 120, 0.4);
}

.x-lbl.is-zero .x-num {
    color: rgba(245, 239, 228, 0.56);
    font-size: 15px;
    font-style: italic;
}

.x-lbl.is-zero .x-name {
    color: rgba(245, 239, 228, 0.76);
}

.x-lbl:hover .x-name,
.x-lbl.is-hot .x-name,
.x-lbl:focus-visible .x-name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.x-lbl:hover .x-dot,
.x-lbl.is-hot .x-dot {
    transform: scale(1.3);
}

.x-hint {
    position: absolute;
    right: 48px;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    color: rgba(245, 239, 228, 0.76);
    font-size: 12px;
    pointer-events: none;
    text-shadow: 0 1px 8px #000;
}

.x-motion {
    position: absolute;
    bottom: 14px;
    left: 48px;
    z-index: 4;
    min-height: 34px;
    padding: 4px 14px;
    border: 1px solid rgba(245, 239, 228, 0.3);
    border-radius: 999px;
    background: rgba(8, 12, 11, 0.55);
    color: #f5efe4;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
}

.x-list {
    display: grid;
    margin: 0;
    padding: 0 48px;
    list-style: none;
}

.x-wrap.is-3d .x-list {
    display: none;
}

.x-list a {
    display: grid;
    min-height: 52px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.12);
}

.x-leaf {
    width: 14px;
    height: 14px;
    border-radius: 0 70% 0 70%;
    background: #e5c07b;
}

.x-list a.is-zero .x-leaf {
    background: #9fcd78;
    opacity: 0.6;
}

.x-n {
    color: #e5c07b;
    font-family: var(--font-display);
    font-size: 22px;
}

.x-list a.is-zero .x-n {
    color: rgba(245, 239, 228, 0.56);
    font-size: 14px;
    font-style: italic;
}

@container (max-width: 620px) {
    .x-hero {
        height: auto;
    }

    .x-canvas {
        position: relative;
        inset: auto;
        height: 400px;
    }

    .x-labels,
    .x-hint {
        display: none;
    }

    .x-motion {
        left: 16px;
    }

    .x-wrap.is-3d .x-list {
        display: grid;
    }
}

@media (max-width: 760px) {
    .x-wrap {
        margin: 6px -16px 0;
    }

    .x-list {
        padding: 0 16px;
    }
}

/* Pied de page commun "fil du bois" (pied-de-page.js) : les veines du bois
   traversent le bas de chaque page et s'ecartent autour de chaque lien.
   Fond transparent : le pied de page prend la teinte de la page qui le porte. */
.nem-pied {
    position: relative;
    z-index: 1;
    padding: 34px clamp(16px, 4vw, 48px) 22px;
    background: #070c0a;
    color: #f5efe3;
    font-family: var(--font-body);
}

/* Fondu au-dessus du pied de page : chaque page (photo, degrade, fond uni)
   se fond dans le meme sol sombre, sans ligne de coupure. */
.nem-pied::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(7, 12, 10, 0), #070c0a);
    pointer-events: none;
}

/* Espaces acheteur et vendeur : le menu fixe de gauche (192 px) ne doit pas
   recouvrir le pied de page (meme principe que .nem-adm + footer pour
   l'administration). */
.nem-buyer-app ~ .nem-pied,
.seller-dashboard-app ~ .nem-pied {
    margin-left: 192px;
}

.nem-pied-veines {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 34px, #000 calc(100% - 14px), transparent);
}

.nem-pied-contenu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: 1240px;
    margin: 0 auto;
}

.nem-pied .nem-pied-marque {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f5efe3;
}

.nem-pied-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.nem-pied-liens a {
    padding: 2px;
    font-family: var(--font-display);
    font-size: 15.5px;
    color: #f5efe3;
    text-shadow: 0 0 10px rgba(6, 12, 9, 0.95), 0 0 4px rgba(6, 12, 9, 0.95);
    transition: color 0.25s;
}

.nem-pied-liens a.nem-pied-groupe {
    margin-left: 18px;
}

.nem-pied-liens a:hover,
.nem-pied-liens a:focus-visible,
.nem-pied-marque:hover {
    color: #9fcd78;
}

.nem-pied a:focus-visible {
    outline: 2px solid #9fcd78;
    outline-offset: 3px;
}

.nem-pied .nem-pied-copie {
    position: relative;
    max-width: 1240px;
    margin: 26px auto 0;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(245, 239, 227, 0.56);
}

@media (max-width: 760px) {
    .nem-buyer-app ~ .nem-pied,
    .seller-dashboard-app ~ .nem-pied {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .nem-pied-liens a.nem-pied-groupe {
        margin-left: 0;
    }
}

/* Bloc "Supprimer mon compte" (partials/account-deletion.php), commun aux pages
   Mon compte vendeur et acheteur. La case a cocher echappe aux regles des
   formulaires de ces pages, qui etirent tout champ sur la largeur. */
.nem-suppression-liste {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding-left: 18px;
    color: rgba(245, 239, 228, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.nem-suppression-confirmation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(245, 239, 228, 0.86);
    font-size: 13px;
}

.nem-suppression-confirmation input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #9fcd78;
}

.nem-suppression-lien {
    margin: 16px 0 0;
    font-size: 13px;
}

.nem-suppression-lien a {
    color: #c5af78;
    text-decoration: underline;
    text-underline-offset: 3px;
}
