/* Atrium V2, composants. Source : DESIGN_SYSTEM_ATRIUM.md, sections 3 à 5. Lot 1. */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background-color: var(--canvas);
  background-image: radial-gradient(1100px 480px at 72% -120px, var(--canvas-glow), rgba(194, 208, 216, 0) 70%), radial-gradient(700px 360px at 8% -80px, rgba(224, 217, 205, .16), rgba(224, 217, 205, 0) 70%);
  background-repeat: no-repeat; background-attachment: fixed; color: var(--harbor-blue); font: 400 15px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--harbor-blue); }
h1 { font: 400 36px/1.15 var(--font-display); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
h2 { font: 400 22px/1.2 var(--font-display); letter-spacing: -.005em; font-variant-numeric: lining-nums; }
/* Grand chiffre : serif de marque à chiffres alignés en hauteur */
.numeral { font: 400 27px/1 var(--font-num); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
h3 { font: 600 18px/1.3 var(--font-body); }
h1 em, h2 em { font-style: italic; }
p { margin: 0; }
a { color: var(--harbor-blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(46,66,87,.4);
  transition: text-decoration-color var(--motion-fast), color var(--motion-fast); cursor: pointer; }
a:hover { text-decoration-color: currentColor; }
a:active { color: var(--harbor-active); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
button { cursor: pointer; }
[disabled], [aria-disabled="true"] { cursor: not-allowed; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.help { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.kicker { font: 600 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Barre haute ---------- */
.topbar { position: sticky; top: 0; z-index: 20; height: var(--h-topbar); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-6); }
.topbar.admin { background: var(--harbor-blue); color: var(--linen); border-bottom: 0; }
.topbar .wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.topbar .wordmark img { height: 28px; width: auto; display: block; }
/* Bloc ReliO | Atrium : filet gris entre les deux, Atrium aligné sur la hauteur du wordmark ReliO */
.topbar .wordmark .wm-sep { width: 1.5px; height: 28px; border-radius: 1px; background: rgba(46, 66, 87, .38); flex: none; }
.topbar .wordmark img.wm-atrium { height: 22px; margin-top: 1px; }
.topbar.admin .wordmark .wm-sep { background: rgba(255, 255, 255, .45); }
@media (max-width: 640px) {
  .topbar .wordmark { gap: 10px; }
  .topbar .wordmark img { height: 22px; }
  .topbar .wordmark .wm-sep { height: 22px; }
  .topbar .wordmark img.wm-atrium { height: 17px; }
}
.topbar nav { display: flex; gap: var(--space-5); }
.topbar nav a { font: 600 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; white-space: nowrap;
  padding: 8px 0; border-bottom: 2px solid transparent; color: inherit; opacity: .78; transition: opacity var(--motion-fast), border-color var(--motion); }
.topbar nav a:hover { opacity: 1; border-bottom-color: rgba(46,66,87,.25); }
.topbar nav a[aria-current="page"] { border-bottom-color: currentColor; opacity: 1; }
.topbar nav a:focus-visible { border-radius: 4px; }
.topbar .who { margin-left: auto; text-align: right; font-size: 13px; color: var(--text-2); line-height: 1.4; white-space: nowrap; }
@media (max-width: 1100px) { .topbar { gap: var(--space-4); } .topbar nav { gap: var(--space-4); } }
.topbar.admin .who { color: var(--cloud-bay); }
.topbar .btn { margin-left: var(--space-4); }
.topbar.admin .btn.secondary { background: transparent; color: var(--linen); border-color: var(--cloud-bay); }

/* Mode Voir comme : bandeau Harbor Blue, jamais ocre */
.viewas { background: var(--harbor-blue); color: var(--linen); padding: 10px var(--space-6); font-size: 14px; display: flex; gap: var(--space-5); align-items: center; }
.viewas a { color: var(--linen); margin-left: auto; }
.viewas a + a { margin-left: 0; }

/* ---------- Gabarits ---------- */
.app { display: block; min-height: calc(100vh - var(--h-topbar)); }
body.has-sidenav .app { margin-left: var(--w-nav); }
body.has-sidenav .topbar { padding-left: 12px; gap: var(--space-4); }
.stage { padding: var(--space-6) var(--space-6) 120px; }
.stage-inner { max-width: var(--w-page); margin: 0 auto; }
.stage-inner.form { max-width: var(--w-form); }
.stage-inner.narrow { max-width: var(--w-narrow); padding-top: var(--space-7); }

/* ---------- Navigation latérale : colonne d'icônes, menu déployé, accordéons exclusifs (atrium-nav.js) ---------- */
.menu-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--harbor-blue); display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--motion-fast); }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--layer-hover); }
.menu-btn:active { background: var(--layer-active); }
.menu-btn:focus-visible { box-shadow: var(--ring); border-radius: 10px; }
.topbar.admin .menu-btn { color: var(--linen); }
.topbar.admin .menu-btn:hover, .topbar.admin .menu-btn[aria-expanded="true"] { background: rgba(255,255,255,.12); }

.sidenav { position: fixed; z-index: 25; top: var(--h-topbar); left: 0; bottom: var(--proto-bar-h, 0px); width: var(--w-nav); overflow: hidden;
  background: var(--white); border-right: 1px solid var(--hairline); transition: width 280ms var(--ease), box-shadow 280ms var(--ease); }
.sidenav.open { width: var(--w-nav-open); box-shadow: var(--depth-3); }
.sidenav-inner { width: var(--w-nav-open); height: 100%; overflow-x: hidden; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.sn-sec { flex: none; }
.sn-item { display: flex; align-items: center; gap: 12px; width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  color: var(--text-2); font: 400 14.5px/1 var(--font-body); text-decoration: none; text-align: left; overflow: hidden;
  transition: width 280ms var(--ease), background-color var(--motion-fast), color var(--motion-fast); }
.sidenav.open .sn-item { width: 100%; }
.sn-item:hover { background: var(--layer-hover); color: var(--harbor-blue); }
.sn-item:active { background: var(--layer-active); }
.sn-item.current { background: var(--cloud-bg); color: var(--harbor-blue); font-weight: 600; }
.sidenav.open .sn-sec.expanded > .sn-item.current { background: transparent; }
.sidenav.open .sn-sec.expanded > .sn-item { color: var(--harbor-blue); }
.sn-item:focus-visible, .sn-link:focus-visible, .sn-group:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.sn-ico { width: 20px; height: 20px; flex: none; }
.sn-label { flex: 1; white-space: nowrap; opacity: 0; transition: opacity 140ms var(--ease); }
.sidenav.open .sn-label { opacity: 1; transition: opacity 240ms var(--ease) 80ms; }
.sn-chev { width: 16px; height: 16px; flex: none; transition: transform 240ms var(--ease), opacity 180ms var(--ease); }
.sn-item .sn-chev { opacity: 0; }
.sidenav.open .sn-item .sn-chev { opacity: .65; }
[aria-expanded="true"] > .sn-chev { transform: rotate(90deg); }
.sn-sep { height: 1px; width: 20px; margin: 8px 10px; background: var(--rule); flex: none; transition: width 280ms var(--ease); }
.sidenav.open .sn-sep { width: calc(100% - 20px); }

/* Pli : hauteur et opacité fondues ensemble */
.sn-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 300ms var(--ease), opacity 220ms var(--ease); }
.sn-fold > div { overflow: hidden; min-height: 0; }
.expanded > .sn-fold { grid-template-rows: 1fr; opacity: 1; }
.sn-sub { padding: 2px 0 8px 38px; display: grid; gap: 1px; }
.sn-link .sn-text { white-space: nowrap; }
.sn-link { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; min-height: 34px; padding: 6px 10px; border-radius: 8px;
  color: var(--text-2); font-size: 14px; line-height: 1.3; text-decoration: none; transition: background-color var(--motion-fast), color var(--motion-fast); }
.sn-link:hover { background: var(--layer-hover); color: var(--harbor-blue); }
.sn-link:active { background: var(--layer-active); }
.sn-link.current { background: var(--cloud-bg); color: var(--harbor-blue); font-weight: 600; }
.sn-group { display: flex; align-items: center; gap: 6px; width: 100%; height: 34px; padding: 0 10px 0 4px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--harbor-blue); font: 600 13.5px/1 var(--font-body); text-align: left; transition: background-color var(--motion-fast); }
.sn-group:hover { background: var(--layer-hover); }
.sn-group .sn-chev { opacity: .65; }
.sn-line { margin: 2px 0 6px 12px; padding-left: 9px; border-left: 1px solid var(--rule); display: grid; gap: 1px; }
.sn-line .sn-link.current::before { content: ""; position: absolute; left: -10px; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--harbor-blue); }
/* Statut d'étape (En relecture, Après la relecture) : toujours sous le titre de l'entrée */
.sn-link.stacked .sn-text { white-space: normal; }
/* Liens dans une ligne secondaire de table : soulignés pour se voir (20/11) */
.table .sub a { color: var(--harbor-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(46, 66, 87, .35); }
.table .sub a:hover { text-decoration-color: currentColor; }
/* Cartes côte à côte dans une grille : pas de marge entre cartes, la grille gère l'espacement (20/11) */
.etapes > .card + .card, [class^="grid-"] > .card + .card, [class*=" grid-"] > .card + .card { margin-top: 0; }
/* Procédure d'une tâche, sous son nom (20/11) */
.task .t .proc { display: block; margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
/* Suggestions de tâches pendant la saisie (20/11) */
.suggest ul.sg-live { position: absolute; left: 0; z-index: 40; margin: 0; min-width: 100%; width: max-content; max-width: 460px; max-height: 320px; overflow: auto; }
/* Cycles : colonnes fixes, pour que les titres tombent sur les réponses ; le titre se décale de la colonne des numéros (20/11) */
@media (min-width: 641px) {
  .card .task { grid-template-columns: minmax(0, 1fr) 84px 60px 216px 150px 64px; }
  .card .task .seg { justify-self: start; }
  .card > .task[aria-hidden="true"] { margin-left: calc(32px + var(--space-3)) !important; }
  .card > .task[aria-hidden="true"] > :nth-child(3) { text-align: right; }
}
.sn-link.stacked { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.sn-st { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11px; font-weight: 400; color: var(--text-2); white-space: nowrap; }
/* Jauge d'avancement : anneau de 14 px qui se remplit, fraction en chiffres tabulaires (18/11) */
.sn-gauge { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 600 11px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.sn-gauge i { width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--harbor-blue) calc(var(--p) * 1%), rgba(46, 66, 87, .14) 0);
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px);
  transition: background 300ms var(--ease); }
.sn-link.current .sn-gauge { color: var(--harbor-blue); }
.sn-st.ok { color: var(--success); }
.sn-check { width: 14px; height: 14px; }

.sn-tip { position: fixed; z-index: 40; transform: translate(-4px, -50%); padding: 6px 10px; border-radius: 8px; background: var(--harbor-blue); color: var(--white); font: 600 12px/1 var(--font-body);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 140ms var(--ease), transform 140ms var(--ease); }
.sn-tip.on { opacity: 1; transform: translate(0, -50%); }
.sn-scrim { position: fixed; z-index: 24; inset: var(--h-topbar) 0 0 0; background: rgba(252, 252, 251, .6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 280ms var(--ease); }
body.sidenav-open .sn-scrim { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  body.has-sidenav .app { margin-left: 0; }
  body.has-sidenav .topbar { padding-left: 8px; gap: var(--space-2); }
  .sidenav { width: 0; border-right: 0; }
  .sidenav.open { width: min(320px, 88vw); }
  .sidenav-inner { width: min(320px, 88vw); }
  .sn-scrim { background: rgba(46,66,87,.28); }
}
/* Panneau de section : carte blanche à côté de la colonne d'icônes, masquable */
.secpanel { position: fixed; z-index: 22; top: calc(var(--h-topbar) + 12px); left: calc(var(--w-nav) + 12px); bottom: calc(var(--proto-bar-h, 0px) + 12px); width: var(--w-panel);
  display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: 14px; box-shadow: var(--depth-2); }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--rule); color: var(--harbor-blue); flex: none; }
