// Une étape par écran, colonne unique et étroite : lisible sur ordinateur comme // sur téléphone (la barre de navigation reste collée en bas de l'écran). .wizard { max-width: 680px; margin: 0 auto; padding: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.25rem; min-height: 100%; } .wizard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; } .wizard-back { display: inline-flex; align-items: center; gap: 0.35rem; color: #9ca3af; font-size: 0.85rem; text-decoration: none; &:hover { color: #e5e7eb; } &:focus-visible { outline: 2px solid #6c63ff; outline-offset: 2px; border-radius: 4px; } } .wizard-method { display: inline-flex; align-items: center; gap: 0.35rem; color: #fbbf24; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; } .wizard-progress { flex-basis: 100%; display: flex; align-items: center; gap: 0.75rem; } .progress-text { flex-shrink: 0; font-size: 0.8rem; color: #9ca3af; font-variant-numeric: tabular-nums; } .progress-track { flex: 1; height: 6px; border-radius: 999px; background: #1f2937; overflow: hidden; } .progress-fill { display: block; height: 100%; background: #6c63ff; border-radius: 999px; transition: width 0.25s ease; } .wizard-step { display: flex; flex-direction: column; gap: 1.1rem; h1 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: white; text-wrap: balance; &:focus { outline: none; } } } .step-why { margin: 0; font-size: 0.95rem; line-height: 1.6; color: #d1d5db; } .step-example { padding: 0.85rem 1rem; border-radius: 8px; background: rgba(108, 99, 255, 0.08); border: 1px solid rgba(108, 99, 255, 0.25); p { margin: 0.3rem 0 0; font-size: 0.9rem; line-height: 1.55; font-style: italic; color: #d1d5db; } } .example-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #a5b4fc; } .step-fields { display: flex; flex-direction: column; gap: 1.1rem; } // --- Placement & choix --------------------------------------------------------------- .placement { margin: 0; padding: 0; border: none; display: flex; flex-direction: column; gap: 0.6rem; } .option-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-radius: 8px; border: 1px solid #374151; background: #111827; color: #e5e7eb; font-size: 0.92rem; cursor: pointer; &.selected { border-color: #6c63ff; background: rgba(108, 99, 255, 0.1); } input { accent-color: #6c63ff; width: 18px; height: 18px; margin: 0; } } .nested { margin: 0 0 0.4rem 1.6rem; } .choice-field { margin: 0; padding: 0; border: none; legend { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #d1d5db; } } .choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; } .choice-chip { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid #374151; background: #111827; color: #d1d5db; font-size: 0.88rem; cursor: pointer; &.selected { border-color: #6c63ff; color: white; background: rgba(108, 99, 255, 0.15); } input { accent-color: #6c63ff; margin: 0; } &:focus-within { outline: 2px solid #6c63ff; outline-offset: 2px; } } // --- Récapitulatif -------------------------------------------------------------------- .review { display: flex; flex-direction: column; gap: 1rem; } .review-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; dt { color: #9ca3af; font-size: 0.85rem; } dd { margin: 0; color: #f3f4f6; font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; } } .review-scenes { margin: 0; padding: 0; list-style: none; counter-reset: scene; display: flex; flex-direction: column; gap: 0.45rem; li { counter-increment: scene; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border-radius: 8px; background: #111827; border: 1px solid #1f2937; &::before { content: counter(scene); flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: #1f2937; color: #a5b4fc; font-size: 0.8rem; font-weight: 600; } } } .scene-name { flex: 1; min-width: 0; color: #f3f4f6; font-size: 0.9rem; overflow-wrap: anywhere; } .scene-type { flex-shrink: 0; padding: 0.1rem 0.55rem; border-radius: 999px; background: #1f2937; color: #9ca3af; font-size: 0.75rem; } .link-toggle { display: flex; align-items: center; gap: 0.6rem; color: #d1d5db; font-size: 0.9rem; cursor: pointer; input { accent-color: #6c63ff; width: 18px; height: 18px; margin: 0; } } .review-note { margin: 0.75rem 0 0; padding: 0.55rem 0.75rem; border-left: 3px solid #6c63ff; background: rgba(108, 99, 255, 0.08); border-radius: 0 6px 6px 0; color: #c7d2fe; font-size: 0.85rem; line-height: 1.45; } .review-after { margin: 0; color: #9ca3af; font-size: 0.85rem; line-height: 1.55; } .wizard-error { margin: 0; color: #fca5a5; font-size: 0.88rem; } // --- Navigation ------------------------------------------------------------------------- .wizard-nav { position: sticky; bottom: 0; margin-top: auto; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 0; background: #0a0a14; border-top: 1px solid #1f2937; .btn-primary { margin-left: auto; } button { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; } } .btn-ghost { padding: 0.6rem 0.8rem; border: none; border-radius: 8px; background: transparent; color: #9ca3af; font-size: 0.85rem; cursor: pointer; &:hover { color: #e5e7eb; background: #111827; } &:focus-visible { outline: 2px solid #6c63ff; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } @media (max-width: 600px) { .wizard { padding-top: 1rem; } .wizard-step h1 { font-size: 1.3rem; } .wizard-nav { flex-wrap: wrap; gap: 0.5rem; .btn-secondary, .btn-primary { flex: 1; padding-left: 0.75rem; padding-right: 0.75rem; } .btn-ghost { order: -1; flex-basis: 100%; justify-content: flex-start; padding-left: 0; } } } @media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } } // IA : idée de départ et propositions (ne remplit que les champs encore libres). .ai-idea { margin: 0 0 1.25rem; padding: 0.8rem 0.9rem; border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); border-radius: 10px; display: flex; flex-direction: column; gap: 0.55rem; textarea { background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 0.6rem 0.8rem; color: white; font: inherit; resize: vertical; } } .ai-idea-label { display: inline-flex; align-items: center; gap: 0.35rem; color: #fde68a; font-weight: 600; font-size: 0.9rem; } .ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; } .btn-ai, .btn-ai-secondary { padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.85rem; cursor: pointer; border: 1px solid rgba(251, 191, 36, 0.45); &:disabled { opacity: 0.6; cursor: default; } } .btn-ai { background: rgba(251, 191, 36, 0.18); color: #fde68a; font-weight: 600; } .btn-ai-secondary { background: transparent; color: #fde68a; } .btn-link { background: none; border: none; color: #a5b4fc; text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 0; } .ai-note { margin: 0; color: #c7d2fe; font-size: 0.85rem; } .ai-error { margin: 0; color: #fca5a5; font-size: 0.85rem; } .ai-hint { margin: 0; color: #9ca3af; font-size: 0.78rem; font-style: italic; }