/* Hors fil — un par un : réglages, fil de la séance, fiche du compte. */

.seance { max-width: 62rem; margin-top: 2rem; }

/* Réglages : compacts, sur une ligne quand la place le permet. */
.seance__reglages {
  display: grid; gap: .75rem 1rem; grid-template-columns: 1fr 9rem; grid-template-areas: "p b" "c c"; align-items: end;
  background: var(--teinte-2); border: 1px solid var(--teinte); border-radius: var(--rayon-grand); padding: 1rem 1.1rem;
}
.seance__reglages .champ { margin: 0; gap: .3rem; }
.seance__reglages .champ:nth-child(1) { grid-area: p; }
.seance__reglages .champ:nth-child(2) { grid-area: c; }
.seance__reglages .champ:nth-child(3) { grid-area: b; }
.seance__reglages label { font-size: 1rem; }
.seance__reglages input, .seance__reglages select { max-width: none; }
@media (max-width: 24rem) {
  .seance__reglages { grid-template-columns: 1fr; grid-template-areas: "p" "c" "b"; }
}
@media (min-width: 40rem) {
  .seance__reglages { grid-template-columns: 1fr 1.35fr 11rem; grid-template-areas: "p c b"; }
}

/* Progression : le texte, puis le fil (un morceau par compte, soulevé quand il est bloqué). */
.seance__progression { display: flex; align-items: center; gap: 1.25rem; margin: 1.75rem 0 .75rem; min-height: 2.5rem; }
.progression { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.progression__fil { flex: 1; display: flex; gap: 6px; align-items: flex-end; height: 22px; }
.progression__fil > span {
  flex: 1; height: 4px; border-radius: 4px; background: var(--trait);
  transition: transform 450ms cubic-bezier(.2, .8, .3, 1.4), background-color var(--duree) ease;
}
.progression__fil > span.courant { background: var(--encre); }
.progression__fil > span.fait { background: var(--accent); transform: translateY(-14px); }
.progression__fil--continu { position: relative; align-items: center; }
.progression__fil--continu > .progression__atteint { position: absolute; left: 0; top: 9px; flex: none; width: 100%; background: var(--trait); }
.progression__fil--continu > .progression__atteint::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--part, 0%); border-radius: 4px; background: var(--accent);
}

/* Ce qui vient de se passer, écrit en toutes lettres. */
.seance__retour {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .5rem 1rem;
  background: var(--teinte); border-radius: 999px; font-weight: 700; font-size: 1rem;
  animation: hf-apparait 300ms ease-out;
}
.seance__retour::before {
  content: ""; flex: none; width: .45rem; height: .8rem; margin: 0 .2rem -.05rem .25rem;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-2px);
}
@keyframes hf-apparait { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* La fiche du compte */
.carte-compte {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; box-shadow: var(--ombre-haute);
  padding: clamp(1.4rem, 4vw, 2.25rem); margin: 0 0 1.5rem; position: relative; overflow: hidden;
}
.carte-compte::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); }
.carte-compte.arrive { animation: hf-arrive 320ms cubic-bezier(.2, .8, .2, 1); }
@keyframes hf-arrive { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 56rem) {
  .carte-compte { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; grid-template-areas: "infos actions" "note note" "raccourcis raccourcis"; column-gap: 2.5rem; }
  .carte-compte__infos { grid-area: infos; }
  .carte-compte__actions { grid-area: actions; align-self: center; }
  .carte-compte__note { grid-area: note; }
  .raccourcis { grid-area: raccourcis; }
}
.carte-compte__tete { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: 1rem; }
.carte-compte__categorie { color: var(--encre-2); font-size: 1rem; }
.carte-compte__nom { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 .2rem; line-height: 1.1; overflow-wrap: anywhere; }
.carte-compte__identifiant { font-family: var(--mono); color: var(--encre-2); font-size: 1.1rem; margin: 0 0 1.5rem; overflow-wrap: anywhere; }

.carte-compte__etapes { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; color: var(--encre-2); font-size: 1rem; }
.carte-compte__infos > :last-child { margin-bottom: 0; }
.carte-compte__etapes li { display: flex; align-items: baseline; gap: .65rem; }
.carte-compte__num {
  flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 2px solid var(--encre-2); font-weight: 700; font-size: 1rem; line-height: 1; color: var(--encre); transform: translateY(.1rem);
}
.carte-compte__etapes li:last-child .carte-compte__num { background: var(--accent); border-color: var(--accent); color: var(--fond); }

.carte-compte__actions { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 1.5rem; }
.carte-compte__actions #plus-tard { grid-column: 1 / -1; justify-self: center; min-height: 48px; }
@media (max-width: 34rem) { .carte-compte__actions { grid-template-columns: 1fr; } }
@media (min-width: 56rem) {
  .carte-compte__actions { grid-template-columns: 1fr; margin-top: 0; }
}
.carte-compte__note { margin: 1.25rem 0 0; color: var(--encre-2); font-size: 1rem; }

/* Raccourcis clavier (facultatifs) */
.raccourcis { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--trait); font-size: 1rem; }
.raccourcis__choix { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; cursor: pointer; }
.raccourcis__aide { margin: 0; color: var(--encre-2); }
.raccourcis__aide kbd { margin-right: .15rem; }
@media (hover: none) and (pointer: coarse) { .raccourcis { display: none; } }

/* Fin de séance */
.fin { background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; box-shadow: var(--ombre); padding: clamp(1.4rem, 4vw, 2.25rem); margin-bottom: 1.5rem; }
.fin .fil-sep { margin: .5rem 0 1.5rem; max-width: 14rem; --x: 55%; }
.fin__texte { font-size: 1.3rem; font-weight: 700; max-width: 34rem; }
.fin .actions { margin: 1.25rem 0 1rem; }
.fin__suivre { margin: 0; font-weight: 700; font-size: 1rem; }
.fin__suivre a { display: inline-flex; align-items: center; min-height: 44px; }


