/* Passe ton challenge — l'appli. Téléphone d'abord : barre en haut, onglets en bas.
   Ordinateur : menu à gauche, tableau de bord en deux colonnes. */
html,
body {
  min-height: 100%;
}
body {
  overflow-x: hidden;
}
body.feuille-active {
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--fond);
}
.app {
  min-height: 100vh;
}

/* ---------- barre du haut ---------- */
.haut {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding-block: 8px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--ligne) 70%, transparent);
}
.haut .marque-nom {
  display: none;
}
.barre-droite {
  margin-left: auto;
  min-width: 0;
  display: flex;
}
.badge-demo {
  border: 1px dashed var(--warn);
  color: var(--warn);
  background: var(--warn-doux);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.choix-compte {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--ligne);
  background: var(--surface);
  text-align: left;
}
.choix-compte:hover {
  border-color: var(--ligne-forte);
}
.choix-compte-txt {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}
.choix-compte-txt b {
  font-size: var(--t-s);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.choix-compte-txt small {
  font-size: 11.5px;
  color: var(--texte-doux);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chevron .ico {
  width: 16px;
  height: 16px;
  color: var(--texte-pale);
  transform: rotate(90deg);
}
.pastille-firme {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--c, var(--marque));
  color: #fff;
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.pastille-firme--grande {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
}
.mini-feu {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-doux);
}
.mini-feu--orange {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-doux);
}
.mini-feu--rouge,
.mini-feu--crame {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-doux);
}
.mini-feu--objectif {
  background: var(--marque);
  box-shadow: 0 0 0 3px var(--marque-doux);
}
.mini-feu--pause {
  background: var(--texte-pale);
  box-shadow: 0 0 0 3px var(--surface-2);
}

/* ---------- onglets du bas (téléphone) ---------- */
.nav {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-left: max(6px, env(safe-area-inset-left, 0px));
  padding-right: max(6px, env(safe-area-inset-right, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--ligne);
}
.nav .marque--nav,
.nav .nav-pied,
.nav .nav-l--bureau {
  display: none;
}
.nav-l {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 2px 8px;
  text-decoration: none;
  color: var(--texte-pale);
  font-size: 11.5px;
  font-weight: 650;
  -webkit-tap-highlight-color: transparent;
}
.nav-l .ico {
  width: 23px;
  height: 23px;
}
.nav-l.est-actif {
  color: var(--marque);
}
.nav-l.est-actif::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--marque);
}
.nav-pro {
  position: absolute;
  top: 5px;
  right: calc(50% - 24px);
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--marque-doux);
  color: var(--marque);
}

