/* Pages des options du dossier (12 novembre 2026, demande d'Alexandre : maquettes, présentation guidée et dossier
   partenaire étaient « déphasées du reste du site »). Un seul vocabulaire pour les trois : un en-tête à pastille d'icône,
   trois étapes pour dire comment ça marche, des cartes pour chaque groupe de champs, et — pour une commande — un
   récapitulatif collant à droite qui porte le prix et le bouton. Couleurs et tailles par jetons seulement (jetons_test). */

.opt-page { max-width: 1100px; display: grid; gap: 20px; }
.opt-page > * { margin: 0; min-width: 0; }
.opt-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted); text-decoration: none; justify-self: start; }
.opt-back:hover { color: var(--ln-ink); }

/* ---- En-tête --------------------------------------------------------------------------------------------------- */
.opt-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.opt-head__tile { flex: none; width: 52px; height: 52px; border-radius: var(--ln-radius); display: grid; place-items: center; background: var(--ln-sky); color: var(--ln-accent); }
.opt-head__tile .ln-icon { width: 26px; height: 26px; }
.opt-head__text { flex: 1 1 320px; min-width: 0; }
.opt-head h1 { margin: 0 0 6px; font-size: var(--ln-text-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.opt-head__lead { margin: 0; max-width: 64ch; font-size: var(--ln-text-md); line-height: 1.55; color: var(--ln-muted); }
.opt-head__meta { margin: 8px 0 0; font-size: var(--ln-text-sm); color: var(--ln-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.opt-head__meta .ln-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.opt-head__side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.opt-price-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--ln-page); border: 1px solid var(--ln-spend-ring); font-weight: 600; font-size: var(--ln-text-base); white-space: nowrap; }
.opt-price-chip .ln-icon { width: 15px; height: 15px; color: var(--ln-accent); }

/* ---- Trois étapes --------------------------------------------------------------------------------------------- */
.opt-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: opt-step; }
.opt-steps li { position: relative; margin: 0; padding: 14px 16px 14px 56px; background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); }
.opt-steps li::before { counter-increment: opt-step; content: counter(opt-step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ln-sky); color: var(--ln-accent-strong); font-weight: 700; font-size: var(--ln-text-sm); }
.opt-steps strong { display: block; font-size: var(--ln-text-base); font-weight: 600; color: var(--ln-ink); }
.opt-steps span { display: block; margin-top: 2px; font-size: var(--ln-text-sm); line-height: 1.45; color: var(--ln-muted); }
.opt-steps .opt-steps__free { color: var(--ln-good); font-weight: 600; }

/* ---- Mise en page d'une commande ------------------------------------------------------------------------------ */
.opt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.opt-main { display: grid; gap: 16px; min-width: 0; }
.opt-main > * { margin: 0; min-width: 0; }
.opt-aside { position: sticky; top: 76px; display: grid; gap: 14px; min-width: 0; }
.opt-aside > * { margin: 0; }

/* ---- Cartes --------------------------------------------------------------------------------------------------- */
.opt-card { background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); padding: 20px 22px; display: grid; gap: 14px; min-width: 0; }
.opt-card > * { margin: 0; min-width: 0; }
.opt-card h2, .opt-card h3 { font-size: var(--ln-text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.opt-card h3 { font-size: var(--ln-text-md); }
.opt-card h2 .ln-icon, .opt-card h3 .ln-icon { width: 18px; height: 18px; color: var(--ln-accent); flex: none; }
.opt-card__lead { color: var(--ln-muted); font-size: var(--ln-text-base); line-height: 1.55; max-width: 66ch; }
.opt-card .field { margin: 0; }
.opt-card textarea { width: 100%; }
.opt-card--flat { background: transparent; border-style: dashed; border-color: var(--ln-dash-line); }
.opt-card--warn { background: var(--ln-warn-bg); border-color: var(--ln-warn-line); }
.opt-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--ln-radius-sm); background: var(--ln-sky-faint); border: 1px solid var(--ln-sky-line); font-size: var(--ln-text-sm); line-height: 1.5; color: var(--ln-ink); }
.opt-note .ln-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ln-accent); }
.opt-note p { margin: 0; }
.opt-note--alert { background: var(--ln-danger-bg); border-color: var(--ln-danger-line); }
.opt-note--alert .ln-icon { color: var(--ln-danger); }
.opt-note--warn { background: var(--ln-warn-bg); border-color: var(--ln-warn-line); }
.opt-note--warn .ln-icon { color: var(--ln-warn-ink); }