.sp-title { font: 600 15px/1.2 var(--font-body); }
.sp-body { flex: 1; overflow-y: auto; padding: 10px 8px 12px; display: grid; gap: 1px; align-content: start; }
.sp-toggle { position: fixed; z-index: 23; top: calc(var(--h-topbar) + 26px); left: calc(var(--w-nav) + var(--w-panel)); width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--white); color: var(--text-2); box-shadow: var(--shadow-1), 0 0 0 1px rgba(46,66,87,.16); }
.sp-toggle:hover { color: var(--harbor-blue); background: var(--surface-2); }
.sp-toggle:focus-visible { box-shadow: var(--ring); border-radius: 50%; }
.sp-toggle > .sn-chev { width: 14px; height: 14px; transform: rotate(180deg); }
body.has-panel .app { margin-left: calc(var(--w-nav) + 12px + var(--w-panel)); }
body.has-panel .stage { padding-left: var(--space-5); }
body.panel-hidden .secpanel { opacity: 0; transform: translateX(-12px); visibility: hidden; pointer-events: none; }
body.panel-hidden .sp-toggle { left: calc(var(--w-nav) - 7px); } /* replié : le cercle passe un peu sous la colonne d'icônes, la flèche reste entièrement visible (19/11) */
body.panel-hidden .sp-toggle > .sn-chev { transform: none; }
body.panel-hidden.has-panel .app { margin-left: var(--w-nav); }
body.panel-hidden.has-panel .stage { padding-left: var(--space-6); }
body.panel-ready .secpanel { transition: opacity 240ms var(--ease), transform 280ms var(--ease), visibility 0s; }
body.panel-ready.panel-hidden .secpanel { transition: opacity 200ms var(--ease), transform 280ms var(--ease), visibility 0s 280ms; }
body.panel-ready .sp-toggle { transition: left 280ms var(--ease), background-color var(--motion-fast), color var(--motion-fast); }
body.panel-ready .sp-toggle > .sn-chev { transition: transform 280ms var(--ease); }
body.panel-ready .app { transition: margin-left 280ms var(--ease); }
body.panel-ready .stage { transition: padding-left 280ms var(--ease); }
@media (max-width: 1099px) {
  .secpanel:not(.demo), .sp-toggle { display: none; }
  body.has-panel .app { margin-left: var(--w-nav); }
  body.has-panel .stage { padding-left: var(--space-6); }
}
@media (max-width: 640px) { body.has-panel .app { margin-left: 0; } body.has-panel .stage { padding-left: var(--space-4); } }
.secpanel.demo { position: relative; top: auto; left: auto; bottom: auto; z-index: 0; height: 600px; }
[data-secpanel-demo] { flex: none; }
/* Exemples de la planche */
[data-sidenav-demo] { flex: none; }
.sidenav.demo { position: relative; top: auto; left: auto; bottom: auto; z-index: 0; height: 600px; border: 1px solid var(--hairline); border-radius: 14px; }
.sidenav.demo.open { box-shadow: var(--shadow-1); }

/* ---------- En-tête de page ---------- */
.back { display: inline-block; font-size: 14px; margin-bottom: var(--space-4); text-decoration: none; color: var(--text-2); }
.back:hover { color: var(--harbor-blue); text-decoration: underline; }
.back::before { content: "‹ "; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4) var(--space-5); align-items: end; margin-bottom: var(--space-5); }
.page-head .sub { color: var(--text-2); margin-top: var(--space-2); max-width: 68ch; }
.page-head .actions { display: flex; gap: var(--space-3); align-items: center; }
.chip-ctx { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--border-input), var(--depth-chip); color: var(--harbor-blue); font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--space-3); }

/* ---------- Boutons : plus compacts, arête nette, dégradé à peine perceptible (18/11) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--h-control); padding: 0 18px;
  border-radius: var(--radius-pill); border: 0; background: var(--btn-primary); color: var(--white);
  font: 600 14px/1 var(--font-body); letter-spacing: .005em; cursor: pointer; text-decoration: none; white-space: nowrap; position: relative;
  box-shadow: 0 0 0 1px #283B4F, inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(34, 52, 74, .22), 0 4px 10px -2px rgba(34, 52, 74, .22), 0 10px 22px -8px rgba(34, 52, 74, .24);
  transition: box-shadow var(--motion), transform var(--motion), opacity var(--motion), filter var(--motion-fast); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--btn-primary-hover); box-shadow: 0 0 0 1px #283B4F, inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 4px rgba(34, 52, 74, .22), 0 8px 16px -4px rgba(34, 52, 74, .26), 0 16px 32px -10px rgba(34, 52, 74, .28); transform: translateY(-1px); }
.btn:active { background: var(--harbor-active); transform: translateY(0) scale(.985); box-shadow: 0 0 0 1px #22344A, inset 0 1px 2px rgba(0, 0, 0, .2), 0 1px 1px rgba(34, 52, 74, .12); transition-duration: 80ms; }
.btn.secondary { background: var(--white); color: var(--harbor-blue); box-shadow: 0 0 0 1px rgba(46, 66, 87, .14), 0 1px 2px rgba(46, 66, 87, .06), 0 4px 10px -3px rgba(46, 66, 87, .10); }
.btn.secondary:hover { background: var(--white); box-shadow: 0 0 0 1px rgba(46, 66, 87, .20), 0 2px 4px rgba(46, 66, 87, .07), 0 8px 18px -6px rgba(46, 66, 87, .16); }
.btn.secondary:active { background: var(--surface-soft); box-shadow: 0 0 0 1px rgba(46, 66, 87, .24), inset 0 1px 2px rgba(46, 66, 87, .08); }
.btn.ghost { background: transparent; color: var(--harbor-blue); box-shadow: none; }
.btn.ghost:hover { background: var(--layer-hover); box-shadow: none; transform: none; }
.btn.ghost:active { background: var(--layer-active); }
.btn.danger { background: var(--btn-danger); color: var(--white); box-shadow: 0 0 0 1px #94241F, inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(120, 20, 15, .22), 0 4px 10px -2px rgba(150, 30, 24, .24), 0 10px 22px -8px rgba(150, 30, 24, .26); }
.btn.danger:hover { background: var(--btn-danger); filter: brightness(1.05); box-shadow: 0 0 0 1px #94241F, inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(120, 20, 15, .22), 0 8px 16px -4px rgba(150, 30, 24, .28), 0 16px 32px -10px rgba(150, 30, 24, .30); }
.btn.danger:active { filter: brightness(.94); box-shadow: 0 0 0 1px #7E1E19, inset 0 1px 2px rgba(0, 0, 0, .18); }
.btn.sm { height: var(--h-control-sm); padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; transform: none; filter: none; box-shadow: 0 0 0 1px rgba(46, 66, 87, .14); }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--btn-primary); transform: none; box-shadow: 0 0 0 1px rgba(46, 66, 87, .14); }
.btn.secondary:disabled:hover { background: var(--white); }
.btn:focus-visible { box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(34, 52, 74, .22), 0 4px 10px -2px rgba(34, 52, 74, .22), 0 10px 22px -8px rgba(34, 52, 74, .24); border-radius: var(--radius-pill); }
.btn.danger:focus-visible { box-shadow: var(--ring-critical); }
@media (max-width: 640px) { :root { --h-control: 44px; --h-control-sm: 36px; } }
.link-danger { color: var(--critical-ink); text-decoration-color: rgba(168, 50, 43, .4); }
.link-danger:hover { text-decoration-color: currentColor; }
.actions-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.actions-row.end { justify-content: flex-end; }

/* ---------- Cartes, tuiles : filet fin, ombre à peine posée (harmonisées avec bandeaux et navigation) ---------- */
.card { background: var(--white); border-radius: 14px; box-shadow: var(--depth-2); padding: var(--space-5);
  transition: box-shadow var(--motion), transform var(--motion); }
.card + .card { margin-top: var(--space-4); }
.card.lg { border-radius: 20px; padding: var(--space-6); }
.card.selected { box-shadow: 0 0 0 1.5px var(--harbor-blue), 0 1px 2px rgba(46, 66, 87, .06), 0 10px 24px -6px rgba(46, 66, 87, .14); }
.card.clickable { cursor: pointer; }
.card.clickable:hover, .card.is-hover { box-shadow: var(--depth-3); transform: translateY(-2px); }
.card.clickable:active { transform: none; box-shadow: var(--depth-1); }
.card.clickable:focus-visible { box-shadow: var(--depth-2), var(--ring); }
.card h2, .card h3 { margin-bottom: var(--space-1); }
.card .sub { color: var(--text-2); font-size: 14px; margin-bottom: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.tile { background: var(--white); border-radius: 12px; box-shadow: var(--depth-1); padding: 14px 16px 16px; }
.tile .lbl { font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.tile .val { font: 400 27px/1 var(--font-num); letter-spacing: -.01em; font-variant-numeric: lining-nums; margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; white-space: nowrap; }
.tile .val + .help { margin-top: 8px !important; }
.subcard { background: var(--surface-soft); border-radius: 10px; padding: var(--space-4); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow var(--motion), background-color var(--motion); }
.subcard.current { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--harbor-blue), 0 1px 2px rgba(46, 66, 87, .06), 0 8px 20px -6px rgba(46, 66, 87, .14); }
.subcard .kicker { display: block; margin-bottom: var(--space-2); }

/* Lignes de liste dans une carte */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 12px 0; border-top: 1px solid var(--divider); }
.rows li > a:first-child { font-weight: 600; text-decoration-color: transparent; }
.rows li > a:first-child:hover { text-decoration-color: currentColor; }
.rows li:first-child { border-top: 0; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill);
  font: 600 12.5px/1 var(--font-body); letter-spacing: .01em; white-space: nowrap; color: var(--harbor-blue); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border-input), var(--depth-chip); }
/* États : neutres, sans point ; une icône fine de 12 px porte l'état (18/11, proposition 1 variante A) */
.chip.wait, .chip.success, .chip.warning, .chip.critical, .chip.sent, .chip.mid, .chip.cloud { gap: 5px; padding: 0 10px 0 8px; background: var(--white); color: var(--harbor-blue);
  box-shadow: inset 0 0 0 1px rgba(46, 66, 87, .14), var(--depth-chip); }
.chip.wait::before, .chip.success::before, .chip.warning::before, .chip.critical::before, .chip.sent::before, .chip.mid::before, .chip.cloud::before {
  content: ""; width: 12px; height: 12px; flex: none; background: var(--st-icon) center / 12px no-repeat; }