/* ---------- zone principale ---------- */
.vue {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: 18px;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  outline: none;
}
.vue > div {
  display: grid;
  gap: 16px;
  animation: entree 0.28s ease both;
}
@keyframes entree {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
}
.vue-tete {
  display: grid;
  gap: 6px;
  padding-block: 4px 2px;
}
.vue-tete--ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.vue-titre {
  font-size: clamp(1.55rem, 4.6vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

/* ---------- cartes ---------- */
.carte {
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.carte-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.carte-titre {
  font-size: var(--t-l);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bloc {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.bloc-titre {
  font-size: var(--t-xl);
  font-weight: 750;
}
.cartes-2,
.cartes-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cartes-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cartes-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- le feu du jour ---------- */
.feu {
  --c: var(--ok);
  --c-doux: var(--ok-doux);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--c-doux);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.feu--orange {
  --c: var(--warn);
  --c-doux: var(--warn-doux);
}
.feu--rouge {
  --c: var(--danger);
  --c-doux: var(--danger-doux);
}
.feu--objectif {
  --c: var(--marque);
  --c-doux: var(--marque-doux);
}
.feu--pause {
  --c: var(--texte-doux);
  --c-doux: var(--surface-2);
}
.feu--crame {
  --c: #fff;
  --c-doux: var(--danger);
  color: #fff;
}
.feu--crame .feu-raisons span,
.feu--crame .feu-heure {
  color: rgba(255, 255, 255, 0.85);
}
.feu-haut {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feu-pastille {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: var(--t-s);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c);
}
.feu-pastille i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent);
  animation: pouls 2.2s ease-out infinite;
}
@keyframes pouls {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.feu-heure {
  font-family: var(--f-chiffres);
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.feu-phrase {
  font-family: var(--f-titre);
  font-size: clamp(1.7rem, 6vw, 2.25rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.feu-marge {
  font-size: var(--t-l);
}
.feu-marge b {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--c);
}
.feu--crame .feu-marge b {
  color: #fff;
}
.feu-raisons {
  list-style: none;
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.r {
  display: grid;
  gap: 1px;
  padding-left: 16px;
  position: relative;
}
.r::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--texte-doux);
}
.r--orange::before {
  background: var(--warn);
}
.r--rouge::before,
.r--crame::before {
  background: var(--danger);
}
.feu--crame .r::before {
  background: #fff;
}
.r--objectif::before {
  background: var(--marque);
}
.r--info::before {
  background: var(--marque);
}
.r b {
  font-weight: 650;
}
.r span {
  color: var(--texte-doux);
  font-size: var(--t-s);
}

/* ---------- jauges ---------- */
.jauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.jauge {
  --c: var(--ok);
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.jauge--warn {
  --c: var(--warn);
}
.jauge--danger {
  --c: var(--danger);
}
.jauge--neutre {
  --c: var(--texte-pale);
}
.jauge.est-lie {
  border-color: color-mix(in srgb, var(--c) 55%, var(--ligne));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.jauge-k {
  font-size: var(--t-s);
  color: var(--texte-doux);
  font-weight: 600;
  line-height: 1.3;
}
.jauge-v {
  font-size: clamp(1.35rem, 6.2vw, 2rem);
  font-weight: 650;
  color: var(--c);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.jauge-v--petit {
  font-size: var(--t-l);
  color: var(--texte-doux);
}
.jauge-pied {
  font-size: var(--t-xs);
  color: var(--texte-doux);
  line-height: 1.4;
}
.jauge-tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c);
}
.barre {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.barre > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  min-width: 4px;
  border-radius: inherit;
  background: var(--c, var(--ok));
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.barre--obj > span {
  background: linear-gradient(90deg, var(--marque-fond), var(--ok));
}
.barre--fine {
  height: 6px;
}

/* ---------- objectif ---------- */
.obj-v {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.obj-v .chiffre {
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 650;
}
.obj-sur {
  color: var(--texte-doux);
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.mini-stats > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mini-stats dt {
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.mini-stats dd {
  margin: 0;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ok-ico .ico {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

/* ---------- échelle ---------- */
.carte--echelle {
  gap: 8px;
}
.echelle {
  width: 100%;
  height: auto;
  display: block;
}
.ech-nom {
  font-family: var(--f-texte);
  font-size: 12px;
  font-weight: 700;
}
.ech-val {
  font-family: var(--f-chiffres);
  font-size: 12px;
  font-stretch: 87.5%;
  word-spacing: -0.32em;
}
.ech-val--fort {
  font-weight: 700;
  font-size: 13px;
}

/* ---------- remise à zéro ---------- */
.remise {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}
.remise-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--marque-doux);
  color: var(--marque);
}
.remise-ico .ico {
  width: 24px;
  height: 24px;
}
.remise-txt {
  display: grid;
  gap: 2px;
}
.remise-k {
  font-size: var(--t-s);
  color: var(--texte-doux);
  font-weight: 600;
}
.remise-v {
  font-size: 1.45rem;
  font-weight: 650;
}

/* ---------- actions rapides ---------- */
.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  min-height: 56px;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne);
  background: var(--surface);
  text-decoration: none;
  font-weight: 650;
  font-size: var(--t-s);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.action .ico {
  color: var(--marque);
}
.action:hover {
  border-color: var(--ligne-forte);
}
.action:active {
  transform: scale(0.98);
}
@media (min-width: 560px) {
  .actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .action {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- flottant ---------- */
.flottant-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.flottant-form .champ {
  flex: 1 1 140px;
}

/* ---------- annonces ---------- */
.annonces {
  list-style: none;
  display: grid;
  gap: 2px;
}
.annonce {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ligne);
}
.annonce:last-child {
  border-bottom: 0;
}
.annonce-type {
  font-family: var(--f-chiffres);
  font-size: var(--t-xs);
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border-radius: 7px;
  background: var(--surface-2);
}
.annonce.est-auj .annonce-type {
  background: var(--warn-doux);
  color: var(--warn);
}
.annonce-nom {
  font-size: var(--t-s);
  min-width: 0;
}
.annonce-nom i {
  font-style: normal;
  color: var(--texte-pale);
  font-size: var(--t-xs);
}
.annonce-quand {
  font-family: var(--f-texte);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-xs);
  text-align: right;
  white-space: nowrap;
}
.annonce-quand b {
  display: block;
  font-family: var(--f-texte);
  font-weight: 650;
}

/* ---------- checklist ---------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 4px;
}
.case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  line-height: 1.35;
}
.case input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.case-boite {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  border: 2px solid var(--ligne-forte);
  background: var(--surface);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.case-boite .ico {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  color: #fff;
  opacity: 0;
}
.case input:checked + .case-boite {
  background: var(--ok);
  border-color: var(--ok);
}
.case input:checked + .case-boite .ico {
  opacity: 1;
}
.case input:checked ~ span:last-child {
  color: var(--texte);
}
.case input:focus-visible + .case-boite {
  outline: 3px solid var(--marque);
  outline-offset: 2px;
}

/* ---------- fuite / force ---------- */
.fuite-v {
  font-size: 1.35rem;
  font-weight: 650;
  white-space: nowrap;
}
.force-v {
  font-size: 1.35rem;
  font-weight: 650;
}

/* ---------- formulaires ---------- */
.champ {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}
.champ > span:first-child {
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--texte-doux);
}
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne-forte);
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.champ textarea {
  min-height: 72px;
  resize: vertical;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--marque);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marque) 25%, transparent);
}
.champ--unite input {
  padding-right: 46px;
}
.champ--unite i {
  position: absolute;
  right: 14px;
  bottom: 13px;
  font-style: normal;
  font-weight: 650;
  color: var(--texte-pale);
  pointer-events: none;
}
.champ--select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--texte-doux) 50%), linear-gradient(135deg, var(--texte-doux) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.champ--large {
  max-width: 560px;
}
@media (max-width: 520px) {
  .deux--dates {
    grid-template-columns: 1fr !important;
  }
}
.deux,
.trois {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trois {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .trois {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.groupe {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.groupe legend,
.groupe-k {
  font-size: var(--t-s);
  font-weight: 700;
  color: var(--texte);
  padding: 0;
  margin-bottom: 2px;
}
.form-erreur {
  color: var(--danger);
  font-weight: 600;
  font-size: var(--t-s);
  min-height: 1px;
}
.form-erreur:empty {
  display: none;
}
.ligne-champ {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.ligne-champ .champ {
  flex: 1 1 220px;
}

/* segments */
.segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-m);
  background: var(--surface-2);
  max-width: 100%;
}
.segment > button,
.seg-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--texte-doux);
  font-weight: 650;
  font-size: var(--t-s);
  white-space: nowrap;
}
.segment > button .ico {
  width: 16px;
  height: 16px;
}
.segment > button.est-actif,
.seg-radio input:checked + span {
  background: var(--surface);
  color: var(--texte);
  box-shadow: 0 1px 3px rgba(13, 21, 48, 0.12);
}
.segment--petit > button {
  min-height: 34px;
  padding: 0 12px;
}
.segment--radio {
  display: flex;
}
.segment--radio .seg-radio {
  flex: 1;
  display: flex;
}
.segment--radio .seg-radio span {
  flex: 1;
  cursor: pointer;
}
.seg-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg-radio input:focus-visible + span {
  outline: 3px solid var(--marque);
  outline-offset: 1px;
}
.segment--resultat .r-gain input:checked + span {
  background: var(--ok-doux);
  color: var(--ok);
}
.segment--resultat .r-perte input:checked + span {
  background: var(--danger-doux);
  color: var(--danger);
}
.segment--wrap {
  flex-wrap: wrap;
}
.segment--onglets {
  justify-self: start;
}

/* puces */
.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ligne-forte);
  background: var(--surface);
  font-weight: 650;
  font-size: var(--t-s);
  font-family: var(--f-texte);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.puce.est-actif,
.puce--case:has(input:checked),
.puce--radio:has(input:checked) {
  border-color: var(--marque);
  background: var(--marque-doux);
  color: var(--marque);
}
.puce--case input,
.puce--radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.puce--case:focus-within,
.puce--radio:focus-within {
  outline: 3px solid var(--marque);
  outline-offset: 2px;
}
.puces--petites .puce {
  min-height: 30px;
  padding: 0 10px;
  font-size: var(--t-xs);
}
.puces--grandes .puce {
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--f-chiffres);
  font-size: var(--t-m);
}

/* interrupteur */
.interrupteur {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}
.interrupteur input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.interrupteur > span {
  position: relative;
  width: 46px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: var(--ligne-forte);
  transition: background-color 0.18s ease;
}
.interrupteur > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.interrupteur input:checked + span {
  background: var(--ok);
}
.interrupteur input:checked + span::after {
  transform: translateX(18px);
}
.interrupteur input:focus-visible + span {
  outline: 3px solid var(--marque);
  outline-offset: 2px;
}

details.avance {
  border-top: 1px solid var(--ligne);
  padding-top: 10px;
}
details.avance > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: var(--t-s);
  color: var(--marque);
  list-style: none;
  padding: 4px 0;
}
details.avance > summary::-webkit-details-marker {
  display: none;
}
details.avance > summary::before {
  content: "+ ";
}
details.avance[open] > summary::before {
  content: "− ";
}
details.avance[open] {
  display: grid;
  gap: 12px;
}

/* alertes */
.alertes {
  list-style: none;
  display: grid;
  gap: 8px;
}
.alerte {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--surface-2);
  font-size: var(--t-s);
  line-height: 1.4;
}
.alerte .ico {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.alerte--danger {
  background: var(--danger-doux);
  color: var(--danger);
}
.alerte--danger span {
  color: var(--texte);
}
.alerte--warn {
  background: var(--warn-doux);
}
.alerte--warn .ico {
  color: var(--warn);
}
.alerte--info {
  background: var(--marque-doux);
}
.alerte--info .ico {
  color: var(--marque);
}
.alerte--ok {
  background: var(--ok-doux);
}
.alerte--ok .ico {
  color: var(--ok);
}

/* tableaux */
.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-s);
}
.tableau caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--f-titre);
  font-size: var(--t-m);
  padding-bottom: 8px;
}
.tableau th,
.tableau td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--ligne);
  text-align: right;
  white-space: nowrap;
}
.tableau th:first-child,
.tableau td:first-child {
  text-align: left;
}
.tableau thead th {
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-weight: 650;
}
.tableau-defile {
  overflow-x: auto;
}

