/* ============================================================================
   Formons — admin v2 / v2.css
   ----------------------------------------------------------------------------
   Surcharges et composants spécifiques à la nouvelle interface (app-v2.html).
   Tailwind CDN couvre l'essentiel ; on regroupe ici uniquement ce qui mérite
   d'être nommé (cartes formation, breadcrumb, badges statut, transitions).

   Couleur primaire Learn : cyan Neo Animalia (login / app / v2)
   Polices : Inter (corps) / Montserrat (titres)
   ========================================================================= */

:root {
  --v2-primary: var(--product-primary, #1CB7E6);
  --v2-primary-dark: var(--product-primary-dark, #0D9BC8);
  --v2-primary-light: var(--product-primary-light, #7DD3F0);
  --v2-text: #171717;
  --v2-muted: rgba(0, 0, 0, 0.55);
  --v2-border: rgba(0, 0, 0, 0.08);
  --v2-border-strong: rgba(0, 0, 0, 0.12);
  --v2-bg: #F9FAFB;
  --v2-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --v2-card-shadow-hover: 0 8px 24px -8px rgba(28, 183, 230, 0.22), 0 2px 4px rgba(0, 0, 0, 0.06);
  --v2-radius: 14px;
  --v2-radius-sm: 10px;
}

/* ─── Reset léger / typo ────────────────────────────────────────────────── */
body.v2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--v2-text);
  background: #FFFFFF;
}
body.v2 .font-display {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
}

/* ─── Header & breadcrumb ──────────────────────────────────────────────── */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--v2-border);
}
.v2-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--v2-text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.v2-skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  outline: 2px solid var(--v2-primary);
  outline-offset: 2px;
}
.v2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--v2-muted);
}
.v2-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.v2-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.v2-breadcrumb a {
  color: var(--v2-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.v2-breadcrumb a:hover { color: var(--v2-text); }
.v2-breadcrumb .sep {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.25);
  user-select: none;
}
/* Premier segment (ex. Clients) et page courante : toujours visibles en entier */
.v2-breadcrumb .bc-seg--root,
.v2-breadcrumb .bc-seg--current {
  flex-shrink: 0;
  white-space: nowrap;
}
.v2-breadcrumb .bc-seg--current { color: var(--v2-text); font-weight: 500; }
/* Segments intermédiaires (ex. titre formation) : ellipsis si manque de place */
.v2-breadcrumb .bc-seg--ellip {
  min-width: 0;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
@media (min-width: 1024px) {
  .v2-breadcrumb .bc-seg--ellip { max-width: 20rem; }
}
@media (min-width: 1280px) {
  .v2-breadcrumb .bc-seg--ellip { max-width: 28rem; }
}

/* ─── Barre d’actions header (style unifié) ─────────────────────────────── */
body.v2 .v2-header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
body.v2 .v2-header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
body.v2 .v2-header-user {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--v2-border);
}
body.v2 .v2-header-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: rgba(23, 23, 23, 0.72);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
body.v2 button.v2-header-tool { appearance: none; }
body.v2 .v2-header-tool:hover {
  color: var(--v2-text);
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--v2-border);
}
body.v2 .v2-header-tool svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
body.v2 .v2-header-tool:hover svg { opacity: 1; }
body.v2 .v2-header-tool__icon-fill {
  opacity: 0.78;
}
body.v2 .v2-header-tool:hover .v2-header-tool__icon-fill {
  opacity: 1;
}
body.v2 .v2-header-tool--accent {
  color: var(--v2-primary-dark);
  background: rgba(28, 183, 230, 0.07);
  border-color: rgba(28, 183, 230, 0.18);
}
body.v2 .v2-header-tool--accent:hover {
  color: var(--v2-primary-dark);
  background: rgba(28, 183, 230, 0.12);
  border-color: rgba(28, 183, 230, 0.28);
}
body.v2 .v2-header-tool--accent svg { opacity: 1; }
body.v2 .v2-header-tool--icon-only {
  width: 32px;
  padding: 0;
}
body.v2 .v2-header-tool.hidden,
body.v2 .v2-super-nav.hidden {
  display: none !important;
}
body.v2 .v2-header-user-btn {
  max-width: 13rem;
  color: var(--v2-text);
  font-weight: 600;
}
body.v2 .v2-header-user-btn .v2-avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

/* ─── Onglets (niveau 1) ───────────────────────────────────────────────── */
.v2-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  border-bottom: 1px solid var(--v2-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.v2-tabs::after {
  content: '';
  flex: 1 1 auto;
  border-bottom: 1px solid var(--v2-border);
  min-width: 4px;
}
.v2-tab {
  flex-shrink: 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--v2-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.v2-tab:hover { color: var(--v2-text); }
.v2-tab[aria-selected="true"] {
  color: var(--v2-primary);
  border-bottom-color: var(--v2-primary);
}
.v2-tab__soon {
  margin-left: 0.35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--v2-muted);
  vertical-align: middle;
}
.v2-tab--stub[aria-selected="true"] .v2-tab__soon {
  color: inherit;
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .v2-tab,
  .v2-breadcrumb a,
  .v2-sidebar__link,
  .v2-header-tool,
  .v2-btn {
    transition: none !important;
  }
}

/* ─── Cartes formation (grille N1) ─────────────────────────────────────── */
.v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.v2-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-card-shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.v2-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v2-card-shadow-hover);
  border-color: rgba(28, 183, 230, 0.3);
}
.v2-card:focus-visible {
  outline: 2px solid var(--v2-primary);
  outline-offset: 2px;
}
.v2-card__title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--v2-text);
  margin: 0;
}
.v2-card__meta {
  font-size: 12px;
  color: var(--v2-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.v2-card__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
  color: var(--v2-text);
}
.v2-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.v2-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--v2-primary) 0%, var(--v2-primary-light) 100%);
  border-radius: inherit;
  transition: width 0.4s ease;
}

/* Carte « + Nouvelle formation » */
.v2-card--new {
  border-style: dashed;
  border-color: rgba(28, 183, 230, 0.3);
  background: rgba(28, 183, 230, 0.02);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 168px;
  color: var(--v2-primary);
  font-weight: 600;
}
.v2-card--new:hover {
  background: rgba(28, 183, 230, 0.04);
  border-color: var(--v2-primary);
}