.chip.success { --st-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><circle cx='6' cy='6' r='5.6' fill='%233F6F5A'/><path d='M3.7 6.2l1.6 1.6 3-3.2' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background: var(--success-tint); color: var(--success-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--success-line), var(--gloss), var(--depth-chip); }
.chip.warning { --st-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke-width='1.6' stroke-linecap='round'><circle cx='6' cy='6' r='4.6' stroke='%23C2D0D8'/><path d='M6 1.4a4.6 4.6 0 0 1 4.6 4.6' stroke='%237998A9'/></svg>"); }
.chip.sent { --st-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237998A9' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M10.3 1.7 5.2 6.8M10.3 1.7 7.1 10.3 5.2 6.8 1.7 4.9z'/></svg>"); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(46, 66, 87, .26), var(--depth-chip); }
.chip.critical { --st-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23A8322B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='6' r='4.8'/><path d='M6 3.7v2.7M6 8.3h.01'/></svg>"); color: var(--critical-ink); }
.chip.wait { --st-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238A95A1' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='6' r='4.8' stroke-dasharray='1.6 1.6'/></svg>"); color: var(--text-2); }
.chip.mid, .chip.cloud { --st-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%234A5C6F' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='6' r='4.8'/><path d='M6 1.2a4.8 4.8 0 0 1 0 9.6z' fill='%234A5C6F' stroke='none'/></svg>"); color: var(--text-2); }
.chip.tag, .chip.repris, .chip.calcule, .chip.declare { height: 20px; padding: 0 8px 0 6px; gap: 4px; font: 600 11px/1 var(--font-body); letter-spacing: .02em;
  color: var(--text-2); background: var(--white); box-shadow: inset 0 0 0 1px rgba(46, 66, 87, .15), var(--depth-chip); vertical-align: middle; }
.chip.private::before, .chip.shared::before, .chip.repris::before, .chip.calcule::before, .chip.declare::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--src-icon) center / 12px no-repeat; mask: var(--src-icon) center / 12px no-repeat; }
.chip.repris { --src-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 1.8v5.4M3.8 5L6 7.2 8.2 5M2.2 9.8h7.6'/></svg>"); }
.chip.calcule { --src-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 2.4H3.4L6.4 6l-3 3.6H9'/></svg>"); }
.chip.private { --src-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><rect x='2.6' y='5.4' width='6.8' height='4.8' rx='1.2'/><path d='M4.2 5.4V4a1.8 1.8 0 013.6 0v1.4'/></svg>"); }
.chip.shared { --src-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='4.4' cy='4.2' r='1.6'/><path d='M1.8 9.6c.3-1.5 1.3-2.3 2.6-2.3s2.3.8 2.6 2.3'/><circle cx='8.4' cy='4.6' r='1.3'/><path d='M8 7.3c1.1 0 1.9.7 2.2 2'/></svg>"); }
.chip.tag:not(.private):not(.shared) { padding: 0 8px; }
.chip.declare { --src-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7.6 2.2l2.2 2.2-5.6 5.6H2v-2.2z'/></svg>"); }
.chip.sm { height: 20px; font-size: 11px; padding: 0 8px; }
.chip.sm.wait, .chip.sm.success, .chip.sm.warning, .chip.sm.critical, .chip.sm.sent, .chip.sm.mid { padding: 0 8px 0 6px; gap: 4px; }

/* ---------- Bandeaux : un composant, cinq catégories (refonte du 18/11) ----------
   Structure : .banner > .bn-ico + .bn-body (.bn-msg avec .bn-cat facultative, liste facultative) + .bn-act (liens ou petits boutons). */
.banner { --bn-tint: var(--info-tint); --bn-line: var(--info-line); --bn-ink: var(--info-ink); --bn-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 7.2v3.6M8 5.1h.01'/></svg>");
  container-type: inline-size; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; align-items: start;
  margin: var(--space-4) 0; padding: 10px 12px; border-radius: 10px; background: var(--bn-tint); box-shadow: inset 0 0 0 1px var(--bn-line), inset 0 1px 0 rgba(255, 255, 255, .8), var(--depth-banner);
  color: var(--harbor-blue); font: 400 13.5px/1.45 var(--font-body); }
/* Fondu seulement pour un bandeau qui surgit après une action (doublon détecté, enregistrement refusé) */
.banner.is-new { animation: bn-in 240ms var(--ease) both; }
@keyframes bn-in { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.banner.warning { --bn-tint: var(--warning-tint); --bn-line: var(--warning-line); --bn-ink: var(--warning-ink); --bn-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7.1 2.6 1.9 11.8a1 1 0 0 0 .9 1.5h10.4a1 1 0 0 0 .9-1.5L8.9 2.6a1 1 0 0 0-1.8 0z'/><path d='M8 6.3v3M8 11.2h.01'/></svg>"); }
.banner.critical { --bn-tint: var(--critical-tint); --bn-line: var(--critical-line); --bn-ink: var(--critical-ink); --bn-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M3.6 3.6l8.8 8.8'/></svg>"); }
.banner.success { --bn-tint: var(--success-tint); --bn-line: var(--success-line); --bn-ink: var(--success-ink); --bn-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M5.3 8.2l1.8 1.8 3.6-3.8'/></svg>"); }
.banner.choice { --bn-tint: var(--white); --bn-line: rgba(46, 66, 87, .14); --bn-ink: var(--text-2); --bn-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5.2' y='5.2' width='8.3' height='8.3' rx='1.8'/><path d='M10.8 5.2V3.9a1.4 1.4 0 0 0-1.4-1.4H3.9a1.4 1.4 0 0 0-1.4 1.4v5.5a1.4 1.4 0 0 0 1.4 1.4h1.3'/></svg>"); box-shadow: inset 0 0 0 1px var(--bn-line), var(--depth-banner); }
.bn-ico { width: 16px; height: 16px; margin-top: 2px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)); background: var(--bn-ink); -webkit-mask: var(--bn-icon) center / 16px no-repeat; mask: var(--bn-icon) center / 16px no-repeat; }
.bn-body { min-width: 0; }
.bn-msg { margin: 0; text-wrap: pretty; }
.bn-cat { font-weight: 600; color: var(--bn-ink); margin-right: 6px; }
.bn-msg b:not(.bn-cat) { font-weight: 600; }
.bn-body ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bn-body li { position: relative; padding-left: 14px; color: var(--text-2); }
.bn-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--bn-ink); opacity: .7; }
.bn-body li a { font-weight: 600; }
.bn-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; align-self: center; }
.bn-link { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; color: var(--harbor-blue); font-weight: 600; white-space: nowrap; text-decoration: none; }
.bn-link::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8h9M9 4.5 12.5 8 9 11.5'/></svg>") center / 14px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8h9M9 4.5 12.5 8 9 11.5'/></svg>") center / 14px no-repeat;
  transition: transform var(--motion-fast); }
.bn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bn-link:hover::after { transform: translateX(2px); }
.bn-act .btn { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.sm:not(.secondary):not(.ghost):not(.danger) { box-shadow: 0 0 0 1px #283B4F, inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(34, 52, 74, .2), 0 3px 8px -2px rgba(34, 52, 74, .2); }
.btn.sm.secondary { box-shadow: 0 0 0 1px rgba(46, 66, 87, .14), 0 1px 2px rgba(46, 66, 87, .06), 0 2px 6px -2px rgba(46, 66, 87, .08); }
.btn.sm:not(.secondary):not(.ghost):not(.danger):hover, .btn.sm.is-hover:not(.secondary) { box-shadow: 0 0 0 1px #283B4F, inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 4px rgba(34, 52, 74, .2), 0 6px 14px -4px rgba(34, 52, 74, .26); }
.btn.sm.secondary:hover { box-shadow: 0 0 0 1px rgba(46, 66, 87, .2), 0 2px 4px rgba(46, 66, 87, .07), 0 6px 14px -5px rgba(46, 66, 87, .14); }
.btn.sm:active { box-shadow: 0 0 0 1px #22344A, inset 0 1px 2px rgba(0, 0, 0, .2); }
.btn.sm.secondary:active { box-shadow: 0 0 0 1px rgba(46, 66, 87, .24), inset 0 1px 2px rgba(46, 66, 87, .08); }
.banner.choice .bn-act { grid-column: 2 / -1; justify-content: flex-start; }
@container (max-width: 520px) { .bn-act { grid-column: 2 / -1; justify-content: flex-start; } }
.banner + .banner { margin-top: -6px; }

/* ---------- Votre cap : élément éditorial, pas un bandeau ---------- */
.cap { position: relative; overflow: hidden; margin: var(--space-5) 0; padding: 28px 32px 26px; border-radius: 20px; color: var(--linen);
  background: radial-gradient(70% 90% at 100% 0%, rgba(194, 208, 216, .20) 0%, rgba(194, 208, 216, 0) 70%), linear-gradient(160deg, var(--harbor-blue) 0%, var(--cap-deep) 100%);
  box-shadow: 0 12px 32px rgba(34, 52, 74, .18); }
.cap .kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--cloud-bay); font-size: 10.5px; letter-spacing: .16em; }
.cap .kicker::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--cloud-bay); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><circle cx='8' cy='8' r='3.25'/><circle cx='8' cy='8' r='.6' fill='black'/></svg>") center / 14px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><circle cx='8' cy='8' r='3.25'/><circle cx='8' cy='8' r='.6' fill='black'/></svg>") center / 14px no-repeat; }
.cap .phrase { max-width: 34ch; font: 400 30px/1.22 var(--font-display); letter-spacing: -.01em; color: var(--white); text-wrap: balance; }
.cap .meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(247, 246, 245, .14); }
.cap .meta > div { padding: 0 20px; border-left: 1px solid rgba(247, 246, 245, .14); font: 400 19px/1.25 var(--font-num); font-variant-numeric: lining-nums; color: var(--white); }
.cap .meta > div:first-child { padding-left: 0; border-left: 0; }
.cap .meta .kicker { display: block; margin: 0 0 6px; font: 600 10.5px/1.2 var(--font-body); letter-spacing: .14em; color: rgba(194, 208, 216, .9); }
.cap .meta .kicker::before { content: none; }
.cap .sig { margin-top: 16px; font-size: 12px; color: rgba(247, 246, 245, .62); }
.cap.line { display: flex; align-items: center; gap: 20px; padding: 16px 22px; border-radius: 16px; box-shadow: 0 6px 18px rgba(34, 52, 74, .14); }
.cap.line .kicker { margin: 0; flex: none; }
.cap.line .phrase { max-width: none; font: 400 19px/1.3 var(--font-display); }
@media (max-width: 640px) {
  .cap { padding: 22px 20px; border-radius: 16px; }
  .cap .phrase { font-size: 24px; }
  .cap .meta { grid-template-columns: 1fr; gap: 14px; }
  .cap .meta > div { padding: 0; border-left: 0; }
  .cap.line { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Boîte de définition ---------- */
.def { border: 1px dashed rgba(46,66,87,.3); border-radius: var(--radius-input); background: var(--white); padding: 12px 16px; font-size: 14px; color: var(--text-2); }

/* ---------- Champs : contour fin à 3:1, ombre à peine posée, focus en halo (18/11) ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .lbl { font: 600 12.5px/1.4 var(--font-body); color: var(--harbor-blue); }
.field label small, .field .lbl small { font-weight: 400; color: var(--text-2); }
.input, .select, .textarea { width: 100%; height: var(--h-control); padding: 0 12px; border: 1px solid var(--border-input); border-radius: 10px;
  background: var(--white); color: var(--harbor-blue); font-size: 14.5px; box-shadow: 0 1px 2px rgba(46, 66, 87, .05);
  transition: border-color var(--motion-fast), box-shadow var(--motion), background-color var(--motion); }
.textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(74, 92, 111, .62); }
.input:hover, .select:hover, .textarea:hover { border-color: #6F7D8B; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--harbor-blue); box-shadow: var(--field-halo); }
.input[readonly], .input.readonly { background: var(--surface-soft); border-color: transparent; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text-2); }
.input[readonly]:hover { border-color: transparent; }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .45; cursor: not-allowed; background: var(--white); box-shadow: none; }
.input:disabled:hover, .select:disabled:hover { border-color: var(--border-input); }
.input.sm { height: var(--h-control-sm); font-size: 13.5px; border-radius: 8px; }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
.input[type="search"] { padding-left: 36px; background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%234A5C6F' stroke-width='1.5' stroke-linecap='round'><circle cx='7' cy='7' r='4.5'/><path d='M10.4 10.4 13.5 13.5'/></svg>") 12px center / 16px no-repeat; -webkit-appearance: none; appearance: none; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%234A5C6F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4.5 6.2 8 9.7l3.5-3.5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.select.sm { height: var(--h-control-sm); font-size: 13.5px; border-radius: 8px; }
.field.error .input { border-color: var(--critical); }
.field.error .input:focus, .field.error .select:focus, .field.error .textarea:focus { box-shadow: var(--field-halo-critical); border-color: var(--critical); }
.field .err { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.4; color: var(--critical-ink); }
.field .help { margin-top: -2px; }
.suffix { position: relative; }
.suffix .input { padding-right: 36px; }
.suffix::after { content: attr(data-unit); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-size: 13px; pointer-events: none; }

/* Date : champ jj/mm/aaaa et calendrier flottant (datepicker.js) */
.datefield { position: relative; }
.datefield .input { padding-right: 44px; font-variant-numeric: tabular-nums; }
.date-btn { position: absolute; right: 6px; top: calc(var(--h-control) / 2); transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--harbor-blue);
  transition: background-color var(--motion-fast); }
.date-btn::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%232E4257' stroke-width='1.5' stroke-linecap='round'><rect x='3' y='4.5' width='14' height='12' rx='2.5'/><path d='M3 8.5h14M7 3v3M13 3v3'/><circle cx='10' cy='12.5' r='1' fill='%232E4257' stroke='none'/></svg>") center / 18px no-repeat; }
.date-btn:hover, .date-btn[aria-expanded="true"] { background: var(--layer-hover); }
.date-btn:active { background: var(--layer-active); }
.date-btn:focus-visible { box-shadow: var(--ring); }
.datepicker { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 296px; padding: 12px; background: var(--white); border-radius: 14px; box-shadow: var(--depth-3);
  animation: dp-in var(--motion); transform-origin: top left; }
@keyframes dp-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font: 600 14px/1 var(--font-body); letter-spacing: .01em; }
.dp-nav { width: 32px; height: 32px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--harbor-blue); font: 400 20px/1 var(--font-body); cursor: pointer; transition: background-color var(--motion-fast); }
.dp-nav:hover { background: var(--layer-hover); }
.dp-nav:active { background: var(--layer-active); }
.dp-nav:focus-visible { box-shadow: var(--ring); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { font: 600 11px/1 var(--font-body); letter-spacing: .08em; color: var(--text-2); text-align: center; padding: 6px 0 8px; }
.dp-day { height: 36px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--harbor-blue); font: 400 14px/1 var(--font-body); cursor: pointer; position: relative;
  transition: background-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast); }
.dp-day:hover { background: var(--layer-hover); }
.dp-day:active { transform: scale(.94); }
.dp-day.today { font-weight: 600; }
.dp-day.today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.dp-day.on { background: var(--harbor-blue); color: var(--white); font-weight: 600; }
.dp-day.on:hover { background: var(--harbor-hover); }
.dp-day:focus-visible { box-shadow: var(--ring); z-index: 1; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.dp-link { border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; color: var(--harbor-blue); font: 600 13px/1 var(--font-body); cursor: pointer; transition: background-color var(--motion-fast); }
.dp-link:hover { background: var(--layer-hover); }
.dp-link:focus-visible { box-shadow: var(--ring); }
.datefield[data-open] .datepicker { position: static; margin-top: 8px; animation: none; }
@media (max-width: 640px) { .datepicker { width: 100%; min-width: 280px; } }

/* ---------- Choix ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); height: var(--h-control-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
/* Liste déroulante à choix multiples */
.ms { position: relative; }
.ms-btn { width: 100%; text-align: left; display: flex; align-items: center; cursor: pointer; min-height: var(--h-control, 40px); height: auto; padding-top: 4px; padding-bottom: 4px; }
.ms-val { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ms-ph { color: var(--text-2); font-weight: 400; }
.ms-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); padding: 6px; background: var(--white); border-radius: 12px; box-shadow: var(--depth-2, 0 8px 24px rgba(34,52,74,.16)), 0 0 0 1px var(--hairline); max-height: 340px; overflow: auto; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 400; cursor: pointer; }
.ms .ms-opt { font: 400 14.5px/1.4 var(--font-body); color: var(--harbor-blue); }
.ms-opt:hover { background: var(--layer-hover); }
.ms-opt input { width: 16px; height: 16px; accent-color: var(--harbor-blue); margin: 0; flex: none; }
.ms-autre { display: block; width: calc(100% - 20px); margin: 4px 10px 6px; }
/* Dans un champ, le choix segmenté garde sa largeur naturelle, comme sur la planche des états */
.field > .seg { justify-self: start; width: auto; }
.seg button { border: 0; background: transparent; padding: 0 12px; border-radius: var(--radius-pill); font: 600 13px/1 var(--font-body); color: var(--text-2); cursor: pointer; white-space: nowrap;
  transition: background-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast); }
.seg button:hover { color: var(--harbor-blue); background: var(--layer-hover); }
.seg button:active { background: var(--layer-active); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--harbor-blue); box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); }
.seg button:focus-visible { box-shadow: var(--ring); z-index: 1; position: relative; }
.seg button:disabled { opacity: .45; cursor: not-allowed; background: transparent; }
.tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-4) 0; }
.tabs a { display: inline-flex; align-items: center; height: var(--h-control-sm); padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid rgba(46,66,87,.3);
  background: var(--white); text-decoration: none; font: 600 14px/1 var(--font-body); color: var(--text-2); transition: background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast); }
