:root {
    --bg: #141414;
    --bg-lot: #1c1c1c;
    --surface: #2b2b2b;
    --surface-2: #353535;
    --line: #262626;
    --line-2: #333333;
    --line-3: #3a3a3a;
    --line-4: #454545;
    --text: #ffffff;
    --text-2: #d9d9d9;
    --muted: #a6a6a6;
    --muted-2: #8c8c8c;
    --muted-3: #6b6b6b;
    --accent: #e30613;
    --accent-hover: #c40510;
    --accent-text: #ff5a63;
    --focus: var(--accent-text);
    --field-line: #7a7a7a;
    --field-bg: #111111;
    --extension: #c73a12;
    --sheet: #f7f7f7;
    --sheet-text: #1c1c1c;
    --sheet-muted: #5c5c5c;
    --sheet-line: #e2e2e2;
    --sheet-text-2: #3a3a3a;
    --sheet-2: #ededed;
    --sheet-line-2: #dadada;
    --sheet-field: #ffffff;
    --sheet-field-line: #8a8a8a;
    --water: #3e8bcf;
    --brick: #a32a07;
    --brick-deep: #7e2006;
    --brick-night: #5a1a06;
    --brick-light: #e0764f;
    --on-brick-line: rgba(255, 255, 255, 0.28);
    --bg-lot-hover: #232323;
    --error: #ff8a8a;
    --lead: #4cc38a;
    --lead-sheet: #17824f;
    --gutter: max(20px, 6vw);
    --topline-h: 6px;
    --header-compact-h: 64px;
    --lot-width: 1280px;
    --lot-gutter: 16px;
    --pill-pad: 16px;
    --title: 'Figtree', sans-serif;
    --body: 'Roboto', sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:hover {
    color: var(--accent-text);
}

input::placeholder {
    color: var(--muted-2);
}

input:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--title);
    font-weight: 300;
}

p {
    margin: 0;
}

[hidden] {
    display: none !important;
}

.icon {
    flex: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--20 {
    width: 20px;
    height: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* En-tête */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(16px, 2vw, 28px) var(--gutter);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 20px);
    text-decoration: none;
}

.brand img {
    display: block;
    height: clamp(44px, 4.4vw, 64px);
    width: auto;
}

.brand__back {
    font-size: 20px;
    color: var(--muted);
}

.brand__sep {
    width: 1px;
    align-self: stretch;
    background: var(--line-2);
}

.brand__label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
}

.pill {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 var(--pill-pad);
    border: 1px solid var(--line-4);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-header--compact {
    height: var(--header-compact-h);
    padding: 0 max(var(--lot-gutter), calc((100% - var(--lot-width)) / 2 + var(--lot-gutter)));
}

.site-header--compact .brand img {
    height: 40px;
}

.site-header__meta {
    font-family: var(--title);
    font-size: 15px;
    color: var(--text-2);
    white-space: nowrap;
}

.site-header__meta span {
    color: var(--muted-2);
}

/* Page de vente */

.hero {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.4vw, 32px);
    max-width: 1100px;
    padding: clamp(48px, 9vw, 128px) var(--gutter) clamp(40px, 6vw, 88px);
}

.kicker {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero h1 {
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: clamp(46px, 7.2vw, 112px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lede {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--text-2);
    max-width: 640px;
    text-wrap: pretty;
}

.dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
    gap: 16px 56px;
    padding-top: 8px;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fact__label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.fact__value {
    font-size: 18px;
}

.signup {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
    padding-top: 12px;
}

.signup label,
.field label {
    font-size: 13px;
    color: var(--muted);
}

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

.input {
    flex: 1 1 240px;
    min-width: 0;
    height: 56px;
    border: 1px solid var(--field-line);
    border-radius: 8px;
    padding: 0 14px;
    font: 500 17px var(--body);
    background: var(--bg-lot);
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 180px;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font: 700 17px var(--body);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.button:hover {
    color: var(--text);
    background: var(--accent-hover);
}

.button--light {
    background: var(--text);
    color: var(--sheet-text);
}

.button--light:hover {
    color: var(--sheet-text);
    background: var(--sheet-2);
}

.button[disabled] {
    background: var(--line-3);
    color: var(--muted);
    font-weight: 500;
    cursor: default;
}

.button[disabled]:hover {
    background: var(--line-3);
    color: var(--muted);
}

.hint {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    text-wrap: pretty;
}

.alert {
    background: var(--surface-2);
    border: 1px solid var(--line-4);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-2);
}

.alert strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text);
}

