/* La Confrérie du Temps — Enchères
   Monde : une feuille pliée (Miura) qui se déploie. Salle sombre, feuilles coquille d'œuf,
   un seul rose (les points du tampon) réservé à l'état « en direct ». */

@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/oswald.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --room: #181b1b;
  --room-2: #202424;
  --ink: #232626;
  --ink-soft: #4d514e;
  --egg: #f0e7d7;
  --egg-2: #e6dac5;
  --egg-dim: #b9b09f;
  --mountain: #b4a78f;
  --pink: #e44462;
  --pink-deep: #b8284a;
  --line-dark: rgba(240, 231, 215, .14);

  --display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gap: clamp(8px, 1.1vmin, 16px);
  --slant: clamp(14px, 3.4vh, 40px);

  /* Tessellation de Miura : arêtes montagne (gris chaud, plein), vallée (rose, tireté), facettes alternées */
  --creases: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cpolygon points='0,0 60,0 74,40 14,40' fill='%23232626' fill-opacity='.035'/%3E%3Cpolygon points='14,40 74,40 60,80 0,80' fill='%23232626' fill-opacity='.012'/%3E%3Cpolygon points='60,0 120,0 134,40 74,40' fill='%23232626' fill-opacity='.012'/%3E%3Cpolygon points='74,40 134,40 120,80 60,80' fill='%23232626' fill-opacity='.035'/%3E%3Cpath d='M0 0L14 40L0 80M60 0L74 40L60 80M120 0L134 40L120 80' fill='none' stroke='%23b4a78f' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M0 40H120' fill='none' stroke='%23e44462' stroke-opacity='.4' stroke-width='1' stroke-dasharray='5 4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--room);
  color: var(--egg);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: var(--egg); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

* { scrollbar-width: thin; scrollbar-color: var(--mountain) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--mountain); border-radius: 0; }

.num, .price, .tile-amount { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; }

/* Feuille : papier coquille d'œuf + plis */
.sheet {
  background-color: var(--egg);
  background-image: var(--creases);
  background-size: clamp(90px, 9vmin, 150px) auto;
  color: var(--ink);
  position: relative;
}

/* =====================================================================
   ÉCRAN CLIENT
   ===================================================================== */
.stage { height: 100dvh; overflow: hidden; display: grid; place-items: stretch; }

/* --- Attente : le paquet plié --- */
.idle {
  display: grid; place-items: center; align-content: center; gap: clamp(14px, 3vh, 36px);
  padding: 4vmin; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 45%, #232828 0%, var(--room) 70%);
}
.packet {
  width: min(62vmin, 560px); aspect-ratio: 1;
  position: relative; overflow: hidden;
  box-shadow: 0 2.4vmin 6vmin rgba(0,0,0,.55), 0 .4vmin 1vmin rgba(0,0,0,.4);
  animation: packet-in 1.1s var(--ease) both;
}
.packet img { width: 100%; height: 100%; object-fit: cover; }
.packet::before { /* plis par-dessus le tampon */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--creases); background-size: 18% auto; mix-blend-mode: multiply; opacity: .9;
}
.packet::after { /* balayage de lumière le long des plis */
  content: ''; position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.34) 50%, transparent 58%);
  animation: sweep 7s ease-in-out infinite;
}
.idle-line {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .22em;
  font-weight: 400; font-size: clamp(.9rem, 2.2vmin, 1.5rem); color: var(--egg-dim); margin: 0;
}
.idle-line b { color: var(--egg); font-weight: 500; }
.idle-dots { display: inline-flex; gap: .6em; margin-left: .8em; vertical-align: middle; }
.idle-dots i { width: .5em; height: .5em; border-radius: 50%; background: var(--pink); opacity: .25; animation: blink 1.8s infinite; }
.idle-dots i:nth-child(2) { animation-delay: .3s; } .idle-dots i:nth-child(3) { animation-delay: .6s; }