.tabs a:hover { color: var(--harbor-blue); background: var(--surface-2); border-color: rgba(46,66,87,.5); }
.tabs a:active { background: var(--layer-active); }
.tabs a[aria-current="true"] { background: var(--harbor-blue); color: var(--white); border-color: var(--harbor-blue); }
.tabs a:focus-visible { box-shadow: var(--ring); border-radius: var(--radius-pill); }
.check { width: 20px; height: 20px; border-radius: 6px; background: var(--white); display: inline-grid; place-items: center; flex: none; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(46, 66, 87, .32), 0 1px 2px rgba(46, 66, 87, .05);
  transition: background-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast); }
.check:hover { box-shadow: inset 0 0 0 1.5px var(--harbor-blue), 0 1px 2px rgba(46, 66, 87, .05); }
.check:active { transform: scale(.92); }
.check.on { background: var(--btn-primary); box-shadow: 0 0 0 1px #283B4F, inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(34, 52, 74, .2); }
.check.on:hover { background: var(--btn-primary-hover); }
.check.on::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3.2 6.2l1.9 1.9 3.7-3.9'/></svg>") center / 12px no-repeat; }
.check:focus-visible { box-shadow: var(--ring); border-radius: 6px; }
.check[aria-disabled="true"], .check.disabled { opacity: .45; cursor: not-allowed; }
.switch { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; cursor: pointer; }
.switch i { width: 44px; height: 24px; border-radius: var(--radius-pill); background: rgba(46,66,87,.22); position: relative; display: inline-block; transition: background-color var(--motion); }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(46,66,87,.3); transition: transform var(--motion); }
.switch:hover i { background: rgba(46,66,87,.32); }
.switch.on i { background: var(--harbor-blue); }
.switch.on:hover i { background: var(--harbor-hover); }
.switch.on i::after { transform: translateX(20px); }
.switch:focus-visible { box-shadow: none; }
.switch:focus-visible i { box-shadow: var(--ring); }
.switch.disabled, .switch[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Tables : en-tête discret, lignes séparées par un filet très léger ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 12px; box-shadow: var(--depth-1); overflow: hidden; font-size: 14px; }
.table th { font: 600 12px/1.3 var(--font-body); color: var(--text-2); text-align: left; vertical-align: bottom;
  background: var(--surface-soft); padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.table th .sub { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-2); margin-top: 2px; }
.table td { padding: 0 16px; height: 52px; border-top: 1px solid var(--divider); vertical-align: middle; transition: background-color var(--motion-fast); }
.table thead + tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: var(--row-hover); }
.table td:first-child { font-weight: 600; white-space: nowrap; }
.table td:first-child a { text-decoration-color: transparent; }
.table td:first-child a:hover { text-decoration-color: currentColor; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.table td.num { font-weight: 600; }
.table td.num .help, .table td.num .sub, .table td.num .muted, .table td.num.muted { font-weight: 400; }
.table td.acts { text-align: right; white-space: nowrap; font-size: 13px; }
.table td.acts a:not(.btn) { color: var(--text-2); font-weight: 600; text-decoration: none; transition: color var(--motion-fast); }
.table td.acts a:not(.btn) + a:not(.btn) { margin-left: 14px; }
.table tbody tr:hover td.acts a:not(.btn), .table td.acts a:not(.btn):hover { color: var(--harbor-blue); }
.table td.acts a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.table td.acts a.link-danger, .table tbody tr:hover td.acts a.link-danger { color: var(--critical-ink); }
.table td .sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.table tfoot td { background: var(--surface-soft); font-weight: 600; border-top: 1px solid rgba(46, 66, 87, .14); }
.table-note { font-size: 12px; color: var(--text-2); margin-top: var(--space-2); }
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin: var(--space-4) 0; font-size: 13px; color: var(--text-2); }
.table-tools .input { max-width: 400px; height: var(--h-control-sm); }
.input[data-typing]::placeholder { color: rgba(74, 92, 111, .72); }

/* ---------- Progression, étapes : traits fins, pastilles numérotées reliées ---------- */
.bar { height: 4px; border-radius: var(--radius-pill); background: rgba(46, 66, 87, .09); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--harbor-blue); border-radius: var(--radius-pill); transition: width 300ms var(--ease); }
.bar-row { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--text-2); }
.bar-row b { color: var(--harbor-blue); }
.bar-row .bar { flex: 1; }
.next { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--divider); }
.next .lbl { font-size: 12.5px; color: var(--text-2); }
.next b { font-weight: 600; }
.next .btn { margin-left: auto; }
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; list-style: none; margin: 0 0 var(--space-5); padding: 0; counter-reset: st; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); counter-increment: st; }
.stepper li + li::before { content: ""; width: 28px; height: 1px; margin: 0 12px; background: rgba(46, 66, 87, .18); }
.stepper li.done + li::before { background: var(--harbor-blue); }
.stepper i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px/1 var(--font-body); font-style: normal;
  color: var(--text-2); box-shadow: inset 0 0 0 1.5px rgba(46, 66, 87, .25); }