.flash {
    margin: 16px var(--gutter) 0;
}

.photo {
    aspect-ratio: 2 / 3;
    background: var(--water);
    border-radius: 3px;
    overflow: hidden;
}

.photo img,
.photo video,
.photo iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--line) 10px 20px);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.facts-line {
    font-size: 16px;
    color: var(--muted);
}

.prose {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-2);
    text-wrap: pretty;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-2);
    font: 14px var(--body);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.how {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: clamp(88px, 10vw, 160px) var(--gutter) 0;
    padding-top: 40px;
    border-top: 2px solid var(--brick);
}

.how h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.how__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 32px 40px;
}

.how__grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.how__grid span {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
}

.topline {
    height: var(--topline-h);
    background: linear-gradient(90deg, var(--brick), var(--brick-night));
}

.hero .kicker {
    color: var(--brick-light);
}

.reveal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 640px;
    margin: 0 var(--gutter);
    padding: clamp(28px, 4vw, 56px) 0;
    border-block: 1px solid var(--line-2);
}

.reveal strong {
    font-size: 17px;
}

.reveal span {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
    text-wrap: pretty;
}

.site-footer {
    --focus: var(--text);
    position: relative;
    overflow: hidden;
    margin-top: clamp(72px, 8vw, 120px);
    background: linear-gradient(160deg, var(--brick) 0%, var(--brick-deep) 100%);
    color: var(--text);
}

.site-footer__koi {
    position: absolute;
    top: -40px;
    right: max(-60px, 4vw);
    width: clamp(260px, 30vw, 440px);
    aspect-ratio: 527 / 772;
    background: var(--brick-night);
    opacity: 0.45;
    -webkit-mask: url("../images/illustration-koi-SV4-RZF.svg") no-repeat center / contain;
    mask: url("../images/illustration-koi-SV4-RZF.svg") no-repeat center / contain;
    pointer-events: none;
}

.site-footer__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 64px);
    padding: clamp(48px, 6vw, 88px) var(--gutter) 32px;
}

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 36px 48px;
    max-width: 960px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.site-footer__col address {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;
}

.site-footer__logo {
    display: block;
    align-self: flex-start;
    height: 64px;
    width: auto;
}

.site-footer__title {
    font-family: var(--title);
    font-size: 20px;
}

.site-footer a {
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--text);
}

.site-footer__hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.site-footer__hours dt {
    font-weight: 700;
}

.site-footer__hours dd {
    margin: 0;
}

.site-footer__legal {
    padding-top: 24px;
    border-top: 1px solid var(--on-brick-line);
    font-size: 14px;
}

/* Pages simples : connexion, confirmation, profil */

.page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
    padding: clamp(40px, 7vw, 96px) var(--gutter);
}

.page h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
}

.page h2 {
    font-size: 24px;
}

.page section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line-2);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field .input {
    flex: none;
    height: 48px;
}

.field__error {
    font-size: 13px;
    color: var(--error);
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.45;
}

.check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--accent);
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Fiche lot */

body:has(.lot) {
    background: var(--bg-lot);
}

.lot {
    padding-bottom: calc(var(--bid-h, 420px) + 24px);
}

.gallery__main {
    border-radius: 0;
}

.gallery__main > button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gallery__main > button:focus-visible {
    outline-offset: -4px;
}

.gallery__caption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0 16px 8px;
}

