
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  color: var(--ink);
  font-family: var(--police);
  font-size: var(--t-corps);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss03" 1;  
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}
h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: var(--suivi-titre);
  line-height: 1.1;
}
ul, ol { padding: 0; list-style: none; }
a { color: var(--acc); text-decoration: none; transition: color var(--tr) var(--doux); }
a:hover { color: var(--ink); }
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
button:disabled { cursor: not-allowed; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::selection { background: var(--acc-trait); color: var(--ink); }
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bord-fort) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--bord-fort);
  border-radius: var(--pill);
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--bord-net); background-clip: content-box; }
.tab, .chiffre, td, th, .val { font-variant-numeric: tabular-nums; }
.lb {
  font-size: var(--t-label);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
}
.sous { font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.6; }
.faible { color: var(--ink-3); }
.gain { color: var(--gain); }
.perte { color: var(--perte); }
.accent { color: var(--acc); }
.equilibre { text-wrap: balance; }
.jolie { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.app {
  position: relative;
  z-index: 2;                  
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--e3);
  padding: var(--e4) var(--e4) var(--e3);
  background: var(--verre);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-right: 1px solid var(--bord);
  box-shadow: var(--verre-bord);
  overflow: hidden;
}
@media (width > 900px) {
  html.rail-masque .app { grid-template-columns: 0px minmax(0, 1fr); }
  html.rail-masque .rail { transform: translateX(-100%); visibility: hidden; }
  html.anim .app { transition: grid-template-columns 320ms var(--entree); }
  html.anim .rail { transition: transform 320ms var(--entree), visibility 0s; }
  html.anim.rail-masque .rail { transition: transform 320ms var(--entree), visibility 0s 320ms; }
}
.marque {
  display: flex;
  align-items: center;
  gap: var(--e3);
  padding: var(--e1) var(--e2) 0;
}
.marque-logo {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--acc-voile);
  box-shadow: inset 0 0 0 1px var(--acc-trait);
}
.marque-nom {
  font-size: var(--t-sous);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.marque-sous {
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
}
.nav {
  position: relative; display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0;
  margin: 0 calc(var(--e4) * -1);
  padding: 0 max(0px, var(--e4) - var(--nav-barre, 0px)) 0 var(--e4);
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-curseur {
  position: absolute;
  left: var(--e4); right: max(0px, var(--e4) - var(--nav-barre, 0px)); top: 0;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-pleine);
  box-shadow: var(--om-1), inset 0 0 0 1px var(--acc-trait);
  translate: 0 var(--y, 0px);
  opacity: var(--nav-curseur-vu, 0);
  pointer-events: none;
}
:root[data-theme="nuit"] .nav-curseur { background: var(--acc-voile); box-shadow: inset 0 0 0 1px var(--acc-trait), 0 0 24px -8px var(--acc); }
.rail-grp { display: flex; flex-direction: column; gap: 1px; margin-bottom: var(--e2); }
.rail-grp:last-child { margin-bottom: 0; }
.rail-grp > .lb { padding: 6px var(--e3) 2px; font-size: var(--t-micro); }
.rail-grp.rail-seul { margin-bottom: var(--e3); }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--e3);
  height: 34px;
  padding: 0 var(--e3);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--t-corps);
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux);
}
.nav-item:hover { color: var(--ink); background: var(--surface-2); }
.nav-item .ico { flex: none; opacity: .75; transition: opacity var(--tr-vif) var(--doux), color var(--tr-vif) var(--doux); }
.nav-item:hover .ico { opacity: 1; }
.nav-lib { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: transparent;
}
.nav-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: calc(var(--e4) * -1);
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 20px;
  border-radius: var(--pill);
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
}
.nav-item[aria-current="page"] .ico { opacity: 1; color: var(--acc); }
.nav-puce {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  background: var(--acc);
  color: var(--sur-acc);
  font-size: var(--t-micro);
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--acc-voile);
}
.nav-puce.calme { background: var(--surface-3); color: var(--ink-3); box-shadow: none; }
.nav-puce.vive  { background: var(--perte); color: #fff; box-shadow: 0 0 0 3px var(--perte-voile); }
.nav-puce.nav-puce-point { min-width: 0; width: 9px; height: 9px; padding: 0; margin-right: 6px; }
.nav-puce-mots { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-item:has(> .nav-puce.calme) { padding-right: 20px; }
.nav-item > .nav-puce.calme { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 0; height: auto; padding: 0; background: none; }
.rail-bas { flex: none; display: flex; flex-direction: column; gap: var(--e2); }
.rail-bas .nav-item[aria-current="page"] { background: var(--surface-pleine); box-shadow: var(--om-1), inset 0 0 0 1px var(--acc-trait); }
:root[data-theme="nuit"] .rail-bas .nav-item[aria-current="page"] { background: var(--acc-voile); box-shadow: inset 0 0 0 1px var(--acc-trait), 0 0 24px -8px var(--acc); }
.rail-compte { height: auto; padding: var(--e2) var(--e3); }
.rail-compte-av {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--acc-voile);
  box-shadow: inset 0 0 0 1px var(--acc-trait);
  color: var(--ink);
  font-size: var(--t-donnee);
  font-weight: 700;
}
.rail-compte .rail-compte-av .ico { opacity: 1; color: var(--ink-2); }
.rail-compte-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.rail-compte-nom,
.rail-compte-formule { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-compte-nom { color: var(--ink); font-weight: 600; }
.rail-compte-formule { font-size: var(--t-micro); font-weight: 500; color: var(--ink-3); }
.carte-niveau { padding: var(--e3) var(--e4) !important; gap: var(--e2) !important; border-radius: var(--r-md) !important; }
.carte-formule {
  position: relative;
  padding: var(--e3) var(--e4) !important; gap: var(--e1) !important; border-radius: var(--r-md) !important;
  text-align: left; cursor: pointer;
  background: var(--acc-voile) !important;
  border: 1px solid var(--acc-trait) !important;
  transition: background var(--tr) var(--doux), border-color var(--tr) var(--doux);
}
.carte-formule:hover { background: color-mix(in srgb, var(--acc-voile) 70%, var(--acc-trait)) !important; }
.carte-niveau .lb { font-size: var(--t-micro); }
.rail-bas .micro { font-size: var(--t-micro); color: var(--ink-3); line-height: 1.5; }
.rail-bas .carte-formule .micro { color: var(--ink-2); }
.entete {
  position: sticky;
  top: var(--entete-marge);
  z-index: 30;
  padding: 0 var(--e6);
  margin-top: var(--entete-marge);
  pointer-events: none;
}
.entete-barre {
  position: relative;
  height: var(--entete);
  display: flex;
  align-items: center;
  gap: var(--e4);
  padding: 0 var(--e3) 0 var(--e5);
  border-radius: var(--pill);
  background: var(--verre);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--verre-bord), var(--om-2);
  pointer-events: auto;
}
.entete-barre::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(70% 220% at 8% 50%, color-mix(in srgb, var(--aur-1) 22%, transparent) 0%, transparent 72%),
    radial-gradient(60% 200% at 88% 50%, color-mix(in srgb, var(--aur-2) 16%, transparent) 0%, transparent 70%);
}
.entete-barre > * { position: relative; }
.entete-titre {
  font-size: var(--t-sous); font-weight: 650; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entete-fil {
  display: flex; align-items: baseline; gap: var(--e3);
  min-width: 0;        
  flex: 1 1 auto;
  overflow: hidden;
}
.entete-fil > .sous { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.entete-plan {
  flex: 0 1 auto; min-width: 0;
  display: inline-flex; align-items: center; gap: 5px; align-self: center;
  height: 26px; padding: 0 var(--e3) 0 var(--e2); border-radius: var(--pill);
  background: var(--acc-voile); color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc-trait);
  font-size: var(--t-label); font-weight: 650; letter-spacing: .01em;
}
.entete-plan > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete-plan .ico { flex: none; }
button.entete-plan {
  border: 0; font-family: inherit; cursor: pointer;
  transition: background var(--tr) var(--doux), box-shadow var(--tr) var(--doux);
}
button.entete-plan:hover, button.entete-plan[aria-expanded="true"] {
  background: color-mix(in srgb, var(--acc) 20%, transparent);
  box-shadow: inset 0 0 0 1px var(--acc);
}
button.entete-plan:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
button.entete-plan[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
button.entete-plan > .ico:last-child { transition: rotate var(--tr) var(--doux); opacity: .8; }
.entete-compte {
  flex: 0 1 auto; min-width: 0;
  display: inline-flex; align-items: center; gap: 5px; align-self: center;
  height: 26px; padding: 0 var(--e3) 0 var(--e2); border-radius: var(--pill);
  border: 0; font-family: inherit; cursor: pointer;
  background: var(--surface-2); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--bord);
  font-size: var(--t-label); font-weight: 650; letter-spacing: .01em;
  transition: background var(--tr) var(--doux), box-shadow var(--tr) var(--doux), color var(--tr) var(--doux);
}
.entete-compte > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete-compte .ico { flex: none; }
.entete-compte:hover, .entete-compte[aria-expanded="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--bord-net); }
.entete-compte:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.entete-compte[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
.entete-compte > .ico:last-child { transition: rotate var(--tr) var(--doux); opacity: .8; }
.menu-plans-hote {
  position: absolute; top: calc(100% + 8px); left: 8px; z-index: 40;
  width: min(380px, calc(100vw - 32px));
  display: none;
}
.menu-plans-hote.ouvert { display: block; }
.menu-plans {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--e2);
  border-radius: var(--r-lg);
  background: var(--surface-pleine);
  box-shadow: var(--verre-bord), var(--om-3);
  border: 1px solid var(--bord);
}
html.anim .menu-plans { animation: menu-plans-entre .22s var(--entree) both; }
@keyframes menu-plans-entre { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.menu-plans-lb { padding: var(--e2) var(--e3) var(--e1); }
.menu-plan {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; gap: var(--e3);
  width: 100%; padding: var(--e3); border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font-family: inherit; text-align: left; cursor: pointer;
  transition: background var(--tr) var(--doux);
}
.menu-plan:hover, .menu-plan:focus-visible { background: var(--surface-2); outline: none; }
.menu-plan.actif { background: var(--acc-voile); }
.menu-plan-radio {
  width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--bord-net);
}
.menu-plan.actif .menu-plan-radio { box-shadow: inset 0 0 0 5px var(--acc); }
.menu-plan-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-plan-nom { font-size: var(--t-donnee); font-weight: 650; }
.menu-plan-strat { font-size: var(--t-label); color: var(--ink-2); line-height: 1.4; }
.menu-plan-limite {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
  font-size: var(--t-label); font-weight: 600; color: var(--perte);
}
.menu-plan-cpt { font-size: var(--t-label); color: var(--ink-2); white-space: nowrap; padding-top: 2px; }
.menu-plans-pied {
  display: flex; align-items: center; gap: var(--e2);
  margin-top: var(--e1); padding: var(--e3); border: 0; border-top: 1px solid var(--bord);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: transparent; color: var(--acc); font-family: inherit; font-size: var(--t-donnee); font-weight: 600;
  cursor: pointer; text-align: left;
}
.menu-plans-pied > span { flex: 1; }
.menu-plans-pied:hover, .menu-plans-pied:focus-visible { background: var(--surface-2); outline: none; }
.strat-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e3) var(--e4); }
.onglets-strat { flex: 1 1 320px; min-width: 0; }
.strat-actions { flex: 0 1 auto; flex-wrap: wrap; gap: var(--e2); margin-left: auto; }
.onglets-strat .segments { display: flex; flex-wrap: wrap; border-radius: var(--r-md); }
.onglets-strat .segments button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: var(--e2); flex: none; }
.entete-droite select.saisie { height: 36px; width: auto; min-width: 150px; font-size: var(--t-donnee); border-radius: var(--pill); padding-left: var(--e4); }
.bascule-theme {
  position: relative; flex: none; display: inline-flex; align-items: center;
  height: 36px; padding: 0 3px; border-radius: var(--pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bord);
}
.bascule-theme i {
  position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 15px; color: var(--ink-3); transition: color .26s var(--entree);
}
.bascule-theme .bt-soleil, :root[data-theme="nuit"] .bascule-theme .bt-lune { color: var(--acc); }
:root[data-theme="nuit"] .bascule-theme .bt-soleil { color: var(--ink-3); }
.bt-curseur {
  position: absolute; left: 3px; top: 3px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-pleine); box-shadow: var(--om-1);
  transition: translate .55s var(--ressort);
}
:root[data-theme="nuit"] .bt-curseur { translate: 30px 0; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--bord-fort); }
.zone { grid-column: 2; min-width: 0; display: flex; flex-direction: column; }
.page {
  width: 100%;
  padding: var(--e8) var(--e6) var(--e28);
  display: flex;
  flex-direction: column;
  gap: var(--e6);
}
.tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--e4);
  padding: var(--e2) var(--e2) 0;
}
.tete h1 { font-size: var(--t-sect); letter-spacing: -.035em; }
.tete-txt { display: flex; flex-direction: column; gap: var(--e2); max-width: 66ch; }
.mots .mot-m { display: inline-block; overflow: clip; vertical-align: top; padding: .12em 0 .2em; margin: -.12em 0 -.2em; }
.mots .mot-i { display: inline-block; }
.tete-txt > .sous { font-size: var(--t-corps); }
.tete-act { display: flex; flex-wrap: wrap; gap: var(--e2); }
.carte {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--grad-carte);
  box-shadow: var(--verre-bord), var(--om-2);
  padding: var(--e6);
  display: flex;
  flex-direction: column;
  gap: var(--e4);
}
:root[data-theme="nuit"] .carte,
:root:not([data-theme]) .carte { border: 1px solid var(--bord); }
.carte-plate { box-shadow: var(--verre-bord), var(--om-1); }
.carte-haute { box-shadow: var(--verre-bord), var(--om-3); }
.carte-creuse {
  background: var(--fond-creux);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.28);
  border: 1px solid var(--bord);
}
.carte-nuit {
  background: var(--grad-nuit);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), var(--om-3);
  color: #eceafa;
}
.carte-nuit .faible, .carte-nuit .sous { color: #a9a6c8; }
.carte-nuit .lb { color: #8e8bb0; }
:root[data-theme="jour"] .carte-nuit .anneau { --surface-3: rgba(255,255,255,.14); }
:root[data-theme="jour"] .bandeau .anneau { --surface-3: rgba(41,43,49,.13); }
:root[data-theme="jour"] .bandeau,
:root[data-theme="jour"] .carte-nuit {
  --surface:   #ffffff;
  --surface-2: #ffffff;
}
.carte-nuit .btn:not(.btn-primaire) {
  --surface-2: rgba(255,255,255,.08);
  --surface-3: rgba(255,255,255,.14);
  --bord: rgba(255,255,255,.14);
  --bord-fort: rgba(255,255,255,.24);
  color: #eceafa;
}
.carte-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e3);
}
.carte-tete h2, .carte-tete h3 { font-size: var(--t-titre); }
.carte-tete .pile-2 { gap: var(--e1); }
.carte-tete .lb { margin-bottom: 2px; }
.grille    { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grille-2  { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grille-4  { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grille-5  { display: grid; gap: var(--e4); grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) {
  .grille-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-5 > :first-child { grid-column: span 2; }
}
@media (max-width: 700px) {
  .grille-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-5 > :first-child { grid-column: 1 / -1; }
}
.colonnes  { display: grid; gap: var(--e6); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.colonnes-libres { columns: 2; column-gap: var(--e6); }
.colonnes-libres > * { break-inside: avoid; margin-bottom: var(--e5); }
.colonnes-libres > *:last-child { margin-bottom: 0; }
.rangee    { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3); }
.pile      { display: flex; flex-direction: column; gap: var(--e3); }
.pile-2    { display: flex; flex-direction: column; gap: var(--e2); }
.pousse-d  { margin-left: auto; }
.tuile {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--bord);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  padding: var(--e5) var(--e5) var(--e4);
  display: flex;
  flex-direction: column;
  gap: var(--e2);
  min-width: 0;
  overflow: hidden;
  transition: border-color var(--tr) var(--doux), transform var(--tr) var(--doux), box-shadow var(--tr) var(--doux);
}
:root[data-theme="nuit"] .tuile { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tuile:hover { border-color: var(--bord-fort); }
.tuile .lb { font-size: var(--t-micro); }
.tuile .val {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  margin-top: var(--e1);
  white-space: nowrap;   
}
.tuile .val.grand { font-size: 2.6rem; }
.tuile .sous { font-size: var(--t-donnee); }
.tuile .delta { font-size: var(--t-donnee); font-weight: 600; }
.tuile-acc { background: var(--acc-voile); border-color: var(--acc-trait); }
.tuile-gain { background: var(--gain-voile); border-color: var(--gain-trait); }
.tuile-perte { background: var(--perte-voile); border-color: var(--perte-trait); }
.tuile-gain .val { color: var(--gain); }
.tuile-perte .val { color: var(--perte); }
.tuile-corps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e3) var(--e4); min-width: 0; }
.tuile-txt { flex: 1 1 8.5rem; min-width: 0; display: flex; flex-direction: column; gap: var(--e2); }
.tuile-vis { flex: none; display: flex; align-items: center; max-width: 100%; }
.tuile-pied { display: flex; flex-direction: column; gap: var(--e2); margin-top: auto; padding-top: var(--e1); }
html.anim .tuile-vis > svg { animation: fondu 700ms 250ms var(--doux) backwards; }
.legende-parts { display: inline-flex; flex-wrap: wrap; gap: 2px var(--e3); }
.leg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.leg > i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.puce-tuile { height: 20px; margin-left: var(--e1); vertical-align: middle; }
.partage { display: flex; gap: 3px; height: 8px; }
.partage > i { display: block; border-radius: var(--pill); background: var(--gain); }
.partage::after { content: ""; flex: 1; border-radius: var(--pill); background: var(--perte); }
html.anim .partage > i { animation: partage-entree 1000ms var(--doux) 200ms backwards; }
@keyframes partage-entree { from { width: 50%; } }
.partage-mots { display: flex; justify-content: space-between; gap: var(--e3); font-size: var(--t-label); }
:root[data-theme="nuit"] .tuile-gain .val { text-shadow: 0 0 24px var(--gain-trait); }
:root[data-theme="nuit"] .tuile-perte .val { text-shadow: 0 0 24px var(--perte-trait); }
:root[data-theme="nuit"] .anneau-val > .tab { text-shadow: 0 0 28px var(--acc-trait); }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e2);
  height: 40px;
  padding: 0 var(--e5);
  border-radius: var(--pill);
  font-size: var(--t-donnee);
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--bord);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  transition: background var(--tr-vif) var(--doux), border-color var(--tr-vif) var(--doux),
              transform var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux), filter var(--tr) var(--doux);
}
:root[data-theme="nuit"] .btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.btn:hover { background: var(--surface-3); border-color: var(--bord-fort); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; transform: none; background: var(--surface); }
.btn .ico { transition: translate .25s var(--entree); }
.btn:hover .ph-arrow-right { translate: 3px 0; }
.btn-primaire {
  background: linear-gradient(180deg, var(--btn1) 0%, var(--btn2) 100%);
  color: var(--sur-acc);
  border-color: transparent;
  box-shadow: var(--om-btn);
  overflow: hidden;   
}
.btn-primaire:hover { filter: brightness(1.07); background: linear-gradient(180deg, var(--btn1) 0%, var(--btn2) 100%); }
.btn-primaire:disabled {
  opacity: 1;
  filter: none;
  box-shadow: none;
  background: var(--surface-3);
  color: var(--ink-3);
  border-color: var(--bord);
}
.btn-fantome { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-fantome:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { color: var(--perte); border-color: var(--perte-trait); background: var(--perte-voile); box-shadow: none; }
.btn-danger:hover { background: var(--perte-voile); border-color: var(--perte); }
.btn-grand { height: 52px; padding: 0 var(--e8); font-size: var(--t-corps); }
.btn-petit { height: 30px; padding: 0 var(--e4); font-size: var(--t-label); }
.btn-carre { width: 40px; padding: 0; }
.btn-plein { width: 100%; }
.pilule {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  height: 24px;
  padding: 0 var(--e3);
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--bord);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink-2);
}
.pilule-acc    { background: var(--acc-voile);    border-color: var(--acc-trait);    color: var(--acc); }
.pilule-gain   { background: var(--gain-voile);   border-color: var(--gain-trait);   color: var(--gain); }
.pilule-perte  { background: var(--perte-voile);  border-color: var(--perte-trait);  color: var(--perte); }
.pilule-alerte { background: var(--alerte-voile); border-color: var(--alerte-trait); color: var(--alerte); }
.pilule-info   { background: var(--info-voile);   border-color: var(--info-trait);   color: var(--info); }
.pilule-pleine { background: var(--acc); color: var(--sur-acc); border-color: transparent; box-shadow: 0 6px 16px -8px var(--acc); }
.point {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.segments {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--bord);
}
.segments button {
  height: 30px;
  padding: 0 var(--e4);
  border-radius: var(--pill);
  font-size: var(--t-donnee);
  font-weight: 600;
  color: var(--ink-3);
  transition: background var(--tr) var(--doux), color var(--tr) var(--doux), box-shadow var(--tr) var(--doux);
}
.segments button:hover { color: var(--ink); }
.segments button[aria-pressed="true"] {
  background: var(--surface-pleine);
  color: var(--ink);
  box-shadow: var(--om-1);
}
:root[data-theme="nuit"] .segments button[aria-pressed="true"] { background: var(--surface-3); }
.champ { display: flex; flex-direction: column; gap: var(--e2); min-width: 0; }
.champ > label, .champ > span:first-child { font-size: var(--t-donnee); font-weight: 600; color: var(--ink-2); }
.champ .aide { font-size: var(--t-label); color: var(--ink-3); line-height: 1.5; }
.saisie {
  width: 100%;
  min-height: 40px;
  padding: 9px var(--e3);
  border-radius: var(--r-md);
  background: var(--fond-creux);
  border: 1px solid var(--bord);
  color: var(--ink);
  font-size: var(--t-corps);
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux);
}
.saisie::placeholder { color: var(--ink-4); }
.saisie:hover { border-color: var(--bord-fort); }
.saisie:focus { outline: none; border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-voile); }
textarea.saisie { min-height: 96px; resize: vertical; line-height: 1.6; }
input.saisie[type="date"], input.saisie[type="time"] { padding-left: var(--e2); padding-right: var(--e2); min-width: 0; }
select.saisie {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--e10);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23807d9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--e3) center;
}
:root[data-theme="jour"] select.saisie {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374798a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
select.saisie option { background: var(--surface-pleine); color: var(--ink); }
.champ-erreur .saisie { border-color: var(--perte); }
.msg-erreur { font-size: var(--t-label); color: var(--perte); font-weight: 600; }
.compteur { font-size: var(--t-label); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color var(--tr) var(--doux); }
.compteur.atteint { color: var(--gain); }
.trois { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--bord); flex: none; }
.trois button {
  width: 44px; height: 26px; border-radius: var(--pill);
  font-size: var(--t-label); font-weight: 700; color: var(--ink-3);
  transition: background var(--tr) var(--doux), color var(--tr) var(--doux), box-shadow var(--tr) var(--doux);
}
.trois button:hover { color: var(--ink); }
.trois button[aria-pressed="true"][data-v="1"] { background: var(--gain-voile); color: var(--gain); box-shadow: inset 0 0 0 1px var(--gain-trait); }
.trois button[aria-pressed="true"][data-v="0"] { background: var(--perte-voile); color: var(--perte); box-shadow: inset 0 0 0 1px var(--perte-trait); }
.ligne-ctrl {
  display: flex;
  align-items: center;
  gap: var(--e3);
  padding: var(--e3) var(--e4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--bord);
  border-left: 3px solid var(--bord-fort);
  min-width: 0;
  transition: background var(--tr) var(--doux), border-color var(--tr) var(--doux);
}
.ligne-ico {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.ligne-ctrl .txt { min-width: 0; flex: 1; }
.ligne-ctrl .nom { font-size: var(--t-corps); font-weight: 550; }
.ligne-ctrl .pq  { font-size: var(--t-donnee); color: var(--ink-3); line-height: 1.5; }
.ligne-ok    { border-left-color: var(--gain);   background: var(--gain-voile); }
.ligne-fail  { border-left-color: var(--perte);  background: var(--perte-voile); }
.ligne-miss  { border-left-color: var(--info);   background: var(--info-voile); }
.ligne-avert { border-left-color: var(--alerte); background: var(--alerte-voile); }
button.ligne-ctrl { cursor: pointer; text-align: left; width: 100%; }
button.ligne-ctrl:hover { border-color: var(--bord-fort); border-left-color: inherit; background: var(--surface-2); }
button.ligne-ok:hover { background: var(--gain-voile); border-left-color: var(--gain); }
.tuile-retirees { color: var(--alerte); font-weight: 600; }
button.tuile-retirees { text-align: left; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
button.tuile-retirees:hover { text-decoration-color: currentColor; }
.choix-motif .ligne-ico { color: var(--ink-3); }
.choix-motif[aria-pressed="true"] { border-color: var(--acc-trait); border-left-color: var(--acc); background: var(--acc-voile); }
.choix-motif[aria-pressed="true"] .ligne-ico { color: var(--acc); }
.jauge {
  height: 7px;
  border-radius: var(--pill);
  background: var(--surface-3);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.jauge > i {
  display: block;
  height: 100%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--acc-sourd), var(--acc-vif));
  box-shadow: 0 0 12px var(--acc-trait);
  transition: width var(--tr-long) var(--entree);
}
.jauge-gain > i { background: var(--gain); box-shadow: 0 0 12px var(--gain-trait); }
.jauge-perte > i { background: var(--perte); box-shadow: 0 0 12px var(--perte-trait); }
.jauge-neutre > i { background: var(--neutre); box-shadow: none; }
.jauge-alerte > i { background: var(--alerte); box-shadow: 0 0 12px var(--alerte-trait); }
.ligne-limite > .aide { font-size: var(--t-label); color: var(--ink-2); line-height: 1.5; }
.jauge-fine { height: 4px; }
.jauge-epaisse { height: 10px; }
.anneau {
  --p: 0;
  --ep: 10px;
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
              color-mix(in srgb, var(--acc) 72%, #fff) 0turn,
              var(--acc) calc(var(--p) * 1turn),
              var(--surface-3) calc(var(--p) * 1turn));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ep)), #000 calc(100% - var(--ep)));
          mask: radial-gradient(farthest-side, transparent calc(100% - var(--ep)), #000 calc(100% - var(--ep)));
}
.anneau::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  rotate: calc(var(--p) * 1turn);
  background: radial-gradient(circle calc(var(--ep) * .46) at 50% calc(var(--ep) / 2), #fff 0%, var(--acc) 55%, transparent 100%);
  opacity: calc(min(var(--p) * 40, 1));
}
.anneau-hote { position: relative; display: grid; place-items: center; }
.anneau-hote > .anneau { position: absolute; inset: 0; }
.anneau-hote::before {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 22%, transparent) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.anneau-val { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.donut {
  display: block; flex: none; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ep)), #000 calc(100% - var(--ep) + .5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - var(--ep)), #000 calc(100% - var(--ep) + .5px));
}
html.anim .donut { animation: donut-entree 1000ms var(--doux) 150ms backwards; }
@keyframes donut-entree { from { opacity: 0; transform: rotate(-90deg) scale(.8); } }
.arc { display: block; width: 100%; height: auto; overflow: visible; }
.arc path { fill: none; stroke-width: 11; stroke-linecap: round; }
.arc-piste { stroke: var(--surface-3); }
html.anim .arc-plein { animation: arc-entree 1100ms var(--doux) 200ms backwards; }
@keyframes arc-entree { from { stroke-dasharray: 0 200; } }
.balle { position: relative; display: block; height: 8px; border-radius: var(--pill); background: var(--surface-3); }
.balle > i { position: absolute; display: block; }
.balle-plein { top: 0; bottom: 0; border-radius: var(--pill); }
.balle-zero { top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.balle-cible { top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
html.anim .balle-plein { animation: balle-entree 900ms var(--doux) 200ms backwards; }
@keyframes balle-entree { from { transform: scaleX(0); } }
.batons, .risques { display: block; height: 40px; max-width: 100%; overflow: visible; }
.table-boite {
  border-radius: var(--r-lg);
  border: 1px solid var(--bord);
  overflow: hidden;
  background: var(--surface);
}
.table-defile { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-donnee); }
thead th {
  position: sticky; top: 0; z-index: 1;
  text-align: left;
  padding: var(--e3) var(--e4);
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  font-size: var(--t-micro);
  letter-spacing: var(--suivi-label);
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--bord);
}
tbody td { padding: var(--e3) var(--e4); border-bottom: 1px solid var(--bord); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--tr-vif) var(--doux); }
tbody tr:hover { background: var(--surface-2); }
tbody tr.cliquable { cursor: pointer; }
tbody tr.cliquable td:first-child { box-shadow: inset 0 0 0 0 var(--acc); transition: box-shadow var(--tr) var(--doux); }
tbody tr.cliquable:hover td:first-child { box-shadow: inset 3px 0 0 0 var(--acc); }
.num { text-align: right; }
thead abbr[title] { text-decoration: none; cursor: help; }
.table-journal table { border-collapse: separate; border-spacing: 0; }
.table-journal thead th, .table-journal tbody td { vertical-align: top; }
.table-journal td.tj-c:not(.tj-c-dec) { white-space: nowrap; }
.table-journal :where(th, td) { padding-left: var(--e2); padding-right: var(--e2); }
.table-journal :where(th:first-child, td:first-child) { padding-left: var(--e4); }
.table-journal :where(th:last-child, td:last-child) { padding-right: var(--e4); }
.tj-sous { margin-top: 3px; font-size: var(--t-label); color: var(--ink-2); }
.table-journal .tj-sous.tj-vide { display: none; }
.tj-decale { margin-left: 2px; font-size: var(--t-micro); font-weight: 700; color: var(--ink-3); cursor: help; }
.tj-flou { filter: blur(4px); user-select: none; }
.tj-sens-txt { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
.tj-pourquoi { max-width: 260px; margin-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-label); color: var(--ink-2); }
.tj-point { color: var(--ink-3); }
.tj-guardian .ico { margin-right: 4px; vertical-align: -2px; }
.table-journal :is(.tj-motif, .tj-compte, .tj-plan, .tj-strat, .tj-note) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-hors { color: var(--alerte); }
.tj-captures .ico { margin-right: 4px; vertical-align: -2px; }
.tj-instr { display: flex; align-items: center; gap: var(--e2); }
.tj-instr .instr-ico { width: 28px; height: 28px; }
.tj-instr .instr-ico.duo > .drap { width: 18px; height: 18px; }
.tj-instr-txt { min-width: 0; }
.journal-liste { container: journal / inline-size; }
.carte > .journal-filtres { position: relative; z-index: 2; }
.jc-deroule { margin-left: auto; }
.jc-btn > .ico:last-child { color: var(--ink-3); transition: rotate var(--tr) var(--doux); }
.jc-btn[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
.jc-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); right: 0;
  width: min(720px, 100%); max-height: min(80vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: var(--e3); padding: var(--e3);
  border-radius: var(--r-lg); background: var(--surface-pleine); border: 1px solid var(--bord-fort); box-shadow: var(--om-3);
}
html.anim .jc-pop { animation: menu-plans-entre .22s var(--entree) both; }
.jc-pop-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); min-height: 28px; padding: 0 2px 0 var(--e2); }
.jc-defaut {
  height: 28px; padding: 0 var(--e3); border-radius: var(--pill); border: 1px solid var(--bord); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: var(--t-label); font-weight: 650; cursor: pointer;
}
.jc-defaut:hover { color: var(--ink); border-color: var(--bord-fort); }
.jc-groupes { columns: 3 190px; column-gap: var(--e3); }
.jc-groupe { break-inside: avoid; display: flex; flex-direction: column; gap: 1px; padding-bottom: var(--e3); }
.jc-groupe > .lb { padding: var(--e1) var(--e2); }
.jc-opt {
  display: flex; align-items: center; gap: var(--e2); width: 100%; min-height: 34px; padding: 0 var(--e2);
  border: 0; border-radius: var(--r-md); background: transparent;
  color: var(--ink); font: inherit; font-size: var(--t-donnee); text-align: left; cursor: pointer;
}
.jc-opt:hover { background: var(--surface-3); }
.jc-opt:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.jc-opt[aria-disabled="true"] { cursor: default; color: var(--ink-2); }
.jc-opt[aria-disabled="true"]:hover { background: transparent; }
.jc-opt[aria-disabled="true"] > .eco-coche { opacity: .55; }
.jc-opt-txt { flex: 1; min-width: 0; }
.jc-verrou { display: inline-flex; color: var(--ink-2); }
.jc-pied { display: flex; align-items: center; gap: 6px; margin: 0; padding: var(--e3) var(--e2) 0; border-top: 1px solid var(--bord); font-size: var(--t-label); color: var(--ink-2); }
.eco-coche { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--bord-net); background: var(--surface-pleine); }
:is([aria-checked="true"], [aria-pressed="true"]) > .eco-coche { background: var(--acc); border-color: var(--acc); }
:is([aria-checked="true"], [aria-pressed="true"]) > .eco-coche::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 4px; height: 8px;
  border: solid var(--sur-acc); border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg);
}
.jr { flex: 1 1 200px; max-width: 280px; min-width: 0; }
@media (max-width: 600px) { .jr { flex-basis: 100%; max-width: none; } }
.jr:has(.jr-vider) .saisie { padding-right: 2.4em; }
.jr-vider {
  position: absolute; right: 7px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux);
}
.jr-vider:hover { color: var(--ink); background: var(--surface-2); }
.jr-vider:focus-visible { outline: 2px solid var(--acc); outline-offset: 0; }
.tj-extrait {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  max-width: 260px; margin-top: 4px; white-space: normal;
  font-size: var(--t-label); line-height: 1.45; color: var(--ink-2);
}
.tj-extrait-lb { margin-right: 4px; font-size: var(--t-micro); font-weight: 700; letter-spacing: var(--suivi-label); text-transform: uppercase; color: var(--ink-2); }
.tj-extrait mark { padding: 0 2px; border-radius: 3px; background: var(--acc-voile); color: var(--ink); box-shadow: inset 0 -1px 0 var(--acc-trait); }
.jf { display: inline-flex; align-items: stretch; min-width: 0; max-width: 100%; }
.jf-btn {
  display: inline-flex; align-items: center; gap: var(--e2); min-width: 0;
  min-height: 40px; padding: var(--e1) var(--e3);
  border-radius: var(--r-md); border: 1px solid var(--bord);
  background: var(--fond-creux); color: var(--ink);
  font: inherit; font-size: var(--t-corps); text-align: left; cursor: pointer;
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux);
}
.jf-btn:hover { border-color: var(--bord-fort); }
.jf-btn:focus-visible, .jf-btn[aria-expanded="true"] {
  outline: none; border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-voile);
}
.jf-btn > .ico { flex: none; color: var(--ink-3); }
.jf-btn > .ico:last-child { transition: rotate var(--tr) var(--doux); }
.jf-btn[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
.jf-btn-nom { font-weight: 500; }
.jf-actif .jf-btn > .ico:first-child { color: var(--acc-vif); }
.jf-actif .jf-btn-nom { font-weight: 650; }
.jf-btn-nb {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill);
  background: var(--acc); color: var(--sur-acc); font-size: var(--t-micro); font-weight: 700;
}
.jf-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px);
  left: clamp(0px, var(--jf-x, 0px), 100% - min(48rem, 100%));
  width: min(48rem, 100%);
  container-type: inline-size;
  display: flex; flex-direction: column; gap: var(--e3); padding: var(--e3);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--surface-pleine); box-shadow: var(--verre-bord), var(--om-3);
}
html.anim .jf-pop { animation: menu-plans-entre .22s var(--entree) both; }
.jf-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e3); }
.jf-liste, .jf-choix-zone { max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.jf-liste { display: flex; flex-direction: column; gap: var(--e2); }
.jf-choix-zone { display: flex; flex-direction: column; gap: var(--e3); min-width: 0; }
@container (min-width: 600px) {
  .jf-corps { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 0; }
  .jf-liste { padding-right: var(--e3); }
  .jf-choix-zone { padding-left: var(--e4); border-left: 1px solid var(--bord); }
  .jf-choix-tete > .jf-retour { display: none; }
}
@container (max-width: 599.98px) {
  .jf-pop[data-etape="liste"] .jf-choix-zone, .jf-pop[data-etape="choix"] .jf-liste { display: none; }
}
.jf-groupe { display: flex; flex-direction: column; gap: 1px; }
.jf-groupe > .lb { padding: var(--e1) var(--e2); }
.jf-donnee {
  display: flex; align-items: center; gap: var(--e2); width: 100%; min-height: 34px; padding: 0 var(--e2);
  border: 0; border-radius: var(--r-md); background: transparent;
  color: var(--ink); font: inherit; font-size: var(--t-donnee); text-align: left; cursor: pointer;
}
.jf-donnee:hover { background: var(--surface-3); }
.jf-donnee:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.jf-donnee[aria-current="true"] { background: var(--acc-voile); }
.jf-donnee-lb { flex: none; }
.jf-on .jf-donnee-lb { font-weight: 650; }
.jf-resume {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right;
  font-size: var(--t-label); font-weight: 600; color: var(--acc-vif);
}
.jf-donnee > .ico:last-child { flex: none; margin-left: auto; color: var(--ink-3); }
.jf-donnee > .jc-verrou { margin-left: auto; }
.jf-donnee > .jc-verrou + .ico { margin-left: 0; }
.jf-choix-tete { display: flex; align-items: center; gap: var(--e2); min-height: 28px; }
.jf-choix-titre { flex: 1; min-width: 0; font-weight: 650; }
.jf-retour {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 var(--e2) 0 4px;
  border: 0; border-radius: var(--r-md); background: transparent;
  color: var(--ink-2); font: inherit; font-size: var(--t-label); font-weight: 650; cursor: pointer;
}
.jf-retour:hover { color: var(--ink); background: var(--surface-3); }
.jf-retour:focus-visible { outline: 2px solid var(--acc); outline-offset: 0; }
.jf-aide, .jf-note, .jf-renvoi { margin: 0; font-size: var(--t-label); color: var(--ink-2); line-height: 1.5; }
.jf-opts { display: flex; flex-direction: column; gap: 1px; }
.jf-opt {
  --anneau: var(--surface-pleine);
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: var(--e3);
  width: 100%; min-height: 36px; padding: var(--e1) var(--e3); border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font: inherit; font-size: var(--t-donnee); text-align: left; cursor: pointer;
  transition: background var(--tr) var(--doux);
}
.jf-opt:hover { --anneau: var(--surface-2); background: var(--surface-2); }
.jf-opt:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.jf-opt[aria-pressed="true"] { --anneau: var(--acc-voile); background: var(--acc-voile); }
.jf-opt-txt { display: flex; align-items: center; gap: var(--e2); min-width: 0; overflow: hidden; }
.jf-opt-txt > .ico { flex: none; color: var(--ink-2); }
.jf-opt .instr-ico { width: 28px; height: 28px; }
.jf-opt .instr-ico.duo > .drap { width: 19px; height: 19px; }
.jf-nb { min-width: 2ch; font-size: var(--t-label); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.jf-zero { color: var(--ink-2); }
.jf-zero .jf-nb { color: var(--ink-3); }
.jf-radio { justify-self: center; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bord-net); }
.jf-opt[aria-pressed="true"] .jf-radio { box-shadow: inset 0 0 0 5px var(--acc); }
.jf-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--e1); }
.jf-case {
  grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; min-height: 44px; padding: var(--e1);
  text-align: center; box-shadow: inset 0 0 0 1px var(--bord);
}
.jf-case .jf-opt-txt { justify-content: center; font-weight: 600; }
.jf-case .jf-nb { text-align: center; }
.jf-case[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--acc-trait); }
.jf-bornes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e3); }
.jf-borne { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jf-borne-zone { position: relative; display: flex; align-items: center; }
.jf-borne-zone > .saisie { width: 100%; padding-right: 3.4em; font-variant-numeric: tabular-nums; }
.jf-borne-zone > .saisie[aria-invalid="true"] { border-color: var(--perte); }
.jf-unite { position: absolute; right: var(--e3); font-size: var(--t-label); color: var(--ink-3); pointer-events: none; }
.jf-premium { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e2); padding: var(--e3); border-radius: var(--r-md); background: var(--surface-2); }
.jf-premium-titre { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.jf-vide { margin: 0; padding: var(--e3); font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.5; }
.jf-pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); padding-top: var(--e3); border-top: 1px solid var(--bord); }
.jf-etat { margin: 0; font-size: var(--t-label); color: var(--ink-2); }
.jf-etat strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.jf-gestes { display: flex; flex-wrap: wrap; gap: var(--e2); margin-left: auto; }
.jf-puces { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
.jf-puce {
  display: inline-flex; align-items: stretch; min-width: 0; max-width: 100%;
  border-radius: var(--pill); background: var(--acc-voile); box-shadow: inset 0 0 0 1px var(--acc-trait);
}
.jf-puce-txt {
  display: block; min-width: 0; max-width: 30rem; height: 30px; padding: 0 var(--e1) 0 var(--e3);
  border: 0; border-radius: var(--pill) 0 0 var(--pill); background: transparent; color: var(--ink);
  font: inherit; font-size: var(--t-label); line-height: 30px; text-align: left; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jf-puce-lb { font-weight: 700; }
.jf-puce-x {
  display: grid; place-items: center; flex: none; width: 28px; padding: 0;
  border: 0; border-radius: 0 var(--pill) var(--pill) 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.jf-puce-txt:hover, .jf-puce-x:hover { color: var(--ink); background: var(--acc-voile); }
.jf-puce-txt:focus-visible, .jf-puce-x:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.jf-tout {
  height: 30px; padding: 0 var(--e3); border: 0; border-radius: var(--pill); background: transparent;
  color: var(--ink-2); font: inherit; font-size: var(--t-label); font-weight: 650; cursor: pointer;
}
.jf-tout:hover { color: var(--ink); background: var(--surface-2); }
.jf-tout:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.page > .jf-puces { margin-top: calc(var(--e3) - var(--e6)); }
.jf-tait { background: transparent; box-shadow: inset 0 0 0 1px var(--bord-net); }
.jf-tait .jf-puce-txt { color: var(--ink-2); cursor: default; }
.jf-tait .jf-puce-lb { font-weight: 600; }
.jf-tait .jf-puce-x:hover { background: var(--surface-2); }
.jf-mode { align-self: flex-start; }
.jf-sauf .jf-opt[aria-pressed="true"] .jf-opt-txt { text-decoration: line-through; text-decoration-color: var(--ink-2); }
.jf-regle { flex-basis: 100%; }
.pd { display: inline-flex; align-items: stretch; min-width: 0; max-width: 100%; }
.pd-choix {
  display: inline-flex; align-items: center; gap: var(--e2); min-width: 0;
  min-height: 40px; padding: var(--e1) var(--e3);
  border-radius: var(--r-md); border: 1px solid var(--bord);
  background: var(--fond-creux); color: var(--ink);
  font: inherit; font-size: var(--t-corps); text-align: left; cursor: pointer;
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux);
}
.pd-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--e2); min-width: 0; }
.pd-txt > span { white-space: nowrap; }
.pd-choix:hover { border-color: var(--bord-fort); }
.pd-choix:focus-visible, .pd-choix[aria-expanded="true"] {
  outline: none; border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-voile);
}
.pd-choix > .ico { flex: none; color: var(--ink-3); }
.pd-choix > .ico:last-child { transition: rotate var(--tr) var(--doux); }
.pd-choix[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
.pd-actif .pd-choix { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pd-actif .pd-choix > .ico:first-child { color: var(--acc-vif); }
.pd-nom { font-weight: 500; }
.pd-actif .pd-nom { font-weight: 650; }
.pd-sous { font-size: var(--t-donnee); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pd-retirer {
  display: grid; place-items: center; flex: none; width: 34px; padding: 0;
  border: 1px solid var(--bord); border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--fond-creux); color: var(--ink-3); cursor: pointer;
  transition: color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux);
}
.pd-retirer:hover { color: var(--ink); background: var(--surface-2); }
.pd-retirer:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.pd-panneau {
  position: absolute; z-index: 30; top: calc(100% + 6px);
  left: clamp(0px, var(--pd-x, 0px), 100% - min(42rem, 100%));
  width: min(42rem, 100%);
  container-type: inline-size;
  display: flex; flex-direction: column; gap: var(--e3); padding: var(--e3);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--surface-pleine); box-shadow: var(--verre-bord), var(--om-3);
}
html.anim .pd-panneau { animation: menu-plans-entre .22s var(--entree) both; }
.carte:has(> .journal-filtres .pd-panneau), .carte:has(> .journal-filtres .jc-pop),
.carte:has(> .journal-filtres .jf-pop) { z-index: 5; }
.pd-corps { display: grid; gap: var(--e4); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 600px) {
  .pd-corps { grid-template-columns: minmax(0, 1fr) 18rem; }
  .pd-cal { padding-left: var(--e4); border-left: 1px solid var(--bord); }
}
.pd-gauche { display: flex; flex-direction: column; gap: var(--e3); min-width: 0; }
.pd-vites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e2); }
.pd-vite {
  min-height: 36px; min-width: 0; padding: var(--e1) var(--e3);
  border-radius: var(--r-md); border: 1px solid var(--bord); background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--t-donnee); font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), color var(--tr-vif) var(--doux);
}
.pd-vite:hover { border-color: var(--bord-fort); background: var(--surface-2); }
.pd-vite:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pd-vite[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-voile); color: var(--acc-vif); }
.pd-cal { min-width: 0; }
.pd-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); margin-bottom: var(--e2); }
.pd-cal-nom { font-weight: 650; font-size: var(--t-corps); }
.pd-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.pd-tete { padding: var(--e1) 0; font-size: var(--t-micro); color: var(--ink-3); text-align: center; letter-spacing: .06em; text-transform: uppercase; }
.pd-jour {
  position: relative; height: 36px; min-width: 0; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink); font: inherit; font-size: var(--t-donnee); font-weight: 600; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background var(--tr-vif) var(--doux);
}
.pd-jour:hover { background: var(--surface-2); }
.pd-jour:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; z-index: 1; }
.pd-jour.pd-auj { color: var(--acc-vif); box-shadow: inset 0 0 0 1px var(--acc); }
.pd-jour.pd-dans, .pd-jour.pd-apercu { border-radius: 0; background: var(--acc-voile); }
.pd-jour.pd-apercu { background: var(--acc-brume); box-shadow: inset 0 1px 0 var(--acc-trait), inset 0 -1px 0 var(--acc-trait); }
.pd-jour.pd-dans:not([aria-pressed="true"]):hover, .pd-jour.pd-apercu:hover { background: var(--acc-trait); }
.pd-jour.pd-g, .pd-jour.pd-du { border-top-left-radius: var(--r-sm); border-bottom-left-radius: var(--r-sm); }
.pd-jour.pd-d, .pd-jour.pd-au { border-top-right-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.pd-jour[aria-pressed="true"] { background: var(--acc); color: var(--sur-acc); box-shadow: none; }
.pd-jour[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
.pd-jour.pd-trade::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor; opacity: .6;
}
.pd-jour:disabled { color: var(--ink-4); font-weight: 500; background: transparent; box-shadow: none; cursor: not-allowed; }
.pd-pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--e2) var(--e3);
  padding-top: var(--e3); border-top: 1px solid var(--bord);
}
.pd-etat { flex: 1 1 16rem; margin: 0; font-size: var(--t-label); color: var(--ink-2); line-height: 1.5; }
.pd-etat strong { color: var(--ink); font-weight: 650; }
.pd-gestes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--e2); }
.vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e3);
  padding: var(--e16) var(--e6);
  text-align: center;
  color: var(--ink-3);
}
.vide .rond {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc-voile); color: var(--acc);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--acc-voile) 50%, transparent);
  margin-bottom: var(--e2);
}
.vide h3 { font-size: var(--t-titre); color: var(--ink); }
.vide p { max-width: 46ch; font-size: var(--t-donnee); line-height: 1.65; }
.reserve { position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.reserve > .dessous {
  max-height: 560px;
  overflow: hidden;
  filter: blur(7px) saturate(.55);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}
.reserve > .dessus {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--e3);
  padding: var(--e6);
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, var(--fond) 82%);
}
.reserve .cadenas {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc-voile); color: var(--acc);
  border: 1px solid var(--acc-trait);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--acc-voile) 50%, transparent);
}
.reserve h4 { font-size: var(--t-sous); }
.reserve p { font-size: var(--t-donnee); color: var(--ink-2); max-width: 44ch; line-height: 1.6; }
.reserve-compacte > .dessous { max-height: 340px; }
.reserve-compacte > .dessus { padding: var(--e4); gap: var(--e2); }
.reserve-compacte .cadenas { width: 38px; height: 38px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc-voile) 50%, transparent); }
.toasts {
  position: fixed;
  z-index: 90;
  left: 50%; bottom: var(--e6);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  gap: var(--e2);
  align-items: center;
  pointer-events: none;
  width: min(560px, calc(100vw - var(--e8)));
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--e3);
  padding: var(--e3) var(--e5);
  border-radius: var(--pill);
  background: var(--surface-pleine);
  border: 1px solid var(--bord-fort);
  box-shadow: var(--verre-bord), var(--om-3);
  font-size: var(--t-donnee);
  font-weight: 500;
  max-width: 100%;
}
.toast .ico { flex: none; }
.toast-ok .ico { color: var(--gain); }
.toast-non .ico { color: var(--perte); }
.toast-info .ico { color: var(--acc); }
.voile {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--e4);
  background: rgba(4, 5, 12, .58);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.boite {
  width: min(660px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  background: var(--surface-pleine);
  border: 1px solid var(--bord-fort);
  box-shadow: var(--verre-bord), var(--om-3);
  padding: var(--e8);
  display: flex;
  flex-direction: column;
  gap: var(--e5);
}
.boite-large { width: min(920px, 100%); }
.boite-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--e4); }
.boite-tete h2 { font-size: var(--t-titre); }
.boite-tete .pile-2 { gap: var(--e1); }
.boite-tete .btn-carre .ico { transition: rotate .3s var(--entree); }
.boite-tete .btn-carre:hover .ico { rotate: 90deg; }
.boite-tete .sous { margin-top: var(--e1); }
.boite-pied { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--e2); padding-top: var(--e2); }
.bandeau {
  position: relative;
  border-radius: var(--r-2xl);
  padding: var(--e12) var(--e10);
  overflow: hidden;
  background: var(--grad-nuit);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--om-3);
  --ban-ink:   #ffffff;
  --ban-ink-2: #b6b3d4;
  color: #eceafa;
  display: grid;
  gap: var(--e8);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.bandeau::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  background: radial-gradient(60% 60% at 18% 0%, rgba(140,120,255,.42) 0%, transparent 62%),
              radial-gradient(48% 52% at 88% 20%, rgba(70,150,220,.32) 0%, transparent 65%);
  pointer-events: none;
}
.bandeau > * { position: relative; }
.bandeau h1 { font-size: var(--t-hero); color: var(--ban-ink); letter-spacing: -.04em; }
.bandeau .sous { color: var(--ban-ink-2); font-size: var(--t-sous); }
.bandeau-etat { display: flex; gap: var(--e3); align-items: flex-start; }
.bandeau-etat .ligne-ico { width: 38px; height: 38px; }
.bandeau-phrase { font-size: var(--t-titre); font-weight: 650; color: var(--ban-ink); line-height: 1.3; letter-spacing: -.015em; }
.bandeau-anneau { display: grid; place-items: center; }
:root[data-theme="jour"] .bandeau {
  --ban-ink:   var(--ink);
  --ban-ink-2: #4a4e5c;
  --acc-vif:   #4a3d96;
  color: var(--ink);
  border-color: rgba(101,68,199,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), var(--om-3);
  background:
    linear-gradient(rgba(255,255,255,.34), rgba(255,255,255,.34)),
    radial-gradient(74% 108% at -12% -16%, #6f6bff 0%, rgba(111,107,255,0) 72%),
    radial-gradient(48% 62%  at 104% 112%, #ff7ab8 0%, rgba(255,122,184,0) 72%),
    radial-gradient(58% 90%  at 50% -20%,  #a97bff 0%, rgba(169,123,255,0) 72%),
    #e8e1fc;
}
:root[data-theme="jour"] .bandeau::before { display: none; }
.accueil { border: 1px solid var(--acc-trait); }
.accueil-etapes { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.accueil-etape {
  display: flex; gap: var(--e3); align-items: flex-start;
  padding: var(--e4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--bord);
}
.accueil-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--t-label); font-weight: 700; letter-spacing: .04em;
  background: var(--acc-voile); color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc-trait);
}
.accueil-etape.faite .accueil-num { background: var(--gain-voile); color: var(--gain); box-shadow: inset 0 0 0 1px var(--gain-trait); }
.accueil-etape.faite .accueil-titre { text-decoration: line-through; text-decoration-color: var(--ink-4); }
.accueil-titre { font-weight: 650; }
.accueil-pied { justify-content: flex-end; }
.accueil-etape.suivante { border-color: var(--acc-trait); box-shadow: inset 0 0 0 1px var(--acc-trait), var(--om-1); }
.accueil-etape.suivante .accueil-num { box-shadow: inset 0 0 0 2px var(--acc); }
.bord-maintenant { display: flex; flex-direction: column; gap: var(--e6); }
.bord-principal, .bord-cote { display: contents; }
.bord-maintenant .bandeau { order: 1; }
.bord-maintenant .accueil { order: 2; }
.bord-maintenant .frise-carte { order: 3; }
.bord-maintenant .bord-annonces { order: 4; }
.bord-maintenant .bord-comptes { order: 5; }
.bord-maintenant .carte-prog { order: 6; }
.bc-liste { display: flex; flex-direction: column; container-type: inline-size; }
.bc {
  display: grid; gap: var(--e3) var(--e6); padding: var(--e5) 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nom solde" "limites limites" "phrase phrase";
}
.bc:first-child { padding-top: 0; }
.bc:last-child { padding-bottom: 0; }
.bc + .bc { border-top: 1px solid var(--bord); }
.bc-nom { grid-area: nom; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-nom > b { font-size: var(--t-sous); font-weight: 650; overflow-wrap: anywhere; }
.bc-solde { grid-area: solde; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.bc-val { font-size: var(--t-titre); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.bc-solde > .tab:not(.bc-val) { font-size: var(--t-donnee); font-weight: 650; }
.bc-limites { grid-area: limites; display: flex; flex-direction: column; gap: var(--e4); min-width: 0; }
.bc-limites > .sous { margin: 0; }
.bc-phrase { grid-area: phrase; display: flex; gap: var(--e2); align-items: flex-start; margin: 0; font-size: var(--t-donnee); line-height: 1.5; color: var(--ink-2); }
.bc-phrase > .ico { flex: none; margin-top: 2px; }
.bc-ok > .ico { color: var(--gain); }
.bc-bloque > .ico { color: var(--perte); }
@container (min-width: 640px) {
  .bc { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.7fr) auto; grid-template-areas: "nom limites solde" "phrase phrase phrase"; align-items: start; }
}
.ba-liste { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: var(--e4); margin: 0; padding: 0; list-style: none; }
.ba { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: var(--e3); border-radius: var(--r-sm); }
.ba-h { font-size: var(--t-corps); font-weight: 600; white-space: nowrap; }
.ba-c { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ba-t { margin: 0; font-weight: 600; line-height: 1.35; }
.ba-c > .eco-etat { height: auto; min-height: 20px; max-width: 100%; margin-top: 1px; }
.ba-n { margin: 0; font-size: var(--t-label); color: var(--ink-2); }
.ba.eco-passe > :not(.ba-c), .ba.eco-passe .ba-t { opacity: .5; }
.ba.ba-prochaine { background: linear-gradient(90deg, var(--acc-voile), transparent 75%); }
.ba-rien { margin: 0; }
.ba-rien + .ba-liste { margin-top: var(--e3); }
@media (max-width: 560px) {
  .ba-liste { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--e3); }
  .ba { padding: var(--e3) var(--e2); row-gap: 2px; }
  .ba-h { grid-column: 1; grid-row: 1; }
  .ba-dev { grid-column: 1; grid-row: 2; align-self: start; }
  .ba-c { grid-column: 2; grid-row: 1 / span 2; }
  .ba > .eco-pil { grid-column: 3; grid-row: 1 / span 2; }
}
.bord-titre { padding: var(--e4) var(--e2) 0; }
.bandeau .lb { color: var(--ban-ink-2); }
.bandeau-jour {
  display: flex; flex-direction: column; gap: var(--e4);
  width: min(100%, 420px); padding: var(--e5) var(--e6);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
:root[data-theme="jour"] .bandeau-jour { background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(41,43,49,.08); }
.jour-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e4); }
.jour-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jour-val { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ban-ink); white-space: nowrap; }
.jour-max { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ban-ink-2); }
.jour-stat.plein .jour-val::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; vertical-align: .35em;
  border-radius: 50%; background: var(--perte);
}
.jour-fenetre { display: flex; gap: var(--e3); align-items: flex-start; }
.jour-ico {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ban-ink); background: rgba(255,255,255,.08);
}
:root[data-theme="jour"] .jour-ico { background: rgba(41,43,49,.06); }
.jour-places { font-size: var(--t-donnee); font-weight: 650; color: var(--ban-ink); }
.jour-plage { font-size: var(--t-donnee); color: var(--ban-ink-2); }
.respect { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e6); }
.respect-ligne { color: var(--ink-2); }
.respect-ligne b { color: var(--ink); }
.fins { display: flex; flex-wrap: wrap; gap: var(--e2); }
.fin-choix {
  min-height: 38px; padding: 0 var(--e4); border-radius: var(--pill);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--bord);
  color: var(--ink-2); font: inherit; font-size: var(--t-donnee); font-weight: 600; cursor: pointer;
  text-align: left;
}
.fin-choix[aria-pressed="true"] { background: var(--acc-voile); box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--ink); }
.fin-main { box-shadow: inset 0 0 0 1px var(--perte-trait); }
.fin-main[aria-pressed="true"] { background: var(--perte-voile); box-shadow: inset 0 0 0 1.5px var(--perte); }
.fin-connue { margin-bottom: var(--e4); }
.cloture-parts { container-type: inline-size; }
.choix-comptes .fin-choix { display: inline-flex; align-items: center; gap: var(--e2); padding-left: var(--e3); }
.seuil-be { max-width: 360px; display: flex; flex-direction: column; gap: var(--e4); }
.seuil-be .segments { align-self: flex-start; }
.comptes-liste { display: grid; gap: var(--e5); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.compte-edit-tete { display: flex; align-items: center; gap: var(--e3); min-width: 0; }
.compte-edit-tete .saisie-titre { flex: 1; min-width: 0; font-size: var(--t-titre); margin-left: calc(-1 * var(--e3) - 1px); }
.compte-edit .grille { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.compte-type { display: flex; align-items: center; gap: var(--e2); margin-top: calc(-1 * var(--e2)); font-size: var(--t-label); color: var(--ink-2); }
.compte-type .ico { color: var(--ink-3); }
.compte-statut { display: flex; flex-direction: column; gap: var(--e2); }
.compte-actions { display: flex; flex-wrap: wrap; gap: var(--e2); padding-left: calc(var(--e4) + 35px + var(--e3)); }
@media (max-width: 600px) { .compte-actions { padding-left: 0; } }
.etapes { display: flex; flex-direction: column; border: 1px solid var(--bord); border-radius: var(--r-md); overflow: hidden; }
.etape { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: var(--e3); row-gap: 2px; align-items: center; padding: var(--e2) var(--e3); }
.etape + .etape { border-top: 1px solid var(--bord); }
.etape[data-issue="encours"] { background: var(--acc-voile); }
.etape-point { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); }
.etape[data-issue="encours"] .etape-point { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-voile); }
.etape[data-issue="validee"] .etape-point { background: var(--gain); }
.etape[data-issue="ratee"] .etape-point, .etape[data-issue="perdu"] .etape-point,
.etape[data-issue="franchie"] .etape-point { background: var(--perte); }
.etape-nom { grid-column: 2; font-size: var(--t-donnee); font-weight: 600; color: var(--ink); min-width: 0; }
.etape-nom > span { font-weight: 450; color: var(--ink-3); }
.etape-quand { grid-column: 2; font-size: var(--t-label); color: var(--ink-2); line-height: 1.4; }
.etape-droite { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.etape-droite .pilule { height: 20px; }
.etape-res { font-size: var(--t-donnee); font-weight: 650; color: var(--ink); white-space: nowrap; }
.compte-regles { display: flex; align-items: center; gap: var(--e3); width: 100%; padding: var(--e2) var(--e3);
  border-radius: var(--r-md); border: 1px solid var(--bord); background: var(--surface); color: var(--ink-2);
  text-align: left; cursor: pointer; font: inherit; }
.compte-regles:hover { border-color: var(--bord-fort); color: var(--ink); }
.compte-regles > b { flex: none; font-size: var(--t-micro); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.compte-regles > span { flex: 1; min-width: 0; font-size: var(--t-label); line-height: 1.4; color: var(--ink-2); }
.compte-regles-corps { display: contents; }
.compte-edit .rangee > .aide { font-size: var(--t-label); color: var(--ink-3); line-height: 1.5; }
.cb { display: flex; flex-direction: column; gap: var(--e4); }
.cb-tuiles { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.cb-tuiles .tuile { padding: var(--e4); }
.cb-tuiles .tuile .val { font-size: 1.55rem; }
.cb-tuiles .tuile .sous { font-size: var(--t-label); line-height: 1.45; }
.cb-limites { display: flex; flex-direction: column; gap: var(--e4); }
.etape[data-issue="versee"] .etape-point { background: var(--gain); }
.compte-mvt-corps { display: contents; }
.mvts { display: flex; flex-direction: column; gap: var(--e2); }
.mvt { display: grid; grid-template-columns: minmax(176px, auto) minmax(0, 1fr) 120px auto; grid-template-areas: "date note montant suppr";
  gap: var(--e2); align-items: center; }
.mvt-date { grid-area: date; min-width: 0; }
.mvt-date .dj-droite { display: none; }
.mvt-note { grid-area: note; min-width: 0; }
.mvt-montant { grid-area: montant; display: flex; align-items: center; gap: var(--e1); min-width: 0; }
.mvt-montant .saisie { min-width: 0; text-align: right; }
.mvt-signe { flex: none; width: 12px; text-align: center; font-weight: 700; }
.mvt > .btn { grid-area: suppr; }
.mvt-bilan { margin: 0; }
@media (max-width: 600px) {
  .cb-tuiles > .tuile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mvt { grid-template-columns: minmax(0, 1fr) 88px auto; grid-template-areas: "date montant suppr" "note note note"; }
  .mvts { gap: var(--e4); }
}
.termines-tete { margin: var(--e10) 0 var(--e4); }
.termines-tete h2 { margin: 0; font-size: var(--t-titre); letter-spacing: -.02em; }
.termines-tete .sous { margin: var(--e1) 0 0; }
.termine { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--e2) var(--e3); min-width: 0; }
.termine-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--ink-3); }
.termine-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.termine-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: var(--e2); }
.termine-txt > b { font-size: var(--t-donnee); color: var(--ink); }
.termine-txt > span { font-size: var(--t-label); color: var(--ink-2); }
.raisons { margin-top: var(--e2); }
.raisons-liste { margin: var(--e2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.raisons-liste li { position: relative; padding-left: 16px; color: var(--ink); font-size: var(--t-donnee); line-height: 1.45; }
.raisons-liste li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--perte); }
.journees { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; container-type: inline-size; }
.jr-tete { text-align: center; font-size: var(--t-micro); font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.jr-jour {
  --teinte: color-mix(in srgb, var(--gain) var(--part, 100%), var(--perte));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 46px; border-radius: 10px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--bord);
  color: var(--ink-2);
}
.jr-jour.pris { background: color-mix(in srgb, var(--teinte) 26%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--teinte); color: var(--ink); }
.jr-jour.refus { box-shadow: inset 0 0 0 1.5px var(--gain); color: var(--ink); }
.jr-jour.avenir { background: transparent; opacity: .45; }
.jr-jour.aujourdhui { outline: 2px solid var(--acc); outline-offset: 2px; }
.jr-num { font-size: var(--t-donnee); font-weight: 650; line-height: 1; }
.jr-pnl { font-size: 10.5px; font-weight: 600; line-height: 1; color: var(--ink-2); white-space: nowrap; }
@container (max-width: 400px) { .jr-pnl { display: none; } .jr-jour { min-height: 38px; } }
.jr-legende { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e5); font-size: var(--t-micro); color: var(--ink-2); }
.jr-legende span { display: inline-flex; align-items: center; gap: 6px; }
.jr-pastille {
  --teinte: color-mix(in srgb, var(--gain) var(--part, 100%), var(--perte));
  width: 12px; height: 12px; border-radius: 4px;
  background: color-mix(in srgb, var(--teinte) 26%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--teinte);
}
.jr-pastille.refus { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gain); }
button.jr-jour { transition: transform var(--tr) var(--doux); }
button.jr-jour:hover { transform: translateY(-2px); }
.etat-carte { flex-direction: row; align-items: center; gap: var(--e5); padding: var(--e5) var(--e6); }
.etat-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 12%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 6%, transparent); }
.etat-titre { font-size: var(--t-titre); font-weight: 650; letter-spacing: -.015em; }
.voyant-verdict { font-size: 1.9rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.voyant-rr { font-size: 1.6rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.voyant-droite { align-items: flex-end; text-align: right; }
.voyant { padding: var(--e4) var(--e6); }
.voyant-rangee { flex-wrap: nowrap; gap: var(--e5); }
.voyant-droite { flex: none; align-items: flex-start; gap: var(--e8); }
.voyant-chiffre { align-items: flex-end; gap: var(--e1); }
.voyant-chiffre .sous { font-size: var(--t-label); line-height: 1.4; }
.ck-vig { flex-direction: row; align-items: flex-start; gap: var(--e4); padding: var(--e4) var(--e6);
  box-shadow: var(--verre-bord), var(--om-2), inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); }
.ck-vig-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 12%, transparent); }
.ck-vig-ligne { margin: 0; }
.jr-eng { flex-wrap: wrap; }
.jr-eng-ligne { font-size: var(--t-corps); }
.decision {
  position: sticky; bottom: var(--e3); z-index: 6;
  padding: var(--e4);
  gap: var(--e2);
  background: var(--verre);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--verre-bord), var(--om-3);
}
.decision-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e3) var(--e4); }
.decision-etat { display: flex; align-items: center; gap: var(--e2); font-size: var(--t-titre); font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.decision-compte { font-size: var(--t-label); font-weight: 650; letter-spacing: 0; color: var(--ink-3); }
.decision-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--e2); margin-left: auto; }
.decision-actions .btn { height: 40px; padding: 0 var(--e4); }
.decision-actions .btn-primaire { padding: 0 var(--e6); font-size: var(--t-corps); }
@media (min-width: 561px) and (max-width: 900px) {
  .decision-haut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e2) var(--e3); }
  .decision-actions { display: contents; }
  .decision-etat { grid-row: 1; grid-column: 1; }
  .decision-actions .btn-primaire { grid-row: 1; grid-column: 2; }
  .decision-actions .btn { width: 100%; min-width: 0; }
}
.sortie {
  border-radius: var(--r-lg); padding: var(--e8) var(--e6);
  display: flex; flex-direction: column; gap: var(--e4); align-items: center; text-align: center;
  background: var(--fond-creux);
  border: 1px solid var(--acc-trait);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.14), 0 0 60px -30px var(--acc);
}
.sortie-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--acc);
  background: var(--acc-voile); box-shadow: 0 0 0 10px color-mix(in srgb, var(--acc-voile) 50%, transparent); }