.stepper i::before { content: counter(st); }
.stepper .done { color: var(--harbor-blue); }
.stepper .done i { background: var(--harbor-blue); box-shadow: none; }
.stepper .done i::before { content: ""; width: 12px; height: 12px; background: var(--white); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.6 8.4l2.9 2.9 5.9-6.2'/></svg>") center / 12px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.6 8.4l2.9 2.9 5.9-6.2'/></svg>") center / 12px no-repeat; }
.stepper .now { color: var(--harbor-blue); font-weight: 600; }
.stepper .now i { background: var(--cloud-bg); color: var(--harbor-blue); box-shadow: inset 0 0 0 1.5px var(--harbor-blue); }

/* ---------- Avatar, divers ---------- */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cloud-bay); display: inline-grid; place-items: center; font: 600 12px/1 var(--font-body); letter-spacing: .02em; flex: none; box-shadow: inset 0 0 0 1px rgba(46,66,87,.08); }
.who-row { display: flex; align-items: center; gap: var(--space-3); }
.empty { text-align: center; padding: 36px 24px 32px; border: 1px dashed rgba(46, 66, 87, .16); border-radius: 12px; background: var(--surface-soft); }
.empty::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 12px; background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%232E4257' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 11.2 5.4 4.8h9.2l1.9 6.4v3.9a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1z'/><path d='M3.5 11.2h4l1 2h3l1-2h4'/></svg>") center / 20px no-repeat;
  box-shadow: var(--depth-1); }
