/* ==========================================================================
   ACF COMPUTER - STYLE PAGE MON COMPTE (stylecompte.css)
   ========================================================================== */

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', Arial, sans-serif; color: #0f172a; background: #f8fafc; }

.compte-header {
    background: #050f1b;
    background-image: radial-gradient(circle at 85% 15%, rgba(255,179,0,0.12), transparent 45%);
    color: #fff; padding: 50px 20px 40px 20px; text-align: center;
}
.compte-avatar-wrap { position: relative; width: 80px; margin: 0 auto 14px auto; }
.compte-avatar {
    width: 80px; height: 80px; border-radius: 50%; background: #ffb300; color: #0f172a;
    font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.compte-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compte-avatar-edit-btn {
    position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; border-radius: 50%;
    background: #050f1b; color: #ffb300; border: 3px solid #fff; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform .15s ease;
}
.compte-avatar-edit-btn:hover { transform: scale(1.1); }
.compte-avatar-edit-btn.uploading { pointer-events: none; opacity: .6; }

.recent-orders-list { display: flex; flex-direction: column; gap: 10px; }
.recent-order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #f8fafc; border-radius: 10px; font-size: 13.5px; }
.recent-order-row .ro-num { font-weight: 700; color: #0f172a; display: block; }
.recent-order-row .ro-date { color: #94a3b8; font-size: 12px; }
.recent-order-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.recent-order-badge.en_attente { background:#fff3cd; color:#7a5b00; }
.recent-order-badge.confirmee { background:#e0f2fe; color:#0369a1; }
.recent-order-badge.livree { background:#dcfce7; color:#15803d; }
.recent-order-badge.annulee { background:#fee2e2; color:#b91c1c; }
.recent-orders-empty { color: #94a3b8; font-size: 13.5px; text-align: center; padding: 10px 0; }
.view-all-orders-link { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: #64748b; text-decoration: none; }
.view-all-orders-link:hover { color: #0f172a; }
.compte-header h1 { font-size: 22px; margin: 0 0 4px 0; }
.compte-header p { color: #cbd5e1; font-size: 13.5px; margin: 0; }

.compte-wrapper { max-width: 760px; margin: -30px auto 70px auto; padding: 0 20px; }

.compte-card {
    background: #fff; border-radius: 16px; box-shadow: 0 15px 45px rgba(15,23,42,0.1);
    padding: 28px; margin-bottom: 22px;
}
.compte-card h3 { margin: 0 0 18px 0; font-size: 16px; display:flex; align-items:center; gap:8px; }
.compte-card h3 i { color: #ffb300; }

.compte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compte-field { margin-bottom: 4px; }
.compte-field label { display:block; font-size: 13px; font-weight: 600; color:#334155; margin-bottom: 6px; }
.compte-field input {
    width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.compte-field input:focus { outline: none; border-color: #ffb300; }
.compte-field input:disabled { background: #f1f5f9; color: #94a3b8; }

.btn-compte-save {
    background: #ffb300; color:#0f172a; border:none; padding: 12px 24px; border-radius: 9px;
    font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 8px;
}
.btn-compte-save:disabled { opacity: .55; cursor: not-allowed; }

.compte-message { font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; display: none; }
.compte-message.success { display:block; background:#dcfce7; color:#15803d; }
.compte-message.error { display:block; background:#fee2e2; color:#b91c1c; }

.compte-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.compte-links a {
    flex: 1; min-width: 160px; text-align: center; padding: 12px; border-radius: 10px;
    border: 1px solid #e2e8f0; text-decoration: none; color: #334155; font-size: 13.5px; font-weight: 600;
    transition: background .15s, border-color .15s;
}
.compte-links a:hover { background: #fff8e6; border-color: #ffb300; }
.compte-links a i { margin-right: 6px; color: #ffb300; }

@media (max-width: 620px) {
    .compte-grid { grid-template-columns: 1fr; }
}