.gallery__thumbs button {
    width: 48px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--line-4);
    border-radius: 4px;
    overflow: hidden;
    background: var(--water);
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
}

.gallery__thumbs button[aria-current='true'] {
    border-color: var(--text);
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.gallery__thumbs .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.94);
}

.zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zoom button {
    position: fixed;
    top: 16px;
    right: 16px;
}

.lot__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 4px;
}

.lot__title h1 {
    font-weight: 400;
    font-size: 32px;
    line-height: 1.1;
}

.lot__subtitle {
    font-size: 14px;
    color: var(--muted);
}

.card {
    margin: 14px 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: 10px;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 14px 16px;
    padding: 10px;
    background: var(--surface);
    border-radius: 10px;
}

.specs div {
    padding: 11px 14px;
    background: var(--surface-2);
    font-size: 15px;
}

.journal__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
}

.journal__head h2 {
    font-size: 20px;
    font-weight: 400;
}

.journal__head span {
    font-size: 13px;
    color: var(--muted);
}

.journal__row {
    display: grid;
    grid-template-columns: 1fr auto 64px;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line-3);
    font-size: 15px;
}

.journal__row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.journal__row strong {
    font-weight: 700;
}

.journal__row time {
    color: var(--muted);
    text-align: right;
}

.journal__empty {
    padding: 10px 0;
    border-top: 1px solid var(--line-3);
    color: var(--muted);
    font-size: 15px;
}

/* Module d'enchère */

.bid {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 26px;
    background: var(--surface);
    border-top: 1px solid var(--line-3);
    box-shadow: 0 -14px 30px -18px rgba(0, 0, 0, 0.6);
}

.bid__ext {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -14px -16px 0;
    padding: 9px 18px;
    background: var(--extension);
    color: var(--text);
    font-size: 13px;
}

.bid__ext b {
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bid__captions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
}

/* Alignés en haut et non sur la ligne de base : celle d'un bloc qui commence par une
   icône est celle de l'icône, pas du texte. Icône et pastille se centrent sur la
   première ligne. */