/* ---- Choix par carte (un seul à la fois) ------------------------------------------------------------------------ */
.opt-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-choices legend { padding: 0; margin: 0 0 10px; font-weight: 700; font-size: var(--ln-text-lg); letter-spacing: -0.01em; }
.opt-choices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opt-page .opt-choice { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 16px 14px; border: 1px solid var(--ln-control-line); border-radius: var(--ln-radius); background: var(--ln-page); cursor: pointer; transition: border-color var(--ln-ease), background var(--ln-ease), box-shadow var(--ln-ease); }
.opt-choice:hover { border-color: var(--ln-accent); }
.opt-choice input { position: absolute; top: 14px; right: 14px; margin: 0; width: 18px; height: 18px; accent-color: var(--ln-accent); }
.opt-choice:has(input:checked) { border-color: var(--ln-accent); background: var(--ln-sky-faint); box-shadow: 0 0 0 1px var(--ln-accent); }
.opt-choice:has(input:focus-visible) { outline: 2px solid var(--ln-focus); outline-offset: 2px; }
.opt-choice__art { width: 100%; height: 76px; margin-bottom: 4px; border-radius: var(--ln-radius-sm); background: var(--ln-surface-muted); border: 1px solid var(--ln-line); display: grid; place-items: center; color: var(--ln-muted); }
.opt-choice__art .ln-icon { width: 30px; height: 30px; }
.opt-choice:has(input:checked) .opt-choice__art { color: var(--ln-accent); border-color: var(--ln-sky-line); background: var(--ln-page); }
.opt-choice strong { font-size: var(--ln-text-base); font-weight: 600; color: var(--ln-ink); padding-right: 26px; }
.opt-choice span.opt-choice__hint { font-size: var(--ln-text-sm); line-height: 1.5; color: var(--ln-muted); }

/* ---- Case à cocher en carte ---------------------------------------------------------------------------------- */
.opt-page .opt-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); background: var(--ln-page); cursor: pointer; transition: border-color var(--ln-ease), background var(--ln-ease); }
.opt-check:hover { border-color: var(--ln-line-strong); }
.opt-check input { flex: none; margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--ln-accent); }
.opt-check:has(input:checked) { border-color: var(--ln-accent); background: var(--ln-sky-faint); }
.opt-check:has(input:focus-visible) { outline: 2px solid var(--ln-focus); outline-offset: 2px; }
.opt-check__text { display: grid; gap: 2px; min-width: 0; }
.opt-check__text strong { font-weight: 600; font-size: var(--ln-text-base); color: var(--ln-ink); }
.opt-check__text small { font-size: var(--ln-text-sm); line-height: 1.45; color: var(--ln-muted); }
.opt-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-checks--single { grid-template-columns: minmax(0, 1fr); }
.opt-checks legend { padding: 0; }

/* ---- Récapitulatif collant ------------------------------------------------------------------------------------- */
.opt-summary { background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); padding: 20px; display: grid; gap: 14px; box-shadow: var(--ln-shadow-card); }
.opt-summary > * { margin: 0; }
.opt-summary h2 { font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted); display: flex; align-items: center; gap: 8px; }
.opt-summary h2 .ln-icon { width: 15px; height: 15px; }
.opt-summary__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.opt-summary__price strong { font-size: var(--ln-text-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.opt-summary__price span { font-size: var(--ln-text-base); color: var(--ln-muted); }
.opt-summary__rows { margin: 0; display: grid; gap: 0; }
.opt-summary__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ln-line); font-size: var(--ln-text-sm); }
.opt-summary__rows dt { color: var(--ln-muted); }
.opt-summary__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.opt-summary .button { width: 100%; justify-content: center; }
.opt-summary .opt-summary__cancel { text-align: center; font-size: var(--ln-text-sm); }
.opt-summary__fine { font-size: var(--ln-text-sm); line-height: 1.5; color: var(--ln-muted); }
.opt-free { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ln-good); }
.opt-free .ln-icon { width: 15px; height: 15px; }