.empty.locked::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%232E4257' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4.5' y='9' width='11' height='7.5' rx='1.8'/><path d='M7 9V6.8a3 3 0 0 1 6 0V9'/></svg>"); }
.empty h3 { font-size: 15px; margin-bottom: 6px; }
.empty .help { font-size: 13px; line-height: 1.5; max-width: 52ch; margin-left: auto; margin-right: auto; }
/* Retour après action : toast pour un envoi, mention d'enregistrement pour une saisie */
.toast { position: fixed; z-index: 45; left: 50%; bottom: 24px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px;
  border-radius: 12px; background: var(--white); color: var(--harbor-blue); font-size: 13.5px; box-shadow: var(--depth-3); animation: toast-in 240ms var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--success-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M5.3 8.2l1.8 1.8 3.6-3.8'/></svg>") center / 16px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M5.3 8.2l1.8 1.8 3.6-3.8'/></svg>") center / 16px no-repeat; }
.toast.error::before { background: var(--critical-ink); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 4.9v3.6M8 10.9h.01'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 4.9v3.6M8 10.9h.01'/></svg>"); }
.toast .toast-act { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--divider); color: var(--harbor-blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.toast .toast-act:hover { text-decoration: underline; text-underline-offset: 3px; }
.toast.inline { position: static; transform: none; animation: none; }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.saved::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--success-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.6 8.4l2.9 2.9 5.9-6.2'/></svg>") center / 12px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3.6 8.4l2.9 2.9 5.9-6.2'/></svg>") center / 12px no-repeat; }
.saved.saving::before { width: 10px; height: 10px; margin: 1px; -webkit-mask: none; mask: none; background: none; border-radius: 50%; border: 1.5px solid rgba(46, 66, 87, .2); border-top-color: var(--text-2); animation: spin 800ms linear infinite; }
.saved.error { color: var(--critical-ink); }
.saved.error::before { background: var(--critical-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 4.9v3.6M8 10.9h.01'/></svg>") center / 12px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 4.9v3.6M8 10.9h.01'/></svg>") center / 12px no-repeat; }
.saved.error a { color: inherit; font-weight: 600; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: var(--space-4) 0; }

/* Cycle : liste de moments et de tâches (écran 43) */
.moments { list-style: none; margin: 0; padding: 0; }
.moments > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--rule); }
.moments > li:first-child { border-top: 0; }
.moments .n { width: 24px; height: 24px; border-radius: 50%; background: var(--harbor-blue); color: var(--white); display: grid; place-items: center; font: 600 11.5px/1 var(--font-body); margin-top: 1px; }
.moments .n.empty-n { background: var(--white); color: var(--text-2); box-shadow: inset 0 0 0 1.5px rgba(46, 66, 87, .25); }
.moments h3 { font-size: 15px; margin-bottom: 2px; }
.moments .help { margin-bottom: var(--space-2); }
.task { display: grid; grid-template-columns: minmax(0, 1fr) 84px 60px auto 150px auto; gap: var(--space-3); align-items: center;
  padding: 10px 12px; border-radius: var(--radius-input); background: var(--surface-2); margin-top: var(--space-2); font-size: 14px; }
.task .t { font-weight: 600; }
.task .seg { height: 28px; padding: 2px; background: rgba(46,66,87,.08); }
.task .seg button { padding: 0 8px; font-size: 12px; }
.task .input.sm { height: 28px; font-size: 13px; }
.add { display: inline-block; margin-top: var(--space-2); font-size: 14px; }

/* Relecture (écran 90) */
.review { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.review .list .card { padding: var(--space-4) var(--space-5); cursor: pointer; }
.review .list .card:hover { box-shadow: var(--shadow-3), 0 0 0 1px var(--hairline); }
.review .list .card b { display: block; font-weight: 600; margin-bottom: 4px; }

/* Connexion */
.auth .card { padding: var(--space-6); }
.auth form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }

/* ---------- Lot 2 : états ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Simulation des états dans une planche statique */
.is-hover.btn { background: var(--btn-primary-hover); box-shadow: 0 0 0 1px #283B4F, inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 4px rgba(34, 52, 74, .22), 0 8px 16px -4px rgba(34, 52, 74, .26), 0 16px 32px -10px rgba(34, 52, 74, .28); transform: translateY(-1px); }
.is-hover.btn.secondary { background: var(--white); box-shadow: 0 0 0 1px rgba(46, 66, 87, .20), 0 2px 4px rgba(46, 66, 87, .07), 0 8px 18px -6px rgba(46, 66, 87, .16); }
.is-hover.btn.ghost { background: var(--layer-hover); box-shadow: none; transform: none; }
.is-hover.btn.danger { background: var(--btn-danger); filter: brightness(1.05); box-shadow: 0 0 0 1px #94241F, inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(120, 20, 15, .22), 0 8px 16px -4px rgba(150, 30, 24, .28), 0 16px 32px -10px rgba(150, 30, 24, .30); }
.is-active.btn { background: var(--harbor-active); transform: scale(.985); box-shadow: 0 0 0 1px #22344A, inset 0 1px 2px rgba(0, 0, 0, .18); }
.is-active.btn.secondary { background: var(--surface-soft); box-shadow: 0 0 0 1px rgba(46, 66, 87, .24), inset 0 1px 2px rgba(46, 66, 87, .08); }
.is-active.btn.danger { background: var(--btn-danger); filter: brightness(.94); box-shadow: 0 0 0 1px #7E1E19, inset 0 1px 2px rgba(0, 0, 0, .18); }
.is-focus { box-shadow: var(--ring) !important; }
.is-focus.btn { border-radius: var(--radius-pill); }
.is-focus.btn.danger { box-shadow: var(--ring-critical) !important; }
.input.is-focus, .select.is-focus, .textarea.is-focus { border-color: var(--harbor-blue); box-shadow: var(--field-halo) !important; }
.field.error .input.is-focus { border-color: var(--critical); box-shadow: var(--field-halo-critical) !important; }
.is-hover.input, .is-hover.select { border-color: #6F7D8B; }
.is-hover.check { box-shadow: inset 0 0 0 1.5px var(--harbor-blue); }
.is-hover.switch i { background: rgba(46,66,87,.32); }
.is-focus.switch { box-shadow: none !important; }
.is-focus.switch i { box-shadow: var(--ring); }
.seg button.is-hover { color: var(--harbor-blue); background: var(--layer-hover); }
.seg button.is-focus { box-shadow: var(--ring) !important; position: relative; z-index: 1; }
.tabs a.is-hover { color: var(--harbor-blue); background: var(--surface-2); border-color: rgba(46,66,87,.5); }
.btn.loading { pointer-events: none; color: transparent; position: relative; }
.btn.loading::before { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: spin 700ms linear infinite; }
.btn.secondary.loading::before { border-color: rgba(46,66,87,.2); border-top-color: var(--harbor-blue); }
@keyframes spin { to { transform: rotate(360deg); } }
tr.is-hover td { background: var(--row-hover); }

/* Champ en erreur */
.field.error .input, .field.error .select, .field.error .textarea { border-color: var(--critical); }
.field .err::before { content: ""; width: 14px; height: 14px; margin-top: 1px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 4.9v3.6M8 10.9h.01'/></svg>") center / 14px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.25'/><path d='M8 4.9v3.6M8 10.9h.01'/></svg>") center / 14px no-repeat; }

/* Suggestions sous un champ (Ma semaine, D32) */
.suggest { position: relative; }
.suggest ul { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--white); border: 0; border-radius: 12px; box-shadow: var(--depth-3); }
.suggest li { padding: 8px 10px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--text-2); transition: background-color var(--motion-fast), color var(--motion-fast); }
.suggest li b { font-weight: 600; color: var(--harbor-blue); }
.suggest li.is-hover, .suggest li:hover, .suggest li[aria-selected="true"] { background: var(--cloud-bg); color: var(--harbor-blue); }
.suggest li.create { justify-content: flex-start; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--divider); border-radius: 0 0 8px 8px; color: var(--harbor-blue); }
.suggest li.create::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3.5v9M3.5 8h9'/></svg>") center / 14px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M8 3.5v9M3.5 8h9'/></svg>") center / 14px no-repeat; }
.suggest .sg-hint { display: flex; gap: 12px; margin: 6px -6px -6px; padding: 7px 12px; border-top: 1px solid var(--divider); background: var(--surface-soft); border-radius: 0 0 12px 12px; font-size: 11.5px; color: var(--text-2); cursor: default; }
.suggest .sg-hint kbd { font: 600 10.5px/1 var(--font-body); padding: 2px 5px; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px rgba(46, 66, 87, .16); color: var(--harbor-blue); }
.suggest li small { color: var(--text-2); }

/* Alerte en ligne (tâche proche) */
/* L'alerte de doublon est désormais un bandeau .choice */

/* Planche */
.sheet h2 { margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sheet .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0; }
.sheet .lbl { width: 140px; font-size: 12px; color: var(--text-2); flex: none; }
.sheet .cell { background: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: var(--depth-1); }
.sheet .cell small { display: block; color: var(--text-2); font-size: 12px; margin-top: 6px; }
.sheet code { font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.saison { display: inline-flex; gap: 6px; }
.saison .input { width: 72px; }

/* ---------- Lot 3 : téléphone (375 px) et compléments ---------- */
@media (max-width: 640px) {
  .topbar { gap: var(--space-3); padding: 0 var(--space-4); }
  .topbar nav, .topbar .who { display: none; }
  .topbar > .btn { margin-left: auto; }
  .stage { padding: var(--space-4) var(--space-4) 160px; }
  .page-head { grid-template-columns: 1fr; }
  .page-head .actions { justify-content: flex-start; flex-wrap: wrap; }
  h1 { font-size: 28px; }
  .card { padding: var(--space-4); }
  .table.cards { display: block; }
  .table.cards thead { display: none; }
  .table.cards tbody, .table.cards tr, .table.cards td { display: block; }
  .table.cards tr { padding: var(--space-4); border-top: 1px solid var(--rule); }
  .table.cards tr:first-child { border-top: 0; }
  .table.cards td { height: auto; padding: 0; border: 0; text-align: left; }
  .table.cards td + td { margin-top: var(--space-2); }
  .table.cards td.num { text-align: left; }
  .table.cards td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
  .table.cards .task-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
  .table.cards .task-line .sub { font-weight: 400; }
  .sticky-cta { position: fixed; left: var(--space-4); right: var(--space-4); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
  .sticky-cta .btn { width: 100%; height: 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .saison { flex-wrap: wrap; }
  .def, .banner { font-size: 14px; }
}
/* Portes de relecture */
.gates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; counter-reset: gate; }
.gate { position: relative; background: var(--white); border-radius: 12px; box-shadow: var(--depth-1); padding: 14px 16px; transition: box-shadow var(--motion); }
.gate.current { box-shadow: 0 0 0 1.5px var(--harbor-blue), 0 1px 2px rgba(46, 66, 87, .06), 0 10px 24px -6px rgba(46, 66, 87, .14); }
.gate.done { background: var(--surface-soft); box-shadow: 0 0 0 1px var(--hairline); }
.gate .kicker { display: block; margin-bottom: 6px; }
.gate b { display: block; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 960px) { .gates { grid-template-columns: repeat(2, 1fr); } }
/* Seuils emboîtés */
.seuils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.seuils .tile { position: relative; }
.seuils .tile::after { content: "+"; position: absolute; z-index: 1; right: -16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); box-shadow: var(--depth-1); color: var(--text-2); font: 600 13px/1 var(--font-body); }
.seuils .tile:last-child::after { content: none; }
@media (max-width: 640px) { .seuils { grid-template-columns: 1fr; } .seuils .tile::after { content: none; } }
/* Bloc atelier */
.atelier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--hairline); border-radius: 12px; padding: 14px 18px; }
.atelier .date { font: 400 22px/1 var(--font-num); font-variant-numeric: lining-nums; white-space: nowrap; }
/* Pas encore de date fixée par ReliO : « Date à convenir », plus discret que la date (19/11) */
.atelier .date.tbd { font: italic 400 16px/1.2 var(--font-num); color: var(--text-2); white-space: normal; max-width: 6.5em; }
@media (max-width: 640px) { .atelier { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .table.cards .task-line { flex-direction: column; gap: 2px; }
  .sticky-cta { bottom: calc(var(--proto-bar-h, 0px) + 12px + env(safe-area-inset-bottom, 0px)); }
}
/* Le chemin : étapes et état des actions (D52) */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
/* Carte d'étape (18/11) : rubrique « Étape n » et jauge, titre, ligne de repères ; l'état de l'étape tient dans un seul chip */
.et-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.et-head .kicker { margin: 0; }
.et-head .sn-gauge { font-size: 11.5px; }
.etape.done .et-head .sn-gauge i { background: conic-gradient(var(--success) calc(var(--p) * 1%), rgba(46, 66, 87, .14) 0); }
.etape h3 { font-size: 17px; }
.etape .periode { font-size: 13px; color: var(--text-2); margin: 6px 0 14px; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.etape .cond { margin: var(--space-3) 0; }
/* Tâche : coche ronde fine, deux états seulement (faite, pas faite) */
.action { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); align-items: start; }
.action .t { font-weight: 600; font-size: 14px; line-height: 1.4; display: flex; justify-content: space-between; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
.action .t-date { font: 600 12px/1.4 var(--font-body); font-variant-numeric: tabular-nums; color: var(--success-ink); }
.action .m { font-size: 12px; color: var(--text-2); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.action .m .chip { height: 20px; font-size: 11px; padding: 0 8px 0 6px; gap: 4px; }
.action.done .t > span:first-child { color: var(--text-2); font-weight: 400; }
.tcheck { width: 20px; height: 20px; margin-top: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(46, 66, 87, .30); transition: box-shadow var(--motion-fast), background-color var(--motion-fast), transform var(--motion-fast); }
.tcheck::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238A95A1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3.4 6.2l1.8 1.8 3.4-3.6'/></svg>") center / 12px no-repeat; opacity: 0; transition: opacity var(--motion-fast); }
.tcheck:hover { box-shadow: inset 0 0 0 1.5px var(--harbor-blue); }
.tcheck:hover::after { opacity: 1; }
.tcheck:active { transform: scale(.92); }
.tcheck.on { background: var(--success); box-shadow: 0 1px 2px rgba(63, 111, 90, .25), 0 2px 6px -2px rgba(63, 111, 90, .30); }
.tcheck.on::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3.4 6.2l1.8 1.8 3.4-3.6'/></svg>"); opacity: 1; }
.tcheck:focus-visible { box-shadow: var(--ring); }
@media (max-width: 960px) { .etapes { grid-template-columns: 1fr; } }
/* Matrice de partage du chemin */
.table.matrix th.c, .table.matrix td.c { text-align: center; width: 110px; }
.table.matrix td .help { display: block; margin-top: 2px; }
.table.matrix th .sub { display: block; font-size: 11px; color: var(--text-2); font-weight: 400; }
@media (max-width: 640px) {
  .table.matrix td.c { display: flex; align-items: center; justify-content: space-between; width: auto; }
  .table.matrix td[data-label]::before { margin: 0; }
}

.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: var(--depth-1); background: var(--white); }
/* Règle générale (19/11) : un champ ne bouge jamais quand une phrase apparaît dessous (aide, erreur, rappel d'état).
   Dans une table, dès qu'une cellule porte un champ suivi d'une phrase, toute la ligne s'aligne en haut :
   les champs restent centrés sur la ligne de texte comme dans une ligne sans phrase, la phrase agrandit la ligne vers le bas.
   Repéré automatiquement ; la classe with-help force le même alignement. */
@media (min-width: 641px) {
  .table tr.with-help td,
  .table tr:has(> td > :is(.input, .select, .textarea, .suffix, .datefield):first-child + :is(.help, .err, .sub)) td { vertical-align: top; padding-top: 16px; padding-bottom: 12px; }
  .table tr.with-help td > :is(.input, .select, .suffix, .datefield):first-child,
  .table tr:has(> td > :is(.input, .select, .textarea, .suffix, .datefield):first-child + :is(.help, .err, .sub)) td > :is(.input, .select, .suffix, .datefield):first-child { margin-top: -10px; }
  .table tr.with-help td > :is(.input.sm, .select.sm):first-child,
  .table tr:has(> td > :is(.input, .select, .textarea, .suffix, .datefield):first-child + :is(.help, .err, .sub)) td > :is(.input.sm, .select.sm):first-child { margin-top: -6px; }
  .table tr:has(> td > :is(.input, .select):first-child + :is(.help, .err, .sub)) td > .chip:first-child { margin-top: -2px; }
}
/* Hors table : des champs côte à côte s'alignent sur leur libellé, jamais sur leur bas : une phrase sous l'un ne remonte pas son champ. */
:is(.grid-2, .grid-3, .grid-4, .row):has(> .field) { align-items: start; }
/* Étiquette en tête de carte, à la place d'une chip d'état : même hauteur qu'une chip d'état (24 px) pour que les cartes voisines s'alignent. Ailleurs, l'étiquette garde ses 20 px (19/11) */
.card > .chip.tag:first-child:not(.sm) { height: 24px; font-size: 12px; padding: 0 10px; }
.card > .chip.tag.private:first-child:not(.sm), .card > .chip.tag.shared:first-child:not(.sm) { padding: 0 10px 0 8px; }
/* Cartes côte à côte qui finissent par un bouton : le bouton se pose en bas de la carte, aligné avec celui des voisines (19/11) */
:is(.grid-2, .grid-3, .grid-4) > .card:has(> .btn:last-child) { display: flex; flex-direction: column; align-items: flex-start; }
:is(.grid-2, .grid-3, .grid-4) > .card:has(> .btn:last-child) > * { max-width: 100%; }
:is(.grid-2, .grid-3, .grid-4) > .card:has(> .btn:last-child) > :not(.btn):not(.chip) { align-self: stretch; }
:is(.grid-2, .grid-3, .grid-4) > .card > .btn:last-child { margin-top: auto; }
:is(.grid-2, .grid-3, .grid-4) > .card > :not(p):has(+ .btn:last-child) { margin-bottom: 12px; }
.table-wrap > .table { box-shadow: none; }
/* Ligne de table sur plusieurs lignes de texte : le texte garde le même écart avec les filets qu'une ligne simple (19/11).
   Une ligne simple reste à 52 px ; une cellule qui porte un champ ou un bouton garde un écart court pour ne pas grandir. */
@media (min-width: 641px) {
  .table td { padding-top: 14px; padding-bottom: 14px; }
  .table td:has(> :is(.input, .select, .textarea, .suffix, .datefield, .seg, .btn, .switch)), .table td.acts { padding-top: 5px; padding-bottom: 5px; }
}
/* Un élément masqué par l'attribut hidden le reste, même si son composant fixe un display (bandeau, ligne) */
[hidden] { display: none !important; }
/* Avertissement Co-gérant : bandeau sous le champ, ou ligne pleine dans une table (19/11) */
.cg-warn { margin: var(--space-3) 0 0; }
.page-head + .cg-warn { margin: 0 0 var(--space-5); }
.table tr.cg-warn-row td, .table tr.cg-warn-row:hover td { height: auto; padding: 0 16px 14px; border-top: 0; background: var(--white); }
.table tr.cg-warn-row .cg-warn { margin: 0; }
button.bn-link { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
/* Chip sur deux lignes : la valeur en normal, sa précision dessous en italique (Lecture / en totaux) (19/11) */
/* Mêmes marges qu'une chip d'une ligne (20 px pour un texte de 11 px : 4,5 px en haut et en bas, 8 px sur les côtés).
   Sélecteur renforcé : .chip.tag:not(.private):not(.shared) remettait le padding vertical à 0. */
.chip.two-line, .chip.tag.two-line:not(.private):not(.shared) { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: auto; min-height: 0; padding: 4.5px 8px; line-height: 1; text-align: center; white-space: nowrap; }
.chip.two-line i { font-style: italic; font-weight: 400; font-size: .92em; line-height: 1; }
/* Bouton qui ouvre une fenêtre sur la page, dessiné comme un lien (ne fait pas quitter le parcours) */
.as-link { background: none; border: 0; padding: 0; font: inherit; color: var(--harbor-blue); text-decoration: underline; text-decoration-color: rgba(46, 66, 87, .35); text-underline-offset: 3px; cursor: pointer; }
.as-link:hover { text-decoration-color: currentColor; }
.as-link:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
/* Fenêtre des modèles : profondeur 3, fond de page flouté sous un voile clair (19/11) */
.cg-lock, .cg-lock body { overflow: hidden; }
.cg-modal { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 0; border-radius: 18px; background: var(--white); color: var(--harbor-blue); box-shadow: var(--depth-3); }
.cg-modal::backdrop { background: rgba(46, 66, 87, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cg-modal[open] { animation: cg-in 200ms var(--ease) both; }
@keyframes cg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .cg-modal[open] { animation: none; } }
.cg-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.cg-modal-head h2 { margin: 8px 0 4px; }
.cg-modal-head .sub { margin: 0; }
.cg-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; color: var(--text-2); transition: background-color var(--motion-fast); }
.cg-x:hover { background: var(--layer-hover); color: var(--harbor-blue); }
.cg-x:focus-visible { outline: none; box-shadow: var(--ring); }
.cg-x::before, .cg-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.cg-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cg-grid td { height: 44px; font-size: 13.5px; }
.cg-grid td:first-child { white-space: normal; }
.cg-grid th.c, .cg-grid td.c { width: auto; }
.cg-grid .cg-col { background: var(--warning-tint); }
.cg-grid th.cg-col { color: var(--warning-ink); }
.cg-grid tbody tr:hover td.cg-col { background: var(--warning-tint); }
.cg-grid .chip.cg-none { color: var(--text-2); opacity: .7; }
.cg-modal .actions-row { display: flex; justify-content: space-between; align-items: center; } /* le cadre et l'ombre passent sur l'enveloppe : son défilement coupait ceux de la table (19/11) */
@media (max-width: 640px) { .table-wrap:has(> .table.cards) { border-radius: 0; box-shadow: none; background: none; } .table-wrap > .table.cards { box-shadow: var(--depth-1); } }
.table.tight th, .table.tight td { padding-left: 10px; padding-right: 10px; }
.table.tight th:first-child, .table.tight td:first-child { padding-left: 16px; }
.table.tight th:last-child, .table.tight td:last-child { padding-right: 16px; }
@media (max-width: 640px) { .bar-row { flex-wrap: wrap; } .bar-row .bar { flex-basis: 100%; order: 3; } }
.table td.num .help, .table td .help.block { display: block; white-space: normal; text-align: inherit; }
@media (max-width: 640px) { .table-wrap:has(> .table.cards) { overflow: visible; } .table.cards td, .table.cards td:first-child, .table.cards td.num { white-space: normal; } }
/* Gains et pertes */
.pos { color: var(--success); font-weight: 600; }
.neg { color: var(--critical-text); font-weight: 600; }
/* Tables : sous-titre d'en-tête sur sa ligne, chips qui se replient quand la colonne manque */
.table th .sub { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-2); margin-top: 2px; }
.table td .chip.wrap { white-space: normal; height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; line-height: 1.25; text-align: left; }
@media (max-width: 640px) { .table-tools { flex-wrap: wrap; } .table-tools .input { max-width: none; width: 100%; } }

/* ---------- Barre haute, à droite : Les notions clés et menu de la personne (atrium-nav.js) ---------- */
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tb-pop-wrap { position: relative; }
.tb-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: transparent; color: var(--text-2); font: 400 14px/1 var(--font-body); box-shadow: none;
  transition: background-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast); }
.tb-btn:hover { background: var(--layer-hover); color: var(--harbor-blue); }
.tb-btn:active { background: var(--layer-active); }
.tb-pop-wrap.open > .tb-btn { background: var(--layer-hover); color: var(--harbor-blue); }
.tb-btn:focus-visible { box-shadow: 0 0 0 3px rgba(46, 66, 87, .18); border-radius: var(--radius-pill); }
.tb-ico { width: 18px; height: 18px; flex: none; }
.tb-user { padding: 0 10px 0 3px; color: var(--harbor-blue); }
.tb-user .avatar { width: 30px; height: 30px; font-size: 11px; background: var(--cloud-bg); color: var(--harbor-blue); box-shadow: inset 0 0 0 1px rgba(46, 66, 87, .10); }
.tb-chev { width: 16px; height: 16px; flex: none; color: var(--text-2); transition: transform 200ms var(--ease); }
.tb-pop-wrap.open .tb-chev { transform: rotate(180deg); }
.tb-pop { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; background: var(--white); border-radius: 16px; box-shadow: var(--depth-3);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top right;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease), visibility 0s 220ms; }
.tb-pop-wrap.open > .tb-pop { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 240ms var(--ease), visibility 0s; }
.tb-pop.notions { width: min(600px, calc(100vw - 32px)); padding: 24px 28px 22px; }
.tb-pop.notions h2 { margin-bottom: 14px; }
.tb-pop.notions dl { margin: 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px 20px; font-size: 14px; line-height: 1.45; }
.tb-pop.notions dt { font-weight: 600; color: var(--harbor-blue); }
.tb-pop.notions dd { margin: 0; color: var(--harbor-blue); }
.tb-pop.menu { width: 280px; padding: 8px; }
.tb-role { margin: 0; padding: 10px 12px 8px; font-size: 13px; color: var(--text-2); }
.tb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--harbor-blue); font-size: 14px; text-decoration: none;
  transition: background-color var(--motion-fast); }
.tb-item:hover { background: var(--layer-hover); text-decoration: none; }
.tb-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.tb-item .tb-ico { color: var(--text-2); }
.tb-sep { height: 1px; margin: 6px 8px; background: var(--divider); }
.topbar.admin .tb-btn { background: transparent; color: rgba(255, 255, 255, .86); box-shadow: none; }
.topbar.admin .tb-user .avatar { background: rgba(255, 255, 255, .16); color: var(--white); box-shadow: none; }
.topbar.admin .tb-btn:hover, .topbar.admin .tb-pop-wrap.open > .tb-btn { background: rgba(255, 255, 255, .18); }
.topbar.admin .tb-chev { color: var(--cloud-bay); }
@media (max-width: 1100px) { .tb-tools .tb-btn:not(.tb-user) .tb-txt { display: none; } .tb-tools .tb-btn:not(.tb-user) { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 640px) {
  .tb-user .tb-txt { display: none; }
  .tb-user { padding: 0 8px 0 4px; }
  .tb-pop.notions { position: fixed; top: calc(var(--h-topbar) + 8px); left: 16px; right: 16px; width: auto; padding: 20px; }
  .tb-pop.notions dl { grid-template-columns: 1fr; gap: 2px; }
  .tb-pop.notions dd { margin-bottom: 10px; }
}

/* ===== Lot 5, écrans restants (18/11/2026) : composants ajoutés au système ===== */

/* Atrium V2, ajouts du lot A (connexion, mise en route, accueils membres). Même langage que atrium.css :
   filet d'un pixel, profondeur en couches, jetons de tokens.css. À fusionner dans atrium.css par l'intégrateur. */

/* Code à six chiffres de l'application d'authentification (04, 05) */
.input.otp { max-width: 240px; font: 600 20px/1 var(--font-body); letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.input.otp::placeholder { letter-spacing: .32em; }

/* Code QR d'activation (05) : emplacement, l'image vient du service d'authentification */
.qr { width: 168px; height: 168px; margin: var(--space-3) 0 var(--space-2); padding: var(--space-4); border-radius: 12px; background: var(--white); box-shadow: var(--depth-1);
  display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--text-2); }
.qr-key { font: 600 13px/1.4 var(--font-body); letter-spacing: .06em; color: var(--harbor-blue); word-break: break-all; }

/* Aperçu d'un e-mail envoyé par Atrium (11). Charte e-mail : Georgia pour le titre, Arial pour le texte. */
.mail { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--depth-2); overflow: hidden; }
.mail-head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.7; color: var(--text-2); overflow-wrap: anywhere; }
.mail-head b { font-weight: 600; color: var(--harbor-blue); }
.mail-body { padding: var(--space-6) var(--space-5); font: 400 15px/1.55 Arial, Helvetica, sans-serif; color: var(--harbor-blue); }
.mail-body > * + * { margin-top: var(--space-4); }
.mail-logo { display: block; width: auto; height: 22px; }
.mail-title { font: 400 28px/1.2 Georgia, "Times New Roman", serif; }
.mail-quote { margin: 0; padding: var(--space-3) var(--space-4); border-left: 2px solid var(--cloud-bay); border-radius: 0 var(--radius-input) var(--radius-input) 0; background: var(--surface-soft); }
.mail-note { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.mail-quote .mail-note { display: block; margin-top: var(--space-2); }
.mail-btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--harbor-blue); color: var(--white); font-weight: 700; text-decoration: none; }
.mail-btn:hover { background: var(--harbor-hover); color: var(--white); }