.bid__caption {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.bid__caption .icon {
    margin-top: calc((1.4em - 16px) / 2);
}

.bid__caption--right {
    flex: none;
    color: var(--muted);
}

.bid__captions [data-el='caption-left'] {
    font-weight: 500;
}

.bid__captions [data-el='caption-right'] {
    color: var(--muted);
    white-space: nowrap;
}

.bid__clock {
    display: none;
    align-items: center;
    gap: 14px;
}

.bid__timer {
    font-size: 84px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.bid__jump {
    padding: 4px 8px;
    border: 1.5px solid var(--extension);
    border-radius: 6px;
    color: var(--extension);
    font-size: 15px;
    font-weight: 700;
}

.bid__extline {
    font-size: 15px;
    line-height: 1.35;
}

.bid__sep {
    display: none;
    height: 1px;
    background: var(--sheet-line);
}

.bid__main {
    display: flex;
    align-items: flex-end;
    /* Le statut se pose sur la ligne de base du montant, pas sur le bas de sa boîte. */
    align-items: last baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.bid__amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bid__amount span:first-child {
    font-size: 12px;
    color: var(--muted);
}

.bid__amount span:last-child {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
}

.bid__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.status--lead {
    color: var(--lead);
    font-weight: 700;
}

.status--out {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--text);
    color: var(--sheet-text);
    font-weight: 700;
}

.status--plain {
    color: var(--muted);
}

.bid .button {
    flex: none;
    width: 100%;
    height: 56px;
    font-size: 16px;
}

.bid__watch {
    align-self: flex-start;
    padding-block: 12px;
    margin-block: -12px;
    font-size: 14px;
    cursor: pointer;
}

.bid .link-button {
    align-self: flex-start;
    padding-block: 12px;
    margin-block: -12px;
}

.bid[data-mode='near'] .button {
    height: 60px;
    font-size: 18px;
}

.bid__custom {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bid__custom .input {
    height: 44px;
    font-size: 16px;
}

/* Fin imminente : la feuille claire et le grand rebours */

.bid[data-mode='near'] {
    gap: 14px;
    padding: 16px 18px 26px;
    background: var(--sheet);
    color: var(--sheet-text);
    color-scheme: light;
    --focus: var(--accent);
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 50px -10px rgba(0, 0, 0, 0.7);
}

.bid[data-mode='near'] .bid__ext {
    margin: -16px -18px 0;
}

.bid[data-mode='near'] .bid__clock-icon {
    display: none;
}

.bid[data-mode='near'] .bid__caption--right {
    color: var(--sheet-muted);
}

.bid[data-mode='near'] .bid__clock {
    display: flex;
}

.bid[data-mode='near'] .bid__sep {
    display: block;
}

.bid[data-mode='near'] .bid__captions {
    font-size: 13px;
    color: var(--sheet-muted);
}

.bid[data-mode='near'] .bid__captions [data-el='caption-left'] {
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bid[data-mode='near'] .bid__captions [data-el='caption-right'],
.bid[data-mode='near'] .bid__amount span:first-child,
.bid[data-mode='near'] .status--plain {
    color: var(--sheet-muted);
}

.bid[data-mode='near'] .bid__amount span:last-child {
    font-size: 32px;
}

.bid[data-mode='near'] .status--out {
    background: var(--sheet-text);
    color: var(--text);
}

.bid[data-mode='near'] .alert {
    background: var(--sheet-2);
    border-color: var(--sheet-line-2);
    color: var(--sheet-muted);
}

.bid[data-mode='near'] .alert strong {
    color: var(--sheet-text);
}

.bid[data-mode='near'] .button[disabled],
.bid[data-mode='near'] .button[disabled]:hover {
    background: var(--sheet-line);
    color: var(--sheet-muted);
}

.bid .button[data-lead='true'],
.bid .button[data-lead='true']:hover {
    background: color-mix(in srgb, var(--lead) 14%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lead) 45%, transparent);
    color: var(--lead);
    font-weight: 700;
}

.bid[data-mode='near'] .status--lead {
    color: var(--lead-sheet);
}

.bid[data-mode='near'] .button[data-lead='true'],
.bid[data-mode='near'] .button[data-lead='true']:hover {
    background: color-mix(in srgb, var(--lead-sheet) 10%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lead-sheet) 40%, transparent);
    color: var(--lead-sheet);
}

.bid[data-mode='near'] .link-button {
    color: var(--sheet-text);
}

.bid[data-mode='near'] .input {
    background: var(--sheet-field);
    color: var(--sheet-text);
    border-color: var(--sheet-field-line);
}

.bid[data-mode='near'] .input::placeholder {
    color: var(--sheet-muted);
}

.bid[data-extended='true'] .bid__timer {
    color: var(--extension);
}

/* Résultat */

.bid[data-mode='result'] {
    gap: 10px;
}

.result {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    color: var(--muted);
}

.result__icon {
    width: 18px;
    height: 18px;
}

.icon__knockout {
    stroke: var(--surface);
    stroke-width: 2.2;
}

.result__when {
    text-transform: none;
}

.result__kicker {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result__title {
    font-family: var(--title);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    text-wrap: balance;
}

.result__amount {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.bid .button--ghost {
    height: 48px;
    margin-top: 8px;
    border: 1px solid var(--line-3);
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.bid .button--ghost:hover {
    background: var(--surface-2);
}

.result__body {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
}

.result__note {
    font-size: 13px;
    color: var(--muted);
}

@media (min-width: 720px), (min-width: 560px) and (max-height: 500px) {
    :root {
        --lot-gutter: 32px;
    }

    .lot {
        padding-bottom: 48px;
    }

    .lot__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
        gap: 40px;
        max-width: var(--lot-width);
        margin: 0 auto;
        padding: 32px var(--lot-gutter) 0;
    }

    .lot__media .photo {
        border-radius: 6px;
    }

    .lot__side {
        display: flex;
        flex-direction: column;
    }

    .bid {
        position: sticky;
        top: 24px;
        margin: 10px 16px 14px;
        border: 1px solid var(--line-3);
        border-radius: 14px;
    }

    .bid[data-mode='near'] {
        border-radius: 14px;
    }

    .bid__ext,
    .bid[data-mode='near'] .bid__ext {
        border-radius: 13px 13px 0 0;
    }
}

@media (min-width: 560px) and (max-height: 560px) {
    .bid {
        position: static;
    }
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Back-office */

.admin {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px var(--gutter) 64px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-inline: calc(-1 * var(--pill-pad));
}

.admin-nav .pill {
    border-color: transparent;
    color: var(--text-2);
}

.admin-nav .pill:hover,
.admin-nav .pill[aria-current='page'] {
    border-color: var(--line-4);
    color: var(--text);
}

.admin__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-2);
}

.admin__head h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.05;
}

.admin__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

.admin section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
}

.admin h2 {
    font-size: 24px;
}

.admin .button {
    flex: none;
    height: 48px;
    font-size: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-3);
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table tr:hover td {
    background: #181818;
}

.table a {
    text-decoration: none;
}

.table__lot strong {
    display: block;
    font-family: var(--title);
    font-weight: 400;
    font-size: 17px;
}

.table__lot span,
.table__sub {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.num {
    text-align: right;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge--running,
.badge--open {
    background: #16361f;
    color: #7fd89a;
}

.badge--scheduled,
.badge--announced,
.badge--published {
    background: #182c44;
    color: #8cbcf0;
}

.badge--sold {
    background: var(--text);
    color: var(--sheet-text);
}

.badge--cancelled {
    background: #3b1414;
    color: #ff9c9c;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form .input {
    flex: 1 1 160px;
    height: 36px;
    font-size: 13px;
}

.button--small {
    height: 36px !important;
    padding: 0 12px;
    font-size: 13px !important;
    font-weight: 500;
    background: var(--surface-2);
}

.button--small:hover {
    background: var(--line-4);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px 20px;
}

.form-grid .field--wide {
    grid-column: 1 / -1;
}

.media-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.media-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 72px auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.media-row__caption,
.media-row__rank {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}

.media-row .input {
    flex: none;
    width: 100%;
}

.media-row__rank .input {
    width: 5ch;
}

.media-row__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 72px;
    overflow: hidden;
    background: var(--water);
    font-size: 11px;
}

.media-row__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-row__move {
    display: flex;
    gap: 4px;
}

.media-drop {
    padding: 12px;
    border: 1px dashed var(--line-4);
    border-radius: 4px;
}

.media-drop.is-over {
    border-color: var(--text);
    background: var(--surface);
}

.media-drop__hint {
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 40em) {
    .media-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line-3);
    border-radius: 12px;
}

.panel legend,
.panel h3 {
    padding: 0;
    font-family: var(--title);
    font-weight: 400;
    font-size: 18px;
}

fieldset.panel {
    margin: 0;
}

.field textarea.input,
textarea.input {
    height: auto;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
}

select.input {
    height: 48px;
}

.notice {
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}

.table-wrap {
    overflow-x: auto;
}

.table__lot {
    min-width: 200px;
}

.table .inline-form {
    flex-wrap: wrap;
    min-width: 200px;
}

.table .inline-form .input {
    flex-basis: 100%;
}

.table--lots td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.table__time {
    white-space: nowrap;
}

.table__time time {
    font-size: 15px;
}

.table__empty {
    color: var(--muted-3);
}

.table tr.is-cancelled td {
    color: var(--muted);
}

.table tr.is-cancelled .table__lot strong {
    text-decoration: line-through;
    text-decoration-color: var(--muted-3);
}

.table__action {
    position: relative;
    width: 1%;
    text-align: right;
}

.cancel summary {
    display: inline-block;
    padding: 4px 0;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

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

.cancel summary:hover,
.cancel[open] summary {
    color: var(--accent-text);
}

.cancel summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.cancel[open] {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 264px;
    padding: 4px 12px 12px;
    background: var(--surface);
    border: 1px solid var(--line-4);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.cancel .inline-form {
    margin-top: 4px;
    text-align: left;
}

.cancel .field__error {
    text-align: left;
}

.button--danger {
    background: #3b1414;
    color: #ff9c9c;
}

.button--danger:hover {
    background: #521a1a;
}

.badge--reserve-not-met {
    background: #3a2a10;
    color: #f0c27a;
}

.open-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-2);
}

.open-pill {
    padding: 5px 11px;
    border-radius: 5px;
    background: var(--sheet);
    color: var(--sheet-text);
    font-size: 14px;
    font-weight: 700;
}

.open-pill--ended {
    background: var(--surface-2);
    color: var(--text);
}

.site-footer__link {
    text-decoration: none;
}

.site-footer__link:hover {
    text-decoration: underline;
}

.lot-grid {
    --lot-gap: clamp(12px, 1.6vw, 24px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(280px, (100% - 2 * var(--lot-gap)) / 3)), 1fr));
    gap: var(--lot-gap);
    padding: 0 var(--gutter);
}

