/* Styles du parcours simplifié « en quelques clics » (/v2). */

/* ---------- « Que voulez-vous faire ? » (tableau de bord) ---------- */
.pc-intent { position: relative; margin-bottom: 18px; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.pc-intent-title { margin: 0 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.pc-intent-title label { cursor: pointer; }
.pc-intent-field { position: relative; display: flex; align-items: center; }
.pc-intent-field > svg { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.pc-intent-field input { width: 100%; min-height: 54px; padding: 0 48px 0 48px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); background: var(--canvas); font: inherit; font-size: 16.5px; transition: border-color var(--dur-2) var(--ease-soft), background-color var(--dur-2) var(--ease-soft); }
.pc-intent-field input::placeholder { color: var(--muted); }
.pc-intent-field input:hover { border-color: #9fb0c6; }
.pc-intent-field input:focus { outline: 0; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(11, 111, 214, .18); }
.pc-intent-clear { position: absolute; right: 8px; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: var(--radius-sm); color: var(--muted); background: transparent; cursor: pointer; }
.pc-intent-clear:hover { color: var(--ink); background: var(--canvas); }
.pc-intent-clear svg { width: 18px; height: 18px; }
.pc-intent-results { position: absolute; left: 22px; right: 22px; z-index: 40; margin: 6px 0 0; padding: 6px; max-height: 360px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.pc-intent-results[hidden] { display: none; }
.pc-intent-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.pc-intent-option > svg { flex: none; width: 18px; height: 18px; color: var(--blue); }
.pc-intent-option span { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.pc-intent-option strong { font-size: 15px; font-weight: 750; }
.pc-intent-option small { color: var(--muted); font-size: 12.5px; }
.pc-intent-option:hover { background: var(--canvas); }
.pc-intent-option[aria-selected="true"] { background: var(--surface-blue); box-shadow: inset 3px 0 0 var(--blue); }
.pc-intent-empty { margin: 10px 2px 0; color: var(--muted); font-size: 13.5px; }
.pc-intent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pc-chip { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: border-color var(--dur-2) var(--ease-soft), background-color var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft); }
.pc-chip:hover { border-color: var(--blue); color: var(--blue-strong); background: var(--surface-blue); }
.pc-chip:active { transform: translateY(1px); }
.pc-chip:focus-visible, .pc-intent-option:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* ---------- Liste de lancement ---------- */
.pc-launch { overflow: hidden; }
.pc-launch[hidden] { display: none; }
.pc-launch-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 18px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.pc-launch-heading h2 { margin: 0 0 3px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pc-launch-heading p { margin: 0; color: var(--muted); font-size: 13.5px; }
.pc-launch-progress { display: flex; align-items: center; gap: 10px; }
.pc-launch-progress strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pc-launch-track { position: relative; display: block; width: 96px; height: 6px; overflow: hidden; border-radius: var(--radius-pill); background: #e3e9f1; }
.pc-launch-track span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--green); transition: width var(--dur-3) var(--ease-soft); }
.pc-launch-dismiss[hidden] { display: none; }
.pc-launch-list { margin: 0; padding: 6px 8px 10px; list-style: none; }
.pc-launch-step { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 11px 12px; border-radius: var(--radius); }
.pc-launch-step + .pc-launch-step { margin-top: 2px; }
.pc-launch-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--surface); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pc-launch-mark svg { width: 16px; height: 16px; }
.pc-launch-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pc-launch-copy strong { font-size: 14.5px; font-weight: 750; }
.pc-launch-copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.pc-launch-step .button { white-space: nowrap; }
.pc-launch-note { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.pc-launch-step.is-next { background: var(--surface-blue); }
.pc-launch-step.is-next .pc-launch-mark { border-color: var(--blue); color: #fff; background: var(--blue); }
.pc-launch-step.is-done .pc-launch-mark { border-color: var(--green); color: #fff; background: var(--green); }
.pc-launch-step.is-done .pc-launch-copy strong { color: var(--muted); font-weight: 650; }
.pc-launch-step.is-locked { opacity: .62; }

/* ---------- Site en 3 questions ---------- */
.launch-view:not(.pc-detailed) .create-layout { display: none; }
.launch-view.pc-detailed .pc-quick { display: none; }
.pc-quick[hidden] { display: none; }
.launch-view.pc-from-quick .create-brief,
.launch-view.pc-from-quick #generateSite,
.launch-view.pc-from-quick .launch-mode-switch { display: none; }
.launch-view.pc-from-quick .create-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.launch-view.pc-from-quick .create-plan { position: static; }
/* Le bouton « Créer mon site » reste visible pendant la lecture du plan. */
.launch-view.pc-from-quick .create-layout[data-stage="proposal"] .brief-proposal-actions { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(6px); }
.pc-quick { max-width: 820px; }
.pc-quick-card { padding: 26px 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.pc-quick-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pc-quick-count { margin: 0; color: var(--blue-strong); font-size: 13.5px; font-weight: 750; }
.pc-quick-meter { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-quick-meter li { width: 34px; height: 5px; border-radius: var(--radius-pill); background: #dfe6ef; transition: background-color var(--dur-2) var(--ease-soft); }
.pc-quick-meter li.is-on { background: var(--blue); }
.pc-quick-step[hidden] { display: none; }
.pc-quick-question { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pc-quick-question:focus { outline: 0; }
.pc-quick-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.pc-quick-input { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); background: var(--surface); font: inherit; font-size: 17px; }
.pc-quick-input::placeholder { color: var(--muted); }
.pc-quick-input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 111, 214, .18); }
.pc-quick-input[aria-invalid] { border-color: var(--red); }
.pc-quick-hint { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.pc-quick-hint-lead { margin: -8px 0 16px; font-size: 14.5px; }
.pc-quick-field-error { margin: 8px 0 0; color: var(--red); font-size: 13.5px; font-weight: 650; }
.pc-quick-field-error[hidden] { display: none; }
.pc-quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-quick-chips button { min-height: 40px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: border-color var(--dur-2) var(--ease-soft), background-color var(--dur-2) var(--ease-soft); }
.pc-quick-chips button:hover { border-color: var(--blue); color: var(--blue-strong); background: var(--surface-blue); }
.pc-quick-chips button:active { transform: translateY(1px); }
.pc-quick-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.pc-quick-actions .button[hidden] { display: none; }
.pc-quick-actions .button.primary { margin-left: auto; min-width: 140px; }
.pc-quick-readonly { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--amber); background: var(--surface-amber); font-size: 13.5px; font-weight: 650; }
.pc-quick-readonly[hidden] { display: none; }
.pc-quick-alt { margin: 14px 4px 0; }
.pc-quick-alt-inline { margin: 16px 0 0; }
.pc-link { padding: 6px 0; border: 0; color: var(--blue-strong); background: none; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pc-link:hover { color: var(--navy); }
.pc-link:focus-visible { outline: 0; box-shadow: var(--focus-ring); border-radius: 3px; }
.launch-view.pc-detailed .pc-quick-alt-inline { display: block; }

.pc-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pc-style { display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-2) var(--ease-soft), box-shadow var(--dur-2) var(--ease-soft), transform var(--dur-2) var(--ease-soft); }
.pc-style:hover:not(:disabled) { border-color: var(--blue); box-shadow: 0 10px 28px rgba(29, 46, 78, .12); transform: translateY(-2px); }
.pc-style:active:not(:disabled) { transform: translateY(0); }
.pc-style[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 111, 214, .2); }
.pc-style:disabled { cursor: not-allowed; opacity: .6; }
.pc-style:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.pc-style-copy { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.pc-style-copy strong { font-size: 16px; font-weight: 800; }
.pc-style-copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.pc-style-sample { display: grid; align-content: start; gap: 8px; aspect-ratio: 4 / 3; padding: 0 14px 14px; overflow: hidden; border-radius: 9px; }
.pc-sample-bar { height: 10px; margin: 0 -14px 6px; }
.pc-sample-title { font-size: 21px; line-height: 1.1; }
.pc-sample-line { height: 6px; border-radius: 3px; background: currentColor; opacity: .18; }
.pc-sample-line.short { width: 62%; }
.pc-sample-button { justify-self: start; margin-top: 4px; padding: 5px 10px; font-size: 11px; font-weight: 700; }
.pc-style-warm { color: #4a2a18; background: #fbf0e4; }
.pc-style-warm .pc-sample-bar { background: #c4562d; }
.pc-style-warm .pc-sample-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.pc-style-warm .pc-sample-button { border-radius: var(--radius-pill); color: #fff; background: #c4562d; }
.pc-style-modern { color: #10243f; background: #ffffff; box-shadow: inset 0 0 0 1px #e1e7ef; }
.pc-style-modern .pc-sample-bar { background: #0b6fd6; }
.pc-style-modern .pc-sample-title { font-weight: 800; letter-spacing: -.02em; }
.pc-style-modern .pc-sample-button { border-radius: var(--radius-xs); color: #fff; background: #0b6fd6; }
.pc-style-elegant { color: #f3eee2; background: #161b2c; }
.pc-style-elegant .pc-sample-bar { background: #c9a24a; }
.pc-style-elegant .pc-sample-title { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.pc-style-elegant .pc-sample-line { opacity: .3; }
.pc-style-elegant .pc-sample-button { border: 1px solid #c9a24a; color: #e8d39d; background: transparent; }

.pc-quick-error { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #f1c2cb; border-radius: var(--radius); color: var(--ink); background: var(--surface-red); }
.pc-quick-error[hidden] { display: none; }
.pc-quick-error > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--red); }
.pc-quick-error strong { display: block; margin-bottom: 3px; font-size: 14.5px; }
.pc-quick-error p { margin: 0; font-size: 14px; line-height: 1.5; }
.pc-quick-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }

/* ---------- Menu trié par type de projet ---------- */
/* Entrée hors du type de projet ou « Bientôt » : absente du menu, son lien reste valable. */
.nav-entry[data-unlisted] { display: none; }

/* ---------- Modification directe dans l’éditeur ---------- */
.site-frame [data-athern-hover="text"] { outline: 2px dashed rgba(11, 111, 214, .6); outline-offset: 3px; cursor: text; }
.site-frame [contenteditable="true"] { outline: 2px solid var(--blue) !important; outline-offset: 3px; border-radius: 2px; cursor: text; caret-color: currentColor; box-shadow: 0 0 0 6px rgba(11, 111, 214, .14); }
.pc-editor-hint { position: fixed; z-index: 60; display: flex; align-items: flex-start; gap: 14px; width: min(520px, calc(100vw - 32px)); padding: 16px 18px; border-radius: var(--radius-lg); color: #fff; background: var(--navy); box-shadow: var(--shadow-lg); transform: translateX(-50%); }
.pc-editor-hint[hidden], body:not(.builder-active) .pc-editor-hint { display: none; }
.pc-editor-hint-icon { display: inline-grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); color: #7fdcf0; background: rgba(255, 255, 255, .08); }
.pc-editor-hint-icon svg { width: 20px; height: 20px; }
.pc-editor-hint h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.pc-editor-hint p { margin: 0; color: #d6deeb; font-size: 13.5px; line-height: 1.5; }
.pc-editor-hint-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-editor-hint .button.primary { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.pc-editor-hint .button.primary:hover { background: var(--blue-strong); }
.pc-editor-hint .button.secondary { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.pc-editor-hint .button.secondary:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .pc-intent { padding: 16px; }
  .pc-intent-results { left: 16px; right: 16px; }
  .pc-intent-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; padding-bottom: 2px; scrollbar-width: none; }
  .pc-intent-chips::-webkit-scrollbar { display: none; }
  .pc-chip { flex: none; }
  .pc-launch-head { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .pc-launch-progress { grid-column: 1 / -1; grid-row: 2; }
  .pc-launch-track { flex: 1; width: auto; }
  .pc-launch-step { grid-template-columns: 30px minmax(0, 1fr); padding: 10px 8px; }
  .pc-launch-step > .button, .pc-launch-step > .pc-launch-note { grid-column: 2; justify-self: start; margin-top: 6px; }
  .pc-quick-card { padding: 20px 16px 18px; }
  .pc-style-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pc-style { flex-direction: row; align-items: center; padding: 8px; }
  .pc-style-sample { flex: none; width: 112px; padding: 0 9px 9px; gap: 5px; }
  .pc-sample-bar { height: 7px; margin: 0 -9px 3px; }
  .pc-sample-title { font-size: 14px; }
  .pc-sample-line { height: 4px; }
  .pc-sample-button { padding: 3px 7px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-style, .pc-launch-track span, .pc-quick-meter li { transition: none; }
  .pc-style:hover:not(:disabled) { transform: none; }
}

/* ---------- Tableau de bord simplifié ---------- */
/* Étape en cours mise en avant ; les autres tiennent sur une ligne. */
.pc-launch-list { padding: 8px 10px 12px; }
.pc-launch-step.is-compact { grid-template-columns: 26px minmax(0, 1fr); min-height: 0; padding: 6px 12px; }
.pc-launch-step.is-compact .pc-launch-mark { width: 24px; height: 24px; font-size: 12px; }
.pc-launch-step.is-compact .pc-launch-mark svg { width: 14px; height: 14px; }
.pc-launch-step.is-compact .pc-launch-copy strong { font-size: 14px; font-weight: 650; }
.pc-launch-step.is-compact:not(.is-done) .pc-launch-copy strong { color: var(--ink); }
/* Étape à faire : toute la ligne mène à l’écran concerné, sans concurrencer l’action principale. */
.pc-launch-step.is-actionable { position: relative; grid-template-columns: 26px minmax(0, 1fr) auto; }
.pc-launch-step.is-actionable:hover { background: var(--surface-2); }
.pc-launch-link { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.pc-launch-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pc-launch-link:hover { color: var(--blue-strong); text-decoration-color: currentColor; }
.pc-launch-link:focus-visible { outline: none; }
.pc-launch-link:focus-visible::after { box-shadow: var(--focus-ring); }
.pc-launch-chevron { width: 16px; height: 16px; color: var(--muted); }
.pc-launch-step.is-next { grid-template-columns: 32px minmax(0, 1fr) auto; margin: 4px 0 6px; padding: 14px 16px; border: 1px solid #c9dcf5; }
.pc-launch-step.is-next .pc-launch-copy strong { font-size: 16px; font-weight: 800; }
.pc-launch-step.is-next .pc-launch-copy small { font-size: 13.5px; }
.pc-launch-kicker { color: var(--blue-strong); font-size: 12.5px; font-weight: 750; }
.pc-launch-note { display: inline-flex; align-items: center; gap: 6px; }
.pc-launch-note svg { width: 15px; height: 15px; }
.pc-chip { display: inline-flex; align-items: center; gap: 8px; }
.pc-chip-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); color: #fff; background: var(--blue-strong); font-size: 12px; font-weight: 800; }
@media (max-width: 640px) {
  .pc-launch-step.is-next { grid-template-columns: 32px minmax(0, 1fr); }
  .pc-launch-step.is-next > .button, .pc-launch-step.is-next > .pc-launch-note { grid-column: 1 / -1; justify-self: stretch; }
}
/* Trois blocs en tête : la route de lancement (ou la prochaine étape), la recherche, l’état du site. */
.today-grid.today-top { margin-bottom: 18px; }

/* Parcours novice : choix de création, nom du site, plan en mots simples. */
.pc-quick-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pc-quick-alt-sep { color: var(--subtle); }
.launch-back { margin: 0 0 14px; }
.launch-back .pc-link { display: inline-flex; align-items: center; gap: 6px; }
.launch-back .pc-link svg { width: 16px; height: 16px; }
.plan-name-field { display: grid; gap: 6px; margin: 10px 0 12px; }
.plan-name-field > span { color: var(--ink); font-size: var(--text-md); font-weight: 750; }
.plan-name-field input { min-height: var(--control-lg); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); font: inherit; font-size: 20px; font-weight: 750; letter-spacing: var(--tracking-snug); }
.plan-name-field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: var(--focus-ring); }
.plan-name-field small { color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.proposal-mode-simple { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface-green); font-size: var(--text-md); line-height: 1.45; }
.proposal-mode-simple svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
/* D1 : le lien de retour occupe toute la ligne, au-dessus des deux colonnes de l’import. */
.import-layout > .launch-back, .create-layout > .launch-back { grid-column: 1 / -1; }
/* Sources d’import : chaque carte garde au moins 240 px (sinon elles s’empilent). */
.launch-view .source-picker { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Type de projet : cartes de choix (création, tableau de bord) ---------- */
.pc-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 14px; }
.pc-type { display: flex; align-items: flex-start; gap: 12px; min-height: var(--touch-min); padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, transform .16s ease; }
.pc-type:hover { border-color: var(--line-hover); background: var(--surface-2, var(--canvas)); }
.pc-type:active { transform: translateY(1px); }
.pc-type:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pc-type[aria-pressed="true"] { border-color: var(--blue); background: var(--surface-blue); }
.pc-type:disabled { cursor: not-allowed; opacity: .6; }
.pc-type-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--blue-strong); background: var(--surface-blue); }
.pc-type[aria-pressed="true"] .pc-type-icon { color: #fff; background: var(--blue); }
.pc-type-icon svg { width: 18px; height: 18px; }
.pc-type-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-type-copy strong { font-size: var(--text-md); font-weight: 600; line-height: 1.3; }
.pc-type-copy small { color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.pc-project { padding: 18px 20px 20px; }
@media (max-width: 640px) { .pc-project { padding: 16px; } }
.pc-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-project-head h2 { margin: 0; }
.pc-project-head h2:focus { outline: none; }
.pc-project-head p { max-width: 65ch; margin: 4px 0 0; color: var(--muted); }
.pc-quick-step .pc-type-grid { margin-top: 6px; }
/* Site sans type : suggestion compacte à confirmer, la grille ne s’ouvre qu’à la demande. */
.pc-project.is-suggesting { padding: 14px 16px; }
.pc-project-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pc-project-suggest-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--blue-strong); background: var(--surface-blue); }
.pc-project-suggest-icon svg { width: 18px; height: 18px; }
.pc-project-suggest-text { flex: 1 1 220px; margin: 0; color: var(--ink-2); }
.pc-project-suggest-text strong { color: var(--ink); font-weight: 600; }
.pc-project-suggest-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-project-readonly { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: var(--text-sm); }
.pc-project-readonly svg { width: 15px; height: 15px; flex: none; }
.today-site-type { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; color: var(--muted); font-size: var(--text-sm); }
.today-site-type[hidden] { display: none; }
.today-site-type-icon { display: inline-flex; }
.today-site-type-icon svg { width: 15px; height: 15px; }
.today-site-type .pc-link { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .pc-type { transition: none; } .pc-type:active { transform: none; } }

/* ---------- « Nouveau site » : retour au site en cours et choix du point de départ ---------- */
/* Colonne du parcours : 860 px pour les quatre questions, largeur de contenu sinon. */
.view.launch-view { --launch-col-start: max(0px, calc((100% - var(--content-max)) / 2)); }
.view.launch-view:not(.pc-detailed):has(> .pc-quick:not([hidden])) { --launch-col-start: max(0px, calc((100% - 860px) / 2)); }
.view.launch-view > .launch-cancel { display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 36px; margin: 0 0 6px var(--launch-col-start); padding: 0 10px 0 6px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background-color var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft); }
.view.launch-view > .launch-cancel:hover { color: var(--ink); background: var(--surface-3); }
.view.launch-view > .launch-cancel:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.view.launch-view > .launch-cancel svg { width: 16px; height: 16px; }
.view.launch-view > .launch-cancel[hidden] { display: none; }
.view.launch-view > .launch-mode-switch { display: flex; width: fit-content; margin: 0 0 20px var(--launch-col-start); }
@media (max-width: 860px) {
  .view.launch-view > .launch-mode-switch { width: 100%; margin-left: 0; }
  .view.launch-view > .launch-mode-switch button { flex: 1; min-width: 0; }
}

/* Tableau de bord « Atelier calme » : voir views/accueil-resultats.css. */

/* =========================================================================
   « Atelier calme » : création d’un site (#view-launch, parcours en 4 questions
   et description libre). Plus de carte autour des questions : la question est
   posée sur le fond, les types de projet sont une liste de lignes à choisir.
   Les règles du tableau de bord (#pcProjectTypes) ne sont pas touchées.
   ========================================================================= */
.launch-view .launch-mode-switch.at-tabs { gap: var(--space-6); padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.launch-view .launch-mode-switch.at-tabs button { gap: 8px; min-height: 44px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; box-shadow: none; font-weight: 500; }
.launch-view .launch-mode-switch.at-tabs button:hover { color: var(--ink); }
.launch-view .launch-mode-switch.at-tabs button.active { color: var(--ink); font-weight: 600; }
.launch-view .launch-mode-switch.at-tabs button svg { width: 16px; height: 16px; color: currentColor; }
.launch-view .page-heading .at-page-title { margin: 0; }
.launch-view .page-heading .at-page-intent { margin-top: 6px; }

/* Questions : pas de boîte, progression en clair. */
.launch-view .pc-quick { max-width: 860px; }
.launch-view .pc-quick-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.launch-view .pc-quick-top { justify-content: flex-start; gap: var(--space-4); margin-bottom: var(--space-3); }
.launch-view .pc-quick-count { color: var(--muted); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.launch-view .pc-quick-meter { gap: 4px; }
.launch-view .pc-quick-meter li { width: 24px; height: 2px; border-radius: 0; background: var(--line-strong); }
.launch-view .pc-quick-meter li.is-on { background: var(--ink); }
.launch-view .pc-quick-question { margin: 0 0 var(--space-2); color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.launch-view .pc-quick-hint-lead { max-width: 65ch; margin: 0 0 var(--space-5); color: var(--muted); font-size: var(--text-md); line-height: 1.5; }
.launch-view .pc-quick-label { color: var(--ink); font-size: var(--text-sm); font-weight: 500; }
.launch-view .pc-quick-input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); background: var(--surface); font-size: 16px; }
.launch-view .pc-quick-input:hover { border-color: var(--line-hover); }
.launch-view .pc-quick-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
.launch-view .pc-quick-hint { font-size: var(--text-sm); }
.launch-view .pc-quick-field-error { font-weight: 500; }
.launch-view .pc-quick-chips button { min-height: 36px; padding: 0 12px; border-color: var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-2); background: transparent; font-size: var(--text-sm); font-weight: 500; }
.launch-view .pc-quick-chips button:hover { border-color: var(--line-hover); color: var(--ink); background: var(--row-hover); }
.launch-view .pc-quick-actions { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.launch-view .pc-quick-actions .button.primary { min-width: 120px; }
.launch-view .pc-quick-readonly { padding: 0; color: var(--muted); background: transparent; font-size: var(--text-sm); }
.launch-view .pc-quick-error { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.launch-view .pc-quick-alt { margin: var(--space-4) 0 0; }
.launch-view .pc-link { color: var(--blue-strong); font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.launch-view .pc-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Types de projet : liste simple sur trois colonnes, une ligne par type. */
.launch-view .pc-quick-step .pc-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-6); margin-top: 0; border-top: 1px solid var(--line); }
.launch-view .pc-quick-step .pc-type { position: relative; align-items: flex-start; gap: var(--space-3); min-height: 64px; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; transition: background-color var(--dur-2) var(--ease-soft); }
.launch-view .pc-quick-step .pc-type:hover { background: var(--row-hover); }
.launch-view .pc-quick-step .pc-type:active { transform: none; }
.launch-view .pc-quick-step .pc-type:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; box-shadow: none; }
.launch-view .pc-quick-step .pc-type-icon { width: 16px; height: 20px; border-radius: 0; color: var(--muted); background: none; }
.launch-view .pc-quick-step .pc-type-icon svg { width: 16px; height: 16px; }
.launch-view .pc-quick-step .pc-type-copy strong { font-weight: 500; }
.launch-view .pc-quick-step .pc-type[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset var(--accent-bar) 0 0 var(--blue); }
.launch-view .pc-quick-step .pc-type[aria-pressed="true"] .pc-type-icon { color: var(--ink); background: none; }
.launch-view .pc-quick-step .pc-type[aria-pressed="true"] .pc-type-copy strong { font-weight: 600; }

/* Styles : l’échantillon reste (il montre le rendu), le cadre s’efface. */
.launch-view .pc-style-grid { gap: var(--space-5); }
.launch-view .pc-style { gap: 10px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; }
.launch-view .pc-style:hover:not(:disabled) { border-color: transparent; box-shadow: none; transform: none; }
.launch-view .pc-style:hover:not(:disabled) .pc-style-sample { box-shadow: 0 0 0 1px var(--line-hover); }
.launch-view .pc-style-sample { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.launch-view .pc-style[aria-pressed="true"] { box-shadow: none; }
.launch-view .pc-style[aria-pressed="true"] .pc-style-sample { box-shadow: 0 0 0 2px var(--ink); }
.launch-view .pc-style:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; box-shadow: none; }
.launch-view .pc-style-copy { padding: 0; }
.launch-view .pc-style-copy strong { font-size: var(--text-md); font-weight: 600; }

/* Description libre : deux colonnes posées sur le fond, sans cartes. */
.launch-view .launch-stepper { gap: var(--space-6); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.launch-view .launch-stepper li { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.launch-view .launch-stepper li > span { grid-row: span 2; width: auto; height: auto; border-radius: 0; color: var(--muted); background: none; font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.launch-view .launch-stepper li > span::after { content: "."; }
.launch-view .launch-stepper strong { color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.launch-view .launch-stepper small { font-size: var(--text-xs); }
.launch-view .launch-stepper li[aria-current="step"] { border: 0; box-shadow: none; }
.launch-view .launch-stepper li[aria-current="step"] > span, .launch-view .launch-stepper li[aria-current="step"] strong { color: var(--ink); background: none; font-weight: 600; }
.launch-view .launch-stepper li.done > span { color: var(--green); background: none; font-size: 0; }
.launch-view .launch-stepper li.done > span::before { font-size: var(--text-sm); }
.launch-view .launch-stepper li.done > span::after { content: none; }
.launch-view .create-layout { gap: var(--space-6) var(--space-9); }
.launch-view :is(.create-brief, .create-plan) { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.launch-view .create-plan { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.launch-view .create-plan.ai-mark { border-left: 1px solid var(--line) !important; }
.launch-view :is(.create-brief, .create-plan) h2 { font-size: var(--text-lg); font-weight: 600; letter-spacing: var(--tracking-snug); }
.launch-view .create-brief .panel-heading .state { color: var(--muted); }
.launch-view .create-plan .ai-tag, .launch-view .diagnostic-title .ai-tag { display: block; width: fit-content; padding: 0; border: 0; color: var(--muted); background: none; font-size: var(--text-sm); font-weight: 500; }
.launch-view .create-plan .ai-tag::before, .launch-view .diagnostic-title .ai-tag::before { content: none; }
.launch-view .generated-outline li { grid-template-columns: 16px minmax(0, 1fr); }
.launch-view .generated-outline li > svg { width: 16px; height: 16px; margin-top: 2px; padding: 0; border-radius: 0; color: var(--muted); background: none; }
.launch-view .generated-outline strong { font-weight: 500; }
.launch-view .brief-examples-title { font-weight: 500; }
.launch-view .brief-suggestions button { min-height: 36px; padding: 0 12px; font-weight: 500; }
.launch-view .brief-suggestions button svg { color: var(--muted); }
.launch-view .brief-file-row { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.launch-view .brief-file-row > span > svg { width: 16px; color: var(--muted); }
.launch-view .generation-note { padding: 0; border: 0; border-radius: 0; color: var(--ink-2); background: transparent; }
.launch-view .generation-note > svg { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.launch-view .generation-note small { color: var(--muted); }
.launch-view .ai-proposal-preview { padding: 0; border: 0; border-radius: 0; background: transparent; }
@media (max-width: 1100px) {
  .launch-view .create-plan, .launch-view .create-plan.ai-mark { padding: var(--space-6) 0 0; border-left: 0 !important; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .launch-view .pc-quick-step .pc-type-grid { grid-template-columns: minmax(0, 1fr); }
  .launch-view .pc-quick-step .pc-type { min-height: var(--touch-min); }
  .launch-view .pc-quick-actions { margin-top: var(--space-5); background: var(--canvas); }
  .launch-view .pc-quick-chips button { min-height: var(--touch-min); }
  .launch-view .launch-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .launch-view :is(.create-brief, .create-plan) { padding: 0; }
  .launch-view .create-plan { padding-top: var(--space-6); }
  .launch-view .launch-mode-switch.at-tabs { width: 100%; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .launch-view .pc-quick-step .pc-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