/* ─── Badges statut ────────────────────────────────────────────────────── */
.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.v2-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.v2-badge--brouillon  { color: #6B7280; background: rgba(107, 114, 128, 0.1); }
.v2-badge--active     { color: #047857; background: rgba(5, 150, 105, 0.12); } /* vert */
.v2-badge--accent     { color: #B45309; background: rgba(245, 158, 11, 0.16); } /* orange */
.v2-badge--danger     { color: #B91C1C; background: rgba(239, 68, 68, 0.12); } /* rouge */
.v2-badge--info       { color: #1D4ED8; background: rgba(29, 78, 216, 0.10); } /* bleu */
.v2-badge--terminee   { color: #1D4ED8; background: rgba(29, 78, 216, 0.08); }
.v2-badge--archivee   { color: #92400E; background: rgba(146, 64, 14, 0.08); }
.v2-badge--unassigned { color: #B45309; background: rgba(217, 119, 6, 0.08); }
.v2-badge--hidden     { color: #6B7280; background: rgba(107, 114, 128, 0.18); }

.v2-card--hidden,
.v2-row--hidden {
  background: #f3f4f6;
  border-color: #d1d5db;
  opacity: 1;
  filter: none;
}
.v2-page--hidden .v2-page-main {
  opacity: 0.92;
  filter: grayscale(0.35);
}
.v2-card--hidden:hover {
  transform: none;
  box-shadow: var(--v2-card-shadow);
  border-color: var(--v2-border);
}

.v2-lifecycle-trigger {
  font-size: 0.6875rem;
  line-height: 1.2;
  color: #9CA3AF;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v2-lifecycle-trigger:hover {
  color: #B91C1C;
}

.v2-lifecycle {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--v2-radius);
  background: rgba(254, 242, 242, 0.45);
}
.v2-lifecycle--modal {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.v2-lifecycle__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #991B1B;
  margin: 0 0 0.35rem;
}
.v2-lifecycle__hint {
  font-size: 0.75rem;
  color: #6B7280;
  margin: 0 0 0.75rem;
}
.v2-lifecycle__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.v2-lifecycle__msg {
  font-size: 0.75rem;
  min-height: 1rem;
  flex: 1 1 100%;
}

/* ─── Boutons ──────────────────────────────────────────────────────────── */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--v2-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.v2-btn--primary {
  background: var(--v2-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(28, 183, 230, 0.4);
}
.v2-btn--primary:hover { background: var(--v2-primary-dark); }
.v2-btn--ghost {
  background: transparent;
  color: var(--v2-text);
  border-color: var(--v2-border-strong);
}
.v2-btn--ghost:hover { border-color: var(--v2-text); }
.v2-btn--link {
  background: none;
  color: var(--v2-muted);
  border: 0;
  padding: 4px 6px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v2-btn--link:hover { color: var(--v2-text); }
.v2-btn--danger-link,
.v2-btn.danger-link {
  background: none;
  border: 0;
  color: #B42318;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v2-btn--danger-link:hover,
.v2-btn.danger-link:hover { color: #7A1710; }
.v2-btn--warn,
.v2-btn.btn-warn {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.v2-btn--warn:hover,
.v2-btn.btn-warn:hover { background: #FEF3C7; }

/* ─── Bouton scindé (action + menu) ────────────────────────────────────── */
.v2-split-btn {
  display: inline-flex;
  align-items: stretch;
  position: relative;
}
.v2-split-btn .v2-split-btn__main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}
.v2-split-btn__menu-wrap {
  position: relative;
}
.v2-split-btn__toggle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 10px;
  padding-right: 10px;
  min-width: 2.25rem;
}
.v2-split-btn__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 11rem;
  background: #fff;
  border: 1px solid var(--v2-border-strong);
  border-radius: var(--v2-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 50;
}
.v2-split-btn__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-text);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.v2-split-btn__item:hover {
  background: var(--v2-bg);
}

/* ─── Tableaux données (vue globale, sessions, etc.) ───────────────────── */
.v2-table-wrap {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--v2-border-strong);
  border-radius: var(--v2-radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.v2-table-wrap--no-scroll {
  overflow-x: hidden;
}
.v2-table--compact {
  table-layout: fixed;
  width: 100%;
}
.v2-table--compact th,
.v2-table--compact td {
  padding: 6px 8px;
  overflow: hidden;
}
.v2-table--compact .v2-table__actions {
  max-width: none;
  gap: 4px;
  flex-wrap: wrap;
}
.v2-table--compact .admin-row-nom,
.v2-table--compact .admin-row-pass,
.v2-table--compact .admin-row-statut,
.v2-table--compact .admin-row-super,
.v2-table--compact .admin-row-equipe,
.v2-table--compact .admin-row-email-action {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.v2-table--compact .admin-row-pass {
  width: 4.5rem;
}
.v2-table--compact .admin-row-equipe {
  max-width: 6.5rem;
  padding-left: 4px;
  padding-right: 4px;
}
.v2-table--compact .v2-cell-email {
  font-size: 11px;
  word-break: break-all;
  line-height: 1.35;
}
.v2-table--compact .v2-cell-ip {
  font-size: 11px;
  word-break: break-all;
}
.v2-table--compact .v2-btn--xs {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.3;
}
.v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.v2-table thead {
  background: var(--v2-bg);
  color: var(--v2-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.v2-table th,
.v2-table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}
.v2-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.v2-table tbody tr:last-child {
  border-bottom: none;
}
.v2-table tbody tr.of-part-group-head td {
  padding: 0.55rem 0.75rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
}
.v2-table tbody tr.of-part-group-head .of-part-group-head__label {
  margin-right: 0.5rem;
}
.v2-table tbody tr.of-part-group-head .of-part-group-head__count {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.75rem;
}

.v2-table th.text-right,
.v2-table td.text-right {
  text-align: right;
}

/* Colonne d’actions / documents : toujours ancrée à droite */
.v2-table th.v2-table__cell--actions,
.v2-table td.v2-table__cell--actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.v2-table__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 22rem;
  margin-left: auto;
  width: 100%;
}

/* Emplacements d’icônes à largeur fixe — évite le décalage quand un slot est vide */
.v2-table__icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  box-sizing: border-box;
}
.v2-table__icon-slot--empty {
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
}

/* Chip document (icône + libellé) — distingue Signée / Brouillon avant le clic */
.v2-table__doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 5.25rem;
  height: 1.75rem;
  padding: 0 7px 0 5px;
  border-radius: 8px;
  border: 1px solid var(--v2-border, #e5e2dd);
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
  white-space: nowrap;
}
.v2-table__doc-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.v2-table__doc-chip-ico {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #b91c1c;
}
.v2-table__doc-chip-ico svg {
  width: 1rem;
  height: 1rem;
}
.v2-table__doc-chip--signee {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.v2-table__doc-chip--signee .v2-table__doc-chip-ico {
  color: #15803d;
}
.v2-table__doc-chip--brouillon {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.v2-table__doc-chip--brouillon .v2-table__doc-chip-ico {
  color: #b45309;
}
.v2-table__doc-chip--empty {
  visibility: hidden;
  pointer-events: none;
}

/* ─── KPI tiles (vue globale) ──────────────────────────────────────────── */
.v2-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
}
.v2-kpi__label {
  font-size: 12px;
  color: var(--v2-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.v2-kpi__value {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--v2-text);
  line-height: 1.1;
}

/* ─── État vide ────────────────────────────────────────────────────────── */
.v2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 56px 24px;
  border: 1px dashed var(--v2-border-strong);
  border-radius: var(--v2-radius);
  background: var(--v2-bg);
}
.v2-empty__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(28, 183, 230, 0.08);
  color: var(--v2-primary);
  display: flex; align-items: center; justify-content: center;
}

/* ─── Skeleton (chargement) ────────────────────────────────────────────── */
@keyframes v2-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.v2-skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.06) 100%);
  border-radius: 6px;
  animation: v2-pulse 1.4s ease-in-out infinite;
}

/* ─── Avatar admin (header) ────────────────────────────────────────────── */
.v2-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-dark) 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ─── Menu super admin (header v2) ─────────────────────────────────────── */
.v2-super-nav {
  position: relative;
}
.v2-super-nav__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 11rem;
  background: #fff;
  border: 1px solid var(--v2-border-strong);
  border-radius: var(--v2-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 50;
}
.v2-super-nav__item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--v2-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s ease;
}
.v2-super-nav__item:hover {
  background: var(--v2-bg);
}
.v2-super-nav__item.is-active {
  background: rgba(28, 183, 230, 0.1);
  color: var(--v2-primary-dark);
  font-weight: 500;
}

/* ─── Formulaires organisme / client (nom, logo, identité) ───────────── */
.v2-brand-form {
  display: grid;
  grid-template-columns: minmax(140px, 11rem) 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}
@media (max-width: 640px) {
  .v2-brand-form {
    grid-template-columns: 1fr;
  }
}
.v2-brand-form__aside-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--v2-muted);
  margin: 0 0 0.5rem;
}
.v2-brand-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.v2-form-subsection {
  padding: 0.875rem 1rem;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  background: rgba(255, 255, 255, 0.75);
}
.v2-form-subsection__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--v2-muted);
  margin: 0 0 0.75rem;
}
.v2-identity-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.v2-identity-form__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
@media (max-width: 768px) {
  .v2-identity-form__pair {
    grid-template-columns: 1fr;
  }
}
.v2-identity-banner-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}
@media (max-width: 640px) {
  .v2-identity-banner-row {
    grid-template-columns: 1fr;
  }
}
.v2-identity-banner-row__preview .v2-banner-preview,
.v2-identity-banner-row__preview .v2-banner-preview--empty {
  max-height: 120px;
}

/* ─── Identité visuelle formation ─────────────────────────────────────── */
.v2-banner-preview {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--v2-radius-sm);
  border: 1px solid var(--v2-border);
  background: var(--v2-bg);
}
.v2-banner-preview--empty {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--v2-muted);
  border-style: dashed;
}
.v2-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.v2-color-row input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--v2-border-strong);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}
.v2-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--v2-border);
  border-bottom: 0;
  border-radius: var(--v2-radius-sm) var(--v2-radius-sm) 0 0;
  background: var(--v2-bg);
}
.v2-rich-toolbar button {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--v2-text);
  cursor: pointer;
}
.v2-rich-toolbar button:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--v2-border);
}
.v2-rich-editor {
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--v2-border-strong);
  border-radius: 0 0 var(--v2-radius-sm) var(--v2-radius-sm);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}
