/* Écrans du lot 3 « Former et accompagner » (/v2), refonte « Atelier calme ».
   Préfixe fo- ; s’appuie sur les primitives at- (components.css).
   Tout est limité à .fo-screen et .fo-dialog : rien ne touche l’éditeur. */

/* ---------- Page ---------- */
.fo-screen { max-width: var(--content-max); margin-inline: 0; }
.fo-screen > * { min-width: 0; }
.fo-screen :is(h2, h3).at-section-title { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-heading); line-height: 1.35; letter-spacing: var(--tracking-snug); }
.fo-screen h3.at-section-title { font-size: var(--text-md); }
.fo-screen p { margin: 0; }
.fo-heading-side { flex-wrap: wrap; }
.fo-readonly { margin-top: calc(var(--space-5) * -1); }
.fo-select { min-height: var(--control-md); max-width: 100%; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); color: var(--ink); background: var(--surface); font: inherit; }
.fo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.fo-stack { display: grid; gap: var(--space-3); }
.fo-mono { font-family: var(--font-mono); font-size: var(--text-sm); overflow-wrap: anywhere; }
.fo-screen .at-link svg { width: 14px; height: 14px; }

/* Erreur en ligne et notes : du texte, pas d’encadré. */
.fo-error svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.fo-screen .fo-error, .fo-dialog .fo-error { font-size: var(--text-sm); }
.fo-note, .fo-provider { color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.fo-note .at-status { white-space: normal; }
.fo-provider .at-status { margin-right: 4px; }
.fo-health { max-width: 80ch; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.fo-health strong { color: var(--ink); font-weight: 600; }

/* Prochaine étape : une ligne entre deux filets. */
.fo-next .at-row:hover { background: transparent; }
.fo-next .at-row-title { font-weight: 600; white-space: normal; }

/* ---------- Deux colonnes : travail + réglages ---------- */
.fo-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--space-9); min-width: 0; }
.fo-split-main, .fo-split-side { display: grid; align-content: start; gap: var(--space-6); min-width: 0; }
.fo-split-side { position: sticky; top: var(--space-6); }
.fo-split-side > .at-section:not([hidden]) ~ .at-section { padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .fo-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .fo-split-side { position: static; padding-top: var(--space-6); border-top: 1px solid var(--line); }
}

/* ---------- Formulaires ---------- */
/* Variante empilée (colonne étroite, fenêtres) : libellé au-dessus, sans filet par champ. */
:is(.fo-screen, .fo-dialog) .at-form.is-stacked { gap: var(--space-4); }
:is(.fo-screen, .fo-dialog) .at-form.is-stacked > .at-field,
:is(.fo-screen, .fo-dialog) .at-form.is-stacked :is(.fo-grid, .fo-person, .fo-stack, [data-kind-block]) .at-field,
.fo-dialog .at-field { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0; border-bottom: 0; }
:is(.fo-screen, .fo-dialog) .at-form.is-stacked .at-field-label, .fo-dialog .at-field-label { padding-top: 0; }
:is(.fo-screen, .fo-dialog) .at-form.is-stacked .at-field-control, .fo-dialog .at-field-control { max-width: none; }
:is(.fo-screen, .fo-dialog) .at-form.is-stacked .at-form-actions { padding-top: 0; padding-left: 0; }
.fo-dialog .at-field :where(input:not([type="checkbox"], [type="radio"]), select, textarea) { width: 100%; min-height: var(--control-md); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); color: var(--ink); background: var(--surface); font: inherit; }
.fo-dialog .at-field textarea { min-height: 96px; padding: 8px 10px; line-height: 1.5; resize: vertical; }
.fo-person { display: grid; gap: var(--space-4); }
.fo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.fo-span-2 { grid-column: 1 / -1; }
.fo-new-course { max-width: 760px; }
/* Écran vide composé (AthernV2Start) : le formulaire occupe toute la colonne de gauche. */
.fo-start .v2-start-lead > form { justify-self: stretch; width: 100%; margin-top: var(--space-2); }
.fo-start .fo-new-course { max-width: none; }