/* ---------- lot ---------- */
.lot-grille {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .lot-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .lot-res {
    position: sticky;
    top: 80px;
  }
}
.lot-form {
  gap: 18px;
}
.lot-res {
  box-shadow: var(--ombre);
}
.lot-res-corps {
  display: grid;
  gap: 14px;
}
.lot-res-tete {
  display: grid;
  gap: 8px;
}
.lot-v {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}
.lot-v .chiffre {
  font-size: clamp(3rem, 14vw, 4.4rem);
  font-weight: 650;
  color: var(--marque);
  letter-spacing: -0.05em;
}
.lot-unite {
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--texte-doux);
}
.lot-s b {
  font-weight: 650;
}
.lot-apres {
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--surface-3);
  border: 1px solid var(--ligne);
  font-size: var(--t-s);
}
.lot-vide {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  text-align: center;
  color: var(--texte-doux);
}
.lot-vide .ico {
  width: 40px;
  height: 40px;
  color: var(--texte-pale);
}

/* ---------- journal ---------- */
.journal-grille {
  display: grid;
  gap: 16px;
}
@media (min-width: 980px) {
  .journal-grille {
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: start;
  }
  .cal {
    position: sticky;
    top: 80px;
  }
}
.cal-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-sem,
.cal-grille {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.cal-sem span {
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  color: var(--texte-pale);
  text-transform: uppercase;
}
.cal-case {
  display: grid;
  align-content: space-between;
  gap: 2px;
  min-height: 50px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-3);
  font: inherit;
  text-align: left;
  color: var(--texte);
  min-width: 0;
}
.cal-case--vide {
  background: transparent;
}
.cal-case.est-auj {
  border-color: var(--marque);
}
button.cal-case {
  cursor: pointer;
}
.cal-case--pos {
  background: color-mix(in oklab, var(--ok) calc(var(--i) * 55%), var(--surface));
}
.cal-case--neg {
  background: color-mix(in oklab, var(--danger) calc(var(--i) * 55%), var(--surface));
}
.cal-case--nul {
  background: var(--surface-2);
}
.cal-n {
  font-size: 11px;
  font-weight: 650;
  opacity: 0.75;
}
.cal-v {
  font-family: var(--f-texte) !important;
  font-stretch: normal !important;
  letter-spacing: -0.03em;
  font-size: 10.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.mini-stats--cal {
  padding-top: 8px;
  border-top: 1px solid var(--ligne);
}
.jours {
  display: grid;
  gap: 14px;
  align-content: start;
}
.jour {
  display: grid;
  gap: 6px;
  scroll-margin-top: 80px;
  border-radius: var(--r-l);
}
.jour.est-flash {
  animation: flash 1.2s ease;
}
@keyframes flash {
  0% {
    box-shadow: 0 0 0 3px var(--marque);
  }
  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}
.jour-tete {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 4px;
}
.jour-tete h3 {
  font-size: var(--t-m);
  font-weight: 700;
  margin-right: auto;
}
.jour-tete .chiffre {
  font-weight: 650;
}
.trade {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  grid-template-areas: "h sym r v" "h tags tags tags";
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne);
  background: var(--surface);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.trade:hover {
  border-color: var(--ligne-forte);
}
.trade-h {
  grid-area: h;
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.trade-sym {
  grid-area: sym;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.trade-sym b {
  font-weight: 700;
}
.sens {
  font-size: var(--t-xs);
  font-weight: 650;
  color: var(--texte-doux);
}
.sens--achat {
  color: var(--ok);
}
.sens--vente {
  color: var(--danger);
}
.trade-tags {
  grid-area: tags;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.trade-tags:empty {
  display: none;
}
.tag {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--texte-doux);
  display: inline-flex;
  align-items: center;
}
.tag--danger {
  background: var(--danger-doux);
  color: var(--danger);
}
.tag--ico .ico {
  width: 13px;
  height: 13px;
}
.trade-r {
  grid-area: r;
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.trade-v {
  grid-area: v;
  font-weight: 650;
  text-align: right;
}
.vide-bloc,
.vide-page {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 36px 18px;
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--r-l);
  color: var(--texte-doux);
}
.vide-page {
  border: 0;
  padding-top: 12vh;
}
.vide-page p {
  max-width: 42ch;
}
.vide-illu .logo-marque {
  width: 64px;
  height: 64px;
}

/* ---------- analyse ---------- */
.tuiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
@media (min-width: 900px) {
  .tuiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tuile {
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-l);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tuile dt {
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-weight: 650;
}
.tuile dd {
  margin: 0;
  font-size: clamp(1.15rem, 4.8vw, 1.5rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.carte--graph {
  overflow: hidden;
}
.courbe,
.balayage,
.heures {
  width: 100%;
  height: auto;
  display: block;
}
.axe {
  font-family: var(--f-chiffres);
  font-size: 11px;
  fill: var(--texte-pale);
  font-stretch: 87.5%;
  word-spacing: -0.32em;
}
.axe--fort {
  font-weight: 700;
  fill: var(--texte);
}
.vide-graph {
  padding: 30px;
  text-align: center;
  color: var(--texte-doux);
}
.barres {
  list-style: none;
  display: grid;
  gap: 10px;
}
.barres li {
  display: grid;
  grid-template-columns: minmax(70px, 0.9fr) minmax(0, 1.4fr) auto;
  grid-template-areas: "k piste v" "k n n";
  column-gap: 10px;
  align-items: center;
}
.barres-k {
  grid-area: k;
  font-weight: 650;
  font-size: var(--t-s);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.barres-piste {
  grid-area: piste;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.barres-b {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
}
.barres-b.pos {
  background: var(--ok);
}
.barres-b.neg {
  background: var(--danger);
}
.barres-v {
  grid-area: v;
  font-size: var(--t-s);
  font-weight: 650;
  text-align: right;
}
.barres-n {
  grid-area: n;
  font-size: 11px;
  color: var(--texte-pale);
}
.flou-conteneur {
  position: relative;
  display: grid;
}
.flou {
  filter: blur(7px);
  opacity: 0.55;
  pointer-events: none;
  display: grid;
  gap: 14px;
}
.flou-conteneur > .verrou {
  position: absolute;
  inset: 10% 6% auto;
}
.verrou {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre-forte);
}
.verrou p {
  max-width: 44ch;
  color: var(--texte-doux);
}
.verrou-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--marque-doux);
  color: var(--marque);
}

/* simulateur */
.sim-grille {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .sim-grille {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}
.sim-res {
  box-shadow: var(--ombre);
}
.sim-gros {
  font-size: clamp(3.2rem, 15vw, 4.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--marque);
}
.sim-phrase {
  font-size: var(--t-l);
  max-width: 48ch;
}
.sim-barre {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.sb {
  width: var(--w);
  height: 100%;
}
.sb--ok,
.l--ok {
  background: var(--ok);
}
.sb--jour,
.l--jour {
  background: var(--warn);
}
.sb--max,
.l--max {
  background: var(--danger);
}
.sb--temps,
.l--temps {
  background: var(--texte-pale);
}
.legende {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.legende i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -0.5px;
}
.sim-sous {
  margin-top: 6px;
}
.sim-conseil b {
  color: var(--ok);
}
.sim-calcul {
  min-height: 200px;
  display: grid;
  place-items: center;
  color: var(--texte-doux);
}

/* ---------- règles ---------- */
.fiche {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: var(--r-xl);
  padding: 20px;
}
.fiche-tete {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fiche-titre {
  font-size: var(--t-xl);
}
details.suite {
  margin-top: 4px;
}
details.suite > summary {
  cursor: pointer;
  color: var(--marque);
  font-weight: 650;
  list-style: none;
}
details.suite > summary::-webkit-details-marker {
  display: none;
}
details.suite[open] > summary {
  display: none;
}
.fiche-sous {
  font-size: var(--t-l);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fiche-sous .ico {
  color: var(--warn);
}
.regles-grandes {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .regles-grandes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.regle-grande {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--surface-3);
  border: 1px solid var(--ligne);
}
.regle-k {
  font-size: var(--t-xs);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.regle-v {
  font-size: 2.1rem;
  font-weight: 650;
  line-height: 1;
  color: var(--danger);
}
.phases {
  list-style: none;
  display: grid;
  gap: 8px;
}
.phases li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--r-m);
  background: var(--surface-3);
  border: 1px solid var(--ligne);
}
.phases span {
  color: var(--texte-doux);
  font-size: var(--t-s);
}
.regles {
  display: grid;
  gap: 0;
  margin: 0;
}
.regle {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ligne);
}
.regle:last-child {
  border-bottom: 0;
}
.regle dt {
  font-weight: 700;
  font-size: var(--t-s);
}
.regle dd {
  margin: 0;
  color: var(--texte-doux);
  font-size: var(--t-s);
  line-height: 1.5;
}
.prix-liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prix-liste li {
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  border-radius: var(--r-m);
  background: var(--surface-3);
  border: 1px solid var(--ligne);
  min-width: 92px;
}
.prix-liste span {
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-weight: 650;
}
.pieges {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--warn-doux);
}
.pieges ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}
.pieges li::marker {
  color: var(--warn);
}
.liste-simple {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--texte-doux);
  font-size: var(--t-s);
}
.fiche-pied {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.sources {
  list-style: none;
  display: grid;
  gap: 4px;
}
.sources a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: var(--t-xs);
  color: var(--texte-doux);
  overflow-wrap: anywhere;
}
.sources .ico {
  width: 14px;
  height: 14px;
}
.preset {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  gap: 6px;
}
.preset.est-actif {
  border-color: var(--marque);
  box-shadow: inset 0 0 0 1px var(--marque);
}
.preset .chip {
  justify-self: start;
}
.preset-nom {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: var(--t-l);
}
.moi-form {
  gap: 16px;
}

/* ---------- ta stratégie (SMC, ICT, AlgoTrade… ou la tienne) ---------- */
.strat-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.strat {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne-forte);
  background: var(--surface);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.strat.est-actif {
  border-color: var(--marque);
  background: var(--marque-doux);
  box-shadow: inset 0 0 0 1px var(--marque);
}
.strat--perso {
  border-style: dashed;
}
.strat--perso.est-actif {
  border-style: solid;
}
.strat-nom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 1.15;
}
.strat-nom svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.strat-sous {
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.strat.est-actif .strat-sous {
  color: var(--marque-fort);
}
.strat-regles {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.strat-liste li {
  justify-content: flex-start;
}
.strat-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--marque-doux);
  color: var(--marque-fort);
  font-size: var(--t-xs);
  font-weight: 700;
}
.strat-t {
  flex: 1;
  min-width: 0;
}
.liste-edit {
  list-style: none;
  display: grid;
  gap: 4px;
}
.liste-edit li {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 6px 0 6px 2px;
  border-bottom: 1px solid var(--ligne);
}

/* ---------- comptes ---------- */
.compte.est-actif {
  border-color: var(--marque);
  box-shadow: inset 0 0 0 1px var(--marque);
}
.compte.est-archive {
  opacity: 0.7;
}
.compte-tete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.mini-jauge {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.mini-jauge b {
  color: var(--texte);
  font-size: var(--t-xs);
}
.mini-jauge .barre > span {
  background: var(--ok);
}
.offre {
  gap: 10px;
}
.offre.est-actif {
  border-color: var(--marque);
  box-shadow: inset 0 0 0 1px var(--marque);
}
.offre-nom {
  font-family: var(--f-titre);
  font-weight: 750;
  font-size: var(--t-l);
}
.offre-prix {
  font-size: 1.9rem;
  font-weight: 650;
}
.offre-prix small {
  font-size: var(--t-s);
  color: var(--texte-doux);
  font-family: var(--f-texte);
  margin-left: 4px;
}
.offre--vip {
  background: linear-gradient(160deg, var(--surface) 55%, var(--marque-doux));
}
.liste-check {
  list-style: none;
  display: grid;
  gap: 8px;
}
.liste-check li {
  position: relative;
  padding-left: 24px;
  font-size: var(--t-s);
  line-height: 1.45;
}
.liste-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}
.apercu-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-3);
  border-style: dashed;
}
.reglages {
  gap: 14px;
}
.reglage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reglage > span {
  font-weight: 650;
}
.donnees {
  gap: 14px;
}

/* ---------- feuilles ---------- */
.feuille-fond {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--voile);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.feuille-fond.est-ouverte {
  opacity: 1;
}
.feuille {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(92vh, 92dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--ombre-forte);
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(104%);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feuille.est-ouverte {
  transform: none;
}
.feuille-poignee {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--ligne-forte);
  margin: 10px auto 4px;
}
.feuille-tete {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px 12px;
  background: var(--surface);
}
.feuille-titre {
  font-size: var(--t-xl);
  outline: none;
}
.feuille-tete .note {
  margin-top: 4px;
}
.feuille-corps {
  display: grid;
  gap: 16px;
  padding-bottom: 10px;
}
.feuille-pied {
  position: sticky;
  bottom: calc(-14px - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
  margin-bottom: calc(-14px - env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--ligne);
}
.feuille-pied--form {
  margin-inline: -18px;
  padding-inline: 18px;
}
.feuille-pied .btn {
  flex: 1 1 auto;
}
@media (min-width: 900px) {
  .feuille {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(600px, calc(100vw - 48px));
    max-height: min(86vh, 860px);
    border-radius: var(--r-xl);
    transform: translate(-50%, -46%) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    padding-bottom: 14px;
  }
  .feuille.est-ouverte {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  .feuille-poignee {
    display: none;
  }
  .feuille-pied .btn {
    flex: 0 0 auto;
  }
}
.liste-comptes,
.liste-choix,
.grille-firmes {
  list-style: none;
  display: grid;
  gap: 8px;
}
.grille-firmes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ligne-compte,
.firme-choix,
.choix {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne);
  background: var(--surface);
  text-align: left;
}
.ligne-compte:hover,
.firme-choix:hover,
.choix:hover {
  border-color: var(--ligne-forte);
}
.ligne-compte.est-actif {
  border-color: var(--marque);
  box-shadow: inset 0 0 0 1px var(--marque);
}
.ligne-compte-txt {
  display: grid;
  min-width: 0;
  margin-right: auto;
}
.ligne-compte-txt small,
.firme-choix small,
.choix small {
  color: var(--texte-doux);
  font-size: var(--t-xs);
}
.firme-choix {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.choix {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.choix--fort {
  border-color: var(--ok);
  background: var(--ok-doux);
}
.choix--fort b {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ok);
}
.form-trade {
  gap: 14px;
}
.capture-apercu {
  width: 100%;
  border-radius: var(--r-m);
  border: 1px solid var(--ligne);
}
.etapes {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}
.etapes li::marker {
  font-family: var(--f-chiffres);
  font-weight: 700;
  color: var(--marque);
}
.depot {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 16px;
  border-radius: var(--r-l);
  border: 2px dashed var(--ligne-forte);
  background: var(--surface-3);
  text-align: center;
  cursor: pointer;
}
.depot:hover {
  border-color: var(--marque);
}
.depot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.depot .ico {
  width: 30px;
  height: 30px;
  color: var(--marque);
}
.partage-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--r-l);
  box-shadow: var(--ombre);
}
.bienvenue-intro {
  font-size: var(--t-l);
}
.pro-prix {
  font-size: var(--t-l);
}

/* ---------- notification ---------- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: var(--r-m);
  background: var(--texte);
  color: var(--fond);
  font-weight: 600;
  font-size: var(--t-s);
  box-shadow: var(--ombre-forte);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.est-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Aujourd'hui : mise en page ---------- */
.aj-grille {
  display: grid;
  gap: 16px;
}
.aj-col {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

/* ---------- ordinateur : menu à gauche ---------- */
@media (min-width: 900px) {
  .app {
    padding-left: 248px;
  }
  .haut {
    padding-left: 32px;
    padding-right: 32px;
  }
  .haut > .marque {
    display: none;
  }
  .nav {
    top: 0;
    right: auto;
    width: 248px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 16px;
    padding-top: max(22px, env(safe-area-inset-top, 0px));
    border-top: 0;
    border-right: 1px solid var(--ligne);
    background: var(--surface);
  }
  .nav .marque--nav {
    display: inline-flex;
    margin: 0 8px 22px;
  }
  .nav .nav-l--bureau {
    display: flex;
  }
  .nav-l {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: var(--t-m);
    color: var(--texte-doux);
  }
  .nav-l:hover {
    background: var(--surface-2);
    color: var(--texte);
  }
  .nav-l.est-actif {
    background: var(--marque-doux);
    color: var(--marque);
  }
  .nav-l.est-actif::before {
    display: none;
  }
  .nav-pro {
    position: static;
    margin-left: auto;
  }
  .nav .nav-pied {
    display: block;
    margin-top: auto;
  }
  .nav .nav-pied .btn {
    width: 100%;
    border: 1px dashed var(--ligne-forte);
  }
  .vue {
    padding: 28px 32px 60px;
  }
  .aj-grille {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
  .toast {
    bottom: 28px;
    margin-left: 124px;
  }
}
@media (min-width: 1240px) {
  .vue {
    padding-left: 44px;
    padding-right: 44px;
  }
}
@media (max-width: 380px) {
  .jauges {
    grid-template-columns: 1fr;
  }
  .grille-firmes {
    grid-template-columns: 1fr;
  }
  .choix-compte-txt small {
    display: none;
  }
}

/* =====================================================================
   LE PLAN : discipline, verdicts, vérification, éditeur
   ===================================================================== */
.feu-btn {
  margin-top: 6px;
  justify-self: start;
  white-space: normal;
  text-align: left;
}
@media (max-width: 560px) {
  .feu-btn {
    justify-self: stretch;
  }
}
.tag--ok {
  background: var(--ok-doux);
  color: var(--ok);
  gap: 3px;
}
.tag--ok .ico,
.tag--danger .ico {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.tag--marque {
  background: var(--marque-doux);
  color: var(--marque);
}

/* --- la carte « Ta discipline » --- */
.discipline {
  gap: 14px;
}
.disc-haut {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.disc-score {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.disc-gros {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--texte);
}
.disc-serie {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 96px;
  padding: 10px 12px;
  border-radius: var(--r-l);
  background: var(--surface-2);
  color: var(--texte-doux);
  text-align: center;
  font-size: var(--t-xs);
  line-height: 1.25;
}
.disc-serie b {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--texte);
  line-height: 1.05;
}
.disc-serie .flamme .ico {
  width: 22px;
  height: 22px;
}
.disc-serie.est-active {
  background: var(--warn-doux);
  color: var(--warn);
}
.disc-serie.est-active b {
  color: var(--warn);
}
.disc-serie.est-active .flamme .ico {
  fill: currentColor;
  fill-opacity: 0.25;
}
.disc-jours {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
  margin: 0;
}
.disc-jours--long {
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
}
.dj {
  aspect-ratio: 1;
  max-width: 100%;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
}
.dj--ok {
  background: var(--ok);
  color: #fff;
}
.dj--ko {
  background: var(--danger-doux);
  color: var(--danger);
  box-shadow: inset 0 0 0 1.5px var(--danger);
}
.disc-pied b {
  color: var(--texte);
}
.disc-cout {
  font-size: var(--t-s);
  padding-top: 10px;
  border-top: 1px solid var(--ligne);
}
.disc-cout b {
  font-weight: 650;
}

/* --- positions en cours, journée --- */
.liste-trades {
  list-style: none;
  display: grid;
  gap: 8px;
}
.trade-cours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--marque-doux);
}
.trade-cours .note {
  margin-left: 4px;
}
.trade--compact {
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  grid-template-areas: "h sym tags v";
  padding: 10px 12px;
}
.trade--compact .trade-tags {
  grid-area: tags;
}
.action--fort {
  background: var(--marque-fond);
  border-color: var(--marque-fond);
  color: var(--sur-marque);
}
.action--fort .ico {
  color: var(--sur-marque);
}
.action--fort:hover {
  border-color: var(--marque-fort);
}

/* --- les verdicts règle par règle --- */
.verdict-liste {
  list-style: none;
  display: grid;
  gap: 2px;
}
.vp {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--ligne);
}
.vp:last-child {
  border-bottom: 0;
}
.vp-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}
.vp-ico .ico {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}
.vp--ok .vp-ico {
  background: var(--ok-doux);
  color: var(--ok);
}
.vp--casse .vp-ico {
  background: var(--danger);
  color: #fff;
}
.vp--inconnu .vp-ico {
  background: var(--surface-2);
  color: var(--texte-pale);
}
.vp-txt {
  display: grid;
  gap: 1px;
  line-height: 1.3;
}
.vp-txt b {
  font-weight: 650;
  font-size: var(--t-s);
}
.vp--casse .vp-txt b {
  color: var(--danger);
}
.vp-txt small {
  color: var(--texte-doux);
  font-size: var(--t-xs);
}
.verdict-bloc {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-l);
  background: var(--ok-doux);
}
.verdict-bloc--casse {
  background: var(--danger-doux);
}
.verdict-bloc-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-titre);
  font-weight: 750;
  font-size: var(--t-l);
  color: var(--ok);
}
.verdict-bloc--casse .verdict-bloc-titre {
  color: var(--danger);
}
.verdict-bloc .verdict-liste {
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 2px 12px;
}