.v2-rich-editor:focus {
  outline: none;
  border-color: var(--v2-primary);
  box-shadow: 0 0 0 2px rgba(28, 183, 230, 0.15);
}
.v2-char-count {
  font-size: 11px;
  color: var(--v2-muted);
  text-align: right;
  margin-top: 4px;
}
.v2-char-count--warn { color: #b45309; }
.v2-char-count--over { color: #b91c1c; font-weight: 600; }

/* ─── Messages v2 (v2SetMsg) ─────────────────────────────────────────── */
.v2-msg {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  line-height: 1.45;
  border-radius: 8px;
  padding: 0;
  min-height: 0;
  transition: background .15s, color .15s;
}
.v2-msg:empty { display: none; }
.v2-msg-icon { flex-shrink: 0; font-style: normal; font-size: 1rem; line-height: 1.45; }
.v2-msg--neutral { color: #5b6470; }
.v2-msg--info    { color: #1C2A6E; }
.v2-msg--ok {
  color: #0a7d4d;
  background: #e8f6ef;
  border: 1px solid #b7e2c8;
  padding: .5rem .75rem;
  font-weight: 600;
}
.v2-msg--warn {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: .5rem .75rem;
  font-weight: 600;
}
.v2-msg--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: .6rem .85rem;
  font-weight: 600;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
}
.v2-msg--error .v2-msg-icon { color: #ef4444; font-size: 1.1rem; }

/* Bandeau pleine largeur (globalMsg) */
.v2-global-msg { width: 100%; margin-top: .5rem; }
.v2-global-msg.v2-msg--ok,
.v2-global-msg.v2-msg--warn,
.v2-global-msg.v2-msg--info {
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.v2-global-msg.v2-msg--error { border-radius: 8px; }

/* Confirmation temporaire d’import PDF sur une carte ressource */
body.v2 .v2-res-pdf-upload-status {
  margin: 0.5rem 0.75rem 0;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 1rem;
  box-sizing: border-box;
}
body.v2 .v2-res-pdf-upload-status--info {
  color: #0c4a6e;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}
body.v2 .v2-res-pdf-upload-status--ok {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
body.v2 .v2-res-pdf-upload-status--warn {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
body.v2 .v2-res-pdf-upload-status--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .v2-grid { grid-template-columns: 1fr; }
}


/* ─── Séquence admin v2 (porté depuis Learn, thème Formons) ─────────── */
body.v2 .v2-seq-step-card {
  border: 1px solid rgba(168, 50, 38, 0.16);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(168, 50, 38, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.v2 .v2-seq-step-card:hover {
  border-color: rgba(168, 50, 38, 0.38);
  box-shadow: 0 2px 10px rgba(168, 50, 38, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}
body.v2 .v2-seq-step-card .v2-seq-input {
  color: #737373;
}
body.v2 .v2-field-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--v2-primary-dark);
}
body.v2 .v2-field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
  max-width: 100%;
  overflow: visible;
}
body.v2 .v2-field-label-row .v2-field-label {
  margin-bottom: 0;
}
body.v2 .v2-field-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border-radius: var(--r-pill);
  border: 1px solid rgba(168, 50, 38, 0.35);
  background: rgba(168, 50, 38, 0.08);
  color: var(--v2-primary-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  font-style: normal;
  font-family: var(--ff-sans);
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
  vertical-align: middle;
}
body.v2 .v2-field-info::before,
body.v2 .v2-field-info::after {
  position: absolute;
  left: 50%;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease, visibility 0.1s ease;
}
body.v2 .v2-field-info::after {
  content: attr(data-tip);
  top: calc(100% + 0.625rem);
  bottom: auto;
  transform: translateX(-50%);
  min-width: 14rem;
  max-width: 22rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  background: var(--v2-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
  font-family: inherit;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(16, 26, 77, 0.28);
}
body.v2 .v2-field-info::before {
  content: '';
  top: calc(100% + 0.25rem);
  bottom: auto;
  transform: translateX(-50%);
  border: 0.4375rem solid transparent;
  border-bottom-color: var(--v2-text);
}
body.v2 .v2-field-info:hover::before,
body.v2 .v2-field-info:hover::after,
body.v2 .v2-field-info:focus-visible::before,
body.v2 .v2-field-info:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
body.v2 .v2-field-info:hover,
body.v2 .v2-field-info:focus-visible {
  background: rgba(168, 50, 38, 0.22);
  border-color: var(--v2-primary);
  color: var(--v2-primary-dark);
  outline: none;
}

/* Formulaire étape séquence — blocs thématiques */
body.v2 .v2-seq-form-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
body.v2 .v2-seq-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  body.v2 .v2-seq-form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
body.v2 .v2-seq-form-row .v2-seq-form-section {
  height: 100%;
}
body.v2 .v2-seq-form-section {
  border: 1px solid var(--v2-border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: rgba(244, 246, 251, 0.45);
}
body.v2 .v2-seq-form-section-title {
  margin: 0 0 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--v2-border);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v2-muted);
  line-height: 1.25;
}
body.v2 .v2-seq-form-section-body .v2-field-label-row {
  display: flex;
}
body.v2 .v2-seq-form-block {
  border: 2px solid var(--v2-text);
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(16, 26, 77, 0.06);
}
body.v2 .v2-seq-journey-open .v2-seq-form-block {
  border-color: var(--v2-text);
}
body.v2 .v2-seq-timeline-wrap {
  background: #FFFFFF;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-card-shadow);
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  body.v2 .v2-seq-timeline-wrap {
    padding: 1.25rem 1.5rem;
  }
}
body.v2 .v2-seq-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8125rem;
}
body.v2 .v2-seq-phase-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 0;
  overflow: visible;
}
body.v2 .v2-seq-phase-rail {
  flex: 0 0 2.625rem;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: visible;
}
body.v2 .v2-seq-phase-rail-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(168, 50, 38, 0.22);
  background: rgba(168, 50, 38, 0.08);
  overflow: visible;
}
body.v2 .v2-seq-phase-rail-box--during {
  border: 0;
  background: transparent;
  min-height: 0;
  padding: 0.25rem 0;
}
body.v2 .v2-seq-phase-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(168, 50, 38, 0.9);
  white-space: nowrap;
  line-height: 1.35;
  padding: 0.125rem 0.25rem;
  overflow: visible;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  user-select: none;
}
body.v2 .v2-seq-phase-row--during .v2-seq-phase-rail-box:not(.v2-seq-phase-rail-box--during) {
  align-self: stretch;
}
body.v2 .v2-seq-phase-row--day-anchor {
  align-items: stretch;
}
body.v2 .v2-seq-phase-row--day-anchor .v2-seq-phase-rail {
  align-self: stretch;
}
body.v2 .v2-seq-phase-row--day-anchor .v2-seq-phase-rail-box {
  flex: 1;
  align-self: stretch;
  min-height: 3.5rem;
}
body.v2 .v2-seq-phase-row--day-anchor .v2-seq-phase-content {
  display: block;
}
body.v2 .v2-seq-lane--day-anchor {
  width: 100%;
}
body.v2 .v2-seq-lane--between {
  margin-top: 0.25rem;
  padding-left: 0.375rem;
  border-left: 2px dashed rgba(23, 23, 23, 0.18);
}
body.v2 .v2-seq-phase-content {
  flex: 1;
  min-width: 0;
}
body.v2 .v2-seq-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(168, 50, 38, 0.18);
  background: rgba(168, 50, 38, 0.04);
}
body.v2 .v2-seq-section-body--phase-lane {
  gap: 0.75rem;
  padding-bottom: 1rem;
}
body.v2 .v2-seq-phase-row--during {
  margin: 1rem 0;
}
body.v2 .v2-seq-phase-row--during .v2-seq-phase-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
body.v2 .v2-seq-phase-row:not(.v2-seq-phase-row--during) .v2-seq-phase-content {
  display: flex;
  flex-direction: column;
}
body.v2 .v2-seq-phase-row:not(.v2-seq-phase-row--during) .v2-seq-section-body--phase-lane {
  flex: 1;
  min-height: 100%;
}
body.v2 .v2-seq-cycles-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.v2 .v2-seq-cycle-block {
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}
body.v2 .v2-seq-cycle-block--master {
  background: #faf9f8;
  border-color: rgba(168, 50, 38, 0.16);
  box-shadow: 0 1px 3px rgba(168, 50, 38, 0.05);
}
body.v2 .v2-seq-cycle-block--master .v2-seq-cycle-head {
  background: linear-gradient(135deg, rgba(168, 50, 38, 0.09) 0%, rgba(250, 249, 248, 0.98) 100%);
  border-bottom-color: rgba(168, 50, 38, 0.12);
}
body.v2 .v2-seq-cycle-block--master .v2-seq-timeline-wrap {
  background: linear-gradient(180deg, #f3ece9 0%, #faf7f6 48%, #ffffff 100%);
}
body.v2 .v2-seq-cycle-block--master .v2-seq-formation-marker--master {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(168, 50, 38, 0.14);
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px rgba(168, 50, 38, 0.06);
}
body.v2 .v2-seq-cycle-block--master .v2-seq-template-reuse {
  margin-top: 0;
  border-color: rgba(109, 40, 217, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.82) 100%);
}
body.v2 .v2-seq-cycle-collapse {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #737373;
  cursor: pointer;
}
body.v2 .v2-seq-cycle-collapse:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #171717;
}
body.v2 .v2-seq-cycle-block--collapsed .v2-seq-cycle-collapse .journey-chevron {
  transform: rotate(-90deg);
}
body.v2 .v2-seq-cycle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  background: linear-gradient(135deg, rgba(23, 23, 23, 0.1) 0%, rgba(39, 55, 138, 0.05) 100%);
  cursor: pointer;
}
body.v2 .v2-seq-cycle-head-actions {
  cursor: default;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
body.v2 .v2-seq-preview-cycle {
  flex-shrink: 0;
  color: var(--v2-text);
  border-color: rgba(168, 50, 38, 0.35);
}
body.v2 .v2-seq-cycle-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--v2-text);
}
body.v2 .v2-seq-cycle-block .v2-seq-timeline-wrap {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
body.v2 .v2-seq-template-reuse {
  margin: 1rem 1rem 1rem;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(109, 40, 217, 0.35);
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.55) 0%, rgba(245, 243, 255, 0.35) 100%);
}
body.v2 .v2-seq-template-reuse-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.875rem;
}
body.v2 .v2-seq-template-reuse-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(109, 40, 217, 0.12);
  color: rgb(91, 33, 182);
}
body.v2 .v2-seq-template-reuse-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(59, 7, 100);
}
body.v2 .v2-seq-template-reuse-desc {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(59, 7, 100, 0.72);
}
body.v2 .v2-seq-template-reuse-field .v2-seq-input {
  border-color: rgba(109, 40, 217, 0.22);
  background: rgba(255, 255, 255, 0.85);
}
body.v2 .v2-seq-save-status {
  min-height: 1rem;
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(23, 23, 23, 0.5);
  transition: color 0.15s ease;
}
body.v2 .v2-seq-save-status--pending { color: rgba(23, 23, 23, 0.45); }
body.v2 .v2-seq-save-status--saving { color: rgb(14, 116, 144); }
body.v2 .v2-seq-save-status--saved { color: rgb(21, 128, 61); }
body.v2 .v2-seq-save-status--error { color: rgb(185, 28, 28); font-weight: 600; }
body.v2 .v2-seq-step-save-status {
  flex: 1;
  min-width: 5rem;
}
body.v2 .v2-seq-cycle-panel {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}
body.v2 .v2-seq-empty-hint {
  margin: 0;
  padding: 0.375rem 0.125rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(23, 23, 23, 0.45);
  font-style: italic;
}
body.v2 .v2-seq-lane {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.v2 .v2-seq-journey-step {
  overflow: hidden;
  background: #fff;
}
body.v2 .v2-seq-journey-open {
  overflow: visible;
  background: #f8fafc;
  border-color: rgba(168, 50, 38, 0.35);
}
body.v2 .v2-seq-step-card.v2-seq-step-highlight {
  border-color: var(--v2-primary);
  box-shadow: 0 0 0 3px rgba(168, 50, 38, 0.28);
  animation: v2-seq-step-highlight-pulse 1.1s ease 2;
}

@keyframes v2-seq-step-highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(168, 50, 38, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(168, 50, 38, 0.12); }
}