/* Choix par boutons radio : une ligne par option, séparées par un filet. */
.fo-radios { display: grid; border-top: 1px solid var(--line); }
.fo-radio { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--touch-min); padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color var(--dur-2) var(--ease-soft); }
.fo-radio:hover { background: var(--row-hover); }
.fo-radio input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ink); }
.fo-radio span { display: grid; gap: 1px; min-width: 0; }
.fo-radio strong { font-size: var(--text-md); font-weight: 500; }
.fo-radio small { color: var(--muted); font-size: var(--text-sm); }
.fo-kinds { margin: 0; padding: 0; border: 0; min-width: 0; }
.fo-kinds legend { margin-bottom: 6px; padding: 0; color: var(--ink); font-size: var(--text-sm); font-weight: 500; }

/* Interrupteur (certificat) : à plat, sans cadre. */
.fo-screen .fo-switch-row { padding: 0; border: 0; border-radius: 0; background: transparent; }
.fo-screen .fo-switch-row strong { font-size: var(--text-sm); font-weight: 500; }
.fo-screen .fo-switch-row small { font-size: var(--text-xs); line-height: 1.45; }

/* Ajout en ligne (module, inscrit). */
.fo-inline-add { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.fo-inline-add input { flex: 1 1 180px; min-width: 0; min-height: var(--control-md); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); color: var(--ink); background: var(--surface); font: inherit; }
.fo-inline-add input:focus-visible { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }

/* Boutons-icônes des lignes : discrets. */
.fo-screen .at-row-actions .ft-icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; color: var(--muted); background: transparent; cursor: pointer; }
.fo-screen .at-row-actions .ft-icon-btn svg { width: 16px; height: 16px; }
.fo-screen .at-row-actions .ft-icon-btn:hover:not(:disabled) { color: var(--ink); border-color: transparent; background: var(--surface-3); }
.fo-screen .at-row-actions .ft-icon-btn.danger:hover:not(:disabled) { color: var(--red); }
.fo-screen .at-row-actions .ft-icon-btn:disabled { opacity: .3; }
.button.fo-danger-text { color: var(--red); border-color: transparent; background: transparent; }
.button.fo-danger-text:hover { color: var(--red-strong); background: var(--surface-red); }

