@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==================== VARIABLES ==================== */
:root {
    --bg-primary: #0a111a;
    --bg-secondary: #171b23;
    --bg-card: #1e2430;
    --accent: #a0c213;
    --accent-hover: #8fb510;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border: rgba(160, 194, 19, 0.15);
    --error: #ff5757;
    --success: #4caf50;
    --warning: #ffd34d;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== BACKGROUND ANIMÃ‰ ==================== */
.bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0a111a 0%, #171b23 50%, #0a111a 100%);
    z-index: -2;
}

.bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(160, 194, 19, 0.08) 0%, transparent 70%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(50px); }
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ==================== HEADER ==================== */
.header {
    margin-bottom: 32px;
}

.header-content {
    background: linear-gradient(135deg, rgba(30, 36, 48, 0.95), rgba(23, 27, 35, 0.95));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.title .icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(160, 194, 19, 0.5));
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(160, 194, 19, 0.05);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(160, 194, 19, 0.2);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(160, 194, 19, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.user-farm {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.btn-logout {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.15), rgba(255, 87, 87, 0.05));
    border: 1px solid rgba(255, 87, 87, 0.4);
    color: #ff5757;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.25), rgba(255, 87, 87, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 87, 0.3);
}

.btn-admin {
    background: linear-gradient(135deg, rgba(160, 194, 19, 0.15), rgba(160, 194, 19, 0.05));
    border: 1px solid rgba(160, 194, 19, 0.4);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-admin:hover {
    background: linear-gradient(135deg, rgba(160, 194, 19, 0.25), rgba(160, 194, 19, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 194, 19, 0.3);
}

.btn-back {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.4);
    color: #5865F2;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(88, 101, 242, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

/* ==================== ALERT ==================== */
.alert-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.95), rgba(255, 87, 87, 0.85));
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255, 87, 87, 0.4);
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(76, 175, 80, 0.85));
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.alert.warning {
    background: linear-gradient(135deg, rgba(255, 211, 77, 0.95), rgba(255, 211, 77, 0.85));
    box-shadow: 0 8px 24px rgba(255, 211, 77, 0.4);
    color: #0a111a;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== CONFETTI ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    border-radius: 50%;
    animation: confettiFall linear forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: linear-gradient(135deg, rgba(30, 36, 48, 0.95), rgba(23, 27, 35, 0.95));
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(160, 194, 19, 0.6));
}

.login-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.login-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-login {
    background: linear-gradient(135deg, var(--accent) 0%, #8fb510 100%);
    color: #0a111a;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(160, 194, 19, 0.4);
}

.btn-login:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(160, 194, 19, 0.6);
}

.btn-login .login-icon {
    font-size: 24px;
    margin: 0;
    filter: none;
}

/* ==================== FILTERS ==================== */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(30, 36, 48, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(30, 36, 48, 0.9);
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(160, 194, 19, 0.2), rgba(160, 194, 19, 0.1));
    border-color: var(--accent);
    color: var(--accent);
}

/* ==================== CATALOGUE GRID ==================== */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ==================== AUCTION CARD ==================== */
.auction-card {
    background: linear-gradient(135deg, rgba(30, 36, 48, 0.95), rgba(23, 27, 35, 0.95));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.auction-card:hover::before {
    opacity: 1;
}

/* Card Active (en cours) */
.auction-card.en-cours {
    border: 2px solid var(--accent);
    box-shadow: 0 12px 40px rgba(160, 194, 19, 0.2);
}

.auction-card.en-cours::before {
    opacity: 1;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--warning));
}

/* Image */
.auction-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(10, 17, 26, 0.5);
}

.auction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.auction-card:hover .auction-image {
    transform: scale(1.05);
}

/* Badge statut */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-badge.a_venir {
    background: rgba(255, 211, 77, 0.2);
    border: 1px solid rgba(255, 211, 77, 0.4);
    color: var(--warning);
}