body.v2 .v2-seq-step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5625rem 0.875rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

@media (min-width: 640px) {
  body.v2 .v2-seq-step-head {
    min-height: 2.625rem;
    padding: 0.625rem 1rem;
  }
}
body.v2 .v2-seq-step-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--v2-primary);
  box-shadow: 0 0 0 3px rgba(168, 50, 38, 0.2);
}
body.v2 .v2-seq-step-main {
  flex: 1;
  min-width: 0;
}
body.v2 .v2-seq-step-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  line-height: 1.25;
}
body.v2 .v2-seq-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8B2A20;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
body.v2 .v2-seq-step-meta {
  display: block;
  margin-top: 0.1875rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #737373;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.v2 .v2-seq-step-head:focus-visible {
  outline: 2px solid var(--v2-primary);
  outline-offset: 2px;
}
body.v2 .v2-seq-journey-step .journey-chevron {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
  display: inline-block;
}
body.v2 .v2-seq-journey-open .journey-chevron {
  transform: rotate(180deg);
}
body.v2 .v2-seq-formation-surface {
  border: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(23, 23, 23, 0.14) 0%, rgba(39, 55, 138, 0.09) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
body.v2 .v2-seq-step-card.v2-seq-formation-surface {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.v2 .v2-seq-step-card.v2-seq-formation-surface:hover {
  border-color: rgba(23, 23, 23, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 8px rgba(23, 23, 23, 0.08);
}
body.v2 .v2-seq-journey-step.v2-seq-formation-surface {
  background: linear-gradient(135deg, rgba(23, 23, 23, 0.14) 0%, rgba(39, 55, 138, 0.09) 100%);
}
body.v2 .v2-seq-journey-open.v2-seq-formation-surface {
  border-color: rgba(23, 23, 23, 0.28);
  background: linear-gradient(135deg, rgba(23, 23, 23, 0.14) 0%, rgba(39, 55, 138, 0.09) 100%);
}
body.v2 .v2-seq-formation-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--v2-text);
  text-transform: none;
  letter-spacing: 0.02em;
}
body.v2 .v2-seq-formation-marker--editable {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
body.v2 .v2-seq-formation-marker-icon {
  flex-shrink: 0;
  line-height: 1;
  font-size: 1.125rem;
  margin-top: 0.125rem;
}
body.v2 .v2-seq-formation-marker-main {
  flex: 1;
  min-width: 0;
}
body.v2 .v2-seq-formation-marker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
body.v2 .v2-seq-formation-marker-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--v2-text);
}
body.v2 .v2-seq-formation-marker-date {
  max-width: 100%;
}
body.v2 .v2-seq-formation-marker-display {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(23, 23, 23, 0.85);
}
body.v2 .v2-seq-formation-marker-hint {
  margin: 0.375rem 0 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(23, 23, 23, 0.55);
}
body.v2 .v2-seq-formation-marker-msg {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(23, 23, 23, 0.72);
}
body.v2 .v2-seq-formation-marker-date-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
}
body.v2 .v2-seq-formation-marker-date-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--v2-text);
  white-space: nowrap;
}
body.v2 .v2-seq-formation-marker-city {
  display: inline-flex;
  align-items: center;
  max-width: 14rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(28, 183, 230, 0.12);
  color: #0e7490;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.v2 .v2-seq-formation-day-block.v2-seq-formation-surface {
  gap: 0.75rem;
  padding: 0.875rem 1rem 1rem;
  overflow: hidden;
  border-radius: 0.75rem;
}
body.v2 .v2-seq-formation-day-block .v2-seq-cycle-panel {
  gap: 0.625rem;
}
body.v2 .v2-seq-formation-day-block .v2-seq-formation-marker {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
body.v2 .v2-seq-formation-day-block .v2-seq-formation-marker--editable {
  padding: 0.875rem 1rem;
}
body.v2 .v2-seq-formation-day-block .v2-seq-formation-day-steps {
  gap: 0.625rem;
  padding: 0;
}
body.v2 .v2-seq-formation-day-block .v2-seq-lane--formation-day {
  gap: 0.5rem;
}
body.v2 .v2-seq-formation-day-block .v2-seq-step-card--formation-day {
  border: 1px solid rgba(168, 50, 38, 0.16);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(168, 50, 38, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.v2 .v2-seq-formation-day-block .v2-seq-step-card--formation-day:hover {
  border-color: rgba(168, 50, 38, 0.38);
  box-shadow: 0 2px 10px rgba(168, 50, 38, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  background: #fff;
}
body.v2 .v2-seq-formation-day-block .v2-seq-journey-step {
  background: #fff;
}
body.v2 .v2-seq-formation-day-block .v2-seq-journey-open.v2-seq-step-card--formation-day {
  background: #f8fafc;
  border-color: rgba(168, 50, 38, 0.35);
}
body.v2 .v2-seq-formation-day-block .v2-seq-empty-hint {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(23, 23, 23, 0.16);
  background: rgba(255, 255, 255, 0.92);
}
body.v2 .v2-seq-formation-day-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}
body.v2 .v2-seq-formation-day-steps {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
body.v2 .v2-seq-step-card--formation-day .v2-seq-step-dot {
  background: rgba(23, 23, 23, 0.42);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.1);
}
body.v2 .v2-seq-step-card--formation-day .v2-seq-step-title {
  color: var(--v2-text);
}
body.v2 .v2-seq-step-card--formation-day .v2-seq-step-meta {
  color: rgba(23, 23, 23, 0.55);
}
body.v2 .v2-seq-lane--formation-day .v2-seq-empty-hint {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(23, 23, 23, 0.16);
  background: rgba(23, 23, 23, 0.04);
}
body.v2 .v2-seq-remove-day {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: 0.375rem;
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
body.v2 .v2-seq-remove-day:hover {
  background: #fee2e2;
  border-color: rgba(185, 28, 28, 0.45);
}
body.v2 .v2-seq-delete-cycle {
  flex-shrink: 0;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.22);
}
body.v2 .v2-seq-delete-cycle:hover {
  background: rgba(254, 242, 242, 0.95);
  border-color: rgba(185, 28, 28, 0.35);
}
body.v2 .v2-seq-add-day--inline {
  margin-top: 0.5rem;
  padding-left: 0;
  font-size: 0.75rem;
}
body.v2 .v2-seq-day-add-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: stretch;
}
body.v2 .v2-seq-day-add-actions--single {
  display: flex;
  justify-content: center;
  width: 100%;
  grid-template-columns: none;
  padding: 0.375rem 0.5rem;
}
body.v2 .v2-seq-day-add-actions--phase-bottom {
  margin-top: auto;
  padding-top: 0.625rem;
}
body.v2 .v2-seq-day-add-actions--during-bottom {
  margin: 0.375rem 0 0;
  padding: 0.375rem 0.125rem 0.125rem;
}
body.v2 .v2-seq-add-step--day {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 2.875rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 0.75rem 1.25rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-color: rgba(23, 23, 23, 0.92);
  background: rgba(23, 23, 23, 0.9);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
body.v2 .v2-seq-add-step--day:hover {
  background: rgba(139, 42, 32, 0.96);
  border-color: rgba(139, 42, 32, 1);
  color: #fff;
}
@media (max-width: 900px) {
  body.v2 .v2-seq-day-add-actions {
    gap: 0.35rem;
  }
  body.v2 .v2-seq-add-step--day {
    font-size: 0.625rem;
    padding: 0.45rem 0.4rem;
    min-height: 3rem;
  }
}
body.v2 .v2-seq-day-steps {
  margin: 0.25rem 0 0.5rem 2.625rem;
}
body.v2 .v2-seq-day-steps--between {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
body.v2 .v2-seq-day-steps .v2-seq-section-body {
  gap: 0.375rem;
}
body.v2 .v2-seq-cycle-lead {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(23, 23, 23, 0.65);
}
body.v2 .v2-seq-cycle-lieu-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--v2-muted);
}
body.v2 .v2-seq-add-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px dashed rgba(168, 50, 38, 0.45);
  background: rgba(255, 255, 255, 0.8);
  color: var(--v2-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
body.v2 .v2-seq-add-step:hover {
  background: rgba(168, 50, 38, 0.08);
  border-color: var(--v2-primary);
}
body.v2 .v2-seq-add-step--top {
  width: auto;
  display: inline-flex;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* Ressources formation — cartes alignées sur la timeline séquence */
body.v2 .v2-res-card.v2-seq-step-card {
  overflow: hidden;
}
body.v2 .v2-res-card-toolbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.v2 .v2-res-step-head {
  border: 0;
  background: transparent;
  cursor: pointer;
}
body.v2 .v2-res-field {
  min-width: 0;
}
body.v2 .v2-res-drag-handle {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(139, 42, 32, 0.35);
  font-size: 0.75rem;
  letter-spacing: -0.12em;
}
body.v2 .v2-res-drag-handle:hover {
  color: rgba(139, 42, 32, 0.65);
  background: rgba(168, 50, 38, 0.06);
}
body.v2 .v2-res-card-toolbar .v2-seq-step-head {
  padding-left: 0.625rem;
}
body.v2 .v2-res-card .v2-seq-comm-badge--neutral {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
body.v2 .v2-res-card .v2-seq-input,
body.v2 .v2-res-card .v2-res-inp {
  color: #737373;
}
body.v2 .v2-res-field .v2-field-label {
  display: block;
  margin-bottom: 0.25rem;
}
body.v2 #v2-res-filters .v2-field-label {
  margin-bottom: 0.125rem;
}
body.v2 .v2-res-card--ia.v2-seq-journey-open {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.28);
}
body.v2 .v2-res-card--mixte.v2-seq-journey-open {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.28);
}

/* Contenu validé par l'expert — carte gelée (lecture seule) */
body.v2 .v2-res-card--validated-frozen {
  background: rgba(236, 253, 245, 0.92);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.12), 0 1px 3px rgba(6, 95, 70, 0.08);
}
body.v2 .v2-res-card--validated-frozen .v2-res-card-head {
  background: rgba(209, 250, 229, 0.85);
  border-bottom-color: rgba(52, 211, 153, 0.35);
}
body.v2 .v2-res-card--validated-frozen .v2-res-summary-title {
  color: #064e3b;
}
body.v2 .v2-res-card--validated-frozen .v2-res-summary-meta {
  color: rgba(6, 78, 59, 0.72);
}
body.v2 .v2-res-card--validated-frozen .v2-res-card-body--frozen {
  background: rgba(240, 253, 250, 0.5);
}
body.v2 .v2-res-card--validated-frozen .v2-res-inp,
body.v2 .v2-res-card--validated-frozen .v2-seq-input,
body.v2 .v2-res-card--validated-frozen textarea {
  background: rgba(236, 253, 245, 0.65) !important;
  border-color: rgba(110, 231, 183, 0.45) !important;
  color: #065f46 !important;
  cursor: not-allowed;
}
body.v2 .v2-res-card--validated-frozen select.v2-res-inp:disabled {
  background: rgba(236, 253, 245, 0.65);
  border-color: rgba(110, 231, 183, 0.45);
  color: #065f46;
  cursor: not-allowed;
  opacity: 1;
}
body.v2 .v2-res-validation-frozen-banner {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

body.v2 .v2-res-card-toolbar .v2-seq-step-head {
  padding-left: 0.625rem;
}
body.v2 .v2-res-picker-opt {
  cursor: pointer;
  background: #fff;
  min-height: 5.25rem;
}
body.v2 .v2-res-picker-opt:focus-visible {
  outline: 2px solid var(--v2-primary);
  outline-offset: 2px;
}
body.v2 .v2-res-mode-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
body.v2 .v2-res-mode-btn--active {
  background: #fff;
  color: var(--v2-primary-dark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
body.v2 .v2-segmented .v2-res-mode-btn {
  border-radius: 0;
  box-shadow: none;
  color: var(--v2-muted);
  padding: 8px 16px;
  border-right: 1px solid var(--v2-border-strong);
  background: #fff;
}
body.v2 .v2-segmented .v2-res-mode-btn:last-child { border-right: none; }
body.v2 .v2-segmented .v2-res-mode-btn--active,
body.v2 .v2-segmented .v2-res-mode-btn.is-active {
  background: var(--v2-primary);
  color: #fff;
  box-shadow: none;
}

/* Page Formation — sections alignées sur la timeline séquence */
body.v2 .v2-identity-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  body.v2 .v2-identity-top-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.625rem;
  }
}
body.v2 .v2-identity-section .v2-seq-step-panel label.block.text-sm.font-medium {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--v2-primary-dark);
}
body.v2 .v2-identity-section #v2-visual-identity input[type="text"],
body.v2 .v2-identity-section #v2-visual-identity input[type="url"],
body.v2 .v2-identity-section #v2-visual-identity textarea {
  color: #737373;
}