.lot-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-lot);
    color: var(--text);
    text-decoration: none;
}

.lot-card:hover {
    background: var(--bg-lot-hover);
    color: var(--text);
}

.lot-card .photo {
    border-radius: 0;
}

.lot-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: clamp(16px, 1.8vw, 24px);
}

.lot-card__title {
    margin-bottom: 6px;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.1;
}

.lot-card__numeral {
    color: var(--brick-light);
}

.lot-card .facts-line {
    font-size: 14px;
}

.lot-card__figures {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
    font-size: 14px;
    color: var(--text-2);
    text-align: right;
}

.lot-card__amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-align: left;
}

.lot-card__amount small {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.lot-card__status {
    display: flex;
    align-items: center;
    min-height: 26px;
    font-size: 14px;
    color: var(--muted);
}

.lot-card__status .status--lead {
    color: var(--lead);
}

.status--outbid {
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brick);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.lot-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-top: auto;
    border: 1px solid var(--text);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

/* Profil acheteur */

body:has(.flow) {
    background: var(--bg-lot);
}

.flow {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--topline-h) - var(--header-compact-h));
    padding: 0 max(20px, calc((100% - 440px) / 2)) 28px;
}

.flow__progress {
    display: flex;
    gap: 6px;
    padding-top: 20px;
}