.sortie-bouton { display: inline-flex; border-radius: var(--pill); }
.sortie-titre { font-size: var(--t-titre); font-weight: 650; }
.instrument { font-size: 1.75rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.choix-carte { cursor: pointer; gap: var(--e2); text-align: left; align-items: flex-start;
  border: 1px solid var(--bord); transition: border-color var(--tr) var(--doux), background var(--tr) var(--doux), transform var(--tr) var(--doux); }
.choix-carte:hover { border-color: var(--acc-trait); transform: translateY(-2px); }
.choix-carte.choisi { border-color: var(--acc); background: var(--acc-voile); box-shadow: 0 0 0 4px var(--acc-voile), var(--om-2); }
.choix-carte .ligne-ico { color: var(--acc); width: 40px; height: 40px; }
.choix-titre { font-size: var(--t-sous); font-weight: 650; }
.frise { display: flex; flex-direction: column; gap: var(--e2); }
.frise-ligne { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: var(--e3); }
.frise-piste { position: relative; height: 24px; border-radius: var(--r-xs); background: var(--surface); overflow: hidden; box-shadow: inset 0 0 0 1px var(--bord); }
.frise-bloc {
  position: absolute; top: 0; bottom: 0;
  border-radius: var(--r-xs);
  opacity: .85;
  transition: opacity var(--tr) var(--doux);
}
.frise-bloc.ouverte { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 14px -2px currentColor; }
.frise-maintenant {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--ink);
  box-shadow: 0 0 10px var(--ink);
  z-index: 2;
}
.frise-heures { display: flex; justify-content: space-between; padding-left: 70px; font-size: var(--t-micro); color: var(--ink-4); }
.perf-grille { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
.perf-gauche, .perf-droite { display: contents; }
@media (min-width: 2000px) {
  .perf-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .perf-grille > .grille-5 { grid-column: 1 / -1; }
  .perf-gauche, .perf-droite { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
  .perf-gauche { grid-column: 1 / span 4; }
  .perf-droite { grid-column: 5 / span 2; }
  .perf-gauche > [data-k="pf-courbe"] { flex: 1 0 auto; }
  .perf-gauche > [data-k="pf-courbe"] > .courbe-boite { flex: 1 1 0; aspect-ratio: auto; min-height: 300px; }
  .perf-droite > [data-k="pf-r"]:has(.barres-fluides) { flex: 1 0 auto; max-height: 600px; }
}
@media (900px < width < 2000px) {
  .perf-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); container: perf / inline-size; }
  .perf-grille > .grille-5, .perf-gauche > [data-k], .perf-droite > [data-k] { grid-column: 1 / -1; }
  @container perf (min-width: 940px) {
    .perf-gauche > [data-k="pf-courbe"] { grid-column: 1 / span 4; }
    .perf-droite > [data-k="pf-dd"] { grid-column: 5 / span 2; grid-row: 2; }
    .perf-grille:not(:has([data-k="pf-dd"])) [data-k="pf-courbe"] { grid-column: 1 / -1; }
    .perf-gauche > [data-k="pf-courbe"] > .courbe-boite {
      flex: 1 1 0; aspect-ratio: auto; min-height: clamp(180px, calc(100svh - 430px), 380px);
    }
    .perf-droite > [data-k="pf-dd"] > .dd-jauges { flex: 1 1 auto; align-content: space-evenly; }
    .perf-droite > [data-k="pf-dd"] > .dd-jauges:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
    @media (max-height: 640px) {
      .perf-droite > [data-k="pf-dd"] .dd-arc { max-width: 130px; }
      .perf-droite > [data-k="pf-dd"] > .dd-jauges { row-gap: var(--e3); }
    }
  }
  @container perf (min-width: 1120px) {
    .perf-droite > [data-k="pf-r"] { grid-column: 1 / span 3; }
    .perf-droite > [data-k="pf-detail"] { grid-column: 4 / span 3; }
    .perf-droite > [data-k="pf-detail"] > .pf-detail { flex: 1 1 auto; align-content: center; }
  }
}
.courbe-tete { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-lb { font-size: var(--t-micro); font-weight: 650; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.ct-val { font-size: 2rem; font-weight: 700; letter-spacing: -.045em; line-height: 1.1; color: var(--ink); }
.ct-sous, .ct-lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sous { font-size: var(--t-donnee); color: var(--ink-2); }
.ct-sous > b { font-weight: 650; }
.courbe-tete.en-survol > .ct-lb { color: var(--acc); }
.courbe-boite { position: relative; aspect-ratio: 860 / 300; min-width: 0; --cy: 72px; --cx: 24px; }
.courbe-vide { padding: var(--e6); }
.courbe-plot { position: absolute; left: 0; top: 0; right: var(--cy); bottom: var(--cx); touch-action: pan-y; }
.courbe-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.courbe-plot[data-act] { cursor: pointer; }
.courbe-depart { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 5; }
.courbe-ligne { fill: none; stroke-width: 1.25; stroke-dasharray: 6 5; opacity: .9; }
.courbe-zone { fill: var(--perte); opacity: .06; }
.courbe-axe-y { position: absolute; top: 0; right: 0; bottom: var(--cx); width: var(--cy); }
.courbe-axe-y > span, .courbe-axe-x > span { position: absolute; font-size: var(--t-micro); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.courbe-axe-y > span { right: 0; transform: translateY(-50%); text-align: right; }
.courbe-axe-y > .cy-rep { line-height: 1.3; font-weight: 600; }
.cy-rep > b { display: block; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.courbe-axe-y > .cy-objectif { color: var(--gain); }
.courbe-axe-y > .cy-limite { color: var(--perte); }
.courbe-axe-x { position: absolute; left: 0; right: var(--cy); bottom: 0; height: var(--cx); }
.courbe-axe-x > span { bottom: 2px; transform: translateX(-50%); }
.courbe-axe-x > .cx-deb { transform: none; }
.courbe-axe-x > .cx-fin { transform: translateX(-100%); }
@media (max-width: 700px) {
  .courbe-boite { aspect-ratio: 4 / 3; --cy: 62px; }
  .ct-val { font-size: 1.6rem; }
}
.courbe-pt, .courbe-bout { position: absolute; border-radius: 50%; pointer-events: none; }
.courbe-pt {
  --d: 9px; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  background: var(--pt); box-shadow: 0 0 0 2px var(--surface-pleine);
}
.courbe-bout { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--pt); opacity: .22; }
.courbe-survol { position: absolute; inset: 0; pointer-events: none; }
.courbe-survol[hidden] { display: none; }
.cs-ligne { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--ink-3); opacity: .55; }
.cs-pt {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--pt);
  box-shadow: 0 0 0 2px var(--surface-pleine), 0 0 0 6px color-mix(in srgb, var(--pt) 22%, transparent);
}
html.anim .courbe-plot > svg { animation: courbe-voile 1500ms var(--doux) backwards; }
@keyframes courbe-voile { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html.anim .courbe-plot > .courbe-pt { animation: fondu 400ms 1200ms var(--doux) backwards; }
html.anim .courbe-plot > .courbe-bout { opacity: 0; animation-delay: 1500ms; }
html.anim .courbe-axe-y, html.anim .courbe-axe-x { animation: fondu 600ms 200ms var(--doux) backwards; }
.dd-jauges { display: grid; gap: var(--e5) var(--e4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.dd-jauge { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.dd-arc { position: relative; width: 100%; max-width: 190px; }
.dd-centre { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.dd-centre > b { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.dd-centre > span { font-size: var(--t-micro); color: var(--ink-3); }
.dd-nom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--e2); margin-top: var(--e2); }
.dd-nom > b { font-size: var(--t-donnee); }
.dd-nom > .pilule { height: 20px; }
.dd-chiffres { font-size: var(--t-donnee); font-weight: 600; color: var(--ink); }
.dd-quand { max-width: 28ch; font-size: var(--t-label); line-height: 1.45; color: var(--ink-2); }
.dd-pire { font-size: var(--t-label); color: var(--ink-2); }
.dd-pire > b { font-weight: 650; color: var(--ink); }
.dd-franchie { font-size: var(--t-label); font-weight: 650; color: var(--perte); }
.jl-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
.jl-tete > .pilule { height: 22px; }
.jl-mots { font-size: var(--t-label); line-height: 1.45; color: var(--ink-2); }
.jl { display: grid; gap: 6px; padding-top: var(--e3); }
.jl-zone { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid var(--bord-fort); }
.jl-limite { position: absolute; left: 0; right: 0; bottom: var(--jl-lim); border-top: 1px dashed var(--perte); font-style: normal; pointer-events: none; }
.jl-limite > span { position: absolute; right: 0; bottom: 3px; font-size: var(--t-micro); font-weight: 650; color: var(--perte); white-space: nowrap; }
.jl-col {
  flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px;
  padding: 0; border: 0; border-radius: var(--r-xs) var(--r-xs) 0 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
button.jl-col:hover { background: var(--surface-2); }
button.jl-col:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
div.jl-col { cursor: default; }
.jl-barre { display: block; width: 70%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: var(--jl, var(--ink-3)); }
.jl-perte { --jl: var(--perte); }
.jl-alerte { --jl: var(--alerte); }
.jl-vide { --jl: var(--bord-fort); }
.jl-val {
  position: relative; z-index: 1; padding: 1px 5px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--surface-pleine) 80%, transparent);
  font-size: var(--t-micro); font-weight: 650; white-space: nowrap; color: var(--ink-2);
}
.jl-perte > .jl-val { color: var(--perte); }
.jl-alerte > .jl-val { color: var(--alerte); }
.jl-dates { display: flex; gap: 6px; }
.jl-dates > span { flex: 1 1 0; min-width: 0; text-align: center; font-size: var(--t-micro); line-height: 1.3; color: var(--ink-3); }
.jl-dates > .jl-auj { color: var(--acc); font-weight: 650; }
.r-rangs { display: grid; gap: var(--e5) var(--e6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.r-rang { display: flex; flex-direction: column; gap: var(--e2); min-width: 0; }
.r-rang-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2); }
.r-rang-tete > b { font-size: var(--t-donnee); }
.r-rang-tete > .pilule { height: 22px; }
.r-rang > .balle { margin: var(--e1) 0; }
.r-rang-mots { display: flex; justify-content: space-between; gap: var(--e3); font-size: var(--t-label); color: var(--ink-2); }
.r-rang-mots b { font-size: var(--t-donnee); }
.r-rang-pied { font-size: var(--t-label); line-height: 1.45; color: var(--ink-2); }
.r-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e2); padding-top: var(--e4); border-top: 1px solid var(--bord); font-size: var(--t-donnee); color: var(--ink-2); }
.r-total > b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.r-distrib { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--e3); padding-top: var(--e4); border-top: 1px solid var(--bord); }
.barres-fluides { flex: 1 1 0; min-height: 132px; }
.r-distrib > .faible { font-size: var(--t-label); }
.pf-detail { display: grid; gap: var(--e5) var(--e8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: start; }
.dt-lb { font-size: var(--t-label); color: var(--ink-2); }
.dt-barre, .dt-serie { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--e3); }
.dt-barre > b, .dt-serie > b { min-width: 4.5rem; font-size: var(--t-donnee); font-weight: 600; text-align: right; }
.dt-piste { display: block; height: 8px; overflow: hidden; border-radius: var(--pill); background: var(--surface-3); }
.dt-piste > i { display: block; height: 100%; border-radius: var(--pill); transform-origin: left; }
html.anim .dt-piste > i { animation: balle-entree 900ms var(--doux) 200ms backwards; }
.perles { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.perles > i { width: 10px; height: 10px; border-radius: 50%; }
.dt-chiffres, .dt-extremes { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.dt-extremes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dt-chiffre, .dt-ext {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--e3);
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--bord);
}
.dt-chiffre > b, .dt-ext .lien-perf > b { font-size: 1.05rem; }
.dt-chiffre > .faible, .dt-ext .lien-perf > span { font-size: var(--t-label); line-height: 1.4; }
.dt-ext .lien-perf { flex-direction: column; align-items: flex-start; gap: 2px; }
.lien-perf {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--e2); max-width: 100%;
  padding: 0; border: 0; border-radius: var(--r-xs); background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.lien-perf > b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.lien-perf:hover > b { text-decoration-color: currentColor; }
.lien-perf:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.carte-cal > .carte-tete { flex-wrap: wrap; }
.pc-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); }
.pc-titre {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--e1) var(--e3); border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font: inherit; text-align: center;
}
button.pc-titre { cursor: pointer; transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux); }
button.pc-titre:hover { border-color: var(--bord); background: var(--surface-2); }
button.pc-titre:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pc-titre.pc-choisie { border-color: var(--acc); background: var(--acc-voile); }
.pc-titre-nom { font-weight: 650; font-size: var(--t-corps); }
.pc-titre-sous { font-size: var(--t-donnee); font-weight: 600; }
.pc-cadre { container: pc / inline-size; }
.pc-grille { display: grid; gap: 5px; }
.pc-v-jours { grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 1.25fr); }
.pc-v-semaines { grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.25fr); }
.pc-v-mois { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); }
.pc-v-annees { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); }
.pc-tete { padding-bottom: 2px; font-size: var(--t-micro); color: var(--ink-3); text-align: center; letter-spacing: .06em; text-transform: uppercase; }
.pc-case {
  position: relative; min-width: 0; min-height: 4.6rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2px;
  padding: 6px 8px; border-radius: var(--r-sm); border: 1px solid var(--bord); background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--t-micro); text-align: left;
  transition: transform var(--tr) var(--doux), box-shadow var(--tr) var(--doux), border-color var(--tr) var(--doux), filter var(--tr) var(--doux);
}
.pc-v-mois .pc-case, .pc-v-annees .pc-case { min-height: 5.2rem; }
button.pc-case { cursor: pointer; }
button.pc-case:hover { transform: translateY(-2px); box-shadow: var(--om-2); border-color: var(--bord-net); z-index: 2; filter: none; }
button.pc-case:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; z-index: 2; filter: none; }
.pc-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-val { font-size: var(--t-label); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.pc-court { display: none; }
.pc-n { color: var(--ink-2); white-space: nowrap; }
.pc-gain { background: var(--gain-voile); border-color: var(--gain-trait); }
.pc-gain .pc-val { color: var(--gain); }
.pc-perte { background: var(--perte-voile); border-color: var(--perte-trait); }
.pc-perte .pc-val { color: var(--perte); }
.pc-rien { background: transparent; }
.pc-rien .pc-nom { color: var(--ink-3); }
.pc-vide { border: 0; background: none; }
.pc-autre, .pc-horsp { filter: opacity(.5); }
.pc-avenir { filter: opacity(.38); }
.pc-auj { box-shadow: inset 0 0 0 1px var(--acc); }
.pc-auj .pc-nom { color: var(--acc-vif); }
.pc-total, .pc-tete-total { margin-left: var(--e2); }
.pc-tete-total { color: var(--ink-2); font-weight: 650; }
.pc-total { border-width: 2px; }
.pc-total.pc-rien { border-style: dashed; }
.pc-total .pc-nom { color: var(--ink); font-weight: 700; }
.pc-total .pc-val { font-size: clamp(var(--t-donnee), 1.6cqi, 1.25rem); font-weight: 750; }
.pc-total.pc-gain { background: color-mix(in srgb, var(--gain) 22%, var(--surface)); border-color: color-mix(in srgb, var(--gain) 65%, transparent); }
.pc-total.pc-perte { background: color-mix(in srgb, var(--perte) 22%, var(--surface)); border-color: color-mix(in srgb, var(--perte) 65%, transparent); }
button.pc-total.pc-gain:not(.pc-choisie):hover { border-color: var(--gain); }
button.pc-total.pc-perte:not(.pc-choisie):hover { border-color: var(--perte); }
.pc-case.pc-choisie { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc), 0 0 18px -4px var(--acc); filter: none; z-index: 1; }
@container pc (max-width: 560px) {
  .pc-grille { gap: 3px; }
  .pc-case { min-height: 3.4rem; padding: 4px 5px; }
  .pc-long, .pc-n { display: none; }
  .pc-court { display: inline; }
  .pc-v-semaines, .pc-v-mois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-v-annees { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc-v-semaines .pc-vide { display: none; }
  .pc-v-semaines .pc-total, .pc-v-mois .pc-total, .pc-v-annees .pc-total {
    grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: baseline; justify-content: space-between;
  }
  .pc-v-mois .pc-case, .pc-v-annees .pc-case { min-height: 3.4rem; }
  .pc-total, .pc-tete-total { margin-left: 0; }
  .pc-v-jours .pc-total { border-width: 1.5px; }
  :is(.pc-v-semaines, .pc-v-mois, .pc-v-annees) .pc-total .pc-val { font-size: var(--t-corps); }
  :is(.pc-v-semaines, .pc-v-mois, .pc-v-annees) .pc-total .pc-long { display: inline; }
  :is(.pc-v-semaines, .pc-v-mois, .pc-v-annees) .pc-total .pc-court { display: none; }
}
.pc-recap {
  display: flex; flex-direction: column; gap: var(--e4);
  padding: var(--e5); border-radius: var(--r-lg); border: 1px solid var(--acc-trait); background: var(--fond-creux);
}
html.anim .pc-recap { animation: menu-plans-entre .26s var(--entree) both; }
.pc-recap-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: var(--e3); }
.pc-recap-tete [data-k="pc-fermer"] { grid-column: -2 / -1; grid-row: 1; }
.pc-recap-titre { font-size: var(--t-titre); }
.pc-chiffres { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.pc-chiffre {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: var(--e3); border-radius: var(--r-md); border: 1px solid var(--bord); background: var(--surface);
}
.pc-chiffre > b { font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; }
.pc-chiffre > .faible { font-size: var(--t-label); }
.pc-extremes { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e6); font-size: var(--t-donnee); }
.pc-recap-pied { font-size: var(--t-label); }
.pc-quand { white-space: nowrap; }
.pc-r-sous { display: none; }
@media (max-width: 560px) {
  .pc-recap { padding: var(--e4) var(--e3); }
  .pc-recap-tete { grid-template-columns: minmax(0, 1fr) auto; }
  .pc-recap-tete [data-k="pc-journal"] { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .pc-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e2); }
  .pc-chiffre:first-child { grid-column: 1 / -1; }
  .pc-chiffre > b { font-size: 1.15rem; }
  .pc-trades :is(th, td) { padding-left: var(--e2); padding-right: var(--e2); }
  .pc-trades .pc-col-sens, .pc-trades .pc-col-r, .pc-q-sep { display: none; }
  .pc-q-date, .pc-q-h { display: block; }
  .pc-q-h { font-size: var(--t-label); color: var(--ink-2); }
  .pc-r-sous { display: block; font-size: var(--t-label); color: var(--ink-2); }
}
.an-grille { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
.an-gauche, .an-droite { display: contents; }
@media (width < 2000px) {
  .an-grille [data-k="an-cout"] { order: 1; }
  .an-grille [data-k="an-cal"] { order: 2; }
  .an-grille [data-k="an-pr"] { order: 3; }
  .an-grille [data-k="an-dec"] { order: 4; }
  .an-grille [data-k="an-regles"] { order: 5; }
  .an-grille [data-k="an-prog"] { order: 6; }
  .an-grille [data-k="an-env"] { order: 7; }
}
@media (min-width: 2000px) {
  .an-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
  .an-grille > .grille-5 { grid-column: 1 / -1; }
  .an-gauche, .an-droite { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
  .an-gauche { grid-column: 1 / span 4; }
  .an-droite { grid-column: 5 / span 2; }
}
.ac-propre { background: var(--gain-voile); border-color: var(--gain-trait); }
.ac-propre .pc-val { color: var(--gain); }
.ac-ecart { background: var(--perte-voile); border-color: var(--perte-trait); }
.ac-ecart .pc-val { color: var(--perte); }
.ac-refus { background: transparent; border-color: var(--gain); }
.ac-refus .pc-val, .ac-verif .pc-val { color: var(--ink-3); }
.ac-verif { background: transparent; border-style: dashed; border-color: var(--bord-net); }
.ac-taux {
  --teinte: color-mix(in srgb, var(--gain) var(--part, 50%), var(--perte));
  background: color-mix(in srgb, var(--teinte) 12%, var(--surface)); border-color: color-mix(in srgb, var(--teinte) 45%, transparent);
}
.ac-taux .pc-val { color: var(--teinte); }
.ac-case:not(.pc-total) .pc-val { font-size: clamp(var(--t-label), 1.2cqi, 1.15rem); letter-spacing: -.03em; }
.pc-total.ac-taux { background: color-mix(in srgb, var(--teinte) 22%, var(--surface)); border-color: color-mix(in srgb, var(--teinte) 65%, transparent); }
button.ac-taux:not(.pc-choisie):hover { border-color: var(--teinte); }
button.ac-refus:not(.pc-choisie):hover { border-color: var(--gain); }
button.ac-propre:not(.pc-choisie):hover { border-color: var(--gain); }
button.ac-ecart:not(.pc-choisie):hover { border-color: var(--perte); }
.ac-pts { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; max-width: 100%; }
.ac-pt { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; }
.ac-pt > svg { width: 10px; height: 10px; fill: none; stroke: var(--fond); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ac-pt-c { background: var(--gain); }
.ac-pt-e { background: var(--perte); }
.ac-pt-r { box-shadow: inset 0 0 0 1.5px var(--acc); }
.ac-pt-v { box-shadow: inset 0 0 0 1.5px var(--alerte); }
.ac-pt-v > svg { stroke: var(--alerte); stroke-width: 1.3; }
.ac-plus { font-size: var(--t-micro); font-weight: 650; color: var(--ink-2); }
@container pc (max-width: 560px) {
  .ac-pts { gap: 2px; }
  .ac-pt { width: 7px; height: 7px; }
  .ac-pt > svg { display: none; }
  .ac-pt-r, .ac-pt-v { box-shadow: inset 0 0 0 1.25px var(--acc); }
  .ac-pt-v { box-shadow: inset 0 0 0 1.25px var(--alerte); }
  .ac-plus { font-size: 9px; }
}
.ac-legende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e5); font-size: var(--t-label); color: var(--ink-2); }
.ac-leg { display: inline-flex; align-items: center; gap: var(--e2); }
.ac-leg-note { margin-left: auto; color: var(--ink-3); }
@media (max-width: 560px) { .ac-leg-note { margin-left: 0; flex-basis: 100%; } }
.ac-recap-nom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
.ac-regles { display: flex; flex-wrap: wrap; gap: var(--e2); }
.ac-regle-puce {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill);
  border: 1px solid var(--perte-trait); background: var(--perte-voile); font-size: var(--t-label); font-weight: 600;
}
.ac-regle-puce > b { color: var(--perte); }
.an-dims > .segments { flex-wrap: wrap; border-radius: var(--r-md); }
.an-phrase { margin-top: var(--e4); font-size: var(--t-corps); }
.an-phrase b { font-weight: 650; }
.an-repere { margin-top: var(--e1); font-size: var(--t-label); color: var(--ink-2); }
.an-repere b { font-weight: 650; color: var(--ink); }
.an-lignes { display: flex; flex-direction: column; margin-top: var(--e4); container: anl / inline-size; }
.an-ligne {
  display: grid; grid-template-columns: minmax(6.5rem, 1.1fr) minmax(5rem, 2fr) 3.6rem 7.5rem 4.4rem;
  align-items: center; gap: var(--e3); padding: 8px 0; border-top: 1px solid var(--bord); font-size: var(--t-donnee);
}
.an-tetes { padding-top: 0; border-top: 0; font-size: var(--t-micro); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.an-tetes > span:last-child, .an-r { text-align: right; }
.an-ligne-env { grid-template-columns: minmax(6.5rem, 1.1fr) minmax(5rem, 2fr) 3.6rem 9rem; }
.an-ligne-env.an-tetes > span:last-child { text-align: left; }
.an-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--e2); min-width: 0; }
.an-k-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.an-tag { height: auto; padding: 1px 8px; font-size: var(--t-micro); }
.an-barre { position: relative; height: 10px; border-radius: var(--pill); background: var(--surface-3); }
.an-barre > i {
  position: absolute; inset: 0 auto 0 0; border-radius: var(--pill);
  background: color-mix(in srgb, var(--gain) var(--part, 50%), var(--perte));
}
@keyframes an-barre-entree { from { transform: scaleX(0); } }
html.anim .an-barre > i, html.anim .an-regle-barre > i { animation: an-barre-entree 700ms var(--doux) 150ms backwards; transform-origin: left; }
.an-moy { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: .75; }
.an-pct { font-weight: 700; text-align: right; }
.an-n { color: var(--ink-2); white-space: nowrap; }
.an-pire { background: linear-gradient(90deg, var(--perte-voile), transparent 70%); }
@container anl (max-width: 520px) {
  .an-ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k pct" "barre barre" "n r"; row-gap: 5px; }
  .an-k { grid-area: k; }
  .an-barre { grid-area: barre; }
  .an-pct { grid-area: pct; }
  .an-n { grid-area: n; font-size: var(--t-label); }
  .an-r { grid-area: r; font-size: var(--t-label); }
  .an-tetes { display: none; }
}
.an-regles { display: flex; flex-direction: column; container: anr / inline-size; }
.an-regle + .an-regle { border-top: 1px solid var(--bord); }
.an-regle-tete {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(3rem, 6.5rem) 2rem 16px; align-items: center; gap: var(--e3);
  padding: 9px var(--e2); border: 0; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background var(--tr-vif) var(--doux);
}
.an-regle-tete:hover { background: var(--surface-2); }
.an-regle-tete:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.an-regle-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.an-regle-t { font-weight: 600; }
.an-regle-sous { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-label); color: var(--ink-3); }
.an-regle-barre { height: 8px; overflow: hidden; border-radius: var(--pill); background: var(--surface-3); }
.an-regle-barre > i { display: block; height: 100%; border-radius: var(--pill); background: var(--perte); }
.an-regle-n { text-align: right; font-size: var(--t-corps); }
.an-regle-ico { display: grid; place-items: center; color: var(--ink-3); transition: transform var(--tr) var(--doux); }
.an-regle.ouverte .an-regle-ico { transform: rotate(180deg); }
.an-regle-trades { padding: var(--e1) 0 var(--e4); }
html.anim .an-regle-trades { animation: menu-plans-entre .26s var(--entree) both; }
.an-regles-pied { margin-top: var(--e2); font-size: var(--t-label); }
@container anr (max-width: 420px) {
  .an-regle-tete { grid-template-columns: minmax(0, 1fr) 2.75rem 1.75rem 14px; gap: var(--e2); padding-left: var(--e1); padding-right: var(--e1); }
}
@container anr (min-width: 640px) {
  .an-regle-tete { grid-template-columns: minmax(12rem, 1fr) minmax(6.5rem, 1.5fr) 2.5rem 16px; }
}
.an-cout { display: grid; gap: var(--e5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.an-cout-phrase { margin-top: var(--e4); font-size: var(--t-corps); }
.an-cout-phrase b { color: var(--perte); font-weight: 650; }
.an-cout-note { margin-top: var(--e2); font-size: var(--t-label); }
.an-pr-cadre { container: anpr / inline-size; }
.an-pr { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: var(--e2) var(--e3); align-items: stretch; }
.an-pr-col { padding-left: var(--e4); color: var(--ink-2); }
.an-pr-lig { align-self: center; max-width: 6.5rem; }
@container anpr (max-width: 520px) {
  .an-pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .an-pr-coin { display: none; }
  .an-pr-lig { grid-column: 1 / -1; max-width: none; margin-top: var(--e2); }
}
.an-pr-case { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: var(--e3) var(--e4); border: 1px solid var(--bord); border-radius: var(--r-md); }
.an-pr-c { background: var(--gain-voile); border-color: var(--gain-trait); }
.an-pr-e { background: var(--perte-voile); border-color: var(--perte-trait); }
.an-pr-piege { border-color: var(--alerte); box-shadow: inset 0 0 0 1px var(--alerte); }
.an-pr-piege > .lb { color: var(--alerte); }
.an-pr-n { font-size: 1.9rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.an-pr-part { font-size: var(--t-label); color: var(--ink-2); }
.an-pr-r { font-size: var(--t-donnee); font-weight: 650; }
.an-prog { margin-top: var(--e3); container: anp / inline-size; --g: var(--e2); }
.an-prog-zone { display: flex; gap: var(--g); height: 190px; padding-top: 22px; border-bottom: 1px solid var(--bord-fort); }
.an-prog-pile { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.an-prog-barre {
  position: absolute; left: 0; right: 0; bottom: 0; width: 72%; max-width: 56px; min-height: 2px; margin: 0 auto;
  border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--gain) var(--part, 50%), var(--perte));
}
.an-prog-creux::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; width: 72%; max-width: 56px; margin: 0 auto;
  border-top: 2px dashed var(--bord-net);
}
.an-prog-val {
  position: absolute; left: 50%; z-index: 2; margin-bottom: 4px; padding: 0 4px; border-radius: 4px; transform: translateX(-50%);
  background: var(--surface-pleine); white-space: nowrap; font-size: var(--t-label); font-weight: 700;
}
.an-prog-trait { position: absolute; left: calc(var(--g) / -2); right: calc(var(--g) / -2); z-index: 1; height: 0; border-top: 2px solid var(--ink); opacity: .85; }
.an-prog-avant { border-top-style: dashed; opacity: .55; }
.an-prog-lbs { display: flex; gap: var(--g); margin-top: 6px; font-size: var(--t-micro); color: var(--ink-3); }
.an-prog-lbs > span { flex: 1 1 0; min-width: 0; overflow: hidden; text-align: center; white-space: nowrap; }
@keyframes an-prog-entree { from { transform: scaleY(0); } }
html.anim .an-prog-barre { animation: an-prog-entree 700ms var(--doux) 150ms backwards; transform-origin: bottom; }
@container anp (max-width: 520px) {
  .an-prog { --g: 4px; }
  .an-prog-zone { height: 150px; padding-top: 8px; }
  .an-prog-val { display: none; }
  .an-prog-lbs > span:nth-child(even) { visibility: hidden; }
}
.an-env-groupe { margin-top: var(--e4); padding-bottom: var(--e1); font-size: var(--t-label); font-weight: 650; color: var(--ink-2); }
.verrou {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: var(--e6);
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(30px) saturate(80%);
  -webkit-backdrop-filter: blur(30px) saturate(80%);
  overflow-y: auto;
}
.verrou-boite {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--e6);
  text-align: center;
  align-items: center;
  padding: var(--e8) 0;
}
.verrou-etapes { display: flex; align-items: center; gap: var(--e2); }
.verrou-etapes i {
  width: 30px; height: 3px; border-radius: var(--pill);
  background: var(--surface-3);
  transition: background var(--tr-long) var(--doux), width var(--tr-long) var(--doux), box-shadow var(--tr-long) var(--doux);
}
.verrou-etapes i.faite { background: var(--acc-sourd); }
.verrou-etapes i.encours {
  width: 46px;
  background: var(--acc-vif);
  box-shadow: 0 0 14px var(--acc-trait);
}
.verrou h2 { font-size: var(--t-hero); letter-spacing: -.035em; }
.verrou .sous { font-size: var(--t-sous); max-width: 52ch; }
.verrou textarea.saisie { font-size: var(--t-sous); padding: var(--e4) var(--e5); border-radius: var(--r-lg); }
.orbe-hote { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.orbe-verrou {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--grad-acc);
  display: grid;
  place-items: center;
  transition: box-shadow 200ms linear, transform 200ms linear;
}
.anneau-maintien {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
}
.orbe-txt { color: var(--sur-acc); font-weight: 700; font-size: var(--t-donnee); letter-spacing: .08em; text-transform: uppercase; user-select: none; }
.decompte {
  font-size: var(--t-geant); font-weight: 750; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, var(--ink) 30%, var(--acc) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.verrou .anneau-hote::before { inset: 4%; filter: blur(18px); }
.bloc-plan {
  border-radius: var(--r-lg);
  border: 1px solid var(--bord);
  background: var(--surface);
  overflow: hidden;
}
.bloc-plan > header {
  display: flex; align-items: center; gap: var(--e3);
  padding: var(--e3) var(--e4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--bord);
}
.bloc-plan > .corps { padding: var(--e4); display: flex; flex-direction: column; gap: var(--e3); }
.groupe-plan { border-radius: var(--r-md); padding: var(--e4); display: flex; flex-direction: column; gap: var(--e3); }
.groupe-plan.groupe-inv { border-color: var(--perte-trait); background: color-mix(in srgb, var(--perte-voile) 60%, var(--fond-creux)); }
.ligne-edit { display: flex; align-items: center; gap: var(--e2); }
.ligne-edit .saisie { flex: 1; }
.saisie-titre { background: transparent; border-color: transparent; font-weight: 650; }
.saisie-titre:hover { border-color: var(--bord); }
.pl-lecture { display: flex; flex-direction: column; gap: var(--e5); }
.pl-sec { display: flex; flex-direction: column; gap: var(--e3); min-width: 0; }
.pl-sec-titre { display: flex; align-items: center; gap: var(--e3); font-size: var(--t-sous); font-weight: 650; letter-spacing: -.01em; }
.pl-sec-titre .ligne-ico { color: var(--acc); }
.pl-pile { display: flex; flex-direction: column; gap: var(--e5); min-width: 0; }
.pl-jour-grille, .pl-strat { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--e5) var(--e6); }
.pl-jour-grille > :first-child { flex: 1 1 340px; }
.pl-jour-grille > :last-child { flex: 2 1 420px; }
.pl-strat > * { flex: 1 1 280px; }
.pl-strat > :first-child { flex-grow: 1.4; }
.pl-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--e3); }
.pl-chiffre {
  display: flex; flex-direction: column; gap: var(--e1); min-width: 0;
  padding: var(--e3); border-radius: var(--r-md);
  background: var(--fond-creux); border: 1px solid var(--bord);
}
.pl-chiffre-lb { font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.35; }
.pl-chiffre-v { margin-top: auto; padding-top: var(--e1); }
.pl-chiffre-v b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pl-chiffre-v span { font-size: var(--t-donnee); color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.pl-chiffre-sous { font-size: var(--t-label); color: var(--ink-3); }
.pl-ouverts, .pl-note, .pl-rien { font-size: var(--t-donnee); line-height: 1.5; }
.pl-ouverts, .pl-rien { color: var(--ink-3); }
.pl-note { color: var(--ink-2); }
.pl-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--e2); }
.pl-liste li { display: flex; align-items: flex-start; gap: var(--e2); line-height: 1.5; }
.pl-liste li > i:first-child { flex: none; margin-top: 3px; color: var(--ink-3); }
.pl-ident { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3) var(--e5); padding-bottom: var(--e4); border-bottom: 1px solid var(--bord); }
.pl-ident-txt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--e2); font-size: var(--t-donnee); font-weight: 550; color: var(--ink-2); }
.pl-ident-txt > i { color: var(--ink-3); }
.pl-plage { padding: 3px var(--e3); border-radius: var(--pill); background: var(--fond-creux); border: 1px solid var(--bord); color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-plage b { font-weight: 650; }
.pl-instrs { display: flex; flex-wrap: wrap; gap: var(--e2); }
.pl-instr {
  display: inline-flex; align-items: center; gap: var(--e2);
  padding: 3px var(--e3) 3px 3px; border-radius: var(--pill);
  background: var(--fond-creux); border: 1px solid var(--bord); font-weight: 600; font-size: var(--t-donnee);
}
.pl-instr .instr-ico { width: 26px; height: 26px; }
.pl-instr .instr-ico.duo > .drap { width: 17px; height: 17px; }
.pl-groupe { display: flex; flex-direction: column; gap: var(--e2); }
.pl-groupe + .pl-groupe { padding-top: var(--e3); border-top: 1px solid var(--bord); }
.pl-groupe-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e1) var(--e3); font-weight: 600; }
.pl-mode { font-size: var(--t-donnee); font-weight: 450; color: var(--ink-3); }
.pl-inv .pl-liste li > i:first-child { color: var(--perte); }
.pl-inv .pl-mode { color: var(--perte); }
.pl-vague { flex: none; margin-top: 2px; color: var(--alerte); }
.pl-gestes { display: flex; flex-wrap: wrap; gap: var(--e2); }
.pl-geste {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px var(--e3);
  border-radius: var(--pill); border: 1px solid var(--bord); background: var(--fond-creux);
  font-size: var(--t-donnee); font-weight: 550; color: var(--ink-2);
}
.pl-geste > i { color: var(--ink-3); }
.pl-geste.pl-oui { background: var(--gain-voile); border-color: var(--gain-trait); color: var(--ink); }
.pl-geste.pl-oui > i { color: var(--gain); }
.pl-chaudes { color: var(--alerte); font-weight: 600; }
.pl-histo { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pl-entree { display: flex; flex-direction: column; gap: var(--e2); padding: var(--e3) var(--e4); border-radius: var(--r-md); background: var(--fond-creux); border: 1px solid var(--bord); }
.pl-entree.pl-chaude { border-color: var(--alerte-trait); }
.pl-quand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); }
.pl-date { font-weight: 600; font-size: var(--t-donnee); }
.pl-quand .pilule { gap: 4px; }
.pl-pourquoi { font-size: var(--t-donnee); color: var(--alerte); line-height: 1.5; }
.pl-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--e1); }
.pl-lignes li { display: flex; align-items: flex-start; gap: var(--e1); font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.5; }
.pl-lignes li > i { flex: none; margin-top: 3px; color: var(--ink-3); }
.pl-ou { color: var(--ink); font-weight: 600; margin-right: var(--e2); }
.pl-histo + .btn { align-self: flex-start; }
.paire { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--e2) var(--e5); align-items: baseline; }
.paire dt { font-size: var(--t-donnee); color: var(--ink-3); white-space: nowrap; }
.paire dd { font-size: var(--t-donnee); font-weight: 600; }
.etiq {
  display: inline-flex; align-items: center; gap: var(--e1);
  height: 22px; padding: 0 var(--e2) 0 var(--e3);
  border-radius: var(--pill);
  background: var(--acc-voile); color: var(--acc);
  font-size: var(--t-label); font-weight: 600;
}
.etiq button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: inherit; opacity: .6; }
.etiq button:hover { opacity: 1; background: var(--acc-trait); }
.etiq-be {
  height: 18px; padding: 0 6px; margin-right: 6px; vertical-align: 1px;
  background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--bord);
  font-size: var(--t-micro); letter-spacing: .04em;
}
.reglages-nav { margin-bottom: var(--e5); max-width: 100%; }
.reglages-nav .segments { flex-wrap: wrap; border-radius: var(--r-md); }
.reglages-nav .segments button { white-space: nowrap; }
a.btn { text-decoration: none; }
.eco-passe td { opacity: .5; }
.calc-gauche { display: flex; flex-direction: column; min-width: 0; }
.calc-saisie { gap: 0; }
.calc-bloc { display: flex; flex-direction: column; gap: var(--e4); padding: var(--e6) 0; }
.calc-bloc:first-child { padding-top: 0; }
.calc-bloc:last-child { padding-bottom: 0; }
.calc-bloc + .calc-bloc { border-top: 1px solid var(--bord); }
.calc-bloc.calc-bloc-devant { z-index: 5; }
.calc-bloc-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e3); }
.calc-bloc-tete h2 { font-size: var(--t-titre); }
.calc-entree { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--e4); }
.calc-entree > label.champ { flex: 1 1 220px; }
.calc-sens-choix { flex: none; }
.calc-sorties { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
.calc-unite { position: relative; display: block; }
.calc-unite > .saisie { padding-right: 4.4em; }
.calc-u {
  position: absolute; right: var(--e3); top: 50%; translate: 0 -50%;
  font-size: var(--t-donnee); font-weight: 600; color: var(--ink-3); pointer-events: none;
}
.calc-contrat { display: flex; flex-direction: column; gap: var(--e3); max-width: 440px; }
.calc-sens {
  padding: 3px var(--e3); border-radius: var(--pill);
  background: var(--surface-3); color: var(--ink); font-size: var(--t-label); font-weight: 700; letter-spacing: .02em;
}
.calc-alerte { display: flex; align-items: flex-start; gap: var(--e2); margin: 0; font-size: var(--t-donnee); font-weight: 600; line-height: 1.5; color: var(--alerte); }
.calc-alerte > .ico { flex: none; margin-top: 2px; }
.carte-nuit { --alerte: #ffc266; }
.instr { position: relative; }
.instr-choix {
  --anneau: var(--fond-creux);
  display: flex; align-items: center; gap: var(--e3);
  width: 100%; min-height: 62px; padding: var(--e3) var(--e4);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--fond-creux); color: var(--ink);
  font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux);
}
.instr-choix:hover { border-color: var(--bord-fort); }
.instr-choix:focus-visible, .instr-choix[aria-expanded="true"] {
  --anneau: var(--surface);
  outline: none; border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-voile);
}
.instr-choix > .ico:last-child { flex: none; color: var(--ink-3); transition: rotate var(--tr) var(--doux); }
.instr-choix[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
.instr-choix .instr-sym { font-size: 1.05rem; }
.instr-ico { position: relative; flex: none; width: 34px; height: 34px; }
.instr-ico > .drap { position: absolute; inset: 3px; }
.instr-ico.duo > .drap { inset: auto; width: 22px; height: 22px; }
.instr-ico.duo > .drap:first-child { top: 0; left: 0; }
.instr-ico.duo > .drap:last-child { right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--anneau, var(--surface-pleine)), inset 0 0 0 1px var(--bord); }
.drap {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-3) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--bord); color: var(--ink-2);
}
.drap-txt { font-size: 10px; font-weight: 700; letter-spacing: -.02em; }
.drap-logo { background-color: var(--logo-fond); }
.instr-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.instr-l1 { display: flex; align-items: center; gap: var(--e2); min-width: 0; }
.instr-badge {
  flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 var(--e2);
  border-radius: var(--pill); background: var(--acc-voile); color: var(--acc);
  font-size: var(--t-micro); font-weight: 650; white-space: nowrap;
}
.instr-sym { font-size: var(--t-corps); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.instr-nom { font-size: var(--t-label); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.instr-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: var(--t-label); color: var(--ink-3); text-align: right; }
.instr-ftmo { font-family: var(--mono); font-size: var(--t-micro); }
.instr-panneau {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  display: flex; flex-direction: column; gap: var(--e3);
  padding: var(--e3);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--surface-pleine); box-shadow: var(--verre-bord), var(--om-3);
}
html.anim .instr-panneau { animation: menu-plans-entre .22s var(--entree) both; }
.instr-cherche-zone { position: relative; }
.instr-cherche-zone > .ico { position: absolute; left: var(--e3); top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.instr-cherche-zone > .saisie { padding-left: 2.5em; }
.instr-familles { overflow-x: auto; scrollbar-width: none; }
.instr-familles::-webkit-scrollbar { display: none; }
.instr-familles .segments { flex-wrap: nowrap; }
.instr-familles .segments button { white-space: nowrap; height: 28px; padding: 0 var(--e3); }
.instr-liste { display: flex; flex-direction: column; gap: var(--e2); max-height: min(420px, 52vh); overflow-y: auto; overscroll-behavior: contain; }
.instr-groupe { display: flex; flex-direction: column; gap: 1px; }
.instr-groupe > .lb { position: sticky; top: 0; z-index: 1; padding: var(--e2) var(--e3) var(--e1); background: var(--surface-pleine); }
.instr-opt {
  display: flex; align-items: center; gap: var(--e3);
  width: 100%; padding: var(--e2) var(--e3);
  border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font-family: inherit; text-align: left; cursor: pointer;
}
.instr-opt .instr-ico { width: 30px; height: 30px; }
.instr-opt .instr-ico.duo > .drap { width: 20px; height: 20px; }
.instr-opt:hover, .instr-opt.instr-vise { --anneau: var(--surface-2); background: var(--surface-2); }
.instr-opt.instr-vise { box-shadow: inset 0 0 0 1px var(--bord-fort); }
.instr-opt.instr-plan { box-shadow: inset 3px 0 0 var(--acc); }
.instr-opt.instr-plan.instr-vise { box-shadow: inset 3px 0 0 var(--acc), inset 0 0 0 1px var(--bord-fort); }
.instr-opt[aria-selected="true"] { background: var(--acc-voile); }
.instr-vide { margin: 0; padding: var(--e4) var(--e3); font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.5; }
.instr-pied { margin: 0; padding: var(--e3) var(--e2) 0; border-top: 1px solid var(--bord); font-size: var(--t-label); color: var(--ink-3); line-height: 1.5; }
.calc-res { gap: var(--e3); }
@media (min-width: 1101px) { .colonnes.calc > .calc-res { position: sticky; top: calc(var(--entete) + var(--e5)); } }
.calc-res-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); min-height: 30px; }
.calc-lot { font-size: 3.4rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.calc-lot-u { font-size: .36em; font-weight: 600; letter-spacing: 0; opacity: .65; }
.calc-res-instr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); margin: 0; font-size: var(--t-donnee); font-weight: 650; }
.calc-res-instr > .faible { font-weight: 500; }
.carte-nuit .calc-sens { background: rgba(255,255,255,.12); color: #eceafa; }
.calc-lignes { display: flex; flex-direction: column; margin: var(--e2) 0 0; border-top: 1px solid rgba(255,255,255,.10); }
.calc-lignes > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e4); padding: var(--e3) 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.calc-lignes dt { font-size: var(--t-donnee); }
.calc-lignes dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: var(--t-corps); font-weight: 650; }
.calc-lignes dd small { font-size: var(--t-label); font-weight: 500; }
.calc-groupe { display: flex; flex-direction: column; gap: var(--e1); margin-top: var(--e3); }
.calc-groupe > .calc-lignes { margin-top: 0; }
.calc-pv { --pv-risque: #c4373f; --pv-cible: #2aa97a; --pv-anneau: #171930; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e4); height: 148px; margin-top: var(--e2); }
:root[data-theme="jour"] .calc-pv { --pv-anneau: #26195e; }
.calc-pv-zones { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-pv-zone { flex-basis: 0; min-height: 0; display: grid; place-items: center; border-radius: 6px; font-size: var(--t-donnee); font-weight: 650; color: #eceafa; }
.calc-pv-perte { background: color-mix(in srgb, var(--pv-risque) 26%, #13152a); box-shadow: inset 0 0 0 1.5px var(--pv-risque); }
.calc-pv-gain { background: color-mix(in srgb, var(--pv-cible) 26%, #13152a); box-shadow: inset 0 0 0 1.5px var(--pv-cible); }
.calc-pv-vide { border: 1.5px dashed rgba(255,255,255,.22); color: #a9a6c8; font-weight: 500; }
.calc-pv-ligne { position: absolute; left: 0; right: calc(var(--e4) * -1); height: 2px; margin-top: -1px; border-radius: 1px; background: #f4f2ff; }
.calc-pv-ligne::after { content: ''; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: #f4f2ff; transform: translateY(-50%); box-shadow: 0 0 0 2px var(--pv-anneau); }
.calc-pv-prix { position: relative; padding-left: 10px; }
.calc-pv-gabarit { display: flex; align-items: baseline; gap: 6px; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; }
.calc-pv-n { position: absolute; left: 10px; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.calc-pv-n b, .calc-pv-gabarit b { font-size: var(--t-corps); font-weight: 650; }
.calc-pv-n .sous, .calc-pv-gabarit .sous { font-size: var(--t-label); }
.calc-pv-n-haut { top: -3px; }
.calc-pv-n-bas { bottom: -3px; }
.calc-pv-entree { transform: translateY(-50%); }
.calc-note { margin: var(--e3) 0 0; font-size: var(--t-label); line-height: 1.5; }
.calc-barre-hote { display: none; }
@media (max-width: 1100px) {
  .calc-barre-hote { display: block; position: sticky; bottom: 0; height: 0; z-index: 20; }
  .calc-barre {
    position: absolute; left: 0; right: 0; bottom: var(--e3);
    display: flex; align-items: center; justify-content: space-between; gap: var(--e3);
    padding: var(--e3) var(--e3) var(--e3) var(--e5);
    border-radius: var(--r-lg);
    transition: opacity var(--tr) var(--doux), translate var(--tr) var(--doux), visibility var(--tr);
  }
  body.calc-res-vu .calc-barre, .calc-barre.calc-barre-cachee { opacity: 0; translate: 0 10px; visibility: hidden; pointer-events: none; }
}
.calc-barre-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-barre-lot { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.calc-barre-txt > .sous { font-size: var(--t-label); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outil-sq-ligne { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: var(--e3); min-height: 30px; }
.outil-sq-barre { height: 12px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--bord); overflow: hidden; }
.outil-sq-barre i { display: block; width: 50%; height: 100%; background: var(--bord-net); }
.somme { font-size: 2.3rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.signal-titre { font-size: var(--t-sect); letter-spacing: -.03em; }
.chaleur { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; padding-bottom: var(--e1); }
.chaleur-ligne { display: grid; grid-template-columns: 40px; grid-auto-flow: column; grid-auto-columns: minmax(46px, 1fr); gap: 4px; align-items: stretch; }
.chaleur-tete { margin-bottom: 2px; }
.chaleur-h { font-size: var(--t-micro); color: var(--ink-4); text-align: center; letter-spacing: .04em; align-self: end; }
.chaleur-j, .chaleur-tete > span:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-pleine); }
.chaleur-j { align-self: stretch; display: flex; align-items: center; font-size: var(--t-micro); border-radius: var(--r-xs); }
.chaleur-case {
  --t: 50; --a: 40%;
  position: relative; min-height: 46px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: var(--t-label); line-height: 1; color: var(--ink);
  border: 1px solid var(--bord);
  background: color-mix(in srgb, color-mix(in srgb, var(--gain) calc(var(--t) * 1%), var(--perte)) var(--a), transparent);
  transition: transform var(--tr) var(--doux), box-shadow var(--tr) var(--doux);
}
.chaleur-case:not(.chaleur-vide):hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--om-2); z-index: 2; }
.chaleur-case b { font-weight: 700; }
.chaleur-case i { font-style: normal; font-size: var(--t-micro); color: var(--ink-2); }
.chaleur-vide { background: var(--surface); color: var(--ink-4); font-size: var(--t-micro); }
:root[data-theme="nuit"] .chaleur-case:not(.chaleur-vide) {
  background: color-mix(in srgb, color-mix(in srgb, var(--gain) calc(var(--t) * 1%), var(--perte)) calc(var(--a) * .7), transparent);
}
.chaleur-legende { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2); margin-top: var(--e3); }
.chaleur-legende .chaleur-case { min-height: 14px; width: 28px; border-radius: var(--r-xs); }
@media (max-width: 1100px) {
  .colonnes { grid-template-columns: minmax(0, 1fr); }
  .colonnes-libres { columns: 1; }
  .bandeau { padding: var(--e10) var(--e8); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .zone { grid-column: 1; }
  .rail {
    transform: translateX(-100%);
    transition: transform 320ms var(--entree);
    box-shadow: var(--om-3);
    width: min(300px, 86vw);
    border-right: 0;
  }
  body.tiroir .rail { transform: none; }
  body.tiroir::after {
    content: "";
    position: fixed; inset: 0; z-index: 35;
    background: rgba(4,5,12,.55);
    backdrop-filter: blur(3px);
  }
  .entete { padding: 0 var(--e3); }
  .entete-barre { padding: 0 var(--e2) 0 var(--e2); gap: var(--e2); }
  .page { padding: var(--e5) var(--e3) var(--e20); gap: var(--e5); }
  .bandeau { grid-template-columns: minmax(0, 1fr); padding: var(--e8) var(--e5); }
  .boite { padding: var(--e6); }
}
@media (max-width: 560px) {
  :root { --t-sect: 1.5rem; --t-hero: 1.9rem; }
  .page { padding: var(--e4) var(--e3) var(--e20); }
  .entete-fil > .sous { display: none; }
  .entete-fil > .entete-plan { height: 32px; min-width: 40px; justify-content: center; padding: 0 var(--e2); }
  .entete-fil > .entete-plan > span { display: none; }
  .entete-fil > .entete-compte { height: 32px; min-width: 40px; justify-content: center; padding: 0 var(--e2); }
  .entete-fil > .entete-compte > span { display: none; }
  .entete-droite select.saisie { display: none; }
  .entete-droite .entete-check span { display: none; }
  .entete-droite .entete-check { width: 40px; padding: 0; }
  .carte { padding: var(--e5) var(--e4); border-radius: var(--r-lg); }
  .grille, .grille-2, .grille-4 { grid-template-columns: minmax(0, 1fr); }
  .tuile .val { font-size: 1.6rem; }
  .tuile .val.grand { font-size: 2.1rem; }
  .tete { align-items: flex-start; }
  .tete-act { width: 100%; }
  .orbe-hote { width: 190px; height: 190px; }
  .frise-ligne { grid-template-columns: 46px minmax(0, 1fr); }
  .frise-heures { padding-left: 58px; }
  .toasts { bottom: var(--e3); width: calc(100vw - var(--e6)); }
  .bandeau { border-radius: var(--r-xl); padding: var(--e6) var(--e5); }
  .etat-carte { flex-direction: column; align-items: flex-start; }
  .voyant-droite { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: var(--e2); text-align: left; }
  .voyant-verdict { font-size: min(1.9rem, 7.5vw); white-space: nowrap; }
  .voyant { padding: var(--e4); }
  .voyant-rangee { flex-wrap: wrap; gap: var(--e3) var(--e4); }
  .voyant-droite { gap: var(--e5); flex-wrap: wrap; }
  .voyant-chiffre { flex-direction: row; align-items: baseline; gap: var(--e2); }
  .voyant-rr { font-size: 1.25rem; }
  .decision { padding: var(--e2) var(--e3) var(--e3); border-radius: var(--r-lg); gap: var(--e2); }
  .decision-haut { gap: var(--e2); }
  .decision-etat { font-size: var(--t-corps); }
  .decision-actions { width: 100%; margin-left: 0; }
  .decision-actions .btn { flex: 1 1 0; min-width: 0; height: 34px; padding: 0 var(--e2); font-size: var(--t-micro); white-space: normal; line-height: 1.15; text-align: center; }
  .decision-actions .btn-primaire { flex-basis: 100%; height: 46px; font-size: var(--t-corps); order: 2; white-space: nowrap; }
}
@media (min-width: 900px) {
  .table-journal { overflow: clip; }
  .table-journal .table-defile { overflow-x: clip; }
  .table-journal thead th {
    top: calc(var(--entete) + 2 * var(--entete-marge));
    background: var(--verre);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }
}
.tj-barre { display: none; }
.table-journal { --tj-ombre: rgba(0,0,0,.42); }
:root[data-theme="jour"] .table-journal { --tj-ombre: rgba(58,50,99,.16); }
@container journal (min-width: 560px) {
  .table-journal.tj-defile .table-defile { overflow-x: auto; scrollbar-width: none; }
  .table-journal.tj-defile .table-defile::-webkit-scrollbar { display: none; }
  .table-journal.tj-defile thead th { top: 0; }
  .table-journal.tj-defile :is(th, td):is(.tj-c-quand, .tj-c-instr) {
    position: sticky; z-index: 2;
    background: linear-gradient(var(--surface), var(--surface)), var(--surface-pleine);
  }
  .table-journal.tj-defile :is(th, td).tj-c-quand { left: 0; }
  .table-journal.tj-defile :is(th, td).tj-c-instr { left: var(--tj-g2, 0px); box-shadow: inset -1px 0 0 var(--bord); }
  .table-journal.tj-defile.tj-bord-g :is(th, td).tj-c-instr { box-shadow: inset -1px 0 0 var(--bord), 10px 0 12px -10px var(--tj-ombre); }
  .table-journal.tj-defile thead th:is(.tj-c-quand, .tj-c-instr) {
    z-index: 3; background: linear-gradient(var(--surface-2), var(--surface-2)), var(--surface-pleine);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .table-journal.tj-defile tbody tr:hover > td:is(.tj-c-quand, .tj-c-instr) {
    background: linear-gradient(var(--surface-2), var(--surface-2)), var(--surface-pleine);
  }
  .tj-barre {
    display: block; position: sticky; bottom: var(--e2); z-index: 4;
    height: 14px; margin-top: var(--e2); overflow-x: auto; overflow-y: hidden;
    border-radius: var(--pill); background: var(--verre); box-shadow: inset 0 0 0 1px var(--bord);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    scrollbar-width: thin; scrollbar-color: var(--bord-net) transparent;
  }
  .tj-barre:hover { scrollbar-color: var(--ink-4) transparent; }
  .tj-barre-long { width: var(--tj-long, 100%); height: 1px; }
}
@container journal (min-width: 640px) {
  .table-journal.tj-defile :is(th, td):is(.tj-c-r, .tj-c-res) {
    position: sticky; z-index: 2;
    background: linear-gradient(var(--surface), var(--surface)), var(--surface-pleine);
    box-shadow: inset 1px 0 0 var(--bord);
  }
  .table-journal.tj-defile :is(th, td).tj-c-res { right: 0; }
  .table-journal.tj-defile :is(th, td).tj-c-r { right: var(--tj-d2, 0px); }
  .table-journal.tj-defile.tj-bord-d :is(th, td):is(.tj-c-r, .tj-c-res) { box-shadow: inset 1px 0 0 var(--bord), -10px 0 12px -10px var(--tj-ombre); }
  .table-journal.tj-defile :is(th.tj-c-r + th.tj-c-res, td.tj-c-r + td.tj-c-res) { box-shadow: none; }
  .table-journal.tj-defile thead th:is(.tj-c-r, .tj-c-res) {
    z-index: 3; background: linear-gradient(var(--surface-2), var(--surface-2)), var(--surface-pleine);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .table-journal.tj-defile tbody tr:hover > td:is(.tj-c-r, .tj-c-res) {
    background: linear-gradient(var(--surface-2), var(--surface-2)), var(--surface-pleine);
  }
}
@container journal (max-width: 559px) {
  .table-journal { background: transparent; border: 0; border-radius: 0; }
  .table-journal .table-defile { overflow: visible; }
  .table-journal table, .table-journal tbody { display: block; }
  .table-journal thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .table-journal tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "ico ins   arg arg"
      "ico quand r   pct"
      "dec dec   dec dec";
    align-items: center;
    gap: 3px var(--e2);
    padding: var(--e3) var(--e4);
    margin-bottom: var(--e2);
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--bord);
  }
  .table-journal tr:last-child { margin-bottom: 0; }
  .table-journal td { display: block; padding: 0; border: 0; min-width: 0; }
  .table-journal :is(td.tj-c-instr, .tj-instr, td.tj-c-r, td.tj-c-res) { display: contents; }
  .table-journal .tj-instr .instr-ico { grid-area: ico; }
  .table-journal .tj-instr-txt { grid-area: ins; display: flex; align-items: baseline; gap: var(--e2); min-width: 0; }
  .table-journal .tj-instr-txt > .tj-ins { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-journal .tj-instr-txt > .tj-sous { flex: none; margin-top: 0; }
  .table-journal td.tj-c-quand { grid-area: quand; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: var(--t-label); color: var(--ink-2); }
  .table-journal td.tj-c-quand > .tj-f { margin-top: 0; font-size: inherit; white-space: nowrap; }
  .table-journal td.tj-c-quand > .tj-f.tj-heures { white-space: normal; }
  .table-journal td.tj-c-quand > .tj-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .table-journal .tj-f.tj-arg { grid-area: arg; justify-self: end; font-size: var(--t-corps); }
  .table-journal .tj-f.tj-r { grid-area: r; justify-self: end; font-size: var(--t-label); color: var(--ink); }
  .table-journal .tj-f.tj-pct { grid-area: pct; justify-self: end; margin-top: 0; font-size: var(--t-label); color: var(--ink); }
  .table-journal .tj-f:is(.tj-r, .tj-rr, .tj-pct).tj-vide { display: none; }
  .table-journal .tj-f.tj-rr { grid-column: 1 / -1; justify-self: start; margin-top: 0; font-size: var(--t-label); color: var(--ink); text-align: left; }
  .table-journal td.tj-c-dec { grid-area: dec; margin-top: 3px; }
  .table-journal td.tj-c-plus {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--e4);
    font-size: var(--t-label); text-align: left;
  }
  .table-journal td.tj-c-plus.tj-c-vide, .table-journal td.tj-c-plus > .tj-vide { display: none; }
  .table-journal td.tj-c-plus > .tj-f { margin-top: 0; min-width: 0; max-width: 100%; font-size: inherit; color: var(--ink); }
  .table-journal td.tj-c-plus > .tj-f::before {
    content: attr(data-lb); margin-right: 6px;
    font-size: var(--t-micro); font-weight: 700; letter-spacing: var(--suivi-label); text-transform: uppercase; color: var(--ink-2);
  }
  .table-journal tr.cliquable td:first-child, .table-journal tr.cliquable:hover td:first-child { box-shadow: none; }
  .table-journal tr.cliquable:hover { background: var(--surface-2); border-color: var(--bord-fort); }
}
.table-journal .tj-f.gain { color: var(--gain); }
.table-journal .tj-f.perte { color: var(--perte); }
.table-journal .tj-f.tj-hors { color: var(--alerte); }
@media (max-width: 640px) {
  .ligne-large { flex-wrap: wrap; }
  .ligne-large .txt { flex-basis: calc(100% - 32px - var(--e3)); }
  .ligne-large .segments { margin-left: calc(32px + var(--e3)); }
}
@media (hover: none) {
  .tilt { transform: none !important; }
  .tilt-lustre::after, .lueur-curseur::before { display: none; }
}
@media (min-width: 2000px) {
  .bord-maintenant { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .bord-principal, .bord-cote { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
  .bord-trente { columns: 3; }
  .bandeau { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .bandeau-jour { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--e4) var(--e8); }
  .bandeau-jour > .lb { grid-column: 1 / -1; }
}
.sg-grille { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
.sg-gauche, .sg-droite { display: contents; }
@media (width < 2000px) {
  .sg-grille [data-k="sg-signaux"], .sg-grille [data-k="sg-aucun"] { order: 1; }
  .sg-grille [data-k="sg-tient"] { order: 2; }
  .sg-grille [data-k="sg-vig"] { order: 3; }
  .sg-grille [data-k="sg-carte"] { order: 4; }
}
@media (min-width: 2000px) {
  .sg-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
  .sg-grille > .grille-4 { grid-column: 1 / -1; }
  .sg-gauche, .sg-droite { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
  .sg-gauche { grid-column: 1 / span 4; }
  .sg-droite { grid-column: 5 / span 2; }
}
.sg-signaux { display: grid; gap: var(--e5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.sg-signal .sg-gestes { margin-top: auto; }
.sg-signaux > .sg-ouvert { grid-column: 1 / -1; }
@media (min-width: 1800px) {
  .sg-ouvert { display: grid; grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); column-gap: var(--e6); row-gap: var(--e4); align-content: start; }
  .sg-ouvert > * { grid-column: 1; }
  .sg-ouvert > .sg-trades { grid-column: 2; grid-row: 1 / span 6; padding: 0; }
}
.sg-surveille { box-shadow: var(--verre-bord), var(--om-2), inset 0 0 0 1px var(--gain-trait); }
.sg-barre { display: flex; flex-direction: column; gap: var(--e2); }
.sg-barre-mots { font-size: var(--t-donnee); color: var(--ink-2); }
.sg-barre-mots b { font-weight: 700; }
.sg-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
.sg-pose { display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 4px 10px; white-space: normal; }
.sg-voir { margin-left: auto; }
.sg-trades { padding-bottom: 0; }
.sg-vigs { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sg-vig {
  display: flex; flex-direction: column; gap: var(--e3); min-width: 0;
  padding: var(--e4); border-radius: var(--r-md); border: 1px solid var(--bord); background: var(--surface);
}
.sg-vig > .btn { align-self: flex-start; }
.sg-vig-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2); }
.sg-vig-nom { font-weight: 650; }
.sg-vig-comp { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--e3); }
.sg-vig-moment { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-vig-moment > b { font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.15; }
.sg-vig-moment > .faible { font-size: var(--t-label); }
.sg-vig-fleche { display: flex; color: var(--ink-3); }
.sg-vig-pied { font-size: var(--t-label); }
.chaleur-vigil { outline: 1.5px dashed var(--acc); outline-offset: -4px; }
.chaleur-leg-vigil { min-height: 14px; width: 28px; }
.chaleur-case .chaleur-etoile { position: absolute; top: 2px; right: 3px; display: flex; line-height: 1; }
.chaleur-case .chaleur-etoile i { color: var(--ink); }
.chaleur-leg-etoile { display: inline-flex; color: var(--ink); }
.chaleur-leg-note { margin-left: auto; }
.an-ligne.mm-ligne { grid-template-columns: minmax(9rem, 1.7fr) minmax(4rem, 1.3fr) 3.6rem 5.2rem 4.8rem 4.8rem; }
.mm-ligne > :nth-child(5), .mm-ligne > :nth-child(6) { text-align: right; }
.mm-k { row-gap: 2px; }
.mm-k .an-k-nom { white-space: normal; overflow: visible; }
.mm-dim { flex-basis: 100%; font-size: var(--t-micro); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.mm-n-court { display: none; }
.mm-tag { display: inline-flex; align-items: center; gap: 4px; }
.mm-r { font-weight: 650; white-space: nowrap; }
.mm-fort { background: linear-gradient(90deg, var(--gain-voile), transparent 70%); }
@container anl (max-width: 600px) {
  .an-ligne.mm-ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k pct" "barre barre" "plan res"; column-gap: var(--e4); }
  .mm-ligne > .an-k { grid-area: k; }
  .mm-ligne > .an-barre { grid-area: barre; }
  .mm-ligne > .an-pct { grid-area: pct; }
  .mm-ligne > .an-n, .mm-ligne.an-tetes { display: none; }
  .mm-ligne > .mm-r:nth-child(5) { grid-area: plan; text-align: left; }
  .mm-ligne > .mm-r:nth-child(6) { grid-area: res; }
  .mm-r::before { content: attr(data-lb) " "; font-weight: 400; color: var(--ink-3); }
  .mm-n-court { display: inline; }
}
.rv-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
.rv-nom-court { display: none; }
@media (max-width: 640px) {
  .rv-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .rv-nav [data-k="rv-ici"] { grid-column: 1 / -1; justify-self: start; }
  .rv-nom-long { display: none; }
  .rv-nom-court { display: inline; }
}
.rv-nav-titre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); min-width: 0; padding: 0 var(--e1); }
.rv-nav-nom { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
.rv-grille { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
.rv-gauche, .rv-droite { display: contents; }
@media (width < 2000px) {
  .rv-grille [data-k="rv-bilan"] { order: 1; }
  .rv-grille [data-k="rv-voulu"] { order: 2; }
  .rv-grille [data-k="rv-relire"] { order: 3; }
  .rv-grille [data-k="rv-questions"] { order: 4; }
  .rv-grille [data-k="rv-engagement"] { order: 5; }
  .rv-grille [data-k="rv-histo"] { order: 6; }
}
@media (min-width: 2000px) {
  .rv-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
  .rv-gauche, .rv-droite { display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
  .rv-gauche { grid-column: 1 / span 4; }
  .rv-droite { grid-column: 5 / span 2; }
}
.rv-familles { display: grid; gap: var(--e5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.rv-famille { display: flex; flex-direction: column; gap: var(--e2); min-width: 0; }
.rv-chiffres { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.rv-chiffres .pc-chiffre > b { font-size: 1.25rem; }
.rv-jours { display: flex; flex-direction: column; gap: var(--e3); margin-top: var(--e2); }
.rv-jours-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--e1) var(--e3); font-size: var(--t-label); }
.rv-v-semaine { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rv-r { font-size: var(--t-micro); font-weight: 650; color: var(--ink-2); white-space: nowrap; }
@container pc (max-width: 400px) { .rv-r { display: none; } }
.rv-citation { margin: 0; padding: var(--e3) var(--e4); border-left: 3px solid var(--acc); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface); font-size: var(--t-corps); font-weight: 600; }
.rv-tenu { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
.rv-vig { display: flex; align-items: flex-start; gap: var(--e2); margin: 0; font-size: var(--t-label); color: var(--ink-2); }
.rv-vig > svg { flex: none; margin-top: 2px; color: var(--acc); }
.rv-relire td.num, .rv-histo td.num, .sg-trades td.num { white-space: nowrap; }
.rv-groupe > th { padding-top: var(--e3); text-align: left; font-size: var(--t-micro); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rv-histo tr.rv-ici > td { background: var(--acc-voile); }
.rv-eng { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-col-eng { min-width: 14rem; }
.rv-questions { display: grid; gap: var(--e4) var(--e5); align-items: start; }
.rv-questions > * { min-width: 0; }
@media (min-width: 1280px) and (width < 2000px) {
  .rv-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pile-2.check-prix { display: grid; gap: var(--e3) var(--e4); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.pile-2.check-prix.ck-lots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.ck-grille { display: grid; gap: var(--e6); grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "e1" "e2" "e3" "note"; }
.ck-e1 { grid-area: e1; }
.ck-e2 { grid-area: e2; }
.ck-e3 { grid-area: e3; }
.ck-note { grid-area: note; }
@media (min-width: 1000px) {
  .ck-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "e1 e2" "e3 e3" "note note"; }
}
@media (min-width: 2000px) {
  .ck-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "e1 e2 note" "e3 e3 e3"; }
}
.ck-groupes { display: grid; gap: var(--e4); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.champ-auto .saisie { color: var(--acc); }
.ck-e2 > .aide { margin: 0; font-size: var(--t-label); color: var(--ink-3); line-height: 1.5; }
.ck-risque { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--e2);
  font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.55; }
.ck-r-ligne .btn { margin-left: var(--e2); vertical-align: middle; }
.ck-r-montant { color: var(--ink); }
.ck-r-trop { color: var(--perte); }
.comptes-bas { display: grid; gap: var(--e6); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); }
@media (min-width: 2000px) {
  .colonnes.calc { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .calc-saisie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-bloc, .calc-bloc:first-child, .calc-bloc:last-child { padding: 0 var(--e6); }
  .calc-bloc:first-child { padding-left: 0; }
  .calc-bloc:last-child { padding-right: 0; }
  .calc-bloc + .calc-bloc { border-top: 0; border-left: 1px solid var(--bord); }
}
.carte-tete .sous, .carte > p.sous { max-width: 120ch; }
.reglages-section.donnees-cartes { display: grid; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(640px, calc(50% - var(--e5)))), 1fr)); }
.pile-2.donnees-boutons { flex-flow: row wrap; }
.donnees-boutons > .btn-plein { width: auto; flex: 1 1 auto; min-width: 0; }
.pile-2.apparence-lignes { display: grid; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); }
.reglages-section.reglages-grille { display: grid; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.voyant-place { display: contents; }
.voyant-synchro {
  flex: none; width: 30px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: none; color: var(--ink-3); font-size: 17px; cursor: pointer;
  transition: color .2s var(--entree), background .2s var(--entree);
}
.voyant-synchro:hover { color: var(--ink); }
.voyant-synchro:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.voyant-synchro.alerte { width: 36px; color: var(--alerte); background: var(--alerte-voile); box-shadow: inset 0 0 0 1px var(--alerte-trait); }
@media (max-width: 420px) {
  .voyant-synchro:not(.alerte) { display: none; }
  .entete-droite:has(.voyant-synchro.alerte) .bascule-theme { display: none; }
}
@media (max-width: 379px) {
  .entete-droite .bascule-theme { display: none; }
}
html.discret .champ-argent .saisie:not(:focus),
html.discret .champ-lot .saisie:not(:focus),
html.discret .saisie.champ-argent:not(:focus),
html.discret .saisie.champ-lot:not(:focus),
html.discret .mvt-montant .saisie:not(:focus) { color: transparent; text-shadow: 0 0 8px var(--ink-2); }
@media print {
  .aurore, .grain::after, .rail, .entete, .toasts, .tete-act { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .zone { grid-column: 1; }
  body, html { background: #fff; color: #000; }
  .carte { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
.sess-marque {
  flex: none; display: inline-block; box-sizing: border-box;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--sc, var(--sess-ardoise));
  background: var(--surface-3) center / cover no-repeat; background-clip: padding-box;
}
.sess-marque.sans-drap { border: 5px solid transparent; background-color: var(--sc, var(--sess-ardoise)); }
.sess-txt { display: inline-flex; align-items: center; gap: var(--e2); min-width: 0; max-width: 100%; vertical-align: middle; }
.sess-marques { display: inline-flex; flex: none; }
.sess-marques > .sess-marque + .sess-marque { margin-left: -6px; }
.sess-txt .sess-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frise-ligne { grid-template-columns: 120px minmax(0, 1fr); }
.frise-heures { padding-left: calc(120px + var(--e3)); }
.frise-lb { display: flex; align-items: center; gap: var(--e2); min-width: 0; font-size: var(--t-label); font-weight: 600; color: var(--ink-2); }
.frise-lb > .sess-marque { width: 18px; height: 18px; }
.frise-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frise-toi { color: var(--acc); text-transform: uppercase; letter-spacing: var(--suivi-label); padding-left: 26px; }
@media (max-width: 560px) {
  .frise-ligne { grid-template-columns: 96px minmax(0, 1fr); }
  .frise-heures { padding-left: calc(96px + var(--e3)); }
}
.jour-places .sess-txt { gap: 6px; }
.jour-places .sess-marque { width: 18px; height: 18px; }
.sess-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); gap: var(--e3); align-items: start; }
.sess-ligne {
  display: flex; flex-direction: column; gap: var(--e2);
  padding: var(--e3); border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--bord);
}
.sess-ligne { position: relative; }
.sess-ligne.ouverte { z-index: 3; }
.carte > .sess-liste:has(.sess-ligne.ouverte) { z-index: 2; }
.carte:has(.sess-pop), .carte:has(.hm-panneau) { z-index: 5; }
.sess-haut { position: relative; display: flex; align-items: center; gap: var(--e2); flex-wrap: wrap; }
.sess-haut > .sess-nom-champ { flex: 1 1 150px; min-width: 0; }
.sess-heures { display: inline-flex; align-items: center; gap: var(--e2); color: var(--ink-3); font-size: var(--t-label); }
.sess-pied { display: flex; align-items: center; flex-wrap: wrap; gap: var(--e2) var(--e3); font-size: var(--t-label); color: var(--ink-2); line-height: 1.5; }
.sess-ville { display: inline-flex; align-items: center; gap: var(--e2); }
.sess-marque-zone { position: relative; flex: none; }
.sess-marque-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--bord); cursor: pointer;
  transition: box-shadow var(--tr) var(--doux);
}
.sess-marque-btn:hover { box-shadow: inset 0 0 0 1px var(--bord-fort); }
.sess-marque-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 4px var(--acc-voile); }
.sess-marque-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sess-marque-btn > .sess-marque { width: 24px; height: 24px; }
.sess-marque-btn > .sess-marque.sans-drap { border-width: 6px; }
@media (max-width: 560px) {
  .sess-haut > .sess-nom-champ { flex-basis: 0; }
  .sess-haut > .btn-carre { order: 1; }
  .sess-heures { order: 2; flex-basis: 100%; }
}
.sess-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
.sess-actions > .faible { font-size: var(--t-label); }
.sess-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  width: min(360px, calc(100vw - 48px));
  display: flex; flex-direction: column; gap: var(--e3); padding: var(--e3);
  border-radius: var(--r-lg); background: var(--surface-pleine); border: 1px solid var(--bord-fort); box-shadow: var(--om-3);
}
html.anim .sess-pop { animation: menu-plans-entre .22s var(--entree) both; }
.sess-pop-bloc { display: flex; flex-direction: column; gap: var(--e2); }
.sess-couleurs { display: flex; flex-wrap: wrap; gap: var(--e2); }
.sess-teinte {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  background: var(--sc); box-shadow: inset 0 0 0 1px var(--bord);
  transition: box-shadow var(--tr) var(--doux);
}
.sess-teinte[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface-pleine), 0 0 0 4px var(--sc); }
.sess-teinte:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.sess-drapeaux {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px;
  max-height: 200px; overflow-y: auto; overscroll-behavior: contain;
}
.sess-drap-btn { display: grid; place-items: center; height: 38px; border-radius: var(--r-sm); cursor: pointer; }
.sess-drap-btn:hover { background: var(--surface-3); }
.sess-drap-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.sess-drap-btn[aria-pressed="true"] { background: var(--acc-voile); box-shadow: inset 0 0 0 1px var(--acc-trait); }
.sess-drap-btn > .drap { width: 24px; height: 24px; }
.sess-drap-btn.sess-sans { font-size: var(--t-micro); font-weight: 600; color: var(--ink-2); }
.sess-pop .faible { font-size: var(--t-label); }
.hm { display: inline-flex; flex: none; }
.hm-choix {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 var(--e2) 0 var(--e3);
  border-radius: var(--r-md); border: 1px solid var(--bord);
  background: var(--fond-creux); color: var(--ink);
  font-family: inherit; font-size: var(--t-donnee); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  cursor: pointer;
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux);
}
.hm-choix > .ico { flex: none; color: var(--ink-3); }
.hm-choix > .ico:last-child { transition: rotate var(--tr) var(--doux); }
.hm-choix:hover { border-color: var(--bord-fort); }
.hm-choix:focus-visible, .hm-choix[aria-expanded="true"] {
  outline: none; border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-voile);
}
.hm-choix[aria-expanded="true"] > .ico { color: var(--acc); }
.hm-choix[aria-expanded="true"] > .ico:last-child { rotate: 180deg; }
.hm-choix:disabled { background: transparent; border-style: dashed; color: var(--ink-2); cursor: not-allowed; }
.hm-choix:disabled:hover { border-color: var(--bord); }
.hm-panneau {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: min(20rem, 100%);
  display: flex; flex-direction: column; gap: var(--e3); padding: var(--e3);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--surface-pleine); box-shadow: var(--verre-bord), var(--om-3);
  color: var(--ink); font-size: var(--t-corps); font-weight: 400; text-align: left;
}
html.anim .hm-panneau { animation: menu-plans-entre .22s var(--entree) both; }
.hm-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2) var(--e3); }
.hm-heures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.hm-quarts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding-top: var(--e2); border-top: 1px solid var(--bord); }
.hm-case {
  height: 34px; min-width: 0; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink); font-family: inherit; font-size: var(--t-donnee); font-weight: 600; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background var(--tr-vif) var(--doux);
}
.hm-case:hover { background: var(--surface-2); }
.hm-case:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.hm-case[aria-pressed="true"] { background: var(--acc); color: var(--sur-acc); }
.hm-case[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
.plage-ajouts { display: flex; flex-wrap: wrap; gap: var(--e2); }
.plage-ajout { gap: var(--e2); padding-left: var(--e2); }
.plage-ajout > .sess-marque { width: 18px; height: 18px; }
.plage-ligne { display: flex; flex-direction: column; gap: 4px; }
.plage-ligne > .ligne-edit { position: relative; }
.plage-ligne.ouverte > .ligne-edit { z-index: 3; }
.plage-ligne > .ligne-edit > .sess-marque { margin: 0 2px; }
.plage-heures { display: inline-flex; flex: none; align-items: center; gap: var(--e2); color: var(--ink-3); font-size: var(--t-label); }
.plage-note { padding-left: 2px; font-size: var(--t-label); color: var(--ink-2); }
@media (max-width: 560px) {
  .plage-ligne > .ligne-edit { flex-wrap: wrap; }
  .plage-ligne > .ligne-edit > .btn-carre { order: 1; }
  .plage-heures { order: 2; flex-basis: 100%; }
}
.dr { position: relative; display: inline-flex; min-width: 0; max-width: 100%; vertical-align: middle; }
.dr-champ > .dr { display: flex; }
.dr-choix, .dj-choix {
  --anneau: var(--fond-creux);
  display: inline-flex; align-items: center; gap: var(--e2); width: 100%; min-width: 0;
  min-height: 40px; padding: var(--e1) var(--e3);
  border-radius: var(--r-md); border: 1px solid var(--bord);
  background: var(--fond-creux); color: var(--ink);
  font: inherit; font-size: var(--t-corps); text-align: left; cursor: pointer;
  transition: border-color var(--tr-vif) var(--doux), background var(--tr-vif) var(--doux), box-shadow var(--tr) var(--doux);
}
.dr-choix:hover, .dj-choix:hover { border-color: var(--bord-fort); }
.dr-choix:focus-visible, .dr-choix[aria-expanded="true"],
.dj-choix:focus-visible, .dj-choix[aria-expanded="true"] {
  --anneau: var(--surface);
  outline: none; border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-voile);
}
.dr-choix > .ico, .dj-choix > .ico { flex: none; color: var(--ink-3); }
.dr-choix > .ico:last-child, .dj-choix > .ico:last-child { margin-left: auto; transition: rotate var(--tr) var(--doux); }
.dr-choix[aria-expanded="true"] > .ico:last-child, .dj-choix[aria-expanded="true"] > .ico:last-child { color: var(--acc); rotate: 180deg; }
.dr-choix:disabled, .dj-choix:disabled { background: transparent; border-style: dashed; color: var(--ink-2); cursor: not-allowed; }
.dr-choix:disabled:hover, .dj-choix:disabled:hover { border-color: var(--bord); }
.dr-val, .dj-val { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-choix > .dr-droite, .dj-choix > .dj-droite { margin-left: auto; }
.dr-choix > .dr-droite + .ico:last-child, .dj-choix > .dj-droite + .ico:last-child { margin-left: 0; }
.dr-petit > .dr-choix { min-height: 32px; padding: 2px var(--e2) 2px var(--e3); font-size: var(--t-label); }
.dr-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; margin-left: var(--dr-dx, 0px);
  min-width: max(100%, 15rem); width: max-content; max-width: min(26rem, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: var(--e2); padding: var(--e2);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--surface-pleine); box-shadow: var(--verre-bord), var(--om-3);
  color: var(--ink); font-size: var(--t-corps); font-weight: 400; line-height: 1.4; text-align: left; white-space: normal;
}
html.anim .dr-pop { animation: menu-plans-entre .22s var(--entree) both; }
.dr-cherche-zone > .saisie { min-height: 38px; }
.dr-liste { display: flex; flex-direction: column; gap: 1px; max-height: min(360px, 52vh); overflow-y: auto; overscroll-behavior: contain; }
.dr-g { display: flex; flex-direction: column; gap: 1px; }
.dr-g + .dr-g, .dr-opt + .dr-g { margin-top: var(--e1); padding-top: var(--e1); border-top: 1px solid var(--bord); }
.dr-gt {
  margin: 0; padding: var(--e2) var(--e3) var(--e1);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: var(--suivi-label); text-transform: uppercase; color: var(--ink-3);
}
.dr-opt {
  --anneau: var(--surface-pleine);
  display: flex; align-items: center; gap: var(--e3);
  width: 100%; min-height: 40px; padding: var(--e2) var(--e3); border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font-family: inherit; font-size: var(--t-donnee); text-align: left; cursor: pointer;
  transition: background var(--tr) var(--doux);
}
.dr-opt:hover, .dr-opt:focus-visible { --anneau: var(--surface-2); background: var(--surface-2); outline: none; }
.dr-opt:focus-visible { box-shadow: inset 0 0 0 1px var(--bord-fort); }
.dr-opt[aria-checked="true"] { background: var(--acc-voile); }
.dr-opt:disabled { color: var(--ink-3); cursor: not-allowed; }
.dr-opt:disabled:hover { background: transparent; }
.dr-radio { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bord-net); }
.dr-opt[aria-checked="true"] .dr-radio { box-shadow: inset 0 0 0 5px var(--acc); }
.dr-txt { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.dr-t { font-weight: 500; }
.dr-opt[aria-checked="true"] .dr-t { font-weight: 650; }
.dr-sous { font-size: var(--t-label); color: var(--ink-2); line-height: 1.4; }
.dr-droite, .dj-droite { flex: none; font-size: var(--t-label); color: var(--ink-2); white-space: nowrap; }
.dr-opt .instr-ico, .dr-choix .instr-ico { flex: none; width: 26px; height: 26px; }
.dr-opt .instr-ico.duo > .drap, .dr-choix .instr-ico.duo > .drap { width: 17px; height: 17px; }
.dr-vide { margin: 0; padding: var(--e3); font-size: var(--t-donnee); color: var(--ink-2); line-height: 1.5; }
.dr-pied {
  display: flex; align-items: center; gap: var(--e2);
  padding: var(--e2) var(--e3); border: 0; border-top: 1px solid var(--bord); border-radius: 0 0 var(--r-md) var(--r-md);
  background: transparent; color: var(--acc); font-family: inherit; font-size: var(--t-donnee); font-weight: 600; text-align: left; cursor: pointer;
}
.dr-pied:hover, .dr-pied:focus-visible { background: var(--surface-2); outline: none; }
.lueur-curseur > :has(.dr-pop, .dj-panneau), .lueur-apres > :has(.dr-pop, .dj-panneau) { z-index: 2; }
.sess-ligne:has(.dr-pop) { z-index: 3; }
.carte:has(.dr-pop, .dj-panneau) { z-index: 5; }
.page > :has(.dr-pop, .hm-panneau, .dj-panneau, .pd-panneau, .jf-pop) { position: relative; z-index: 5; }
.tete:has(.pd-panneau, .jf-pop) { position: relative; }
.dj { position: relative; display: flex; min-width: 0; max-width: 100%; container-type: inline-size; }
.dj-ouvert { z-index: 3; }
.dj-choix-vide .dj-val { color: var(--ink-2); }
@container (max-width: 20rem) {
  .dj-droite { display: none; }
  .dj-choix > .dj-droite + .ico:last-child { margin-left: auto; }
}
.dj-choix[aria-expanded="true"] > .ico:first-child { color: var(--acc); }
.dj-panneau {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; margin-left: var(--dj-dx, 0px);
  width: max(100%, 20rem); max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; gap: var(--e2); padding: var(--e3);
  border-radius: var(--r-lg); border: 1px solid var(--bord);
  background: var(--surface-pleine); box-shadow: var(--verre-bord), var(--om-3);
  color: var(--ink); font-size: var(--t-corps); font-weight: 400; line-height: 1.4; text-align: left;
}
html.anim .dj-panneau { animation: menu-plans-entre .22s var(--entree) both; }
.dj-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); }
.dj-cal-nom { font-weight: 650; font-size: var(--t-corps); }
.dj-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dj-tete { padding: var(--e1) 0; font-size: var(--t-micro); color: var(--ink-3); text-align: center; letter-spacing: .06em; text-transform: uppercase; }
.dj-jour {
  height: 36px; min-width: 0; padding: 0;
  border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink); font: inherit; font-size: var(--t-donnee); font-weight: 600; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background var(--tr-vif) var(--doux);
}
.dj-jour:hover { background: var(--surface-2); }
.dj-jour:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.dj-jour.dj-auj { color: var(--acc-vif); box-shadow: inset 0 0 0 1px var(--acc); }
.dj-jour[aria-pressed="true"] { background: var(--acc); color: var(--sur-acc); box-shadow: none; }
.dj-jour[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
.dj-jour:disabled { color: var(--ink-4); font-weight: 500; background: transparent; box-shadow: none; cursor: not-allowed; }
.dj-pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--e2);
  padding-top: var(--e2); border-top: 1px solid var(--bord);
}
.dj-pied > [data-act="dj-vider"] { margin-right: auto; }
.po-cols { display: flex; flex-direction: column; gap: var(--e4); }
.po-col { display: flex; flex-direction: column; gap: var(--e4); min-width: 0; }
@media (min-width: 1400px) {
  .po-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--e8); align-items: start; }
}
.po-carte .grille-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.po-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e3) var(--e4); }
.po-ids { gap: var(--e3); }
.po-titre-att { margin: var(--e4) 0 0; }
.po-enjeu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--e2) var(--e6);
  font-size: var(--t-donnee); color: var(--ink-2); }