/* Page Formateurs — grille ajout / liste */
body.v2 .v2-formateurs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
body.v2 .v2-formateurs-list-col {
  width: 100%;
  max-width: 34rem;
}
body.v2 .v2-formateurs-add-col {
  width: 100%;
  min-width: 0;
  max-width: 42rem;
}
@media (min-width: 1024px) {
  body.v2 .v2-formateurs-grid {
    grid-template-columns: minmax(0, 34rem) minmax(24rem, 1fr);
    justify-content: stretch;
    gap: 1.5rem 2.5rem;
  }
  body.v2 .v2-formateurs-add-col {
    max-width: none;
    min-width: 24rem;
  }
}
body.v2 #v2-tr-list .v2-tr-card {
  width: 100%;
  max-width: 34rem;
}
body.v2 .v2-tr-add-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
body.v2 .v2-tr-add-card .v2-seq-step-panel {
  min-width: 0;
}
body.v2 #v2-tr-create-btn {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}
body.v2 #v2-tr-list.v2-seq-lane {
  gap: 0.4375rem;
}
body.v2 .v2-tr-card-toolbar .v2-tr-photo-wrap {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
body.v2 .v2-tr-photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 0;
  background: #fff;
}
body.v2 .v2-tr-photo-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 999px;
  background: #fafafa;
  color: #a3a3a3;
  font-size: 0.625rem;
  line-height: 1.1;
  text-align: center;
  padding: 0.125rem;
}
body.v2 .v2-tr-card--compact.v2-seq-step-card {
  border-radius: 0.625rem;
}
body.v2 .v2-tr-card-toolbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
body.v2 .v2-tr-card-toolbar .v2-seq-step-head {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding-left: 0.625rem;
}
body.v2 .v2-tr-card--compact .v2-tr-card-toolbar .v2-seq-step-head {
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem 0.5rem 0.625rem;
  gap: 0.625rem;
}
@media (min-width: 640px) {
  body.v2 .v2-tr-card--compact .v2-tr-card-toolbar .v2-seq-step-head {
    min-height: 2.875rem;
    padding: 0.5625rem 1rem 0.5625rem 0.625rem;
  }
}
body.v2 .v2-tr-card .v2-seq-step-panel label.block.text-sm.font-medium,
body.v2 .v2-tr-add-card .v2-seq-step-panel label.block.text-sm.font-medium {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--v2-primary-dark);
}
body.v2 .v2-seq-comm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
}
body.v2 .v2-seq-comm-badge--email {
  background: rgba(168, 50, 38, 0.12);
  color: var(--v2-text);
  border-color: rgba(168, 50, 38, 0.35);
}
body.v2 .v2-seq-comm-badge--violet {
  background: rgba(139, 92, 246, 0.1);
  color: #5b21b6;
  border-color: rgba(139, 92, 246, 0.25);
}
body.v2 .v2-seq-comm-badge--neutral {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}

