/* ============================================================
   WONDER AUCTION – Design System v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0f1d35;
    --navy-light: #1a2d4f;
    --navy-mid: #243b5e;
    --gold: #c8960c;
    --gold-light: #e8b833;
    --gold-soft: #fdf3d7;
    --green: #059669;
    --green-light: #d1fae5;
    --red: #dc2626;
    --red-light: #fee2e2;
    --blue: #2563eb;
    --blue-light: #dbeafe;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg: #f8fafc;
    --bg-warm: #fefce8;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-md: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.1);
    --radius: 10px;
    --radius-lg: 14px;
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { transition: color var(--transition); }
img { max-width: 100%; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    padding: .4rem 0;
    letter-spacing: .3px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar i { margin-right: .15rem; opacity: .7; }
#live-clock { font-variant-numeric: tabular-nums; font-weight: 600; color: rgba(255,255,255,.9); }

/* ============================================================
   SITE HEADER / NAVBAR
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s;
}
.site-header .navbar { padding: .45rem 0; }
.site-logo { height: 50px; width: 150px; object-fit: contain; display: block; }

/* Toggler */
.site-header .navbar-toggler { border: none; padding: .4rem; display: flex; flex-direction: column; gap: 5px; background: transparent; }
.site-header .navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.site-header .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-header .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.site-header .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav links */
.main-nav { gap: .15rem; }
.main-nav .nav-item { position: relative; }
.main-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: .88rem;
    padding: .5rem .9rem !important;
    border-radius: 8px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.main-nav .nav-link:hover { background: var(--bg); color: var(--navy) !important; }
.main-nav .nav-link.active {
    color: var(--navy) !important;
    background: rgba(15,29,53,.06);
    font-weight: 600;
}
.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: .45rem; }

.btn-currency {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 600;
    padding: .32rem .6rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: .25rem;
    transition: all var(--transition);
}
.btn-currency:hover { border-color: var(--navy); color: var(--navy); background: var(--bg); }

.btn-user {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .84rem;
    font-weight: 500;
    padding: .25rem .65rem .25rem .25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: all var(--transition);
}
.btn-user:hover { border-color: var(--navy); background: var(--bg); }
.user-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}
.user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* User menu */
.user-menu { min-width: 240px; padding: .4rem; }
.user-menu .dropdown-header { padding: .6rem .8rem; }
.user-menu .dropdown-item { padding: .5rem .8rem; border-radius: 7px; font-size: .84rem; transition: background .15s; }
.user-menu .dropdown-item:hover { background: var(--bg); }
.user-menu .dropdown-item i { width: 20px; text-align: center; opacity: .6; }

/* Auth buttons */
.btn-login {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: .84rem;
    font-weight: 500;
    padding: .4rem .8rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: all var(--transition);
}
.btn-login:hover { border-color: var(--navy); color: var(--navy); background: var(--bg); }
.btn-signup {
    background: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
    font-size: .84rem;
    font-weight: 700;
    padding: .4rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: all var(--transition);
}
.btn-signup:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,150,12,.3); }

/* Dropdown global */
.site-header .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .35rem;
    margin-top: .5rem !important;
    animation: dropIn .2s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.site-header .dropdown-item { border-radius: 6px; font-size: .84rem; }
.site-header .dropdown-item:hover { background: var(--bg); }
.site-header .dropdown-item.active { background: var(--navy); color: #fff; }
.site-header .dropdown-header { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* Responsive header */
@media (max-width: 991px) {
    .site-header .navbar { padding: .35rem 0; }
    .site-logo { height: 38px; width: 115px; }
    .navbar-collapse { background: var(--white); border-top: 1px solid var(--border); margin-top: .5rem; padding: .8rem 0; }
    .main-nav { margin-bottom: .5rem; }
    .main-nav .nav-link.active::after { display: none; }
    .nav-actions { flex-wrap: wrap; padding-top: .6rem; border-top: 1px solid var(--border-light); gap: .4rem; }
    .btn-login, .btn-signup { flex: 1; justify-content: center; text-align: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--navy);
    background-image: radial-gradient(ellipse at 80% 50%, rgba(26,45,79,.8) 0%, var(--navy) 70%);
    padding: 3.5rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,150,12,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: .8rem; letter-spacing: -.5px; }
.hero .gold { color: var(--gold-light); }
.hero .lead { font-size: 1.05rem; color: rgba(255,255,255,.65); margin-bottom: 1.5rem; max-width: 520px; line-height: 1.7; }
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual .hero-glow {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(200,150,12,.15) 0%, transparent 70%);
    border-radius: 50%;
    position: absolute;
}
.hero-visual .hero-icon {
    font-size: 8rem;
    line-height: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.3));
    animation: heroFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.hero-visual .hero-pigeon-img {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.25));
    animation: heroFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Hero buttons */