.status-badge.en_cours {
    background: rgba(160, 194, 19, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.terminee {
    background: rgba(160, 160, 160, 0.2);
    border: 1px solid rgba(160, 160, 160, 0.4);
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Countdown */
.countdown {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 17, 26, 0.95);
    border: 1px solid rgba(255, 211, 77, 0.3);
    color: var(--warning);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown.countdown-warning {
    border-color: rgba(255, 165, 0, 0.6);
    color: #ffa500;
    animation: pulse-warning 1s ease-in-out infinite;
}

.countdown.countdown-danger {
    border-color: rgba(255, 87, 87, 0.8);
    color: #ff5757;
    background: rgba(255, 87, 87, 0.1);
    animation: pulse-danger 0.5s ease-in-out infinite;
    font-size: 22px;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-danger {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 87, 87, 0.6);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 87, 87, 0.9);
    }
}

/* Card Content */
.auction-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.auction-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Price Info */
.price-info {
    background: rgba(160, 194, 19, 0.08);
    border: 1px solid rgba(160, 194, 19, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.price-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

/* Winner Info */
.winner-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 211, 77, 0.08);
    border: 1px solid rgba(255, 211, 77, 0.2);
    border-radius: 10px;
    margin-bottom: 16px;
}

.winner-info span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.winner-name {
    color: var(--warning) !important;
    font-weight: 700 !important;
}

/* Mode Secret */
.winner-info.secret-mode {
    background: rgba(160, 194, 19, 0.08);
    border: 1px solid rgba(160, 194, 19, 0.3);
}

.winner-info.secret-mode .winner-name {
    color: var(--accent) !important;
}

.your-bid-indicator {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(160, 194, 19, 0.2);
}

.btn-bid.secret-bid {
    background: linear-gradient(135deg, rgba(160, 194, 19, 0.9), rgba(143, 181, 16, 0.9));
    box-shadow: 0 6px 16px rgba(160, 194, 19, 0.4);
}

.btn-bid.secret-bid:hover {
    box-shadow: 0 8px 20px rgba(160, 194, 19, 0.6);
}

/* Quick Bids */
.quick-bids {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.quick-bid-btn {
    flex: 1;
    padding: 10px 12px;
    background: rgba(160, 194, 19, 0.1);
    border: 1px solid rgba(160, 194, 19, 0.3);
    color: var(--accent);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-bid-btn:hover:not(:disabled) {
    background: rgba(160, 194, 19, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.quick-bid-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Bid Input */
.bid-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 17, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.bid-input::placeholder {
    color: var(--text-secondary);
    font-weight: 500;
}

.bid-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(10, 17, 26, 0.8);
    box-shadow: 0 0 0 3px rgba(160, 194, 19, 0.1);
}

/* Bid Button */
.btn-bid {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(160, 194, 19, 0.3);
}

.btn-bid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(160, 194, 19, 0.5);
}

.btn-bid:active {
    transform: translateY(0);
}

.btn-bid:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Quick Bids */
.quick-bids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.quick-bid-btn {
    padding: 10px 12px;
    background: rgba(160, 194, 19, 0.1);
    border: 1px solid rgba(160, 194, 19, 0.3);
    border-radius: 10px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-bid-btn:hover:not(:disabled) {
    background: rgba(160, 194, 19, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.quick-bid-btn:active:not(:disabled) {
    transform: translateY(0);
}

.quick-bid-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .title {
        font-size: 24px;
    }

    .user-profile {
        width: 100%;
        justify-content: space-between;
    }

    .catalogue-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 24px;
    }

    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

/* ==================== LOADING ANIMATION ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(160, 194, 19, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ==================== FOOTER ==================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(10, 17, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(160, 194, 19, 0.3);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

/* ==================== DISCOUNT BADGE ==================== */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff5757, #ff3d3d);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 87, 87, 0.4);
    z-index: 10; 
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ==================== IMROVED VISIBILITY BADGES ==================== */
.status-badge {
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.status-badge.a_venir {
    background: rgba(255, 211, 77, 0.9); /* Opaque */
    color: #1a1a1a;
    border: 1px solid #ffd34d;
    text-shadow: none;
}

.status-badge.en_cours {
    background: rgba(160, 194, 19, 0.9); /* Opaque */
    color: #0a111a;
    border: 1px solid #a0c213;
    text-shadow: none;
}

.status-badge.terminee {
    background: rgba(30, 36, 48, 0.9); /* Opaque */
    color: #ffffff;
    border: 1px solid #a0a0a0;
}

/* ==================== CORRECTIFS FINAUX ==================== */

/* FOOTER EXACT LOTO */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    background: #0a111a; /* Fond uni comme Loto probablement */
    border-top: 1px solid rgba(160, 194, 19, 0.2);
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    z-index: 9999;
}

/* BOUTON DELETE TEXTE */
.btn-danger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white !important;
    font-size: 14px !important;
}

.btn-danger span {
    display: inline-block !important; 
}

/* BADGE DISCOUNT */
.discount-badge {
    display: block !important; /* Force display if logic adds class */
    z-index: 100 !important;
    box-shadow: 0 4px 15px rgba(255, 87, 87, 0.6) !important;
    background: #ff5757 !important;
}

/* BADGES VISIBILITÉ OPTIMALE */
.status-badge {
    opacity: 1 !important;
    background-color: #ffd34d !important; /* Jaune par défaut */
    color: black !important;
    font-weight: 800 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.status-badge.en_cours {
    background-color: #a0c213 !important; /* Vert */
    color: black !important;
}

.status-badge.terminee {
    background-color: #333 !important;
    color: white !important;
}

/* ==================== CORRECTIFS V3 (UI POLISH) ==================== */

/* 1. FOOTER FLUIDE */
body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

footer {
    position: relative !important; /* Plus de fixed */
    margin-top: auto !important; /* Pousse vers le bas */
    width: 100%;
    padding: 24px 0;
    background: #0a111a !important;
    border-top: 1px solid rgba(160, 194, 19, 0.2);
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    z-index: 10;
}

/* 2. BOUTONS ADMIN COULEURS */
.btn-start {
    background: rgba(160, 194, 19, 0.1);
    border: 1px solid rgba(160, 194, 19, 0.3);
    color: #a0c213 !important; /* VERT */
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-stop, .btn-delete {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    color: #ff5757 !important; /* ROUGE */
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-delete:hover, .btn-stop:hover {
    background: rgba(255, 87, 87, 0.2);
    border-color: #ff5757;
}

.btn-start:hover {
    background: rgba(160, 194, 19, 0.2);
    border-color: #a0c213;
}

/* 3. BADGES STATUT (Clean) */
.status-badge {
    border: none !important; /* Plus de contour blanc */
    opacity: 0.9 !important; /* Légère transparence */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* 4. BADGE REDUCTION (Mieux placé) */
.discount-badge {
    position: absolute !important;
    top: auto !important;
    bottom: 12px !important;    /* En bas à droite de l'image */
    right: 12px !important;
    left: auto !important;
    
    background: #ff5757 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    z-index: 20 !important;
    transform: none !important;
    display: block !important;
}

/* ==================== CORRECTIFS V4 (FEEDBACK) ==================== */

/* 1. BOUTON LANCER (BLEU) */
.btn-start {
    color: #5865F2 !important; /* Discord Blue */
    border-color: #5865F2 !important;
    background: rgba(88, 101, 242, 0.1) !important;
}
.btn-start:hover {
    background: rgba(88, 101, 242, 0.2) !important;
}

/* 2. BOUTON ARCHIVER TOUT (VERT) */
.btn-archive {
    background: rgba(160, 194, 19, 0.1);
    border: 1px solid rgba(160, 194, 19, 0.3);
    color: #a0c213 !important; /* Agri Green */
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.btn-archive:hover {
    background: rgba(160, 194, 19, 0.2);
    border-color: #a0c213;
    transform: translateY(-2px);
}

/* 3. TAGS OPACITÉ 0.8 */
.status-badge {
    opacity: 0.8 !important;
}