/* --- Vérifier --- */
.verif-vide {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 240px;
  text-align: center;
  color: var(--texte-doux);
}
.verif-vide .ico {
  width: 44px;
  height: 44px;
  color: var(--marque);
}
.verif-res {
  display: grid;
  gap: 14px;
}
.verif-tete {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-l);
  background: var(--ok-doux);
}
.verif-res--ko .verif-tete {
  background: var(--danger-doux);
}
.verif-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}
.verif-res--ko .verif-ico {
  background: var(--danger);
}
.verif-ico .ico {
  width: 26px;
  height: 26px;
  stroke-width: 3;
}
.verif-titre {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ok);
}
.verif-res--ko .verif-titre {
  color: var(--danger);
}
.verif-sous {
  font-size: var(--t-s);
  color: var(--texte);
  margin-top: 2px;
}
.verif-lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.verif-lot .lot-v .chiffre {
  font-size: clamp(2.2rem, 10vw, 3rem);
}
.verif-risque {
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.1;
}
.verif-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 420px) {
  .verif-actions {
    grid-template-columns: 1fr;
  }
}
.trois--prix {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px;
}
.trois--prix input {
  padding-left: 10px;
  padding-right: 8px;
}

/* --- Journal : calendrier en mode discipline --- */
.segment--plein {
  display: flex;
  width: 100%;
}
.segment--plein > button {
  flex: 1;
}
.cal-case--ok {
  background: var(--ok);
  color: #fff;
}
.cal-case--ko {
  background: var(--danger-doux);
  color: var(--danger);
  box-shadow: inset 0 0 0 1.5px var(--danger);
}
.cal-case--ok .cal-n {
  opacity: 0.9;
}
.cal-v--ico .ico {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

/* --- Analyse : discipline --- */
.duel {
  gap: 4px;
}
.duel-v {
  font-family: var(--f-titre) !important;
  font-stretch: normal !important;
  font-weight: 800 !important;
  font-size: clamp(2rem, 8vw, 2.6rem);
  letter-spacing: -0.04em;
  word-spacing: 0.05em;
  line-height: 1.05;
}
.duel--ok {
  background: linear-gradient(160deg, var(--surface) 50%, var(--ok-doux));
}
.duel--ko {
  background: linear-gradient(160deg, var(--surface) 50%, var(--danger-doux));
}
.barres--regles li {
  grid-template-columns: minmax(110px, 1.2fr) minmax(0, 1fr) auto;
}
.sim-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sim-duel > div {
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--surface-2);
}
.sim-duel-plan {
  background: var(--ok-doux) !important;
}
.sim-duel-v {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.barre--disc > span {
  background: var(--marque-fond) !important;
}

/* --- Mon plan --- */
.plan-liste {
  list-style: none;
  padding: 6px 18px;
  gap: 0;
}
.plan-regle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ligne);
}
.plan-regle:last-child {
  border-bottom: 0;
}
.plan-regle.est-off .plan-txt b,
.plan-regle.est-off .plan-ico {
  color: var(--texte-pale);
}
.plan-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--marque-doux);
  color: var(--marque);
}
.plan-regle.est-off .plan-ico {
  background: var(--surface-2);
}
.plan-ico .ico {
  width: 18px;
  height: 18px;
}
.plan-txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.plan-txt b {
  font-weight: 650;
}
.plan-txt small {
  color: var(--texte-doux);
  font-size: var(--t-xs);
  line-height: 1.35;
}
.plan-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.plan-sous {
  display: grid;
  gap: 10px;
  padding: 0 0 14px 48px;
  border-bottom: 1px solid var(--ligne);
}
@media (max-width: 520px) {
  .plan-sous {
    padding-left: 0;
  }
  .plan-regle {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .plan-ico {
    width: 32px;
    height: 32px;
  }
  .plan-regle:has(.jours-choix) {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .plan-regle:has(.jours-choix) .plan-ctl {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.champ--mini {
  width: 96px;
}
.champ--mini input {
  min-height: 40px;
  padding: 6px 30px 6px 10px;
  text-align: right;
}
.champ--mini.champ--unite i {
  bottom: 9px;
  right: 10px;
}
.champ--prefixe input {
  padding-left: 30px;
  padding-right: 10px;
}
.champ--prefixe i {
  position: absolute;
  left: 10px;
  bottom: 9px;
  font-style: normal;
  font-weight: 650;
  color: var(--texte-pale);
}
.interrupteur--seul {
  gap: 0;
}
.pas {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ligne-forte);
  border-radius: 12px;
  overflow: hidden;
}
.pas-b {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--surface-2);
  font-size: 20px;
  font-weight: 600;
  color: var(--texte);
}
.pas-b:hover {
  background: var(--ligne);
}
.pas-v {
  min-width: 40px;
  text-align: center;
  font-weight: 650;
}
.jours-choix {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.jour-puce input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.jour-puce span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--ligne-forte);
  font-weight: 700;
  font-size: var(--t-s);
  cursor: pointer;
}
.jour-puce input:checked + span {
  background: var(--marque-fond);
  border-color: var(--marque-fond);
  color: var(--sur-marque);
}
.jour-puce input:focus-visible + span {
  outline: 3px solid var(--marque);
  outline-offset: 2px;
}
.puce--ecart:has(input:checked) {
  border-color: var(--danger);
  background: var(--danger-doux);
  color: var(--danger);
}
.hors-plan-txt {
  font-size: var(--t-l);
}
.bilan {
  gap: 10px;
}
.bilan-phrase {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 1.3;
}

/* toucher une case de la checklist : un petit retour, sans la bande bleue du navigateur */
.case:active .case-boite {
  transform: scale(0.9);
}

/* ============ 23/11 : l'appli simple (« lisible en un regard ») ============ */
.aj--simple,
.analyse--simple,
.regles-vue .plan {
  max-width: 640px;
}
.aj--simple {
  display: grid;
  gap: 14px;
  margin: 0 auto;
}
.analyse--simple {
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

/* la réponse du jour */
.statut {
  --c: var(--ok);
  --c-doux: var(--ok-doux);
  display: grid;
  gap: 4px;
  padding: 20px 20px 18px;
  border-radius: var(--r-xl);
  background: var(--c-doux);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.statut--orange {
  --c: var(--warn);
  --c-doux: var(--warn-doux);
}
.statut--rouge {
  --c: var(--danger);
  --c-doux: var(--danger-doux);
}
.statut--objectif {
  --c: var(--marque);
  --c-doux: var(--marque-doux);
}
.statut--pause {
  --c: var(--texte-doux);
  --c-doux: var(--surface-2);
}
.statut--crame {
  --c: #fff;
  --c-doux: var(--danger);
  color: #fff;
}
.st-haut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.st-titre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-titre);
  font-weight: 780;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--c);
}
.st-titre i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c);
  animation: pouls 2.2s ease-out infinite;
}
.st-heure {
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.st-k {
  font-size: var(--t-m);
  font-weight: 600;
  color: var(--texte-doux);
}
.statut .st-v {
  font-family: var(--f-titre) !important;
  font-stretch: normal !important;
  font-size: clamp(2.7rem, 12vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  word-spacing: normal;
  line-height: 1;
  color: var(--texte);
}
.st-sous {
  font-size: var(--t-s);
  color: var(--texte-doux);
}
.st-raison {
  font-family: var(--f-titre);
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.statut--crame .st-sous,
.statut--crame .st-heure {
  color: rgba(255, 255, 255, 0.85);
}
.st-alerte {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  font-size: var(--t-s);
  font-weight: 600;
}
.st-alerte .ico {
  width: 18px;
  height: 18px;
  color: var(--c);
  flex: none;
}
.st-btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* le challenge sur une barre */
.chal-barre {
  position: relative;
  height: 14px;
  margin: 44px 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
}
.chal-rempli {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--de);
  width: calc(var(--a) - var(--de));
  border-radius: 99px;
  background: var(--ok);
}
.chal-rempli.neg {
  background: var(--danger);
}
.chal-depart {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: var(--x);
  width: 2px;
  background: var(--texte-doux);
}
.chal-toi {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--texte);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(13, 21, 48, 0.25);
}
.chal-toi b {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--texte);
  color: var(--surface);
  font-size: var(--t-s);
}
.chal-toi--g b {
  left: -6px;
  transform: none;
}
.chal-toi--d b {
  left: auto;
  right: -6px;
  transform: none;
}
.chal-bornes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-xs);
  color: var(--texte-doux);
}
.chal-bornes b {
  color: var(--texte);
  font-size: var(--t-s);
}
.chal-d {
  text-align: right;
}
.chal-phrase {
  margin-top: 6px;
  font-weight: 600;
}