.btn-gold {
    background: var(--gold);
    color: var(--navy) !important;
    border: none;
    padding: .7rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(200,150,12,.35);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy) !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,150,12,.45); }
.btn-outline-light-hero {
    background: rgba(255,255,255,.08);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.2);
    padding: .7rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.btn-outline-light-hero:hover { background: rgba(255,255,255,.15); color: #fff !important; border-color: rgba(255,255,255,.35); }

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats .stat-val { font-size: 1.6rem; font-weight: 800; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.hero-stats .stat-lbl { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; margin-top: .1rem; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
}
.section-sub { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   AUCTION CARDS (enchère list)
   ============================================================ */
.auction-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.auction-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.auction-card .card-status {
    padding: .7rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.auction-card .card-status.active { background: var(--green); color: #fff; }
.auction-card .card-status.scheduled { background: var(--blue); color: #fff; }
.auction-card .card-status.ended { background: var(--text-muted); color: #fff; }
.auction-card .card-body { padding: 1.2rem; flex: 1; }
.auction-card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.auction-card .card-footer { padding: .8rem 1.2rem; background: var(--bg); border-top: 1px solid var(--border-light); }

/* Stats row inside cards */
.stat-row { display: flex; gap: .5rem; }
.stat-item {
    flex: 1;
    text-align: center;
    padding: .5rem;
    background: var(--bg);
    border-radius: 8px;
}
.stat-item .val { font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-item .lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }

/* ============================================================
   LOT CARDS (pigeon lots)
   ============================================================ */
.lot-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.lot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; color: inherit; text-decoration: none; }

/* Photo */
.lot-card .lot-img {
    position: relative;
    aspect-ratio: 800 / 550;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1b33 0%, #1b2a4a 100%);
}
.lot-card .lot-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.lot-card .lot-img img.placeholder-img { padding: 1.5rem; }
.lot-card:hover .lot-img img { transform: scale(1.04); }

/* Badges classement / as — sous la bague */
.lot-card .badge-top-left {
    display: flex; flex-wrap: wrap; gap: 3px;
    margin-top: 2px;
    max-width: 100%;
}
.badge-ranking {
    background: #fff3cd;
    color: #856404;
    font-size: .62rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-width: 100%;
}
.badge-ranking i { font-size: .58rem; margin-right: 1px; }
.badge-ace {
    background: linear-gradient(135deg, #f5a623, #d4a843);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(212,168,67,.4);
    max-width: 100%;
}
.badge-ace i { font-size: .55rem; margin-right: 1px; }
.lot-card .badge-status { position: absolute; top: 8px; right: 8px; z-index: 2; }
.lot-card .badge-sold { position: absolute; bottom: 8px; right: 8px; z-index: 2; }

/* Badge Auto clignotant */
.badge-auto-blink { animation: autoBlink 1s ease-in-out infinite; font-weight: 700; }
@keyframes autoBlink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* Compteur SOUS la photo */
.lot-countdown {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: .4rem .6rem;
    font-size: .78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.lot-countdown.ending { background: var(--red); animation: pulseBar 1.5s infinite; }
.lot-countdown.done { background: #6c757d; font-weight: 600; }
.lot-countdown.scheduled { background: #0d6efd; }
@keyframes pulseBar { 0%,100% { opacity: 1; } 50% { opacity: .85; } }

/* Card body */
.lot-card .card-body { padding: .7rem .9rem; flex: 1; display: flex; flex-direction: column; gap: .2rem; }

/* Bague (élément principal) */
.lot-ring {
    font-weight: 800;
    font-size: .85rem;
    color: var(--navy);
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Sexe */
.lot-sex {
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex; align-items: center; gap: .2rem;
}
.lot-sex i { font-size: .9rem; }

/* Nom pigeon (secondaire) */
.lot-pigeon-name {
    font-size: .78rem;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Propriétaire */
.lot-owner {
    font-size: .72rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Acheteur / Enchérisseur */
.lot-bidder {
    font-size: .72rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lot-bidder.won { color: var(--green); font-weight: 600; }

/* Labels texte */
.lot-label {
    font-weight: 700;
    color: #94a3b8;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Footer : Prix + Actions */
.lot-card .card-footer {
    padding: .6rem .9rem;
    background: var(--navy);
    border-top: none;
}
.lot-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.lot-price { display: flex; flex-direction: column; min-width: 0; }
.lot-price-amount {
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold-light, #d4a843);
    line-height: 1.1;
    white-space: nowrap;
}
.lot-price-bids {
    font-size: .65rem;
    color: rgba(255,255,255,.5);
    font-weight: 500;
}
/* Bouton label dans le footer */
.lot-btn-bid {
    background: var(--green, #198754);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.lot-card:hover .lot-btn-bid { background: #146c43; }
.lot-btn-detail {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.lot-card:hover .lot-btn-detail { background: rgba(255,255,255,.22); color: #fff; }

/* Pagination navy */
.pagination .page-link {
    color: var(--navy);
    border-color: var(--border);
    font-size: .85rem;
    font-weight: 600;
    padding: .4rem .7rem;
}
.pagination .page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.pagination .page-item.disabled .page-link { color: #ccc; }

/* Responsive : petits écrans */
@media (max-width: 576px) {
    .lot-ring { font-size: .75rem; }
    .lot-sex { font-size: .65rem; }
    .lot-sex i { font-size: .78rem; }
    .lot-pigeon-name { font-size: .72rem; }
    .badge-ranking { font-size: .56rem; }
    .badge-ace { font-size: .54rem; }
    .lot-price-amount { font-size: .88rem; }
    .lot-countdown { font-size: .7rem; padding: .35rem .5rem; }
    .lot-card .card-body { padding: .6rem .7rem; }
    .lot-card .card-footer { padding: .5rem .7rem; }
    .lot-btn-bid, .lot-btn-detail { font-size: .65rem; padding: .25rem .5rem; }
}

/* Price display */
.price-display {
    background: var(--navy);
    color: var(--gold-light);
    font-weight: 700;
    font-size: .95rem;
    padding: .3rem .7rem;
    border-radius: 6px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   LOT DETAIL PAGE
   ============================================================ */
.lot-hero-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-md);
}
.lot-hero-img img { width: 100%; height: 420px; object-fit: cover; }
.lot-hero-img .placeholder-icon { width: 100%; height: 420px; display: flex; align-items: center; justify-content: center; font-size: 6rem; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.lot-hero-img .overlay-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.lot-hero-img .overlay-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.88));
    padding: 3rem 1.5rem 1.2rem;
    color: #fff;
}
.lot-hero-img .overlay-info h1 { color: #fff; font-size: 1.5rem; margin-bottom: .2rem; }
.lot-hero-img .overlay-countdown {
    position: absolute;
    bottom: 14px; right: 14px;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: .5rem .9rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255,255,255,.1);
    z-index: 2;
}
.lot-hero-img .overlay-countdown.ending { border-color: var(--red); background: var(--red); animation: pulseBar 1.5s infinite; }

/* Bid panel */
.bid-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.bid-panel .panel-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: #fff;
    padding: 1.4rem;
    text-align: center;
}
.bid-panel .panel-header.ended { background: #64748b; }
.bid-panel .panel-header .price { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bid-panel .panel-body { padding: 1.3rem; }

/* ============================================================
   AUCTION HERO (single auction page)
   ============================================================ */
.auction-hero-bar {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.auction-hero-bar::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200,150,12,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auction-hero-bar h1 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }

/* ============================================================
   HOW-IT-WORKS STEPS
   ============================================================ */
.steps-section { background: var(--white); padding: 3.5rem 0; }
.step-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.step-item:hover { background: var(--bg); transform: translateY(-3px); }
.step-num {
    width: 52px; height: 52px;
    background: var(--gold-soft);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--gold);
    margin: 0 auto .8rem;
    transition: all var(--transition);
}
.step-item:hover .step-num { background: var(--gold); color: #fff; transform: scale(1.1); }
.step-item h5 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.step-item p { font-size: .83rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-bar {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-bar::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(200,150,12,.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-bar h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; position: relative; }
.cta-bar p { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-site {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    padding: 3rem 0 0;
    margin-top: 3rem;
    font-size: .86rem;
}
.footer-site h6 { color: var(--gold-light); font-weight: 700; font-size: .78rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .8px; }
.footer-site a { color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition); }
.footer-site a:hover { color: var(--gold-light); }
.footer-site ul { list-style: none; padding: 0; margin: 0; }
.footer-site ul li { margin-bottom: .4rem; }
.footer-site .footer-brand { font-weight: 700; font-size: 1.1rem; color: #fff; display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.footer-site .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.2rem 0;
    margin-top: 2.5rem;
    text-align: center;
    font-size: .78rem;
    color: rgba(255,255,255,.35);
}

/* ============================================================
   DASHBOARD STATS CARDS
   ============================================================ */
.dash-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.dash-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.dash-stat .dash-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dash-stat .dash-icon.blue { background: var(--blue-light); color: var(--blue); }
.dash-stat .dash-icon.purple { background: var(--purple-light); color: var(--purple); }
.dash-stat .dash-icon.green { background: var(--green-light); color: var(--green); }
.dash-stat .dash-icon.gold { background: var(--gold-soft); color: var(--gold); }
.dash-stat .dash-icon.red { background: var(--red-light); color: var(--red); }
.dash-stat .dash-val { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.dash-stat .dash-lbl { font-size: .78rem; color: var(--text-muted); }

/* Dashboard page header */
.dash-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}
.dash-header h1 { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0; }
.dash-header p { color: rgba(255,255,255,.6); font-size: .88rem; margin: .2rem 0 0; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-state .empty-icon {
    width: 80px; height: 80px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--text-muted);
}
.empty-state h4 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.empty-state p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: .82rem; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--navy); }
.breadcrumb-item.active { color: var(--text-secondary); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    padding: .3rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.filter-tab {
    padding: .45rem 1rem;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}
.filter-tab:hover { background: var(--white); color: var(--text); box-shadow: var(--shadow-sm); }
.filter-tab.active { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }
.filter-tab .badge { font-size: .65rem; vertical-align: middle; margin-left: .2rem; }

/* ============================================================
   AUTH PAGES (login, register)
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; }
.auth-left {
    flex: 1;
    background: var(--navy);
    background-image: radial-gradient(ellipse at 30% 80%, rgba(200,150,12,.06) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
}
.auth-right { flex: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.auth-brand .brand-icon { width: 42px; height: 42px; background: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; }
.form-control-auth {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .7rem 1rem .7rem 2.5rem;
    font-size: .92rem;
    transition: all var(--transition);
}
.form-control-auth:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,29,53,.08); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); z-index: 2; font-size: .85rem; }
.btn-auth-submit {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .75rem;
    width: 100%;
    font-weight: 700;
    font-size: .95rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.btn-auth-submit:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,29,53,.2); }
.auth-feature { display: flex; gap: .8rem; margin-bottom: 1.3rem; align-items: flex-start; }
.auth-feature-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .95rem;
}
.auth-feature h5 { font-size: .9rem; font-weight: 600; margin-bottom: .1rem; color: #fff; }
.auth-feature p { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }
@media (max-width: 991px) { .auth-left { display: none; } .auth-right { flex: none; width: 100%; } }

/* ============================================================
   COUNTDOWN SYSTEM
   ============================================================ */
.countdown-timer { display: flex; gap: .35rem; align-items: center; }
.countdown-unit {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: .5rem .6rem;
    min-width: 52px;
    text-align: center;
}
.countdown-value { font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-text { font-size: .55rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; margin-top: .15rem; }
.countdown-separator { font-size: 1.15rem; font-weight: 800; color: rgba(255,255,255,.35); animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.countdown-auto.ending-soon { color: #fff; }
.countdown-badge-dynamic { display: inline-flex; align-items: center; gap: .4rem; background: rgba(0,0,0,.75); color: #fff; padding: .35rem .6rem; border-radius: 6px; font-size: .8rem; font-weight: 600; }
.countdown-badge-dynamic.ending-soon { background: var(--red); }
.countdown-badge-dynamic.active { background: var(--green); }
.countdown-badge-dynamic.scheduled { background: var(--blue); }

.status-countdown { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 20px; font-weight: 600; font-size: .8rem; }
.status-countdown.status-live { background: var(--green); color: #fff; }
.status-countdown.status-live::before { content: ''; width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: liveDot 1.5s infinite; }
@keyframes liveDot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.status-countdown.status-ending { background: var(--red); color: #fff; }
.status-countdown.status-upcoming { background: var(--blue); color: #fff; }

.countdown-timer-mini { display: flex; gap: .2rem; justify-content: center; align-items: center; }
.countdown-unit-mini { background: rgba(255,255,255,.15); padding: .2rem .4rem; border-radius: 4px; min-width: 32px; text-align: center; }
.countdown-value-mini { font-size: .95rem; font-weight: 700; color: #fff; line-height: 1; }
.countdown-label-mini { font-size: .55rem; color: rgba(255,255,255,.6); text-transform: uppercase; }
.countdown-sep-mini { color: rgba(255,255,255,.4); font-weight: 700; animation: blink 1s infinite; }

.countdown-overlay { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 100%); padding: .8rem; display: flex; justify-content: space-between; align-items: center; }
.countdown-overlay .countdown-mini { display: flex; gap: .2rem; }
.countdown-overlay .countdown-mini-unit { background: rgba(255,255,255,.2); padding: .2rem .4rem; border-radius: 4px; text-align: center; min-width: 36px; }
.countdown-overlay .countdown-mini-value { font-size: .95rem; font-weight: 700; color: #fff; }
.countdown-overlay .countdown-mini-label { font-size: .55rem; color: rgba(255,255,255,.65); text-transform: uppercase; }

/* ============================================================
   CARDS & TABLES (Global)
   ============================================================ */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; transition: box-shadow var(--transition); }
.card:hover { box-shadow: var(--shadow-sm); }
.card-header { background: var(--white); border-bottom: 1px solid var(--border-light); font-weight: 600; font-size: .9rem; }
.table { font-size: .88rem; }
.table th { font-weight: 600; color: var(--text-secondary); font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; border-bottom-width: 1px; }
.table td { vertical-align: middle; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border: none; border-radius: var(--radius); font-size: .88rem; }
.alert-success { background: var(--green-light); color: #065f46; }
.alert-danger { background: var(--red-light); color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: var(--blue-light); color: #1e40af; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { font-weight: 600; letter-spacing: .2px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { border-radius: 8px; font-weight: 600; font-size: .88rem; transition: all var(--transition); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-success:hover { background: #047857; border-color: #047857; }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .55rem .85rem;
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,29,53,.08); }
.form-label { font-weight: 500; color: var(--text-secondary); font-size: .85rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy) !important; }
.border-gold { border-color: var(--gold) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-visual { margin-top: 2rem; }
    .dash-header { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (max-width: 767px) {
    .hero { padding: 2.5rem 0 2rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero .lead { font-size: .92rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .hero-stats > div { flex: 1 1 45%; text-align: center; }
    .lot-hero-img img, .lot-hero-img .placeholder-icon { height: 260px; }
    .section-heading { font-size: 1.3rem; }
    .filter-tabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* ========================================================================
   CONFIRM MODAL
   ======================================================================== */
.confirm-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform .3s ease;
}
#confirmModal .modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.04);
}
#confirmModal .modal-body { padding-bottom: .5rem; }
#confirmModal .modal-footer .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: .55rem 1rem;
    font-size: .9rem;
}
#confirmModal .btn-light {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}
#confirmModal .btn-light:hover { background: #e5e7eb; }

/* Animation entrée modal */
#confirmModal.show .confirm-modal-icon {
    animation: confirmBounce .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes confirmBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ========================================================================
   TOAST NOTIFICATIONS
   ======================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
    font-size: .88rem;
    line-height: 1.4;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%) scale(.9);
    transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.app-toast--visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.app-toast--removing {
    animation: toastOut .3s ease forwards;
}
@keyframes toastOut {
    0% { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(60px) scale(.9); }
}

.app-toast__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .9;
}
.app-toast__body {
    flex: 1;
    font-weight: 500;
}
.app-toast__close {
    background: none;
    border: none;
    color: inherit;
    opacity: .6;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 6px;
    flex-shrink: 0;
    transition: opacity .2s;
}
.app-toast__close:hover { opacity: 1; }

/* Barre de progression auto-dismiss */
.app-toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,.35);
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
    width: 100%;
}
@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Responsive toasts */
@media (max-width: 576px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}
