/**
 * Enchères — la page dessinée par Claude Design (Chemin d'achat, § 06).
 *
 * Une enchère vit dans un direct, pas sur une page : on ne mise pas d'ici.
 * Trois états, trois chiffres — prix de départ, enchère actuelle, prix
 * final — et chaque bouton fait ce que l'état permet : entrer, être
 * prévenu, revoir.
 *
 * Le rouge est #ff6b6b, celui du direct partout ailleurs ; l'ancien
 * #ef2135 n'appartenait à aucune palette. Le compte à rebours est en
 * ambre : c'est ce qui se passe maintenant, pas une alerte.
 *
 * La barre du haut vit dans css/barre.css — aucune règle .nav* ni
 * .fy-outil* ici, elle reprendrait le dessus.
 */

body {
  background: var(--fy-nuit, #07071a);
  color: var(--fy-encre, #f2f1f7);
  font-family: var(--font-body, 'Instrument Sans', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
}
*, *::before, *::after { box-sizing: border-box; }

.en-page { max-width: 1280px; margin: 0 auto; padding: 34px 32px 56px; }

.en-tete { max-width: 720px; margin-bottom: 30px; }
.en-tete h1 {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-size: 2.5rem; font-weight: 400; line-height: 1.1;
}
.en-tete p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--fy-corps, #d6d4e4); text-wrap: pretty; }

/* ── Les trois filtres ───────────────────────────────────────────── */
.en-filtres { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.en-filtre {
  height: 44px; padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  background: none; color: var(--fy-gris, #a5a3bc);
  font-family: inherit; font-size: .875rem; cursor: pointer;
}
.en-filtre:hover { color: var(--fy-encre, #f2f1f7); }
.en-filtre[aria-pressed="true"] {
  border: 0; background: var(--fy-violet, #8b7bff);
  color: var(--fy-nuit, #07071a); font-weight: 600;
}

/* ── Les cartes ──────────────────────────────────────────────────── */
.en-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.en-carte {
  display: block; text-decoration: none;
  border: 1px solid var(--fy-bord, rgba(255,255,255,.08)); border-radius: 15px;
  overflow: hidden; background: var(--fy-carte, #0c0c24);
}
.en-carte.en-vivante { border-color: rgba(255, 107, 107, .35); }
.en-image {
  aspect-ratio: 4 / 3; background: var(--fy-surface, #14142e); position: relative;
  overflow: hidden;
}
.en-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.en-carte.en-finie .en-image { opacity: .55; }

.en-etat {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px;
  border-radius: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .69rem; letter-spacing: .07em;
}
.en-etat-cours {
  background: rgba(255, 107, 107, .16); border: 1px solid rgba(255, 107, 107, .4);
  color: var(--fy-rouge, #ff6b6b);
}
.en-etat-cours::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--fy-rouge, #ff6b6b);
  animation: en-pouls 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .en-etat-cours::before { animation: none; } }
@keyframes en-pouls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.en-etat-annoncee {
  background: rgba(240, 180, 92, .12); border: 1px solid rgba(240, 180, 92, .32);
  color: var(--fy-ambre, #f0b45c);
}
.en-etat-finie {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--fy-gris, #a5a3bc);
}

.en-corps { padding: 18px 20px 20px; }
.en-atelier { font-size: .81rem; color: var(--fy-sourd, #6e6c88); margin-bottom: 6px; }
.en-titre { font-size: 1rem; color: var(--fy-encre, #f2f1f7); line-height: 1.4; margin-bottom: 16px; }
.en-carte.en-finie .en-titre { color: var(--fy-gris, #a5a3bc); }

.en-chiffres { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.en-chiffre-mot { font-size: .78rem; color: var(--fy-sourd, #6e6c88); margin-bottom: 3px; }
.en-somme {
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-size: 1.75rem; line-height: 1; color: var(--fy-encre, #f2f1f7);
}
.en-somme.en-actuelle { color: var(--fy-cyan, #5cd6e8); }
.en-somme.en-passee { color: var(--fy-gris, #a5a3bc); }
.en-droite { text-align: right; }
.en-compte {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 1.25rem; line-height: 1; color: var(--fy-ambre, #f0b45c);
  font-variant-numeric: tabular-nums;
}
.en-quand {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .94rem; line-height: 1.3; color: var(--fy-gris, #a5a3bc);
}
.en-carte.en-finie .en-quand { color: var(--fy-sourd, #6e6c88); }

.en-remportee { margin: 10px 0 0; font-size: .78rem; color: var(--fy-sourd, #6e6c88); }
.en-mises { margin: 10px 0 0; font-size: .78rem; color: var(--fy-sourd, #6e6c88); }

.en-bouton {
  height: 46px; margin-top: 18px; width: 100%; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: .91rem; font-family: inherit; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  background: none; color: var(--fy-encre, #f2f1f7);
}
.en-bouton:hover { background: rgba(255, 255, 255, .06); }
.en-bouton.en-entrer {
  border: 0; background: var(--fy-rouge, #ff6b6b);
  color: var(--fy-nuit, #07071a); font-weight: 600;
}
.en-bouton.en-entrer:hover { filter: brightness(1.08); }
.en-bouton.en-revoir { border-color: rgba(255, 255, 255, .1); color: var(--fy-sourd, #6e6c88); }
.en-bouton.en-revoir:hover { color: var(--fy-gris, #a5a3bc); }
.en-bouton[aria-pressed="true"] { border-color: rgba(139, 123, 255, .5); color: var(--fy-violet-vif, #a395ff); }

/* ── Le vide ─────────────────────────────────────────────────────── */
.en-vide {
  grid-column: 1 / -1; text-align: center; padding: 64px 20px;
  color: var(--fy-sourd, #6e6c88);
}
.en-vide h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-size: 1.25rem; font-weight: 400; color: var(--fy-gris, #a5a3bc);
}
.en-vide p { margin: 0; font-size: .875rem; }

/* ── Les largeurs ────────────────────────────────────────────────── */
@media (max-width: 1100px) { .en-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .en-page { padding: 24px 16px 96px; }
  .en-grille { grid-template-columns: 1fr; }
  .en-tete h1 { font-size: 1.9rem; }
}