body.v2 .v2-seq-formation-day-details {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.625rem;
}
body.v2 .v2-seq-formation-day-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 520px) {
  body.v2 .v2-seq-formation-day-detail-grid { grid-template-columns: 1fr; }
}
body.v2 .v2-seq-formation-day-detail-label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(23, 23, 23, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.v2 .v2-table__actions--icons {
  display: inline-flex;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: none;
  width: auto;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
}
body.v2 .v2-table__actions--icons .v2-icon-btn,
body.v2 .v2-table__actions--icons .v2-table__icon-slot {
  width: 1.75rem;
  height: 1.75rem;
}
body.v2 .v2-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  vertical-align: middle;
  text-decoration: none;
  color: inherit;
}
body.v2 .v2-icon-btn:hover:not(:disabled) {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.15);
}
body.v2 .v2-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
body.v2 .v2-icon-btn--ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

/* ─── Checklist lancement (barre persistante) ─────────────────────────── */
body.v2 .v2-launch-strip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 6px 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  background: #fff;
}
body.v2 .v2-launch-strip-bar__checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 auto;
}
body.v2 .v2-launch-strip-bar__title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--v2-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
body.v2 .v2-launch-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.v2 .v2-launch-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--v2-text);
}
body.v2 .v2-launch-check__icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
body.v2 .v2-launch-check--ok .v2-launch-check__icon {
  background: #d1fae5;
  color: #065f46;
}
body.v2 .v2-launch-check--warn .v2-launch-check__icon {
  background: #fef3c7;
  color: #92400e;
}
body.v2 .v2-launch-check__label {
  cursor: default;
  border-bottom: 1px dotted transparent;
}
body.v2 .v2-launch-check__label:hover,
body.v2 .v2-launch-check__label:focus {
  border-bottom-color: rgba(0, 0, 0, 0.25);
  outline: none;
}
body.v2 .v2-launch-check__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  min-width: 10rem;
  max-width: 16rem;
  padding: 6px 8px;
  border-radius: 8px;
  background: #171717;
  color: #f5f5f5;
  font-size: 0.6875rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 60;
}
body.v2 .v2-launch-check__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #171717;
}
body.v2 .v2-launch-check:hover .v2-launch-check__tip,
body.v2 .v2-launch-check__label:focus + .v2-launch-check__tip {
  opacity: 1;
  visibility: visible;
}
body.v2 .v2-launch-strip-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
body.v2 .v2-launch-strip-bar__msg {
  font-size: 0.75rem;
  color: var(--v2-muted);
  text-align: right;
  max-width: 12rem;
}
body.v2 .v2-launch-strip-bar__btn {
  font-size: 0.75rem;
  padding: 6px 12px;
  white-space: nowrap;
}