/* --- Lot en direct --- */
.lot {
  display: grid; gap: var(--gap); padding: var(--gap);
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  min-height: 0; perspective: 2200px;
}
.photo {
  display: grid; place-items: center; min-height: 0; overflow: hidden;
  padding: clamp(14px, 3vmin, 44px); padding-right: calc(clamp(14px, 3vmin, 44px) + var(--slant));
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transform-origin: 0 50%;
}
.photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 1.2vmin 1.6vmin rgba(35,38,38,.35)); }
.photo .no-photo { width: min(38vmin, 80%); opacity: .35; mix-blend-mode: multiply; }
.photo-caption {
  position: absolute; left: clamp(14px, 3vmin, 44px); bottom: clamp(10px, 2.4vmin, 32px);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; line-height: 1.05;
}
.photo-caption.cap-ink { color: var(--ink); text-shadow: 0 0 .6em rgba(240,231,215,.85), 0 0 .15em rgba(240,231,215,.9); }
.photo-caption.cap-egg { color: var(--egg); text-shadow: 0 .04em .5em rgba(24,27,27,.9), 0 0 .15em rgba(24,27,27,.8); }
.photo-caption.cap-egg .ref, .photo-caption.cap-ink .ref { color: inherit; }
.photo-caption.cap-plate {
  left: 0; bottom: clamp(10px, 2.4vmin, 32px); padding: .55em 1.2em .55em clamp(14px, 3vmin, 44px);
  background-color: var(--egg); background-image: var(--creases); background-size: 90px auto;
  clip-path: polygon(0 0, 100% 0, calc(100% - .6em) 100%, 0 100%); box-shadow: 0 .6vmin 1.4vmin rgba(35,38,38,.3);
}
.photo-caption .name { display: block; font-size: clamp(1.2rem, 3.6vmin, 2.6rem); font-weight: 600; }
.photo-caption .ref { display: block; margin-top: .3em; font-size: clamp(.8rem, 1.8vmin, 1.2rem); font-weight: 400; color: var(--ink-soft); letter-spacing: .14em; }

.side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--gap); min-height: 0; }

.price-sheet {
  container-type: inline-size;
  padding: clamp(14px, 2.6vmin, 36px) clamp(16px, 3vmin, 40px);
  padding-left: calc(clamp(16px, 3vmin, 40px) + var(--slant) * .6);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
}
.price-label {
  display: flex; align-items: center; gap: .6em; margin: 0;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-weight: 500;
  font-size: clamp(.85rem, 2.2vmin, 1.4rem); color: var(--ink-soft);
}
.live-dot { width: .65em; height: .65em; border-radius: 50%; background: var(--pink); animation: pulse 1.6s infinite; flex: none; }
.price {
  display: block; margin: .05em 0 0; white-space: nowrap; font-weight: 600; line-height: 1;
  font-size: min(21cqw, 20vh); letter-spacing: -.01em; transform-origin: 50% 0;
}
.price.bump { animation: fold-in .7s var(--ease); }
.price-meta {
  display: flex; justify-content: space-between; gap: 1em; margin-top: clamp(8px, 1.6vmin, 20px);
  padding-top: clamp(8px, 1.4vmin, 16px); border-top: 1px dashed rgba(228,68,98,.7);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-weight: 400;
  font-size: clamp(.85rem, 2.1vmin, 1.35rem); color: var(--ink-soft);
}
.price-meta b { color: var(--ink); font-weight: 600; }

.price-sheet.sold { background-color: var(--egg); }
.price-sheet.sold .price-label { color: var(--pink-deep); }
.price-sheet.sold .live-dot { animation: none; }
.price-sheet.sold::after { /* tampon adjugé */
  content: 'Adjugé'; position: absolute; right: clamp(10px, 2vmin, 28px); top: clamp(10px, 2vmin, 28px);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  font-size: clamp(1rem, 3vmin, 2rem); color: var(--pink-deep); border: .14em solid currentColor;
  padding: .1em .5em; transform: rotate(-6deg); animation: stamp .6s var(--ease) both .2s;
}
.price-sheet.sold.unsold::after { content: 'Clôturé'; }

.history {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  padding: clamp(10px, 1.8vmin, 24px) clamp(14px, 2.4vmin, 32px) 0;
  padding-left: calc(clamp(14px, 2.4vmin, 32px) + var(--slant) * .6);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
}
.history h2 {
  margin: 0 0 .5em; font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .2em; font-size: clamp(.8rem, 2vmin, 1.2rem); color: var(--ink-soft);
}
.bids { list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; min-height: 0;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.bid {
  display: grid; grid-template-columns: minmax(3.4em, auto) 1fr auto; align-items: baseline; gap: .8em;
  padding: clamp(5px, 1vmin, 12px) 0; border-bottom: 1px solid rgba(180,167,143,.7);
  transform-origin: 50% 0; backface-visibility: hidden;
}
.bid .delta { font-family: var(--display); font-weight: 500; color: var(--pink-deep); font-size: clamp(.95rem, 2.4vmin, 1.6rem); }
.bid .amount { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 4vmin, 2.8rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.bid .time { font-family: var(--display); font-weight: 300; letter-spacing: .06em; font-size: clamp(.8rem, 1.9vmin, 1.2rem); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bid.newest .amount { color: var(--ink); }
.bid.fresh { animation: unfold .75s var(--ease) both; }
.bids-empty { margin: .2em 0 0; font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-weight: 300; color: var(--ink-soft); font-size: clamp(.9rem, 2.2vmin, 1.4rem); }

/* Déploiement d'un lot : le paquet s'ouvre, chaque feuille pivote sur son pli */
.lot.deploy .photo { animation: open-y 1.1s var(--ease) both; }
.lot.deploy .price-sheet { animation: open-x 1s var(--ease) .18s both; }
.lot.deploy .history { animation: open-x 1s var(--ease) .34s both; }

/* Portrait / mobile : empilé */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  :root { --slant: 0px; }
  .stage { height: auto; min-height: 100dvh; overflow: auto; }
  .lot { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .photo { aspect-ratio: 4 / 3; padding-bottom: clamp(48px, 12vw, 80px); }
  .photo img { max-height: 100%; }
  .price { font-size: min(21cqw, 16vw); }
  .history { min-height: 40vh; }
  .photo, .price-sheet, .history { clip-path: none; padding-left: clamp(14px, 3vw, 40px); }
  .photo { padding-right: clamp(14px, 3vw, 44px); }
}

/* =====================================================================
   ACCUEIL (index)
   ===================================================================== */
.home { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 5vh; padding: 6vmin; text-align: center; }
.home .packet { width: min(34vmin, 260px); animation: none; }
.home h1 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; font-weight: 500; font-size: clamp(1.2rem, 3vmin, 1.8rem); }
.home h1 span { display: block; color: var(--egg-dim); font-weight: 300; letter-spacing: .3em; font-size: .6em; margin-top: .6em; }
.home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); width: min(640px, 100%); }

