/* Parcours guidés « Commencer un projet » et « Lancer une mission », fiche projet et devis. */
.pj-wrap { max-width: 920px; }
.pj-head { background: var(--ta-grad-bar); color: #fff; padding: 28px 0 22px; }
.pj-head h1 { font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.pj-head p { color: rgba(255, 255, 255, .75); margin: 4px 0 0; }
.pj-progress { height: 6px; background: rgba(255, 255, 255, .18); border-radius: 6px; margin-top: 18px; overflow: hidden; }
.pj-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff4400, #f5a623); transition: width .3s; }
.pj-count { font-size: .8rem; color: rgba(255, 255, 255, .7); margin-top: 6px; }

.pj-step { background: #fff; border: 1px solid var(--ta-line); border-radius: var(--ta-radius); box-shadow: var(--ta-shadow); padding: 24px; margin-bottom: 20px; }
.pj-step > h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.pj-step > h2 b { color: var(--ta-orange); margin-right: 6px; }
.pj-alias { display: flex; gap: 12px; align-items: flex-start; background: var(--ta-bg); border-radius: 10px; padding: 10px 14px; margin: 10px 0 20px; font-size: .92rem; }
.pj-alias img { width: 34px; height: auto; flex: none; margin-top: 2px; }
.pj-alias b { color: var(--ta-orange); }
.js-steps .pj-step { display: none; }
.js-steps .pj-step.is-active { display: block; animation: pjIn .25s ease; }
@keyframes pjIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pj-nav { display: none; }
.js-steps .pj-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.js-steps .pj-submit-all { display: none; }

/* Cartes à choisir (radio ou case à cocher cachée). */
.pj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pj-card { position: relative; display: block; cursor: pointer; margin: 0; }
.pj-card input { position: absolute; opacity: 0; pointer-events: none; }
.pj-card > span { box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px 16px; border: 2px solid var(--ta-line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pj-card > span > i { color: var(--ta-orange); font-size: 1.2rem; width: 24px; text-align: center; margin-top: 2px; flex: none; }
.pj-card b { display: block; }
.pj-card small { display: block; color: var(--ta-muted); line-height: 1.35; margin-top: 2px; }
.pj-card:hover > span { transform: translateY(-1px); box-shadow: var(--ta-shadow); }
.pj-card input:checked + span { border-color: var(--ta-orange); box-shadow: 0 0 0 4px rgba(255, 68, 0, .12); }
.pj-card input:focus-visible + span { outline: 3px solid rgba(255, 68, 0, .4); outline-offset: 2px; }
.pj-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-pills .pj-card > span { padding: 8px 14px; border-radius: 999px; }
.pj-q { margin-bottom: 18px; }
.pj-q > .form-label { font-weight: 600; }
.js-steps [data-objective]:not(.is-shown) { display: none; }
.pj-error { color: #b91c1c; font-size: .88rem; margin-top: 10px; display: none; }
.pj-error.is-shown { display: block; }

/* Devis en direct (parcours mission). */
.pj-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.pj-price { position: sticky; top: calc(var(--header-h) + 16px); background: var(--ta-grad-card); color: #fff; border-radius: var(--ta-radius); padding: 20px; box-shadow: var(--ta-shadow-lg); }
.pj-price .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.pj-price strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1.1; }
.pj-price ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; }
.pj-price li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pj-price .note { font-size: .75rem; color: rgba(255, 255, 255, .7); margin: 10px 0 0; }
@media (max-width: 991px) {
    .pj-layout { grid-template-columns: 1fr; }
    .pj-price { position: sticky; bottom: 0; top: auto; z-index: 5; border-radius: 12px 12px 0 0; padding: 12px 96px 12px 16px; }
    .pj-price ul, .pj-price .note { display: none; }
    .pj-price strong { font-size: 1.4rem; }
}

/* Catalogue des missions. */
.mx-family { margin: 28px 0 12px; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.mx-family i { color: var(--ta-orange); }
.mx-family small { font-weight: 500; color: var(--ta-muted); font-size: .8rem; }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ta-line); border-radius: var(--ta-radius); padding: 16px 18px; color: inherit; text-decoration: none; box-shadow: var(--ta-shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.mx-card:hover { transform: translateY(-2px); box-shadow: var(--ta-shadow-lg); border-color: rgba(255, 68, 0, .4); color: inherit; }
.mx-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.mx-card p { font-size: .88rem; color: var(--ta-muted); margin: 0 0 12px; flex: 1; }
.mx-card .mx-foot { display: flex; justify-content: space-between; font-size: .85rem; }
.mx-card .mx-foot b { color: var(--ta-orange); }

/* Fiche projet et devis. */
.fx-sheet { background: #fff; border: 1px solid var(--ta-line); border-radius: var(--ta-radius); box-shadow: var(--ta-shadow); padding: 24px; margin-bottom: 20px; }
.fx-sheet h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.fx-sheet h2 i { color: var(--ta-orange); margin-right: 6px; }
.fx-budget { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fx-budget div { background: var(--ta-bg-soft); border-radius: 10px; padding: 12px 14px; }
.fx-budget span { display: block; font-size: .78rem; color: var(--ta-muted); text-transform: uppercase; letter-spacing: .04em; }
.fx-budget strong { font-size: 1.25rem; font-weight: 800; }
.fx-budget .main { background: rgba(255, 68, 0, .08); border: 1px solid rgba(255, 68, 0, .3); }
.fx-phase { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ta-orange); font-weight: 700; margin: 18px 0 6px; }
.fx-mission { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ta-line); flex-wrap: wrap; }
.fx-mission:last-child { border-bottom: 0; }
.fx-mission small { color: var(--ta-muted); display: block; }
.fx-mission .fx-amount { text-align: right; white-space: nowrap; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-table { width: 100%; font-size: .95rem; }
.fx-table td { padding: 8px 0; border-bottom: 1px solid var(--ta-line); }
.fx-table td:last-child { text-align: right; white-space: nowrap; }
.fx-table tr.total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
.fx-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2ff; color: #3730a3; }
.fx-status.ok { background: #dcfce7; color: #166534; }
.fx-status.wait { background: #fef3c7; color: #92400e; }
.fx-status.off { background: #f3f4f6; color: #4b5563; }
@media print {
    .ta-header, .ta-footer, footer, .fx-actions, .alias-chat, .no-print, .skip-link { display: none !important; }
    .fx-sheet { box-shadow: none; border: 0; padding: 0; }
    .pj-head { background: none; color: #000; }
    .pj-head p { color: #444; }
}
.js-steps .pj-step:first-of-type [data-step-nav="prev"] { visibility: hidden; }