@media (max-width: 640px) {
  .mail-head, .mail-body { padding-left: var(--space-4); padding-right: var(--space-4); }
  .mail-title { font-size: 24px; }
}

/* Lot B : composants absents d'atrium.css. Même langage : filet d'un pixel, jetons de tokens.css. */

/* Liste de radios (DESIGN_SYSTEM 4.3) : rond de 20 px, coché = disque Harbor Blue, empilés à 12 px.
   Le vrai bouton radio reste dans le HTML (classe sr-only), le rond dessiné le suit. */
.radios { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.radio { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; color: var(--harbor-blue); }
.radio > i { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--white); display: inline-grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--border-input), 0 1px 2px rgba(46, 66, 87, .05); transition: box-shadow var(--motion-fast); }
.radio > i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--harbor-blue); transform: scale(0); transition: transform var(--motion); }
.radio:hover > i { box-shadow: inset 0 0 0 1.5px var(--harbor-blue), 0 1px 2px rgba(46, 66, 87, .05); }
.radio input:checked + i { box-shadow: inset 0 0 0 1.5px var(--harbor-blue); }
.radio input:checked + i::after { transform: scale(1); }
.radio input:focus-visible + i { box-shadow: inset 0 0 0 1.5px var(--harbor-blue), var(--ring); }
.radio .help { display: block; margin-top: 2px; }
.radio.later { color: var(--text-2); }

/* Question d'un réglage : titre, choix, aide, séparées par un filet */
.q + .q { border-top: 1px solid var(--divider); margin-top: var(--space-5); padding-top: var(--space-5); }
.q h3 { font: 600 15px/1.4 var(--font-body); }
.q > .help { margin-top: var(--space-2); }
@media (prefers-reduced-motion: reduce) { .radio > i, .radio > i::after { transition: none; } }

/* Lot C, axe Organisation : deux composants absents d'atrium.css. Même langage : filet d'un pixel, var(--depth-1), jetons de tokens.css. */

/* Organigramme (système d'interface 4.10). Nœud blanc à filet, la gérante en Harbor Blue, prestataires sur Surface 2,
   trait tireté pour un poste envisagé ou une décision à prendre, toujours avec un mot. Une colonne sur téléphone. */
.org { display: flex; flex-direction: column; align-items: center; padding: var(--space-2) 0; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.org-link { width: 1px; height: 20px; background: var(--rule); flex: none; }
.org-node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 160px; min-height: 72px; padding: 10px 12px;
  background: var(--white); border-radius: 10px; box-shadow: var(--depth-1); text-align: center; color: var(--harbor-blue); text-decoration: none;
  transition: box-shadow var(--motion), transform var(--motion); }
.org-node b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.org-node > span { font-size: 13px; line-height: 1.3; color: var(--text-2); }
.org-node .chip { margin-top: 6px; }
a.org-node:hover { box-shadow: var(--depth-2); transform: translateY(-1px); }
a.org-node:focus-visible { box-shadow: var(--ring); }
.org-node.lead { background: var(--btn-primary); color: var(--white); box-shadow: 0 0 0 1px var(--cap-deep), inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(34, 52, 74, .2); }
.org-node.lead > span:not(.chip) { color: var(--cloud-bay); }
.org-node.ext { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.org-node.dashed { background: var(--white); box-shadow: none; border: 1px dashed var(--border-input); }
.org-cap { margin-top: var(--space-3); font-size: 13px; color: var(--text-2); text-align: center; }
@media (max-width: 640px) {
  .org { align-items: stretch; }
  .org-link { margin-left: 18px; }
  .org-row { flex-direction: column; flex-wrap: nowrap; gap: var(--space-2); margin-left: 18px; padding-left: var(--space-3); border-left: 1px solid var(--rule); }
  .org-node { width: auto; min-height: 0; align-items: flex-start; text-align: left; }
  .org > .org-node { margin-left: 0; }
  .org-cap { text-align: left; }
}

/* Barre à segments (système d'interface 4.9, « Déjà automatisé ») : Harbor Blue, Secondaire, Cloud Bay, un libellé par segment. */
.bar.stack { display: flex; gap: 2px; height: 8px; background: transparent; }
.bar.stack i { border-radius: 0; }
.bar.stack i:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.bar.stack i:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.bar.stack i.s2, .bar-legend i.s2 { background: var(--text-2); }
.bar.stack i.s3, .bar-legend i.s3 { background: var(--cloud-bay); }
.bar-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); font-size: 12.5px; color: var(--text-2); }
.bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bar-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--harbor-blue); flex: none; }

