/* EasyVola — espace client (connexion, demandes, devis) */
.account { width: min(900px, 100% - 32px); padding-block: 36px 80px; display: grid; gap: 18px; }
.auth { max-width: 480px; margin-inline: auto; width: 100%; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 20px; background: var(--blue-soft); border-radius: 12px; }
.tabs button { min-height: 44px; border: 0; border-radius: 9px; background: none; font: 600 .98rem/1 var(--font-head); color: var(--muted); transition: background-color .18s ease, color .18s ease; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-1); }
.auth-form { display: grid; gap: 14px; }

.acc-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-title { font-size: 1.25rem; margin-top: 8px; }
.empty-state { display: grid; gap: 16px; justify-items: center; text-align: center; color: var(--muted); padding-block: 40px; }

/* Statuts */
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; font: 600 .84rem/1.2 var(--font-head); white-space: nowrap; background: var(--blue-soft); color: var(--navy); }
.st-pending_payment, .st-quoted { background: var(--warn-soft); color: var(--warn); }
.st-quote_paid, .st-booked { background: var(--success-soft); color: #14532d; }
.st-cancelled { background: #f1f1f4; color: #55596a; }

/* Carte d'une demande */
.req-card { display: grid; gap: 18px; animation: rise .4s ease-out both; }
.req-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.req-head h2 { font-size: 1.2rem; }
.req-steps { margin: 0; }
.req-steps li span { display: block; font-size: 12.5px; }
.req-svcs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.req-svcs li { display: flex; gap: 12px; align-items: flex-start; }
.req-svcs .ico3d { width: 40px; height: 40px; flex: none; }
.req-svcs strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.req-svcs span { display: block; color: var(--muted); font-size: .93rem; }
.req-fee { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); background: #f6f9ff; border: 1px solid var(--border); }

.pay-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pay-row .pp-slot { flex: 1 1 240px; max-width: 320px; }
.pay-row .pp-slot:empty { display: none; }
.pay-row .help { flex-basis: 100%; }

/* Devis */
.quote { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.quote.open { border: 1.5px solid var(--cta); background: #fffaf6; }
.quote-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.quote-head h3 { font-size: 1.05rem; }
.quote-items { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.quote-items td, .quote-items th { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: start; }
.quote-items td:last-child { text-align: end; white-space: nowrap; }
.quote-items tfoot th, .quote-items tfoot td { border-bottom: 0; font: 700 1.1rem/1.2 var(--font-head); color: var(--navy); }
.quote-note { color: var(--muted); white-space: pre-line; }

/* Lien « Mon espace » dans la barre supérieure */
.top-link { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); white-space: nowrap; }
.top-link:hover { background: rgba(255, 255, 255, .26); }

/* Attente de la session au chargement */
.loading { display: grid; place-items: center; min-height: 240px; }
.loading .spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--navy); animation: spin .7s linear infinite; }

/* Onglets de l'espace client, profil et documents */
.acc-tabs { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.profile-form, .doc-form { display: grid; gap: 16px; }
.profile-form > .btn, .doc-form > .btn { justify-self: start; }
.field input[type=file] { width: 100%; min-height: 48px; padding: 9px 12px; background: #fff; border: 1.5px dashed #9fb4d8; border-radius: 10px; }
.ok-line { display: flex; gap: 6px; align-items: center; color: var(--success); font-weight: 600; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.doc-list strong { display: block; font-family: var(--font-head); }
.doc-list span { display: block; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: #fef2f2; }