/* la discipline, simple */
.disc2 {
  gap: 10px;
}
.disc2 .chip .ico {
  width: 14px;
  height: 14px;
}
.disc2-v {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.disc2-gros {
  font-family: var(--f-titre);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.disc2-sous {
  color: var(--texte-doux);
  font-weight: 600;
}
.disc2-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.disc2-duel > div {
  padding: 11px 13px;
  border-radius: var(--r-m);
  background: var(--surface-2);
}
.disc2-duel p {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--texte-doux);
}
.disc2-duel b {
  font-family: var(--f-titre) !important;
  font-stretch: normal !important;
  font-size: 1.45rem;
  font-weight: 780;
  word-spacing: normal;
  letter-spacing: -0.02em;
}
.liens-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  padding: 4px 0 12px;
}

/* vérifier : deux gros champs, la raison juste sous le verdict */
.deux--prix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.champ--gros input {
  min-height: 56px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--f-chiffres);
}
.verif-pourquoi {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--danger-doux);
}
.verif-pourquoi li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.verif-pourquoi .ico {
  width: 18px;
  height: 18px;
  color: var(--danger);
  flex: none;
  margin-top: 2px;
}
.verif-pourquoi span {
  display: grid;
}
.verif-pourquoi small {
  color: var(--texte-doux);
}