.po-enjeu li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--e2); }
.po-enjeu b { color: var(--ink); font-weight: 650; }
.po-enjeu .sous { font-size: var(--t-label); color: var(--ink-3); }
.po-compte, .po-gestion > .aide { margin: 0; font-size: var(--t-label); color: var(--ink-3); line-height: 1.5; }
.po-gestion { display: flex; flex-direction: column; gap: var(--e2); }
.po-gestes, .po-actions, .po-liens { gap: var(--e2); }
.po-liens { justify-content: center; }
.po-gestes .btn[aria-pressed="true"], .po-liens .btn[aria-pressed="true"] {
  border-color: var(--acc-trait); color: var(--acc); background: var(--acc-voile); }
.po-form { display: flex; flex-direction: column; gap: var(--e3); padding: var(--e4); border-radius: var(--r-lg);
  background: var(--fond-creux); border: 1px solid var(--bord); }
.po-champs { position: relative; container-type: inline-size; display: grid; gap: var(--e3) var(--e4); align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.po-champs .dh { position: static; }
.po-carte:has(.dh-panneau) { z-index: 5; }
.po-champs > [data-k="champ-declenche"] { grid-column: 1 / -1; }
.po-verdict { display: flex; flex-direction: column; gap: var(--e2); }
.po-verdict:empty { display: none; }
.po-verdict > .sous { margin: 0; }
.po-err { margin: 0; font-size: var(--t-label); color: var(--alerte); }
.po-form-pied { justify-content: flex-end; gap: var(--e2); }
.po-fil { display: flex; flex-direction: column; gap: var(--e2); border-top: 1px solid var(--bord); padding-top: var(--e4); }
.po-fil-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--e2) var(--e4); align-items: baseline; font-size: var(--t-donnee); }
.po-fil-l { display: contents; }
.po-fil-h { color: var(--ink-3); font-size: var(--t-label); white-space: nowrap; }
.po-fil-t { display: flex; flex-direction: column; color: var(--ink); }
.po-fil-t .sous { font-size: var(--t-label); color: var(--ink-3); line-height: 1.5; }
.po-fil-ecart .po-fil-t .sous { color: var(--perte); }
.po-notes { margin: 0; border-top: 1px solid var(--bord); padding-top: var(--e4); }
@media (max-width: 560px) {
  .po-tete { gap: var(--e2); }
  .po-actions > .btn, .po-form-pied > .btn { flex: 1 1 auto; }
}
.ligne-ctrl.jr-q { display: grid; grid-template-columns: auto minmax(0, 56ch) auto; justify-content: start; }
.ligne-ctrl.jr-b > .txt { flex: 1 1 140px; max-width: calc(32px + var(--e3) + 56ch); }
.jr-ok { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e3) var(--e5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.jr-ok:not(:first-child) { margin-top: var(--e5); padding-top: var(--e5); border-top: 1px solid var(--bord); }
.jr-ok li { display: flex; align-items: flex-start; gap: var(--e2); min-width: 0; font-size: var(--t-donnee); line-height: 1.5; }
.jr-ok li b { font-weight: 550; }
.jr-ok-ico { flex: none; display: inline-flex; padding-top: 2px; color: var(--gain); }
.jr-ok .faible { color: var(--ink-3); }
.ligne-ctrl.jr-rappel { flex-wrap: wrap; }
.ligne-ctrl.jr-rappel > .txt { flex: 1 1 220px; }
.ligne-ctrl.jr-rappel > .btn { margin-left: calc(32px + var(--e3)); }
.jr-bref-tuiles { display: flex; flex-wrap: wrap; gap: var(--e3); }
.jr-bref-tuiles > .tuile { flex: 1 1 112px; justify-content: space-between; }
.jr-bref-cours { margin: var(--e4) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--e2) var(--e3); }
[data-k="jr-bref"] .champ { margin-top: var(--e5); }
.jr-soir .jr-eng-ligne { white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .jr-etat, .jr-eng { flex-direction: row; align-items: flex-start; gap: var(--e4); padding: var(--e4) var(--e5); }
  .jr-etat .etat-ico, .jr-eng .etat-ico { width: 40px; height: 40px; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 6%, transparent); }
  .jr-etat .etat-ico .ico, .jr-eng .etat-ico .ico { font-size: 20px !important; }
  .jr-etat .etat-titre { font-size: 1.05rem; }
}