/* ---- Listes (cartes cliquables) ------------------------------------------------------------------------------- */
.opt-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 24px; border: 1px dashed var(--ln-dash-line); border-radius: var(--ln-radius); }
.opt-empty > * { margin: 0; }
.opt-empty__tile { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ln-sky); color: var(--ln-accent); }
.opt-empty__tile .ln-icon { width: 22px; height: 22px; }
.opt-empty strong { font-size: var(--ln-text-lg); font-weight: 700; }
.opt-empty p { max-width: 52ch; color: var(--ln-muted); }
.opt-list-title { margin: 0; font-size: var(--ln-text-md); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.opt-list-title span { font-weight: 500; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.opt-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.opt-cards > li { margin: 0; min-width: 0; }
.opt-tile { position: relative; display: grid; gap: 8px; height: 100%; padding: 16px 18px; background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); transition: border-color var(--ln-ease), box-shadow var(--ln-ease); }
.opt-tile:hover { border-color: var(--ln-accent); box-shadow: var(--ln-shadow-card); }
.opt-tile > * { margin: 0; }
.opt-tile__title { font-weight: 700; font-size: var(--ln-text-md); color: var(--ln-ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.opt-tile__title::after { content: ""; position: absolute; inset: 0; }
.opt-tile__title .ln-icon { width: 16px; height: 16px; color: var(--ln-accent); }
.opt-tile__meta { font-size: var(--ln-text-sm); color: var(--ln-muted); line-height: 1.5; }
.opt-state { display: inline-flex; align-items: center; gap: 7px; font-size: var(--ln-text-sm); font-weight: 600; }
.opt-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ln-line-strong); flex: none; }
.opt-state--done { color: var(--ln-good); }
.opt-state--done::before { background: var(--ln-good); }
.opt-state--wait { color: var(--ln-accent-strong); }
.opt-state--wait::before { background: var(--ln-accent); box-shadow: 0 0 0 3px var(--ln-sky); }
.opt-state--fail { color: var(--ln-danger); }
.opt-state--fail::before { background: var(--ln-danger); }
.opt-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.opt-tags li { margin: 0; padding: 2px 9px; border-radius: 999px; background: var(--ln-surface-muted); border: 1px solid var(--ln-line); font-size: var(--ln-text-xs); font-weight: 600; color: var(--ln-ink); }

/* ---- Planches de maquettes ------------------------------------------------------------------------------------ */
.opt-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.opt-screen { margin: 0; display: grid; gap: 10px; padding: 14px; background: var(--ln-page); border: 1px solid var(--ln-line); border-radius: var(--ln-radius); min-width: 0; }
.opt-screen > * { margin: 0; min-width: 0; }
.opt-screen h2 { font-size: var(--ln-text-md); font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.opt-screen h2 b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ln-sky); color: var(--ln-accent-strong); font-size: var(--ln-text-xs); }
.opt-screen__purpose { font-size: var(--ln-text-sm); line-height: 1.5; color: var(--ln-muted); }
.mockup-frame { border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); background: var(--ln-surface-muted); overflow: hidden; line-height: 0; }
.mockup-frame img { width: 100%; height: auto; display: block; }
.opt-screen__foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-size: var(--ln-text-sm); }
.opt-screen__foot a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.opt-screen__foot .ln-icon { width: 14px; height: 14px; }
.opt-brief { margin: 0; padding: 14px 18px; border: 1px solid var(--ln-line); background: var(--ln-surface-muted); border-radius: var(--ln-radius-sm); font-size: var(--ln-text-base); line-height: 1.6; }
.opt-brief p { margin: 0 0 8px; }
.opt-brief p:last-child { margin: 0; }

/* ---- Déroulé d'une présentation / d'un dossier -------------------------------------------------------------------- */
.opt-flow { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.opt-flow.opt-card { padding: 18px 22px; gap: 0; }
.opt-flow li { position: relative; margin: 0; padding: 0 12px 0 0; display: grid; gap: 6px; justify-items: start; }
.opt-flow li::before { content: ""; position: absolute; top: 15px; left: 34px; right: 0; height: 2px; background: var(--ln-line-strong); }
.opt-flow li:last-child::before { content: none; }
.opt-flow li.is-done::before { background: var(--ln-accent); }
.opt-flow__node { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ln-page); border: 2px solid var(--ln-line-strong); color: var(--ln-muted); }
.opt-flow__node .ln-icon { width: 15px; height: 15px; }
.opt-flow li.is-done .opt-flow__node { background: var(--ln-accent); border-color: var(--ln-accent); color: var(--ln-on-dark); }
.opt-flow li.is-current .opt-flow__node { border-color: var(--ln-accent); color: var(--ln-accent); box-shadow: 0 0 0 4px var(--ln-sky); }
.opt-flow strong { font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-ink); }
.opt-flow li.is-todo strong { color: var(--ln-muted); font-weight: 500; }
.opt-flow small { font-size: var(--ln-text-xs); color: var(--ln-muted); }