/* bilan : ce qui te coûte le plus */
.erreurs-liste {
  list-style: none;
  display: grid;
  gap: 10px;
}
.erreurs-liste li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--surface-2);
}
.err-n {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-doux);
  color: var(--danger);
  font-weight: 800;
}
.err-t {
  display: grid;
  min-width: 0;
}
.err-t small {
  color: var(--texte-doux);
}
.err-v {
  font-family: var(--f-titre) !important;
  font-stretch: normal !important;
  font-weight: 780;
  font-size: 1.1rem;
  word-spacing: normal;
}

/* les volets « pour aller plus loin » */
details.plus {
  border-radius: var(--r-l, 20px);
  background: var(--surface);
  border: 1px solid var(--ligne, rgba(13, 21, 48, 0.08));
  padding: 4px 16px;
}
details.plus > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--marque);
}
details.plus > summary::-webkit-details-marker {
  display: none;
}
details.plus > summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
details.plus[open] > summary::after {
  transform: rotate(-135deg);
}
details.plus[open] {
  padding-bottom: 16px;
}
details.plus > summary .ico {
  width: 20px;
  height: 20px;
}

/* plan : le résumé */
.rp-liste {
  list-style: none;
  display: grid;
  gap: 2px;
}
.rp-liste li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  font-weight: 650;
  border-bottom: 1px solid var(--ligne, rgba(13, 21, 48, 0.08));
}
.rp-liste li:last-child {
  border-bottom: 0;
}
.rp-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--marque-doux);
  color: var(--marque);
  flex: none;
}
.rp-ico .ico {
  width: 18px;
  height: 18px;
}
.regles-vue .plan {
  display: grid;
  gap: 14px;
}

