/* Espace client KAMSA — identité noir / rouge / blanc, bureau et mobile. */
:root {
  --red: #e11d24; --red2: #ff3b3f; --ink: #121a2b; --muted: #6b7688; --line: #e5e9f0; --bg: #eef1f5;
  --night: #0a0e17; --night2: #151b28; --ok: #1f9a3e; --warn: #f08a1c; --bad: #e11d24; --info: #2f6fdb;
  --r: 16px; --shadow: 0 6px 24px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.5 Barlow, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; }

/* ---------- barre du haut ---------- */
.pt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 22px; color: #fff;
  background: linear-gradient(100deg, #07090f 0%, #111723 55%, #2a070a 100%); box-shadow: 0 2px 0 var(--red), 0 8px 24px rgba(0, 0, 0, .25); }
.pt-top img { height: 38px; }
.pt-top b { display: block; font: 800 18px/1.05 'Barlow Semi Condensed', sans-serif; letter-spacing: .02em; }
.pt-top small { color: #9aa6b8; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.pt-top #pt-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pt-who { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.pt-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px 'Barlow Semi Condensed', sans-serif;
  background: linear-gradient(135deg, var(--red2), #8c0d12); box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.pt-top .pt-link { color: #cfd6e2; } .pt-top .pt-link:hover { color: #fff; }

.pt-main { max-width: 1320px; margin: 0 auto; padding: 0 0 40px; }
.pt-wrap { padding: 0 22px; }
.pt-foot { max-width: 1320px; margin: 0 auto 24px; padding: 14px 22px; display: flex; align-items: center; gap: 14px; color: #c9d1dd; font-size: 12.5px;
  background: linear-gradient(100deg, #07090f, #141a26 70%, #2a070a); border-radius: 14px; }
.pt-foot img { height: 22px; } .pt-foot span { margin-left: auto; font-weight: 700; color: #fff; }
.pt-loading { padding: 80px; text-align: center; color: var(--muted); }

/* ---------- hero ---------- */
.pt-hero { position: relative; overflow: hidden; color: #fff; padding: 26px 30px 30px; margin: 18px 22px 0; border-radius: 22px;
  background:
    radial-gradient(120% 140% at 85% 20%, rgba(225, 29, 36, .28) 0%, rgba(225, 29, 36, 0) 45%),
    linear-gradient(115deg, #06080d 0%, #0f141f 48%, #1a0c10 100%);
  box-shadow: 0 18px 40px rgba(7, 9, 15, .35); }
.pt-hero::before, .pt-hero::after { content: ''; position: absolute; pointer-events: none; }
.pt-hero::before { right: -8%; top: -30%; width: 55%; height: 170%; transform: skewX(-24deg);
  background: repeating-linear-gradient(90deg, rgba(225, 29, 36, 0) 0 34px, rgba(225, 29, 36, .10) 34px 38px, rgba(225, 29, 36, 0) 38px 76px); }
.pt-hero::after { left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red), rgba(225, 29, 36, 0) 70%); }
.pt-hero > * { position: relative; z-index: 1; }
.pt-back { display: inline-flex; align-items: center; gap: 8px; color: #dfe5ee; background: none; border: 0; cursor: pointer; padding: 0; font-weight: 600; }
.pt-back:hover { color: #fff; } .pt-back svg { transition: transform .2s; } .pt-back:hover svg { transform: translateX(-3px); }
.pt-hero h1 { font: 800 clamp(28px, 3.4vw, 40px)/1.05 'Barlow Semi Condensed', sans-serif; margin: 14px 0 8px; letter-spacing: .01em; }
.pt-hero p.lead { margin: 0; color: #c3cad6; max-width: 380px; }
.pt-hero .pt-underline { width: 54px; height: 4px; border-radius: 2px; background: var(--red); margin-top: 14px; }
.pt-hero-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(300px, 380px) minmax(260px, 1.2fr); gap: 22px; align-items: center; }

.pt-vcard { background: rgba(10, 14, 23, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px 20px; backdrop-filter: blur(6px); }
.pt-vcard-h { display: flex; gap: 14px; align-items: center; }
.pt-mono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 52px;
  font: 800 19px 'Barlow Semi Condensed', sans-serif; letter-spacing: .03em; color: #fff;
  background: linear-gradient(145deg, #2a3242, #0e131c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .4); }
.pt-vcard h2 { margin: 0; font: 700 21px/1.1 'Barlow Semi Condensed', sans-serif; }
.pt-vcard h2 small { display: block; font: 500 14px Barlow, sans-serif; color: #c3cad6; margin-top: 3px; }
.pt-plate { display: inline-flex; align-items: stretch; margin: 14px 0 12px; border-radius: 7px; overflow: hidden; background: #fff; color: #10151f;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); font: 800 16px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: .06em; }
.pt-plate i { font-style: normal; display: grid; place-items: center; padding: 0 6px; background: #0e7a3a; color: #fff; font-size: 10px; letter-spacing: 0; }
.pt-plate b { padding: 7px 12px; }
.pt-plate.sm { margin: 0; font-size: 12.5px; box-shadow: none; border: 1.5px solid #cdd3dc; } .pt-plate.sm b { padding: 4px 8px; } .pt-plate.sm i { padding: 0 4px; font-size: 8px; }
.pt-vfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.pt-vfacts div { display: flex; gap: 10px; align-items: center; }
.pt-vfacts svg { flex: 0 0 auto; color: #9aa6b8; }
.pt-vfacts small { display: block; color: #9aa6b8; font-size: 12px; } .pt-vfacts b { font: 700 16px 'Barlow Semi Condensed', sans-serif; }

.pt-carbox { position: relative; height: 190px; }
.pt-carbox::before { content: ''; position: absolute; left: 8%; right: 4%; bottom: 14px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 29, 36, .55), rgba(225, 29, 36, 0)); filter: blur(4px); animation: pt-glow 3.5s ease-in-out infinite; }
.pt-carbox img { position: absolute; right: 0; bottom: 18px; width: 100%; max-width: 440px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .55)); animation: pt-drive .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pt-drive { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pt-glow { 50% { opacity: .55; transform: scaleX(.94); } }

/* ---------- onglets ---------- */
.pt-tabs { display: flex; gap: 6px; margin: -22px 44px 0; position: relative; z-index: 2; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs button { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; background: none; cursor: pointer;
  padding: 12px 16px; border-radius: 10px; color: #2b3548; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.pt-tabs button:hover { background: #f4f6f9; }
.pt-tabs button.on { color: #fff; background: linear-gradient(180deg, var(--red2), #c8161c); box-shadow: 0 8px 18px rgba(225, 29, 36, .35); }

/* ---------- contenu ---------- */
.pt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 22px; }
.pt-panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; }
.pt-panel + .pt-panel { margin-top: 16px; }
.pt-aside > * + * { margin-top: 16px; }
.pt-ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pt-ph h3 { margin: 0; font: 700 20px 'Barlow Semi Condensed', sans-serif; }
.pt-ph .pt-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--red); flex: 0 0 38px; }
.pt-ph .pt-right { margin-left: auto; }
.pt-select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; color: var(--ink); font: 600 13px Barlow, sans-serif; cursor: pointer; }

/* frise chronologique */
.pt-tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; }
.pt-tl::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(#dfe4ec, #eef1f5); }
.pt-tl li { position: relative; opacity: 0; transform: translateY(10px); animation: pt-in .45s cubic-bezier(.2, .8, .2, 1) forwards; }
.pt-tl li + li { margin-top: 12px; }
.pt-tl li::before { content: ''; position: absolute; left: -25px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, #9aa6b8);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e5e9f0; }
@keyframes pt-in { to { opacity: 1; transform: none; } }
.pt-ev { display: grid; grid-template-columns: 124px 54px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.pt-ev:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 23, 42, .08); border-color: #d7dce5; }
.pt-ev .d b { display: block; font-size: 14px; } .pt-ev .d small { color: var(--muted); }
.pt-ev .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 8px 16px color-mix(in srgb, var(--c) 35%, transparent); }
.pt-ev h4 { margin: 0; font-size: 16px; } .pt-ev .sub { color: var(--muted); font-size: 13.5px; }
.pt-ev .meta { margin-top: 6px; font-size: 12.5px; color: #6b7688; } .pt-ev .meta span + span::before { content: '•'; margin: 0 8px; color: #c2c9d3; }
.pt-ev .end { display: flex; align-items: center; gap: 12px; }
.pt-ev .chev { color: #b6bfcc; transition: transform .2s; } .pt-ev:hover .chev { transform: translateX(3px); color: var(--red); }
.pt-ev .more { grid-column: 3 / -1; display: none; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13.5px; }
.pt-ev.open .more { display: block; } .pt-ev.open .chev { transform: rotate(90deg); }
.pt-ev .more ul { margin: 0; padding-left: 18px; }
.pt-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pt-state.ok { background: #e7f6ec; color: var(--ok); } .pt-state.run { background: #fff3e4; color: #c56a00; }
.pt-state.ok::before, .pt-state.run::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* état du véhicule */
.pt-health { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.pt-ring { position: relative; width: 150px; height: 150px; }
.pt-ring svg { transform: rotate(-90deg); }
.pt-ring .trk { stroke: #edf0f4; } .pt-ring .val { stroke: var(--ok); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.pt-ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pt-ring .lbl b { font: 800 34px/1 'Barlow Semi Condensed', sans-serif; } .pt-ring .lbl small { color: var(--muted); font-size: 11px; line-height: 1.2; max-width: 92px; margin: 4px auto 0; }
.pt-checks { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); }
.pt-checks li { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-weight: 600; }
.pt-checks i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; flex: 0 0 20px; }
.pt-checks .ok i { background: var(--ok); } .pt-checks .surveiller i { background: var(--warn); } .pt-checks .anomalie i { background: var(--bad); }
.pt-checks .nc i { background: #c9d0da; } .pt-checks .nc { color: var(--muted); font-weight: 500; }
.pt-note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* prochain entretien */
.pt-next { position: relative; overflow: hidden; color: #fff; border-radius: var(--r); padding: 20px 22px;
  background: radial-gradient(100% 120% at 100% 0%, rgba(225, 29, 36, .45), rgba(225, 29, 36, 0) 55%), linear-gradient(130deg, #0a0e17, #1b0d11);
  box-shadow: 0 14px 30px rgba(10, 14, 23, .3); }
.pt-next .pt-btn { padding: 10px 15px; font-size: 13.5px; }
.pt-next h3 { margin: 0 0 10px; font: 700 19px 'Barlow Semi Condensed', sans-serif; display: flex; align-items: center; gap: 10px; }
.pt-next .big { font: 800 30px/1.05 'Barlow Semi Condensed', sans-serif; } .pt-next .big small { font: 600 15px Barlow, sans-serif; color: #c3cad6; }
.pt-next .when { color: #c3cad6; font-size: 13.5px; margin-top: 2px; }
.pt-meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin: 14px 0 12px; }
.pt-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #2bd46b, #f5b72b 70%, var(--red2)); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.pt-btn { border: 0; border-radius: 12px; padding: 12px 20px; background: linear-gradient(180deg, var(--red2), #c8161c); color: #fff; font: 700 14.5px Barlow, sans-serif;
  cursor: pointer; box-shadow: 0 8px 18px rgba(225, 29, 36, .35); transition: transform .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.pt-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(225, 29, 36, .42); }
.pt-btn.ghost { background: rgba(255, 255, 255, .08); box-shadow: none; border: 1px solid rgba(255, 255, 255, .18); }
.pt-btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.pt-btn.block { width: 100%; }

/* rappels & documents */
.pt-rem { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.pt-rem + .pt-rem { border-top: 1px solid var(--line); }
.pt-rem .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 36px; background: var(--c, var(--info)); }
.pt-rem b { display: block; font-size: 14.5px; } .pt-rem small { color: var(--muted); }
.pt-count { background: var(--red); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.pt-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-doc { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; cursor: pointer;
  text-align: left; color: inherit; transition: border-color .2s, transform .2s; }
.pt-doc:hover { border-color: var(--red); transform: translateY(-1px); }
.pt-doc .pdf { width: 30px; height: 36px; border-radius: 5px; background: #fdecec; color: var(--red); display: grid; place-items: center; font: 800 9px Barlow, sans-serif; flex: 0 0 30px; }
.pt-doc b { display: block; font-size: 13.5px; } .pt-doc small { color: var(--muted); font-size: 12px; }
.pt-doc .dl { margin-left: auto; color: #8c96a6; }
.pt-aside .pt-docs { grid-template-columns: 1fr; }
.pt-seeall { white-space: nowrap; background: none; border: 0; color: var(--info); font-weight: 700; cursor: pointer; font-size: 13px; }

/* accueil */
.pt-hello { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pt-hello .pt-btn { margin-left: auto; }
.pt-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 22px; }
.pt-car { position: relative; overflow: hidden; border: 0; text-align: left; cursor: pointer; color: #fff; border-radius: 20px; padding: 18px 20px 20px; min-height: 230px;
  background: radial-gradient(90% 110% at 100% 100%, rgba(225, 29, 36, .35), rgba(225, 29, 36, 0) 55%), linear-gradient(135deg, #0b0f19, #171d2a);
  box-shadow: 0 14px 30px rgba(10, 14, 23, .22); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
  opacity: 0; animation: pt-in .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.pt-car:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(10, 14, 23, .3); }
.pt-car img { position: absolute; right: -18px; bottom: 36px; width: 52%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); transition: transform .35s; }
.pt-car:hover img { transform: translateX(-8px); }
.pt-car h3 { margin: 10px 0 2px; font: 700 22px 'Barlow Semi Condensed', sans-serif; max-width: 58%; position: relative; z-index: 1; } .pt-car .sub { color: #aeb7c5; font-size: 13.5px; max-width: 50%; position: relative; z-index: 1; }
.pt-car .foot { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d4dae4; }
.pt-car .foot b { margin-left: auto; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.pt-mini { margin-top: 12px; max-width: 58%; } .pt-mini .pt-meter { margin: 6px 0 0; height: 6px; }
.pt-mini small { color: #c3cad6; }
.pt-section { margin-top: 26px; } .pt-section > h2 { font: 700 13px Barlow, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }

/* alertes & messages (communs) */
.pt-alert { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; margin-bottom: 10px; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--c, var(--info)); }
.pt-alert.danger { --c: var(--bad); } .pt-alert.warning { --c: var(--warn); } .pt-alert.success { --c: var(--ok); } .pt-alert.info { --c: var(--info); }
.pt-alert i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: 0 0 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.pt-alert b { display: block; font-size: 13px; } .pt-alert b:empty { display: none; }
.pt-msg { background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); border-left: 4px solid #d9dde4; cursor: default; }
.pt-msg.unread { border-left-color: var(--red); } .pt-msg p { margin: 4px 0 0; white-space: pre-line; }
.pt-msg-h { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); } .pt-msg-h time { margin-left: auto; }
.pt-kind { font-weight: 700; color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }

/* cartes génériques (devis, rendez-vous, connexion) */
.pt-card { display: block; width: 100%; text-align: left; color: inherit; background: #fff; border: 0; border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); position: relative; }
button.pt-card { cursor: pointer; transition: transform .18s; } button.pt-card:hover { transform: translateY(-2px); }
.pt-card h3 { margin: 0 0 8px; font-size: 16px; }
.pt-order-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .pt-order-h em { color: var(--muted); font-style: normal; margin-left: auto; }
.pt-page { max-width: 780px; margin: 22px auto 0; padding: 0 22px; }
.pt-h1 { font: 800 30px/1.1 'Barlow Semi Condensed', sans-serif; margin: 8px 0 16px; }
.pt-link { border: 0; background: none; color: var(--ink); font: 600 14px Barlow, sans-serif; cursor: pointer; padding: 6px 0; }
.pt-err { color: #c62828; font-weight: 600; } .pt-muted { color: var(--muted); } .pt-ok { color: var(--ok); font-weight: 600; }
.pt-login { max-width: 460px; margin: 60px auto; text-align: center; padding: 34px 28px; }
.pt-login h1 { margin: 0 0 6px; font: 800 30px 'Barlow Semi Condensed', sans-serif; }
.pt-login form { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 14px; }
.pt-login input { width: 230px; font: 700 30px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: .3em; text-align: center; padding: 12px; border: 2px solid #d9dde4; border-radius: 12px; }
.pt-login form[data-login=phone] input, .pt-pw input { width: 100%; max-width: 320px; font: 600 17px Barlow, sans-serif; letter-spacing: normal; text-align: left; padding: 12px 14px; border: 2px solid #d9dde4; border-radius: 12px; }
.pt-secure { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #fff7e6; border: 1px solid #f5c26b; margin: 0 0 16px; color: #6b4300; } .pt-secure b { display: block; color: #3d2600; } .pt-secure .pt-btn { margin-left: auto; white-space: nowrap; }
.pt-pw { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pt-login input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 36, .12); }
.pt-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 6px; counter-reset: s; }
.pt-steps li { counter-increment: s; font-size: 12px; text-align: center; padding: 8px 4px; border-radius: 10px; background: #f1f3f7; color: var(--muted); font-weight: 600; }
.pt-steps li.done { background: #e7f6ec; color: var(--ok); } .pt-steps li.now { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(225, 29, 36, .35); }
.pt-table { width: 100%; border-collapse: collapse; } .pt-table td { padding: 10px 4px; border-top: 1px solid var(--line); vertical-align: top; } .pt-table .r { text-align: right; }
.pt-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pt-line-d { flex: 1; } .pt-line-d b { display: block; } .pt-line-d small { color: var(--muted); }
.pt-line-actions { display: flex; gap: 6px; }
.pt-line-actions button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #d9dde4; background: #fff; cursor: pointer; font-size: 16px; font-weight: 700; color: #8a94a6; }
.pt-line-actions .accept.on { background: var(--ok); border-color: var(--ok); color: #fff; } .pt-line-actions .refuse.on { background: var(--red); border-color: var(--red); color: #fff; }
.pt-daynav { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-transform: capitalize; }
.pt-daynav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }
.pt-daynav button:disabled { opacity: .35; cursor: default; }
.pt-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 12px; }
.pt-slot { padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; transition: all .15s; }
.pt-slot.on { background: var(--red); border-color: var(--red); color: #fff; } .pt-slot.full { opacity: .35; text-decoration: line-through; cursor: default; }
.pt-field { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; }
.pt-field input, .pt-field select { width: 100%; padding: 10px; border: 1px solid #d9dde4; border-radius: 10px; margin-top: 5px; font: inherit; }
.pt-empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.pt-empty svg { color: #c2c9d3; }
.pt-exp { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.pt-exp:first-child { border-top: 0; } .pt-exp em { font-style: normal; font-size: 13px; font-weight: 700; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.pt-exp.expired em { color: var(--bad); } .pt-exp.soon em { color: var(--warn); } .pt-exp.ok em { color: var(--ok); }
.pt-exp span { color: var(--muted); font-size: 13px; }

.pt-vhead h1 { margin: 10px 0 2px; font: 800 26px 'Barlow Semi Condensed', sans-serif; }

/* ---------- mobile ---------- */
@media (max-width: 1080px) {
  .pt-hero-grid { grid-template-columns: 1fr 1fr; } .pt-carbox { grid-column: 1 / -1; height: 150px; order: -1; } .pt-carbox img { max-width: 330px; left: 0; right: 0; margin: auto; }
  .pt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pt-top { padding: 10px 14px; } .pt-top small, .pt-who span { display: none; }
  .pt-hero { margin: 12px 12px 0; padding: 20px 18px 34px; border-radius: 18px; } .pt-hero-grid { grid-template-columns: 1fr; }
  .pt-tabs { margin: -20px 18px 0; } .pt-tabs button span { display: none; } .pt-tabs button.on span { display: inline; }
  .pt-wrap { padding: 0 12px; } .pt-panel { padding: 16px; }
  .pt-ev { grid-template-columns: 44px 1fr auto; } .pt-ev .d { grid-column: 2 / -1; order: -1; display: flex; gap: 8px; align-items: baseline; }
  .pt-ev .ic { width: 42px; height: 42px; } .pt-ev .more { grid-column: 1 / -1; } .pt-ev .end .pt-state { display: none; }
  .pt-health { grid-template-columns: 1fr; justify-items: center; } .pt-checks { border: 0; padding: 0; }
  .pt-docs { grid-template-columns: 1fr; } .pt-cars { grid-template-columns: 1fr; }
  .pt-foot { margin: 0 12px 16px; flex-wrap: wrap; } .pt-foot span { margin-left: 0; }
  .pt-top .pt-link { font-size: 12.5px; } .pt-top b { font-size: 16px; }
  .pt-ev .meta span:nth-child(2) { display: none; } .pt-car img { width: 48%; }
}
@media (prefers-reduced-motion: reduce) { :not(.cp, .cp *), :not(.cp, .cp *)::before, :not(.cp, .cp *)::after { animation: none !important; transition: none !important; } .pt-tl li, .pt-car { opacity: 1; transform: none; } } /* le carnet (.cp) gère lui-même le mode « animations réduites » */

/* ================= Carnet d'entretien — plan technique (maquette B validée) : le bandeau, le tableau et la jauge sont dans carnet-plan.css ================= */
.pt-carnet { margin: 14px 22px 0; }
.pt-grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pt-grid3 .pt-panel { opacity: 0; animation: cp-up .8s cubic-bezier(.2, .8, .2, 1) 3.2s both; }
.pt-tyres { padding: 0; overflow: hidden; } .pt-tyres img { width: 100%; height: 120px; object-fit: cover; display: block; } .pt-tyres .in { padding: 12px 16px 16px; } .pt-tyres h4 { margin: 0; font: 700 19px 'Barlow Semi Condensed', sans-serif; }
.pt-tyres .stt { font-weight: 700; font-size: 13.5px; margin: 6px 0 10px; } .pt-tyres p { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.pt-tyres .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-top: 1px solid #eef1f5; font-size: 12.5px; color: var(--muted); } .pt-tyres .row b { color: var(--ink); font-weight: 600; }
.cb-i { width: 28px; height: 28px; border-radius: 9px; background: #f3f5f8; display: grid; place-items: center; color: var(--ink); flex: 0 0 28px; }
.cb-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 15px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ff3b3f, #d0141b); color: #fff; font: 700 14.5px Barlow, sans-serif; cursor: pointer; box-shadow: 0 10px 22px rgba(225, 29, 36, .35); text-align: left; margin-top: 12px; }
.cb-btn.ghost { background: #f3f5f8; color: var(--ink); box-shadow: none; font-size: 13.5px; }
.cb-doc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; border: 1px solid #e5e9f0; margin-top: 8px; font: 600 13px Barlow, sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
.cb-doc span { margin-left: auto; color: var(--muted); }
.cb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-act { border-radius: 12px; background: #f7f9fc; border: 1px solid #e5e9f0; padding: 12px 8px; text-align: center; font: 600 12.5px Barlow, sans-serif; color: var(--ink); cursor: pointer; }
.cb-act .cb-i { margin: 0 auto 8px; } .cb-act:hover, .cb-doc:hover { border-color: var(--red); }
.cb-more { margin-top: 18px; }
@media (max-width: 760px) { .pt-grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .pt-carnet { margin: 10px 12px 0; } .pt-grid3 { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.pt-car { position: relative; } .pt-brand { position: absolute; right: 14px; top: 12px; width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; box-shadow: 0 3px 10px rgba(20, 34, 59, .18); }

/* Enquête de satisfaction (préfixe pt-sv-) */
.pt-sv-invite { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; border-left: 4px solid #e11d24; }
.pt-sv-invite > div { flex: 1; min-width: 0; } .pt-sv-invite b { display: block; font-size: 15px; } .pt-sv-invite small { color: #6b7688; font-size: 12.5px; }
.pt-sv-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff1e0; color: #f29a00; flex: 0 0 auto; }
.pt-sv-ic.dk { background: #0b1020; color: #fff; }
.pt-sv-go { display: inline-flex; gap: 4px; align-items: center; font-weight: 800; color: #e11d24; font-size: 13px; white-space: nowrap; }
.pt-sv-remark { display: flex; align-items: center; gap: 14px; } .pt-sv-remark > div { flex: 1; } .pt-sv-remark b { display: block; } .pt-sv-remark small { color: #6b7688; font-size: 12.5px; }
.pt-sv { max-width: 640px; }
.pt-sv-head { background: linear-gradient(135deg, #0b1020, #1a0d14); color: #fff; padding: 18px 20px 20px; border-radius: 16px; border-bottom: 3px solid #e11d24; margin: 10px 0 12px; }
.pt-sv-head small { color: #aab4c6; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
.pt-sv-head h1 { margin: 6px 0 4px; font-size: 22px; } .pt-sv-head p { margin: 0; color: #c9d1de; font-size: 13px; }
.pt-sv-q { margin-bottom: 10px; } .pt-sv-q h4 { margin: 0 0 4px; font-size: 15px; }
.pt-sv-who { font-size: 12.5px; color: #6b7688; margin-bottom: 8px; }
.pt-sv-stars { display: flex; gap: 8px; margin-top: 6px; }
.pt-sv-stars button { width: 44px; height: 44px; border-radius: 11px; border: 0; background: #f1f3f7; color: #c3cad6; font-size: 24px; cursor: pointer; transition: transform .12s; }
.pt-sv-stars button.on { background: #fff1e0; color: #f29a00; } .pt-sv-stars button:active { transform: scale(.9); }
.pt-sv-yn { display: flex; gap: 8px; margin-top: 6px; }
.pt-sv-yn button { flex: 1; padding: 11px; border-radius: 10px; border: 1px solid #d5dce6; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pt-sv-yn button.on { background: #0b1020; color: #fff; border-color: #0b1020; }
.pt-sv-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed #eef1f6; font-size: 13.5px; }
.pt-sv-line:first-of-type { border-top: 0; } .pt-sv-line b { flex: 1; font-weight: 600; }
.pt-sv-line span { display: flex; gap: 6px; }
.pt-sv-line button { width: 40px; height: 36px; border-radius: 9px; border: 0; background: #f1f3f7; font-size: 17px; cursor: pointer; filter: grayscale(1); opacity: .7; }
.pt-sv-line button.up.on { background: #e6f6ea; filter: none; opacity: 1; } .pt-sv-line button.dn.on { background: #fde8e9; filter: none; opacity: 1; }
.pt-sv-why { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: #9b1116; padding: 0 0 8px; }
.pt-sv-why button { border: 1px solid #f3c2c4; background: #fff; color: #9b1116; border-radius: 14px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.pt-sv-why button.on { background: #e11d24; color: #fff; border-color: #e11d24; }
.pt-sv-nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin-top: 6px; }
.pt-sv-nps button { padding: 9px 0; border: 0; border-radius: 7px; background: #f1f3f7; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.pt-sv-nps button.on { background: #e11d24; color: #fff; }
.pt-sv-npsl { display: flex; justify-content: space-between; font-size: 11px; color: #7a8699; margin-top: 4px; }
.pt-sv-ta { width: 100%; min-height: 90px; border: 2px solid #d9dde4; border-radius: 10px; padding: 10px; font: inherit; font-size: 14px; resize: vertical; box-sizing: border-box; }
.pt-sv-send { width: 100%; padding: 15px; font-size: 16px; margin-top: 4px; }
.pt-sv-note { text-align: center; font-size: 12px; }
.pt-sv-lbl { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 4px; } .pt-sv-lbl select { width: 100%; margin-top: 4px; }
.pt-sv-thanks { text-align: center; padding: 30px 20px; } .pt-sv-thanks svg { color: #15702c; } .pt-sv-thanks h1 { margin: 10px 0 6px; }
@media (max-width: 600px) { .pt-sv-invite { flex-wrap: wrap; } .pt-sv-go { width: 100%; justify-content: flex-end; } .pt-sv-remark { flex-wrap: wrap; } .pt-sv-stars button { width: 48px; height: 48px; } }
.pt-btn.pt-ghost { background: #fff; color: #0b1020; border: 1px solid #d5dce6; box-shadow: none; }
@media (max-width: 600px) { .pt-secure { flex-wrap: wrap; } .pt-secure > div { flex: 1 1 calc(100% - 40px); } .pt-secure .pt-btn { margin-left: 0; width: 100%; } }

/* v1.94 : « Mes documents » (devis et factures) */
.pt-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pt-chip { border: 1px solid #d4dbe5; background: #fff; border-radius: 99px; padding: 6px 13px; font: 600 13px Barlow, sans-serif; color: #4c5869; cursor: pointer; }
.pt-chip.on { background: #0f1c2e; border-color: #0f1c2e; color: #fff; }
.pt-docs { display: grid; gap: 8px; margin-bottom: 10px; }
.pt-doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pt-doc-ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font: 700 11.5px ui-monospace, monospace; }
.pt-doc-ic.f { background: #e6eefb; color: #1f5fbf; } .pt-doc-ic.d { background: #fdeaea; color: var(--red); }
.pt-doc-t { min-width: 0; display: grid; gap: 1px; } .pt-doc-t b { font-size: 14.5px; } .pt-doc-t small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.pt-doc-a { justify-self: start; border: 0; background: none; padding: 2px 0; color: #1f5fbf; font: 700 12.5px Barlow, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pt-doc-a.red { color: var(--red); }
.pt-doc-r { display: grid; gap: 4px; justify-items: end; text-align: right; } .pt-doc-r b { font-size: 14px; white-space: nowrap; }
.pt-st { font: 700 11px Barlow, sans-serif; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pt-st.ok { background: #e4f4ea; color: #1d7a43; } .pt-st.due { background: #fff3dc; color: #9a5b00; } .pt-st.act { background: var(--red); color: #fff; } .pt-st.no { background: #eef1f5; color: #5d6878; }
@media (max-width: 420px) { .pt-doc { grid-template-columns: 34px minmax(0, 1fr); } .pt-doc-r { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: center; } }