.flow__progress span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--line-2);
}

.flow__progress .is-done {
    background: var(--text);
}

.flow__flash {
    margin-top: 20px;
}

.flow__intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
}

.flow__intro h1 {
    font-weight: 400;
    font-size: 30px;
    line-height: 1.1;
    text-wrap: balance;
}

.flow__intro p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-2);
    text-wrap: pretty;
}

.flow__intro b {
    color: var(--text);
}

.flow__intro--done {
    gap: 14px;
    padding-top: 64px;
}

.icon.flow__done {
    width: 40px;
    height: 40px;
    color: var(--text);
}

.flow__done .icon__knockout {
    stroke: var(--bg-lot);
}

.flow__form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.flow__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.flow__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.flow__pair--postal {
    grid-template-columns: 110px 1fr;
}

.flow__pair > .field {
    min-width: 0;
}

.flow__pair-error {
    margin-top: -8px;
}

.field__label {
    font-size: 13px;
    color: var(--muted);
}

.field__optional {
    color: var(--muted-3);
}

.flow .input {
    width: 100%;
    height: 52px;
    border-color: var(--line-4);
    font-size: 16px;
    background: var(--field-bg);
}

.flow .field--error .input {
    border-color: var(--text);
}

.field__hint,
.flow .field__error {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    text-wrap: pretty;
}