.st-marge {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: var(--surface);
  font-weight: 600;
}
.st-marge b {
  font-family: var(--f-titre) !important;
  font-stretch: normal !important;
  word-spacing: normal;
  font-size: 1.15rem;
  font-weight: 800;
}

/* ---------- 24/11 : ta série (comme sur Duolingo) et ton bilan jour / semaine / mois ---------- */
.serie {
  --flamme: #ff8a00;
  --flamme-2: #ffb800;
  --flamme-doux: #fff3e2;
  gap: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .serie {
    --flamme-doux: #3a2410;
  }
}
:root[data-theme="dark"] .serie {
  --flamme-doux: #3a2410;
}
.serie-haut {
  display: flex;
  align-items: center;
  gap: 14px;
}
.serie-flamme {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--texte-doux);
}
.serie-flamme .ico {
  width: 38px;
  height: 38px;
}
.serie.est-active .serie-flamme {
  background: linear-gradient(160deg, var(--flamme-2), var(--flamme));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 138, 0, 0.35);
}
.serie.est-active .serie-flamme .ico,
.sj--ok .sj-i .ico {
  fill: currentColor;
  fill-opacity: 0.35;
}
.serie-titre {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.serie-v {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texte);
}
.serie-v b {
  margin-right: 4px;
  font-family: var(--f-titre);
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}
.serie.est-active .serie-v b {
  color: var(--flamme);
}
.serie-sous {
  color: var(--texte-doux);
  font-size: var(--t-s);
  font-weight: 600;
}
.serie-jours {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
}
.sj {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--texte-doux);
  font-size: var(--t-xs);
  font-weight: 700;
}
.sj-i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 800;
}
.sj-i .ico {
  width: 18px;
  height: 18px;
}
.sj--ok .sj-i {
  background: linear-gradient(160deg, var(--flamme-2), var(--flamme));
  color: #fff;
}
.sj--ko .sj-i {
  background: var(--danger-doux);
  color: var(--danger);
}
.sj--auj .sj-l {
  color: var(--texte);
}
.sj--auj .sj-i {
  box-shadow: 0 0 0 2px var(--marque);
}
.serie-obj {
  display: grid;
  gap: 8px;
}
.serie-obj-t {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--texte-doux);
  font-weight: 600;
}
.serie-obj-t b {
  color: var(--texte);
}
.serie-barre {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.serie-barre span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flamme-2), var(--flamme));
}
.serie-phrase {
  color: var(--texte);
  font-weight: 600;
}
.serie-choix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.sc {
  min-height: 36px;
  padding: 0 4px;
  white-space: nowrap;
  border: 1.5px solid var(--ligne);
  border-radius: 999px;
  background: var(--surface);
  color: var(--texte-doux);
  font-size: var(--t-s);
  font-weight: 700;
}
.sc.est-actif {
  border-color: var(--flamme);
  background: var(--flamme-doux);
  color: var(--flamme);
}
.serie-pied {
  margin: 0;
}
.bilan-p-quand {
  color: var(--texte-doux);
  font-size: var(--t-s);
  font-weight: 700;
}
.bilan-p-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bp {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-m);
}
.bp p {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bp b {
  color: var(--texte);
  font-size: 1.05rem;
}
.bp .chiffre {
  font-family: var(--f-titre) !important;
  font-stretch: normal !important;
  font-size: 1.45rem;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  word-spacing: 0.05em;
}
.bp--ok {
  background: var(--ok-doux);
}
.bp--ok p {
  color: var(--ok);
}
.bp--ko {
  background: var(--danger-doux);
}
.bp--ko p {
  color: var(--danger);
}
.bilan-p-lignes {
  list-style: none;
  display: grid;
  margin: 0;
  padding: 0;
}
.bilan-p-lignes li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ligne);
  color: var(--texte-doux);
  font-weight: 600;
}
.bilan-p-lignes li b {
  color: var(--texte);
}
.bilan-p-pire,
.bilan-p-bravo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  font-weight: 600;
}
.bilan-p-pire {
  background: var(--danger-doux);
  color: var(--danger);
}
.bilan-p-bravo {
  background: var(--ok-doux);
  color: var(--ok);
}
.bilan-p-pire .ico,
.bilan-p-bravo .ico {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* ---------- 24/11 : le calendrier refait (« c'est un peu moche, refais le design ») ---------- */
.cal.carte {
  gap: 14px;
}
.cal .cal-sem span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
  text-transform: none;
}
.cal .cal-grille {
  gap: 6px;
}
.cal .cal-case {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--texte);
  text-align: center;
}
.cal .cal-n {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  opacity: 1;
}
.cal .cal-case--we .cal-n {
  color: var(--texte-doux);
}
.cal .cal-case--futur .cal-n {
  opacity: 0.35;
}
.cal .cal-case.est-auj {
  box-shadow: inset 0 0 0 2px var(--marque);
}
.cal .cal-case.est-auj .cal-n {
  color: var(--marque);
}
.cal .cal-case--ok,
.cal .cal-case--ko {
  color: #fff;
}
.cal .cal-case--ok {
  background: linear-gradient(160deg, #3bd685, #0b8a4b);
  box-shadow: 0 4px 10px rgba(11, 138, 75, 0.25);
}
.cal .cal-case--ko {
  background: linear-gradient(160deg, #ff7f8c, #d2263b);
  box-shadow: 0 4px 10px rgba(210, 38, 59, 0.25);
}
.cal .cal-case--ok .cal-n,
.cal .cal-case--ko .cal-n,
.cal .cal-case--ok.est-auj .cal-n,
.cal .cal-case--ko.est-auj .cal-n {
  color: #fff;
}
.cal .cal-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}
.cal .cal-case--ok .cal-badge {
  color: #0b8a4b;
}
.cal .cal-case--ko .cal-badge {
  color: #d2263b;
}
.cal .cal-badge .ico {
  width: 10px;
  height: 10px;
  stroke-width: 3.4;
}
/* Résultat : la couleur suit le montant */
.cal .cal-case--pos,
.cal .cal-case--neg {
  gap: 1px;
  color: #fff;
}
.cal .cal-case--pos {
  background: color-mix(in oklab, #0b8a4b calc(var(--i) * 75% + 25%), var(--surface));
}
.cal .cal-case--neg {
  background: color-mix(in oklab, #d2263b calc(var(--i) * 75% + 25%), var(--surface));
}
.cal .cal-case--pos .cal-n,
.cal .cal-case--neg .cal-n {
  font-size: 12px;
  color: #fff;
}
.cal .cal-v {
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
}
.cal-legende {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  color: var(--texte-doux);
  font-size: var(--t-xs);
  font-weight: 700;
}
.cl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cl::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.cl--ok::before {
  background: linear-gradient(160deg, #3bd685, #0b8a4b);
}
.cl--ko::before {
  background: linear-gradient(160deg, #ff7f8c, #d2263b);
}
.cal .mini-stats--cal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}
.cal .mini-stats--cal > div {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-radius: var(--r-m);
  background: var(--surface-2);
  text-align: center;
}