/* ---------- Créer une formation : plan modules > leçons ---------- */
.fo-course-pick select { min-height: var(--control-sm); max-width: 260px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); color: var(--ink); background: var(--surface); font: inherit; font-size: var(--text-sm); }
.fo-modules { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; counter-reset: none; }
.fo-module { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.fo-module-head { padding-block: 12px 8px; border-bottom: 0; }
.fo-module-head:hover { background: transparent; }
.fo-module-num { flex: none; width: 20px; color: var(--muted); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.fo-screen .fo-module-title { margin: 0; color: var(--ink); font-size: var(--text-md); font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.fo-rename { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.fo-rename input { flex: 1 1 200px; min-width: 0; min-height: var(--control-sm); padding: 0 8px; border: 1px solid var(--blue); border-radius: var(--field-radius); color: var(--ink); background: var(--surface); font: inherit; font-weight: 600; }
.fo-rename input:focus-visible { outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
.fo-lessons { margin: 0 0 0 calc(20px + var(--space-3)); border-left: 1px solid var(--line); }
.fo-lesson { min-height: 44px; padding-block: 6px; padding-left: var(--space-3); border-bottom: 1px solid var(--line); }
.fo-lessons .fo-lesson:last-child { border-bottom: 0; }
.fo-lesson .at-row-title { font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.fo-tools { gap: 2px; }
.fo-tools .at-link { padding-inline: 6px; }
.fo-module-empty { margin: 0 0 0 calc(20px + var(--space-3)); padding: 6px var(--space-3); border-left: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
.fo-add-lesson { margin: 4px 0 0 calc(20px + var(--space-3)); padding-left: var(--space-3); }
.fo-outline .fo-inline-add { padding-top: var(--space-4); }
.fo-publish .at-status { font-size: var(--text-sm); }

/* Quiz (fenêtre de leçon) */
.fo-quiz-editor { display: grid; gap: var(--space-4); }
.fo-question { display: grid; gap: var(--space-2); margin: 0; padding: var(--space-4) 0 0; border: 0; border-top: 1px solid var(--line); }
.fo-question legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-size: var(--text-sm); font-weight: 600; }
.fo-choices-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fo-choice-row { display: flex; align-items: center; gap: var(--space-2); }
.fo-choice-row input[type="radio"] { flex: none; width: 18px; height: 18px; accent-color: var(--green); }
.fo-choice-row input[name="choice"] { flex: 1; min-width: 0; min-height: var(--control-md); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); font: inherit; }
.fo-choice-row .ft-icon-btn { width: 32px; height: 32px; border-color: transparent; background: transparent; }

/* ---------- Espace apprenant ---------- */
.fo-stats { padding-bottom: var(--space-2); }
.fo-table-wrap { min-width: 0; }
.fo-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: var(--text-md); }
.fo-table th, .fo-table td { padding: 10px var(--space-2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fo-table thead th { padding-block: 8px; color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.fo-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.fo-table tbody tr { transition: background-color var(--dur-2) var(--ease-soft); }
.fo-table tbody tr:hover { background: var(--row-hover); }
.fo-table tbody th { font-weight: 400; }
.fo-table tbody th strong { display: block; font-weight: 500; }
.fo-table tbody th small { display: block; color: var(--muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.fo-table tbody th .at-status { margin-top: 2px; font-size: var(--text-xs); }
.fo-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fo-progress { display: flex; align-items: center; gap: var(--space-2); min-width: 140px; }
.fo-bar { position: relative; flex: 1; max-width: 120px; height: 4px; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
.fo-bar span { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); }
.fo-progress small { min-width: 36px; color: var(--ink-2); font-size: var(--text-sm); font-variant-numeric: tabular-nums; text-align: right; }
.fo-progress .fo-progress-count { min-width: 0; color: var(--muted); text-align: left; }
.fo-row-actions > div { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.fo-preview-note { margin-top: var(--space-4); }
.fo-preview { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-top: var(--space-4); }
.fo-preview-outline { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.fo-preview-outline > li { display: grid; gap: 4px; }
.fo-preview-module { color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.fo-preview-lesson { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 40px; padding: 6px var(--space-2); border: 0; border-radius: var(--radius-sm); color: var(--ink-2); background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-2) var(--ease-soft); }
.fo-preview-lesson:hover { background: var(--row-hover); }
.fo-preview-lesson svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.fo-preview-lesson[aria-current] { color: var(--ink); background: var(--surface-2); box-shadow: inset var(--accent-bar) 0 0 var(--blue); font-weight: 600; }
.fo-preview-lesson-card { display: grid; gap: var(--space-3); min-width: 0; }
.fo-preview-kind { color: var(--muted); font-size: var(--text-sm); }
.fo-screen .fo-preview-lesson-card h2 { margin: 0; font-size: var(--text-xl); font-weight: 600; letter-spacing: var(--tracking-snug); }
.fo-preview-lesson-card h2:focus { outline: none; }
.fo-preview-lesson-card p { max-width: 65ch; line-height: 1.6; }
.fo-doc-image { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.fo-preview-quiz { display: grid; gap: var(--space-3); padding-left: 20px; }
.fo-preview-quiz ul { margin: 6px 0 0; padding-left: 18px; }

/* Sur votre site */
.fo-site-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-3); }
.fo-site-state .at-link { white-space: normal; overflow-wrap: anywhere; }

/* ---------- Webinaires ---------- */
.fo-web-row.is-active { background: var(--surface-2); box-shadow: inset var(--accent-bar) 0 0 var(--blue); }
.fo-web-date { flex: none; width: 64px; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.fo-web-item { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; white-space: normal; }
.fo-web-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.fo-web-count { flex: none; color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }
.fo-web-count strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fo-web-past { margin-top: var(--space-2); }
.fo-web-past .at-list { margin-top: var(--space-2); }
.fo-web-detail .at-section-title:focus { outline: none; }
.fo-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.fo-facts > div { display: grid; grid-template-columns: var(--field-label-width) minmax(0, 1fr); gap: 4px var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.fo-facts dt { color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.fo-facts dd { display: grid; gap: var(--space-2); margin: 0; min-width: 0; }
.fo-subhead { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-3) 0 0; color: var(--ink); font-size: var(--text-md); font-weight: 600; }
.fo-subhead-meta { color: var(--muted); font-size: var(--text-sm); font-weight: 400; font-variant-numeric: tabular-nums; }
.fo-attended { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.fo-attended input { width: 16px; height: 16px; accent-color: var(--green); }
.fo-replay { padding-top: var(--space-3); }
.fo-commit ul { display: grid; gap: var(--space-2); margin: 0; padding-left: 18px; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; }

/* ---------- Portail client : deux volets ---------- */
.fo-portal-layout { min-height: 420px; }
.fo-portal-pick { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.fo-portal-pick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.fo-unread { flex: none; min-width: 20px; padding: 1px 6px; border-radius: var(--radius-pill); color: var(--surface); background: var(--ink); font-size: var(--text-xs); font-weight: 600; text-align: center; }
.fo-portal-detail { display: grid; gap: var(--space-6); min-width: 0; }
.fo-portal-head .at-section-title:focus { outline: none; }
.fo-portal-head .at-status { margin-right: 6px; }
.fo-inbox-back { display: none; }
.fo-portal-detail > .at-section { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.fo-thread { display: grid; max-height: 440px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.fo-msg { display: grid; gap: 2px; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.fo-msg-meta { color: var(--muted); font-size: var(--text-sm); }
.fo-msg-meta strong { color: var(--ink); font-weight: 600; }
.fo-msg-owner .fo-msg-meta strong { color: var(--ink-2); }
.fo-msg-body { max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.fo-reply { display: grid; gap: 6px; padding-top: var(--space-3); }
.fo-reply textarea { width: 100%; min-height: 84px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); color: var(--ink); background: var(--surface); font: inherit; line-height: 1.5; resize: vertical; }
.fo-reply textarea:focus-visible { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
.fo-reply .fo-actions { flex-wrap: wrap; }
.fo-reply .at-field-help { flex: 1 1 240px; }
.fo-docs .at-row-title { color: var(--blue-strong); text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.fo-docs .at-row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.fo-danger-zone { display: grid; gap: 6px; justify-items: start; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.fo-danger-zone h4 { margin: 0; color: var(--red); font-size: var(--text-sm); font-weight: 600; }
.fo-danger-zone .button { margin-left: calc(var(--btn-px, 14px) * -1); }
@media (max-width: 860px) {
  .fo-inbox-back { display: block; }
  .fo-portal-layout { min-height: 0; }
}

/* ---------- Agenda et visio ---------- */
.fo-week-nav { flex-wrap: nowrap; gap: 4px; }
.fo-week-nav .ft-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface); cursor: pointer; }
.fo-week-nav .ft-icon-btn svg { width: 16px; height: 16px; }
.fo-days { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.fo-day { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.fo-day h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); margin: 0; padding-top: 2px; color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
.fo-day.is-free h3 { color: var(--muted); font-weight: 500; }
.fo-today { color: var(--blue-strong); font-size: var(--text-xs); font-weight: 500; }
.fo-day.is-today { box-shadow: inset var(--accent-bar) 0 0 var(--blue); padding-left: var(--space-3); }
.fo-free { color: var(--subtle); font-size: var(--text-sm); padding-top: 2px; }
.fo-events { margin: -10px 0; }
.fo-event { align-items: flex-start; min-height: 44px; }
.fo-event-time { display: grid; flex: none; width: 52px; color: var(--ink); font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.fo-event-time small { color: var(--muted); font-weight: 400; }
.fo-event .at-row-title { white-space: normal; overflow-wrap: anywhere; }
.fo-copy-row { display: flex; gap: var(--space-2); min-width: 0; }
.fo-copy-row input { flex: 1; min-width: 0; min-height: var(--control-md); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--field-radius); color: var(--ink-2); background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-sm); }
.fo-instant [data-fo-room]:not(:empty) { display: grid; gap: var(--space-2); }
.fo-sources-box { border-top: 0; }
.fo-sources .at-row { min-height: 40px; }

/* ---------- Fenêtres ---------- */
.fo-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-xl); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-lg); }
.fo-dialog-wide { width: min(720px, calc(100vw - 24px)); }
.fo-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); background: var(--surface); }
.fo-dialog-head h2 { margin: 0; font-size: var(--text-lg); font-weight: 600; letter-spacing: var(--tracking-snug); }
.fo-dialog-head .ft-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.fo-dialog-body { display: grid; gap: var(--space-4); padding: var(--space-4) var(--space-5) var(--space-5); }
.fo-dialog-body p { margin: 0; }
.fo-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); padding-top: var(--space-2); }
.fo-dialog .fo-danger, .fo-dialog .button.fo-danger { color: var(--surface); border-color: var(--red); background: var(--red); }
.fo-dialog .fo-danger:hover { border-color: var(--red-strong); background: var(--red-strong); }
.fo-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-block: 1px solid var(--line); }
.fo-code span { font: 600 24px/1.2 var(--font-mono); letter-spacing: .08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fo-dialog .fo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  .fo-readonly { margin-top: calc(var(--space-4) * -1); }
  .fo-grid, .fo-dialog .fo-grid { grid-template-columns: minmax(0, 1fr); }
  .fo-preview { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .fo-facts > div { grid-template-columns: minmax(0, 1fr); }
  .fo-day { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fo-events { margin: 0; }
  .fo-event .at-row-actions { padding-left: calc(52px + var(--space-3)); }
  .fo-lessons { margin-left: var(--space-2); }
  .fo-module-empty, .fo-add-lesson { margin-left: var(--space-2); }
  .fo-module-head .at-row-actions { padding-left: calc(20px + var(--space-3)); }
  .fo-lesson .at-row-actions { padding-left: calc(20px + var(--space-3)); }
  .fo-web-row { flex-wrap: wrap; }
  .fo-web-count { padding-left: calc(64px + var(--space-3)); }
  .fo-copy-row { flex-wrap: wrap; }
  /* Tableau des élèves : une fiche par ligne, libellés devant les valeurs. */
  .fo-table thead { display: none; }
  .fo-table, .fo-table tbody, .fo-table tr, .fo-table th, .fo-table td { display: block; width: 100%; }
  .fo-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .fo-table th, .fo-table td { padding: 2px 0; border: 0; text-align: left; }
  .fo-table .is-num { text-align: left; }
  .fo-table td[data-label] { display: flex; align-items: center; gap: var(--space-3); }
  .fo-table td[data-label]::before { flex: none; width: 110px; color: var(--muted); font-size: var(--text-sm); content: attr(data-label); }
  .fo-row-actions > div { justify-content: flex-start; padding-top: 4px; }
  /* Cibles tactiles de 44 px. */
  .fo-screen :is(.at-link, .fo-attended, .fo-preview-lesson, .fo-web-item, .fo-portal-pick) { min-height: var(--touch-min); }
  .fo-screen .at-row-actions .ft-icon-btn, .fo-week-nav .ft-icon-btn, .fo-dialog-head .ft-icon-btn { width: var(--touch-min); height: var(--touch-min); }
  .fo-screen :is(.fo-inline-add input, .fo-select, .fo-course-pick select, .fo-rename input, .fo-copy-row input) { min-height: var(--touch-min); }
  .fo-course-pick select { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { :is(.fo-screen, .fo-dialog) * { transition: none !important; } }