.flow .field__error {
    color: var(--text);
}

.locked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--surface);
    border-radius: 8px;
    background: var(--bg-lot-hover);
    color: var(--text-2);
    font-size: 16px;
}

.locked__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.icon--14 {
    width: 14px;
    height: 14px;
}

.consent {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.consent__check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.45;
    text-wrap: pretty;
    cursor: pointer;
}

.consent__check a {
    text-underline-offset: 3px;
}

.consent__check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid var(--muted);
    border-radius: 5px;
    background: transparent center / 14px no-repeat;
    appearance: none;
    cursor: pointer;
}

.consent__check input:checked {
    border-color: var(--text);
    background-color: var(--text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.consent__version {
    padding-left: 34px;
    font-size: 12px;
    color: var(--muted-2);
}

.flow__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

.flow .button {
    flex: none;
    height: 60px;
    border-radius: 10px;
    font-size: 18px;
}

.flow .button--outline {
    border: 1px solid var(--text);
    background: transparent;
    font-size: 17px;
}

.flow .button--outline:hover {
    background: var(--surface-2);
}

.flow__note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
    text-wrap: pretty;
}

.flow__fields--code {
    gap: 12px;
}

.code {
    position: relative;
}

.code__cells {
    display: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
}

.code__cells span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border: 1px solid var(--line-4);
    border-radius: 8px;
    background: var(--field-bg);
    font-size: 26px;
    font-weight: 500;
}

.code__cells .is-current,
.code--error .code__cells span {
    border-color: var(--text);
}

.code--js .code__cells {
    display: grid;
}

.code--js .code__input {
    position: absolute;
    inset: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
}

.code--js .code__input:focus {
    outline: none;
}

.code--js .code__input::selection {
    background: transparent;
}

.flow__links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

.flow__links a {
    text-underline-offset: 3px;
}

.flow__links .link-button {
    color: inherit;
}

.link-button[disabled] {
    text-decoration: none;
    cursor: default;
}

.mini-lot {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 24px -4px 0;
    padding: 10px;
    border-radius: 10px;
    background: var(--surface);
}

.mini-lot .photo {
    flex: none;
    width: 40px;
}

.mini-lot__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}

.mini-lot__body span {
    color: var(--muted);
}

.recap {
    margin: 20px -4px 0;
    padding: 2px 16px;
    border-radius: 10px;
    background: var(--surface);
}

.recap__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line-3);
}

.recap dt {
    font-size: 12px;
    color: var(--muted);
}

.recap dd {
    grid-column: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.recap .recap__action {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 14px;
}

.recap__action a {
    text-underline-offset: 3px;
}

.flow__notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.sheet {
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    height: calc(100% - 96px);
    max-height: none;
    margin: auto auto 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px 22px 0 0;
    background: var(--sheet);
    color: var(--sheet-text);
}

.sheet[open] {
    display: flex;
}

.sheet::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sheet-line);
}

.sheet__head div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sheet__head h2 {
    font-family: var(--body);
    font-size: 16px;
    font-weight: 700;
}

.sheet__head span {
    font-size: 12px;
    color: var(--sheet-muted);
}

.sheet__close {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: 700 15px var(--body);
    cursor: pointer;
}

.sheet__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.55;
    color: var(--sheet-text-2);
}

.sheet__body a {
    color: var(--sheet-text);
    font-weight: 700;
    text-underline-offset: 3px;
}

.sheet__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px 28px;
    border-top: 1px solid var(--sheet-line);
    font-size: 13px;
    color: var(--sheet-muted);
    text-align: center;
}

.sheet .button {
    height: 52px;
    font-size: 16px;
}

.button--dark,
.button--dark:hover {
    background: var(--sheet-text);
    color: var(--text);
}

@media (min-width: 720px) {
    .flow {
        min-height: 0;
        padding-bottom: 64px;
    }

    .flow__actions {
        margin-top: 0;
        padding-top: 32px;
    }
}
