/* ==========================================================================
   CHARTE GRAPHIQUE CENTRALISÉE TRADING-ANGELS
   ========================================================================== */

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-color: #0d9488;
    --accent-color: #f59e0b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* En-tête / Navigation */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header a {
    color: white;
    text-decoration: none;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--accent-color);
}

/* Layout Principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

/* Grille Enchère : 2 Colonnes (Gauches: Mises, Droite: Détails) */
.auction-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Mises à gauche */
.bids-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.bids-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.bids-list ul {
    list-style: none;
}

.bids-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.bids-list li.highest-bid {
    font-weight: bold;
    color: var(--secondary-color);
    background-color: #f0fdf4;
    padding: 0.6rem;
    border-radius: 4px;
}

/* Zone Principale Droite */
.auction-main-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.share-banner {
    background: #e0f2fe;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-banner input {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid #bae6fd;
    border-radius: 4px;
}

.timer-card {
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: #b45309;
}

.price-box {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-box .value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

/* Boutons et formulaires */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-success { background: var(--secondary-color); color: white; }

.bid-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bid-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1.1rem;
}

/* Styles du Podium (Fin d'enchère) */
.closed-auction-container {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 3rem;
    height: 300px;
}

.podium-step {
    flex: 1;
    max-width: 200px;
    border-radius: 8px 8px 0 0;
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rank-1 { background: var(--gold); height: 100%; color: #000; }
.rank-2 { background: var(--silver); height: 80%; color: #000; }
.rank-3 { background: var(--bronze); height: 65%; color: #fff; }

.podium-step .medal { font-weight: bold; font-size: 1.1rem; }
.podium-step .price { font-size: 1.3rem; font-weight: bold; margin-top: 0.5rem; }

/* Alerts */
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #e0f2fe; color: #075985; }

/* Footer */
.main-footer {
    background: #0f172a;
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-links a { color: #94a3b8; text-decoration: none; }
/* Champs de durée */
.duration-inputs {
    display: flex;
    gap: 0.5rem;
}

.duration-inputs input, .duration-inputs select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

/* Page Connexion & Auth */
.card-auth {
    max-width: 450px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.input-code {
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    text-align: center;
}

.auth-helper {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-muted);
}

.btn-block { width: 100%; display: block; text-align: center; }

/* Page Paiement */
.payment-card {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.payment-summary {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.payment-timer {
    background: #fef3c7;
    color: #92400e;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pay-option { margin-bottom: 1rem; }
.btn-pay { width: 100%; padding: 1rem; font-size: 1.1rem; }
.btn-paypal { background: #0070ba; color: white; }
.btn-paypal:hover { background: #005ea6; }

/* Structure du Tableau d'Enchères */
.table-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-top: 1.5rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.responsive-table-wrapper {
    overflow-x: auto;
}

.auction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.auction-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.auction-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.auction-table tbody tr:hover {
    background-color: #f1f5f9;
}

.auction-table tbody tr.row-ended {
    background-color: #fafafa;
    opacity: 0.75;
}

/* Alignements */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Contenu des cellules */
.cell-title strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.seller-info {
    font-size: 0.8rem;
    color: #94a3b8;
}

.price-starting {
    color: #64748b;
}

.price-current strong {
    color: #059669;
    font-size: 1.1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-bids {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-expired {
    background-color: #f1f5f9;
    color: #64748b;
}

/* Boutons */
.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #94a3b8;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
}
#####
.profile-wrapper {
    max-width: 860px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.profile-header {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.form-group label span.required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Radio Selector Cards */
.entity-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.entity-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
}

.entity-card:hover {
    border-color: #94a3b8;
}

.entity-card input[type="radio"] {
    accent-color: #2563eb;
    width: 1.1rem;
    height: 1.1rem;
}

.entity-card.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.entity-card-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

/* File Upload Style */
.file-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
    transition: background 0.2s;
    position: relative;
}

.file-upload-box:hover {
    background: #f1f5f9;
}

.file-upload-box input[type="file"] {
    width: 100%;
    cursor: pointer;
}

.file-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    color: #166534;
    background: #dcfce7;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    font-weight: 500;
}

.btn-submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
}

/* Alert Boxes */
.alert-box {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
}

.alert-warning-custom {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-success-custom {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger-custom {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-danger-custom ul {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
}