/* Projet sur mesure — boutique */
.psm { --psm-accent: #6d28d9; --psm-soft: #f5f3ff; --psm-border: #e5e7eb; --psm-muted: #6b7280; --psm-text: #1f2937; color: var(--psm-text); max-width: 980px; }
.psm [hidden] { display: none !important; }
.psm-intro { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.55; }
.psm-steps { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 22px; padding: 0; list-style: none; }
.psm-steps li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.psm-steps b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--psm-soft); color: var(--psm-accent); font-size: .85rem; }
.psm-card { margin: 0 0 18px; padding: 20px 22px; background: #fff; border: 1px solid var(--psm-border); border-radius: 12px; }
.psm-card h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 700; text-transform: none; }
.psm-card h2 small { font-size: .8em; font-weight: 400; color: var(--psm-muted); }
.psm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.psm-col-2 { grid-column: span 2; }
.psm-col-3 { grid-column: 1 / -1; }
.psm-field label, .psm-reply label { display: block; margin: 0 0 5px; text-align: left; font-weight: 600; font-size: .92rem; }
.psm-field label small { font-weight: 400; color: var(--psm-muted); }
.psm-field .form-control { width: 100%; }
.psm-field textarea { min-height: 130px; resize: vertical; }
.psm-req { color: #b42318; }
.psm-err { display: block; margin-top: 4px; color: #b42318; font-size: .85rem; }
.psm .has-error .form-control, .psm-drop.has-error { border-color: #b42318; }
.psm-alert ul { margin: 0; padding-left: 18px; }
.psm-product { margin: -4px 0 14px; padding: 8px 12px; border-radius: 8px; background: var(--psm-soft); }
.psm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Fichiers */
.psm-drop { position: relative; border: 2px dashed #c4b5fd; border-radius: 12px; background: #fcfbff; transition: background .15s, border-color .15s; }
.psm-drop.is-over { border-color: var(--psm-accent); background: var(--psm-soft); }
.psm-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.psm-drop label { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 26px 16px; text-align: center; cursor: pointer; }
.psm-drop svg { width: 34px; height: 34px; fill: none; stroke: var(--psm-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.psm-drop span { color: var(--psm-muted); font-size: .85rem; }
.psm-drop:focus-within { outline: 2px solid var(--psm-accent); outline-offset: 2px; }
.psm-files { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.psm-files li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--psm-border); border-radius: 10px; }
.psm-files-static li { grid-template-columns: minmax(0, 1fr) auto; }
.psm-thumb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 8px; background: var(--psm-soft); color: var(--psm-accent); font-size: .7rem; font-weight: 700; }
.psm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.psm-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psm-files small { color: var(--psm-muted); }
.psm-del { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--psm-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.psm-del:hover { background: #fee4e2; color: #b42318; }
.psm-note { margin: 10px 0 0; font-size: .85rem; color: var(--psm-muted); }

.psm-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-weight: 400; cursor: pointer; }
.psm-consent input { margin-top: 4px; }
.psm-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 30px; }
.psm-submit span { color: var(--psm-muted); font-size: .9rem; }

/* Suivi */
.psm-success { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #ecfdf3; color: #05603a; }
.psm-track-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.psm-track-head h2 { margin-bottom: 2px; }
.psm-muted { margin: 0; color: var(--psm-muted); font-size: .9rem; }
.psm-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f3f4f6; background: color-mix(in srgb, var(--psm-c) 14%, #fff); color: var(--psm-c); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.psm-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 22px 0 4px; padding: 0; list-style: none; counter-reset: s; }
.psm-progress li { position: relative; padding-top: 30px; text-align: center; font-size: .82rem; color: var(--psm-muted); }
.psm-progress li span { position: absolute; top: 0; left: 50%; z-index: 1; width: 20px; height: 20px; margin-left: -10px; border: 2px solid #d1d5db; border-radius: 50%; background: #fff; }
.psm-progress li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #e5e7eb; }
.psm-progress li:first-child::before { display: none; }
.psm-progress li.is-done span, .psm-progress li.is-current span { border-color: var(--psm-accent); background: var(--psm-accent); }
.psm-progress li.is-current span { box-shadow: 0 0 0 4px rgba(109, 40, 217, .18); }
.psm-progress li.is-done::before, .psm-progress li.is-current::before { background: var(--psm-accent); }
.psm-progress li.is-current { color: var(--psm-text); font-weight: 700; }
.psm-declined { margin: 14px 0 0; }
.psm-quote { margin: 16px 0 0; }
.psm-track-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
.psm-timeline { margin: 0; padding: 0; list-style: none; }
.psm-timeline li { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #f9fafb; }
.psm-timeline li.is-client { margin-left: 24px; background: var(--psm-soft); }
.psm-timeline li.is-status { background: transparent; padding: 4px 12px; border-left: 3px solid var(--psm-accent); border-radius: 0; }
.psm-timeline small { color: var(--psm-muted); }
.psm-timeline p { margin: 2px 0 0; }
.psm-reply { margin-top: 16px; }
.psm-reply .btn { margin-top: 8px; }
.psm-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; }
.psm-dl dt { font-weight: 400; color: var(--psm-muted); }
.psm-dl dd { margin: 0; }
.psm-desc { padding: 10px 12px; border-radius: 10px; background: #f9fafb; }
.psm-list { margin: 0 0 20px; padding: 0; list-style: none; }
.psm-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 12px 16px; border: 1px solid var(--psm-border); border-radius: 10px; color: inherit; text-decoration: none; }
.psm-list a:hover { border-color: #c4b5fd; }
.psm-list small { display: block; color: var(--psm-muted); }

@media (max-width: 767px) {
  .psm-grid, .psm-track-grid { grid-template-columns: 1fr; }
  .psm-col-2 { grid-column: auto; }
  .psm-card { padding: 16px; }
  .psm-progress { grid-template-columns: 1fr; gap: 10px; }
  .psm-progress li { padding: 0 0 0 30px; text-align: left; }
  .psm-progress li span { left: 0; margin-left: 0; }
  .psm-progress li::before { display: none; }
}