/* Matrice de droits à trois niveaux (Aucun, Lecture, Modifie) : le sélecteur stylé tient le mot entier. */
.table.matrix.levels th.c, .table.matrix.levels td.c { width: 136px; }
.table.matrix.levels td.c .select { min-width: 116px; }
@media (max-width: 640px) {
  .table.matrix.levels td.c { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 2px 12px; width: auto; text-align: left; }
  .table.matrix.levels td.c .select { width: 140px; min-width: 0; }
  .table.matrix.levels td.c .help { grid-column: 2; margin-top: 0 !important; }
}

/* Lot D, ajouts au système (18/11/2026). Même langage qu'atrium.css : filet d'un pixel, jetons de tokens.css, aucune couleur hors jetons. */

/* Page d'un livrable (71) : aperçu à gauche, provenance et statut à droite ; une seule colonne sous 960 px */
.livrable { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-4); align-items: start; }
@media (max-width: 960px) { .livrable { grid-template-columns: 1fr; } }

/* Bandeau d'information : catégorie par défaut de .banner. Alias explicite pour la structure « div.banner info » (61, 80, 85, 91). */
.banner.info { --bn-tint: var(--info-tint); --bn-line: var(--info-line); --bn-ink: var(--info-ink); }

/* Portes de relecture sur téléphone : une colonne sous 640 px (les deux colonnes d'atrium.css débordent à 375 px, 83 et 90) */
@media (max-width: 640px) { .gates { grid-template-columns: minmax(0, 1fr); } }

/* Page partagée vue par un membre (?vue=membre) : les actions réservées au gérant disparaissent */
.vue-membre .gerant-seul { display: none !important; }

/* Téléphone (relevé du 18/11 à 375 px) : liste de relecture en une colonne, interrupteur segmenté qui passe à la ligne */
@media (max-width: 900px) { .review { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .seg { flex-wrap: wrap; height: auto; max-width: 100%; border-radius: 12px; }
  .seg button { min-height: 32px; }
}
/* Ligne de tâche des cycles (43) sur téléphone : la tâche en titre, puis qui, durée, automatisation et rythme en dessous */
@media (max-width: 640px) {
  .task { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-2); }
  .task .t { grid-column: 1 / -1; }
  .task .seg, .task .select { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
}

/* Chip de contexte long sur téléphone : passe à la ligne dans sa pilule au lieu de déborder du contour */
.chip-ctx { height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; line-height: 1.4; max-width: 100%; }

/* Cartes en grille : même hauteur sur une ligne, même départ. La marge entre cartes empilées ne s'applique pas dans une grille (relevé du 18/11 sur 49). */
:is(.grid-2, .grid-3, .grid-4) > :is(.card, .tile, .subcard) { margin-top: 0; }
/* Titre de carte qui mène à une page : même dessin que le texte, flèche au survol */
.card :is(h2, h3) > a { color: inherit; text-decoration-color: transparent; text-underline-offset: 4px; }
.card :is(h2, h3) > a::after { content: "→"; display: inline-block; margin-left: 6px; color: var(--cloud-ink); opacity: 0; transform: translateX(-4px); transition: opacity var(--motion), transform var(--motion); }
.card :is(h2, h3) > a:hover { text-decoration-color: currentColor; }
.card :is(h2, h3) > a:hover::after, .card :is(h2, h3) > a:focus-visible::after { opacity: 1; transform: none; }

/* Table de décision (ciblage) : groupes en intertitre léger, lot et tâches du lot reliés par un retrait, choix compact */
.table.decide td { height: 60px; padding-top: 10px; padding-bottom: 10px; }
.table.decide td:first-child { white-space: normal; }
.table.decide tr.grp + tr td { border-top-color: var(--hairline); }
.table tr.lot td:first-child b { font-weight: 600; }
.table.decide .seg { height: 30px; padding: 2px; background: var(--surface-soft); }
.table.decide .seg button { padding: 0 10px; font-size: 12.5px; }
@media (max-width: 640px) {
  .table.cards.decide td { height: auto; padding-top: 6px; padding-bottom: 6px; }
  .table.cards.decide tr.grp td { padding: 16px 0 4px; }
  .table.cards.decide tr.grp td::before { content: none; }
  .table.cards tr.in-lot td:first-child { padding-left: 0; }
  .table.cards tr.in-lot td:first-child::before { content: none; }
}

/* Table de décision, version 2 (relecture du 18/11) : groupes dessinés comme les groupes du menu, arbre du lot à coudes arrondis */
.table.decide td:first-child { min-width: 260px; }
.table.decide tr.grp td { height: auto; padding: 28px 16px 10px; background: transparent; border-top: 0; }
.table.decide tbody tr.grp:first-child td { padding-top: 16px; }
.table.decide tbody tr.grp:hover td { background: transparent; }
.table.decide tr.grp + tr td { border-top: 1px solid var(--rule); }
.grp-head { display: flex; align-items: center; gap: 10px; }
.grp-ico { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--cloud-bg); box-shadow: inset 0 0 0 1px rgba(121, 152, 169, .25); position: relative; }
.grp-ico::after { content: ""; position: absolute; inset: 5px; background: var(--cloud-ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M13 6.2A5.2 5.2 0 0 0 3.6 4.6M3 9.8a5.2 5.2 0 0 0 9.4 1.6'/><path d='M3.4 2.4v2.4h2.4M12.6 13.6v-2.4h-2.4'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M13 6.2A5.2 5.2 0 0 0 3.6 4.6M3 9.8a5.2 5.2 0 0 0 9.4 1.6'/><path d='M3.4 2.4v2.4h2.4M12.6 13.6v-2.4h-2.4'/></svg>") center / contain no-repeat; }
.grp-t { font: 600 14px/1.3 var(--font-body); color: var(--harbor-blue); }
.grp-m { margin-left: auto; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* Arbre, valable pour toute table à lots (49, 54) : le trait part sous le titre du lot, descend le long des tâches et se termine en coude arrondi sur la dernière */
.table tr.lot td:first-child, .table tr.in-lot td:first-child { position: relative; }
.table tr.lot td:first-child::after { content: ""; position: absolute; left: 24px; top: calc(50% + 23px); bottom: -1px; width: 1.5px; border-radius: 2px; background: var(--tree-line); }
.table tr.in-lot td:first-child { padding-left: 48px; font-weight: 400; }
.table tr.in-lot td:first-child::before { content: ""; position: absolute; left: 24px; top: -1px; bottom: -1px; width: 1.5px; background: var(--tree-line); }
.table tr.in-lot td:first-child::after { content: ""; position: absolute; left: 24px; top: -1px; height: calc(50% + 1px); width: 14px;
  border-left: 1.5px solid var(--tree-line); border-bottom: 1.5px solid var(--tree-line); border-bottom-left-radius: 10px; }
.table tr.in-lot:not(:has(+ tr.in-lot)) td:first-child::before { content: none; }
.table tr.in-lot td { border-top-color: transparent; }
.table tr.in-lot td:not(:first-child) { border-top-color: var(--divider); }
:root { --tree-line: rgba(46, 66, 87, .38); }
@media (max-width: 640px) {
  .table.decide td:first-child { min-width: 0; }
  .table.cards.decide tr.grp td { padding: 24px 0 8px; }
  .table.cards tr.lot td:first-child::after { content: none; }
  .table.cards tr.in-lot { margin-left: 18px; border-left: 1.5px solid var(--tree-line); }
  .table.cards tr.in-lot td:first-child { padding-left: 0; }
  .table.cards tr.in-lot td:first-child::before, .table.cards tr.in-lot td:first-child::after { content: none; }
}

/* Prochaine étape : un panneau à part, icône de chemin, titre lisible, bouton centré à droite avec de l'air ; empilé sur téléphone */
.next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; align-items: center;
  margin-top: var(--space-6); padding: 22px 24px; border: 0; border-radius: 16px; background: var(--white); box-shadow: var(--depth-1); }
.next::before { content: ""; grid-row: 1 / 3; grid-column: 1; width: 44px; height: 44px; border-radius: 12px; background: var(--cloud-bg) center / 22px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(121, 152, 169, .25);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237998A9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='5' cy='15' r='1.8'/><circle cx='15' cy='5' r='1.8'/><path d='M6.8 15H12a2.5 2.5 0 0 0 0-5H8a2.5 2.5 0 0 1 0-5h5.2'/></svg>"); }
.next .lbl { grid-column: 2; grid-row: 1; align-self: end; font: 600 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--cloud-ink); }
.next b { grid-column: 2; grid-row: 2; align-self: start; font: 600 16px/1.4 var(--font-body); color: var(--harbor-blue); }
.next .btn { grid-column: 3; grid-row: 1 / 3; margin-left: var(--space-4); }
.card > .next { margin-top: 0; padding: 0; background: transparent; box-shadow: none; }
@media (max-width: 640px) {
  .next { grid-template-columns: auto minmax(0, 1fr); padding: 18px; row-gap: 2px; }
  .next::before { width: 40px; height: 40px; }
  .next .btn { grid-column: 1 / -1; grid-row: 3; margin: 14px 0 0; width: 100%; justify-content: center; }
}

/* Table serrée en cartes, sur téléphone : mêmes marges que les autres cartes, titre et libellés alignés (relevé du 19/11 sur 54) */
@media (max-width: 640px) {
  .table.cards.tight td, .table.cards.tight td:first-child, .table.cards.tight td:last-child { padding-left: 0; padding-right: 0; }
}

/* ---------- Produit : mode Voir comme. Le bandeau reste en haut, la barre, le menu et le panneau se décalent de sa hauteur. ---------- */
body.voir-comme { --vc-h: 44px; }
body.voir-comme .viewas { position: sticky; top: 0; z-index: 60; min-height: var(--vc-h); }
body.voir-comme .topbar { top: var(--vc-h); }
body.voir-comme .sidenav, body.voir-comme .sn-scrim { top: calc(var(--h-topbar) + var(--vc-h)); }
body.voir-comme .secpanel { top: calc(var(--h-topbar) + var(--vc-h) + 12px); }
body.voir-comme .sp-toggle { top: calc(var(--h-topbar) + var(--vc-h) + 26px); }
/* Bouton « Se déconnecter » du menu de la personne : même dessin que les liens du menu */
button.tb-item { width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit; text-align: left; }

/* Ajout du code : une confirmation vide ne montre pas sa coche. */
.saved:empty { display: none; }

/* Ajout du code : impression (« Télécharger en PDF »). Le menu, les bandeaux de démonstration et les boutons ne s'impriment pas. */
@media print {
  .topbar, .sidenav, .sn-scrim, .secpanel, .sp-toggle, .viewas, .next, .page-head .actions, #demo-vue, .stage-inner > .banner.warning:first-child { display: none !important; }
  .app { margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; }
  section[data-vue][hidden] { display: none !important; }
}

/* Compte de membre sur une étape confiée : la suite du parcours du gérant ne s'affiche pas. */
body.vue-membre .next { display: none; }

/* Contenu d'une page ouvert dans une fenêtre : les cartes deviennent des blocs séparés par un filet. */
.cg-modal .bloc-fenetre + .bloc-fenetre { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--divider); }
.cg-modal .bloc-fenetre h2 { font-size: 20px; }