/* ---- Présentation : contenu ---------------------------------------------------------------------------------- */
.opt-status-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.opt-status-card > div { min-width: 0; }
.opt-status-card p { margin: 0; }
.opt-status-card__title { font-weight: 700; font-size: var(--ln-text-md); }
.opt-chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: opt-chapter; }
.opt-chapters li { margin: 0; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); }
.opt-chapters li::before { counter-increment: opt-chapter; content: counter(opt-chapter); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ln-sky); color: var(--ln-accent-strong); font-weight: 700; font-size: var(--ln-text-xs); }
.opt-chapters strong { display: block; font-weight: 600; }
.opt-chapters span { font-size: var(--ln-text-sm); color: var(--ln-muted); line-height: 1.5; }
.opt-screenlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt-screenlist li { margin: 0; padding: 12px 14px; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); display: grid; gap: 3px; }
.opt-screenlist strong { font-weight: 600; }
.opt-screenlist .opt-side { font-size: var(--ln-text-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--ln-accent-strong); }
.opt-screenlist span { font-size: var(--ln-text-sm); color: var(--ln-muted); line-height: 1.45; }
.opt-script__plan { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.opt-script__plan legend { padding: 0; margin-bottom: 4px; font-weight: 700; font-size: var(--ln-text-base); }
.opt-phrase { padding: 10px 14px; border: 1px solid var(--ln-line); background: var(--ln-surface-muted); border-radius: var(--ln-radius-sm); }
.opt-phrase p { margin: 0; line-height: 1.55; }
.opt-phrase .hint { margin-top: 4px; font-size: var(--ln-text-xs); }
.opt-link-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--ln-control-line); border-radius: var(--ln-radius-sm); background: var(--ln-surface-muted); }
.opt-link-box .ln-icon { flex: none; color: var(--ln-accent); }
.opt-link-box p { margin: 0; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.opt-link-box code { font-size: var(--ln-text-sm); }
.opt-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.opt-actions form { margin: 0; }
.opt-fold { border: 1px solid var(--ln-line); border-radius: var(--ln-radius); background: var(--ln-page); }
.opt-fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.opt-fold > summary::-webkit-details-marker { display: none; }
.opt-fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ln-muted); border-bottom: 2px solid var(--ln-muted); transform: rotate(45deg); transition: transform var(--ln-ease); }
.opt-fold[open] > summary::after { transform: rotate(-135deg); }
.opt-fold > summary .ln-icon { width: 16px; height: 16px; color: var(--ln-accent); }
.opt-fold__body { padding: 0 18px 18px; display: grid; gap: 12px; }
.opt-fold__body > * { margin: 0; }
.opt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opt-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* ---- Dossier partenaire --------------------------------------------------------------------------------------- */
.opt-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt-log li { margin: 0; padding: 10px 14px; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); font-size: var(--ln-text-base); line-height: 1.5; }
.opt-feedback { margin: 0; padding: 14px 16px; border: 1px solid var(--ln-line); border-radius: var(--ln-radius-sm); display: grid; gap: 8px; }
.opt-feedback > * { margin: 0; }
.opt-feedback__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.opt-feedback__body p { margin: 0 0 6px; }
.opt-people { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--ln-muted); font-size: var(--ln-text-sm); }
.opt-people .ln-icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

/* ---- Écrans étroits ------------------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .opt-layout { grid-template-columns: minmax(0, 1fr); }
  .opt-aside { position: static; }
  .opt-aside { order: -1; }
  .opt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .opt-steps, .opt-choices__grid, .opt-checks, .opt-screens, .opt-screenlist, .opt-grid-3, .opt-grid-2, .opt-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .opt-flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .opt-flow li { grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 0; }
  .opt-flow li::before { content: none; }
  .opt-flow small { grid-column: 2; }
  .opt-card { padding: 16px; }
  .opt-aside { order: 0; }
}

#partner-version-render { max-width: 1100px; margin-top: 20px; }
@media print { .opt-page, .opt-card { border: 0; padding: 0; } }