/* ─── Navigation modules + actions lancement (fusion checklist / onglets) ─ */
body.v2 .v2-module-nav-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 4px 0 0;
  border-bottom: 1px solid var(--v2-border);
  padding-bottom: 8px;
}
body.v2 .v2-tabs--module-nav {
  min-width: 0;
  width: 100%;
  flex: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-bottom: none;
  margin-bottom: 0;
}
body.v2 .v2-tabs--module-nav::after {
  display: none;
}
body.v2 .v2-module-nav-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  width: 100%;
  flex-shrink: 0;
  padding-top: 0;
}
body.v2 .v2-module-nav-msg {
  font-size: 0.75rem;
  color: var(--v2-muted);
  max-width: 10rem;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.v2 .v2-module-nav-btn {
  font-size: 0.8125rem;
  padding: 6px 12px;
  white-space: nowrap;
}
body.v2 .v2-tab-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05em;
  font-size: 0.8125em;
  font-weight: 700;
  line-height: 1;
  margin-left: 3px;
}
body.v2 .v2-tab-meta--ok,
body.v2 .v2-tab-meta--partial,
body.v2 .v2-tab-meta--empty {
  font-size: 1.05em;
  min-width: 1.2em;
}
body.v2 .v2-tab-meta--count-ok,
body.v2 .v2-tab-meta--count-zero {
  font-size: 0.875em;
  min-width: 1.05em;
}
body.v2 .v2-tab-meta--ok {
  color: #059669;
}
body.v2 .v2-tab-meta--partial {
  color: #d97706;
}
body.v2 .v2-tab-meta--empty {
  color: #dc2626;
}
body.v2 .v2-tab-meta--count-ok {
  color: #059669;
}
body.v2 .v2-tab-meta--count-zero {
  color: #dc2626;
}
body.v2 .v2-tab[aria-selected="true"] .v2-tab-meta--ok,
body.v2 .v2-tab[aria-selected="true"] .v2-tab-meta--count-ok {
  color: #047857;
}
body.v2 .v2-tab[aria-selected="true"] .v2-tab-meta--partial {
  color: #b45309;
}
body.v2 .v2-tab[aria-selected="true"] .v2-tab-meta--empty,
body.v2 .v2-tab[aria-selected="true"] .v2-tab-meta--count-zero {
  color: #b91c1c;
}
body.v2 .v2-field-label--missing,
body.v2 label.v2-field-label--missing,
body.v2 .block.text-sm.font-medium.v2-field-label--missing {
  color: #dc2626 !important;
}
body.v2 .v2-seq-step-title--missing {
  color: #dc2626;
}

/* ─── Dialogues v2 (formulaires / confirmations) ─────────────────────── */
body.v2 .v2-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
}
body.v2 .v2-dialog-panel {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
body.v2 .v2-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--v2-border);
}
body.v2 .v2-dialog-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--v2-text);
  font-family: var(--v2-font-display, inherit);
}
body.v2 .v2-dialog-close {
  border: none;
  background: none;
  color: var(--v2-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.125rem 0.375rem;
  cursor: pointer;
}
body.v2 .v2-dialog-close:hover {
  color: var(--v2-text);
}
body.v2 .v2-dialog-body {
  padding: 1.25rem;
}
body.v2 .v2-dialog-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--v2-muted);
  line-height: 1.45;
}
body.v2 .v2-dialog-fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
body.v2 .v2-dialog-error {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #b91c1c;
}
body.v2 .v2-dialog-error[hidden] {
  display: none;
}
body.v2 .v2-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem 1.25rem;
  border-top: 1px solid var(--v2-border);
  background: #fafafa;
}
