/* ==========================================================================
   MSF Telecom · espace client, suivi de commande
   ========================================================================== */
.g { background: linear-gradient(100deg, #4A12E7 0%, #B126C0 25%, #E0275A 50%, #F49233 75%, #4A12E7 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: priceflow 8s linear infinite; }
.form__msg { min-height: 1.2em; font-size: 14px; color: var(--gray); }
.form__msg.is-ok { color: #1f8a4c; }
.form__msg.is-bad { color: var(--red); }
.loading { display: grid; place-items: center; padding: 60px; }
.loading i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, .08); border-top-color: var(--cta); animation: spin .8s linear infinite; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* connexion */
.auth { display: grid; grid-template-columns: 1fr 460px; gap: clamp(30px, 6vw, 100px); align-items: center; padding-top: clamp(10px, 3vw, 40px); }
.auth__intro .phead__title { margin: 18px 0 20px; }
.auth__perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.auth__perks li { position: relative; padding-left: 28px; }
.auth__perks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--coral)); }
.auth__perks li::after { content: ''; position: absolute; left: 5.5px; top: calc(.2em + 5.5px); width: 6px; height: 3.5px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.auth__card { display: grid; gap: 12px; padding: 28px; border-radius: 28px; background: var(--cream); }
.auth__card h2 { font-size: 24px; letter-spacing: -.02em; }
.auth__card .fld input { background: #fff; }
.auth__card .btn { height: 54px; }
.auth__seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 4px; background: #fff; }
.auth__seg button { height: 40px; border-radius: 999px; font-size: 14.5px; color: #55555a; transition: background-color .3s, color .3s; }
.auth__seg button.is-on { background: var(--ink); color: #fff; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.auth__links button, .alink { font-size: 14px; color: #55555a; text-decoration: underline; text-underline-offset: 3px; }
.alink--danger { color: var(--red); }
.auth__fine { font-size: 13px; line-height: 1.5; color: var(--gray); margin-top: 6px; }
.auth__fine a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* onglets */
.atabs { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.atabs button { position: relative; flex: none; padding: 0 0 14px; font-size: 18px; color: var(--gray); }
.atabs button[aria-selected="true"] { color: var(--ink); }
.atabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.atabs__out { margin-left: auto; font-size: 14px !important; text-decoration: underline; text-underline-offset: 3px; }
.apanel { display: grid; gap: 12px; max-width: 900px; }
.aempty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 34px; border-radius: 24px; background: var(--cream); font-size: 18px; }

/* commandes, lignes */
.aorder { padding: 22px 24px; border-radius: 24px; background: var(--cream); }
.aorder header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.aorder header div { display: flex; flex-direction: column; gap: 2px; }
.aorder header b { font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.aorder header span { font-size: 14px; color: var(--gray); }
.ast { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; line-height: 28px; background: #fff; }
.ast--paid, .ast--preparing, .ast--to_activate, .ast--ready { background: #fff1e6; color: #b4500f; }
.ast--shipped { background: #e8f1ff; color: #1d5bd8; }
.ast--delivered, .ast--picked_up, .ast--active { background: #e6f6ec; color: #1f8a4c; }
.ast--cancelled, .ast--refunded, .ast--cancel_requested { background: #eeebe8; color: #77777c; }
.aorder ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.aorder li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 15px; }
.aorder li em { display: block; font-style: normal; font-size: 13px; color: var(--gray); }
.aorder li b { font-weight: 500; white-space: nowrap; }
.aorder footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: #55555a; }
.aorder footer b { font-weight: 500; color: var(--ink); }
.aorder footer .alink { margin-left: auto; }
.asub footer { margin-top: 12px; }
.aconfirm { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; display: grid; gap: 12px; font-size: 15px; }
.aconfirm .btn { height: 46px; font-size: 15px; }
.claim { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 16px; background: #fff; }
.claim .seg { margin: 0; }
.claim .fld textarea { background: var(--cream); }
.claim .btn { height: 46px; font-size: 15px; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--cream); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; height: 36px; padding: 0 16px; border-radius: 999px; line-height: 36px; font-size: 14px; color: #55555a; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.ainv { display: grid; gap: 6px; }
.ainv__row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--cream); transition: background-color .2s; }
.ainv__row:hover { background: #efe9e3; }
.ainv__row span { display: flex; flex-direction: column; flex: 1; }
.ainv__row span b { font-weight: 500; }
.ainv__row em { font-style: normal; font-size: 13px; color: var(--gray); }
.ainv__row > b { font-weight: 500; }
.ainv__row i { font-style: normal; height: 28px; padding: 0 10px; border-radius: 8px; background: #fff; font-size: 12px; line-height: 28px; }
.aprof { display: grid; gap: 12px; max-width: 620px; }
.aprof .btn { height: 50px; }

/* suivi */
.track { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 900px; }
.track .btn { height: 54px; }
#result { max-width: 900px; margin-top: 18px; }
.tsteps { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tsteps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; color: var(--gray); }
.tsteps li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #e3ddd7; z-index: 0; }
.tsteps li:first-child::before { display: none; }
.tsteps li.is-done::before { background: var(--coral); }
.tsteps i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #e3ddd7; }
.tsteps .is-done i { background: linear-gradient(135deg, var(--amber), var(--coral)); box-shadow: none; }
.tsteps .is-done { color: var(--ink); }
.tnum { margin-top: 12px; font-size: 15px; }
.tnum b { font-weight: 500; }

@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .track { grid-template-columns: 1fr; }
  .aorder { padding: 18px; }
  .aorder footer .alink { margin-left: 0; }
  .auth__card { padding: 22px 18px; }
}
.seg.auth__seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