/* =====================================================================
   BACKOFFICE
   ===================================================================== */
.bo { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.bar {
  display: flex; align-items: center; gap: 14px; padding: 10px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line-dark); background: var(--room-2);
}
.bar img { width: 44px; height: 44px; border-radius: 50%; }
.bar h1 { min-width: 0; margin: 0; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .18em; font-size: 1rem; flex: 1; }
.bar h1 small { display: block; font-weight: 300; letter-spacing: .24em; color: var(--egg-dim); font-size: .72rem; }
.status {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; padding: .35em .9em;
  border: 1px solid var(--line-dark); color: var(--egg-dim); white-space: nowrap;
}
.status[data-s='live'] { border-color: var(--pink); color: var(--egg); }
.status[data-s='live']::before { content: ''; display: inline-block; width: .6em; height: .6em; margin-right: .6em; border-radius: 50%; background: var(--pink); animation: pulse 1.6s infinite; }

.bo main { width: min(1100px, 100%); margin: 0 auto; padding: clamp(14px, 3vw, 32px); display: grid; gap: clamp(18px, 3vw, 32px); align-content: start; }
.panel { display: grid; gap: clamp(14px, 2vw, 24px); }
.panel > h2, .block > h2 {
  margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-weight: 500; font-size: .95rem; color: var(--egg-dim);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: .6em 1.4em;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; font-size: 1.05rem;
  background: transparent; border: 1px solid var(--egg-dim); color: var(--egg); text-decoration: none; border-radius: 0;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:hover { background: rgba(240,231,215,.08); border-color: var(--egg); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.primary:hover { background: #ee5a76; border-color: #ee5a76; }
.btn.primary:disabled { background: transparent; color: var(--egg-dim); border-color: var(--line-dark); }
.btn.danger { border-color: var(--pink); color: var(--egg); }
.btn.danger.armed { background: var(--pink); color: #fff; }
.btn.small { min-height: 40px; font-size: .85rem; padding: .3em 1em; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* Préparation du lot */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; min-height: 260px; aspect-ratio: 4 / 3;
  border: 1px dashed var(--egg-dim); cursor: pointer; overflow: hidden; background: var(--room-2);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--egg-dim);
}
.drop:hover, .drop.over { border-color: var(--pink); color: var(--egg); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--egg); }
.drop .hint { padding: 1em; display: grid; gap: .5em; justify-items: center; }
.drop .hint svg { width: 40px; height: 40px; }
.drop.has .hint { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(24,27,27,.82); padding: .5em; font-size: .8rem; opacity: 0; transition: opacity .2s; }
.drop.has:hover .hint, .drop.has:focus-within .hint { opacity: 1; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-dark); }
.seg button { min-height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--egg-dim); font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; }
.seg button + button { border-left: 1px solid var(--line-dark); }
.seg button:hover { color: var(--egg); }
.seg button[aria-pressed='true'] { background: var(--egg); color: var(--ink); }
.fields { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--egg-dim); }
.inp {
  width: 100%; min-height: 52px; padding: .5em .8em; background: var(--room-2); border: 1px solid var(--line-dark); border-radius: 0; color: var(--egg);
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .03em;
}
.inp:hover { border-color: var(--egg-dim); }
.inp:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.inp::placeholder { color: #6c716d; }
.inp-eur { position: relative; }
.inp-eur::after { content: '€'; position: absolute; right: .8em; top: 50%; transform: translateY(-50%); font-family: var(--display); color: var(--egg-dim); font-size: 1.2rem; pointer-events: none; }
.inp-eur .inp { padding-right: 2em; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps .inp { font-size: 1.1rem; text-align: center; }
.error { margin: 0; color: #ff9db0; font-size: .9rem; }

/* Direct : les trois tuiles-plis */
.live-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.live-thumb { width: clamp(64px, 14vw, 120px); aspect-ratio: 1; object-fit: cover; background: var(--egg); }
.live-name { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: clamp(1.2rem, 4vw, 2rem); line-height: 1.1; }
.live-ref { margin: .2em 0 0; color: var(--egg-dim); font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-weight: 300; }
.big-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em 1em; }
.big-price .price { font-size: clamp(3.4rem, 15vw, 7rem); color: var(--egg); }
.big-price .sub { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--egg-dim); font-weight: 300; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  position: relative; display: grid; place-content: center; gap: .15em; text-align: center; border: 0; border-radius: 0;
  min-height: clamp(130px, 28vh, 260px); padding: 1em .4em;
  background-color: var(--egg); background-image: var(--creases); background-size: 90px auto; color: var(--ink);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform .18s var(--ease), background-color .18s; transform-origin: 50% 0;
}
.tile:hover { background-color: #f6eedf; }
.tile:active, .tile.pressed { transform: perspective(700px) rotateX(14deg) scale(.985); background-color: var(--pink); color: #fff; }
.tile:disabled { opacity: .45; }
.tile-amount { font-size: clamp(1.6rem, 6.5vw, 3.2rem); font-weight: 600; line-height: 1; }
.tile-next { font-family: var(--display); letter-spacing: .08em; font-size: clamp(.8rem, 2.4vw, 1rem); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tile:active .tile-next, .tile.pressed .tile-next { color: #fff; }
.tile kbd { position: absolute; left: 1.4em; top: .5em; font-family: var(--display); font-size: .75rem; color: var(--mountain); }
@media (pointer: coarse) { .tile kbd { display: none; } }
.row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.row .grow { flex: 1 1 220px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; }
.recent li { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 1em; padding: .55em 0; border-bottom: 1px solid var(--line-dark); font-family: var(--display); font-size: 1.1rem; }
.recent .d { color: var(--pink); } .recent .t { color: var(--egg-dim); font-weight: 300; }
.recent .empty { color: var(--egg-dim); display: block; }

.summary { display: grid; gap: 8px; padding: clamp(16px, 3vw, 28px); background: var(--egg); color: var(--ink); background-image: var(--creases); background-size: 100px auto; }
.summary .price { font-size: clamp(3rem, 12vw, 6rem); font-weight: 600; line-height: 1; }
.summary p { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; }

/* Archives */
.archive { display: grid; gap: 10px; }
.arch-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.arch-item img, .arch-item .ph { width: 64px; height: 64px; object-fit: cover; background: var(--egg); }
.arch-item strong { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; font-size: 1.1rem; display: block; }
.arch-item small { color: var(--egg-dim); }
.arch-item .final { font-family: var(--display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--egg-dim); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--egg); color: var(--ink); padding: .7em 1.2em; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; z-index: 10; animation: unfold .5s var(--ease); max-width: 92vw; }

@media (max-width: 720px) {
  .setup { grid-template-columns: 1fr; }
  .drop { min-height: 0; aspect-ratio: 16 / 10; }
  .home-links { grid-template-columns: 1fr; }
  .bar h1 { font-size: .85rem; letter-spacing: .1em; }
  .bar h1 small { display: none; }
  .bar { gap: 10px; }
  .bar .btn.small { white-space: nowrap; padding: .3em .7em; }
  .bar img { width: 36px; height: 36px; }
  .tile { min-height: 150px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   MOUVEMENT : une seule idée — le pli
   ===================================================================== */
@keyframes unfold { from { opacity: 0; transform: perspective(700px) rotateX(-92deg); } to { opacity: 1; transform: none; } }
@keyframes fold-in { 0% { opacity: .2; transform: perspective(900px) rotateX(-78deg); } 100% { opacity: 1; transform: none; } }
@keyframes open-y { from { opacity: 0; transform: rotateY(-96deg); } to { opacity: 1; transform: none; } }
@keyframes open-x { from { opacity: 0; transform: rotateX(-96deg); } to { opacity: 1; transform: none; } }
@keyframes packet-in { from { opacity: 0; transform: perspective(1200px) rotateX(28deg) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.7); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* File d'attente des annonces préparées */
.q-item { grid-template-columns: 64px 1fr auto; }
.q-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.q-actions .btn.small { min-height: 36px; padding: .2em .8em; }
.q-actions .btn[aria-label] { padding: .2em .6em; }
.q-price { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--egg); }
@media (max-width: 640px) { .q-item { grid-template-columns: 64px 1fr; } .q-actions { grid-column: 1 / -1; justify-content: flex-start; } }
