/* La Table (accueil) et la grille du jury. */
/* ------------------------------------------------------------ table (home) */
.table-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 40px; align-items: start; }
.draw-zone { display: flex; flex-direction: column; gap: 22px; }
.draw-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.count { font-family: var(--disp); font-size: clamp(64px, 8vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.count-l { color: var(--fg-dim); max-width: 26ch; }
.count-l strong { color: var(--fg); font-weight: 600; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.mode {
  text-align: left; padding: 14px 16px; border: 1px solid var(--baize-line); border-radius: 4px;
  transition: border-color .2s, background .2s;
}
.mode:hover { border-color: var(--fg-dim); background: rgba(255,255,255,.04); }
.mode h3 { color: var(--fg); }
.mode p { color: var(--fg-dim); font-size: 14px; margin-top: 4px; line-height: 1.4; }
.mode .len { display: flex; gap: 6px; margin-top: 10px; }
.mode .len span { font-family: var(--disp); font-size: 13px; padding: 2px 8px; border: 1px solid var(--baize-line); border-radius: 3px; color: var(--fg-dim); }
.mode .len span.on { background: var(--cream); color: var(--on-cream); border-color: var(--cream); }

/* jury grid */
.jury { border-top: 1px solid var(--baize-line); }
.jury .dom { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 6px; }
.jury .dom h3 { color: var(--fg-dim); }
.jury .dom span { font-family: var(--type); font-size: 12px; color: var(--fg-faint); }
.jrow {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 40px; gap: 12px; align-items: center;
  padding: 7px 0; border-top: 1px dashed var(--baize-line); width: 100%; text-align: left; transition: background .15s;
}
.jrow:hover { background: rgba(255,255,255,.04); }
.jrow .lbl { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow .lbl small { display: block; font-size: 12px; color: var(--fg-faint); white-space: normal; }
.meter { height: 10px; position: relative; border-bottom: 1px solid var(--fg-faint); }
.meter i { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--cream); width: var(--w); transition: width .6s var(--ease); }
.meter.none { border-bottom-style: dotted; }
.meter.low i { background: var(--stamp); }
.meter.mid i { background: var(--amber); }
.jrow .due { font-family: var(--disp); font-size: 15px; text-align: right; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.jrow .due b { color: var(--cream); font-weight: 600; }
.jury .sub { font-family: var(--disp); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); padding: 10px 0 2px; border-bottom: 1px dotted var(--baize-line); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--fg-faint); padding-top: 12px; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 5px; background: var(--cream); }
.legend i.low { background: var(--stamp); } .legend i.mid { background: var(--amber); } .legend i.none { background: none; border-bottom: 1px dotted var(--fg-faint); height: 0; }

/* ------------------------------------------------------------ les trois voies (30/09)
   Trois colonnes de texte séparées par des filets pointillés, dans l'ordre fixe lire · faire · retenir. Pas de
   carte, pas d'icône : le VERBE en capitales Oswald porte chaque colonne. La voie conseillée en premier reçoit un
   numéro d'ordre cerclé crème et un filet supérieur crème ; la seconde un numéro atténué. */
.voies { margin-bottom: 30px; border-top: 1px solid var(--baize-line); border-bottom: 1px solid var(--baize-line); }
.vwhy { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 0 10px; font-size: 15px; color: var(--fg-dim); border-bottom: 1px dashed var(--baize-line); }
.vwhy > span { flex: 1 1 420px; max-width: 96ch; }
.vwhy b { color: var(--fg); font-weight: 600; }
.vwhy .xlink { color: var(--fg-dim); }
.vwhy .xlink:hover { color: var(--fg); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.voie { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; border-left: 1px dashed var(--baize-line); border-top: 2px solid transparent; margin-top: -1px; }
.voie:first-child { border-left: 0; padding-left: 0; }
.voie.rec { border-top-color: var(--cream); }
.vh { display: flex; align-items: center; gap: 10px; }
.vv { font-family: var(--disp); font-weight: 500; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); line-height: 1; }
.voie:not(.rec) .vv { color: var(--fg-dim); }
.vn { font-family: var(--disp); font-size: 14px; font-weight: 600; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--fg-faint); color: var(--fg-dim); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.voie.rec .vn { border-color: var(--cream); background: var(--cream); color: var(--on-cream); }
.vt { font-family: var(--disp); font-weight: 400; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.voie p { font-size: 14.5px; color: var(--fg-dim); line-height: 1.45; margin-top: 4px; flex: 1; }
.vb { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* « D'où pars-tu ? » : la feuille de la convocation, trois réponses en lignes de QCM */
.login.pub { max-width: 640px; }
.pubopts { display: grid; gap: 10px; margin-top: 16px; }
.pubopt { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--card-edge); border-radius: 3px; background: var(--card-in); color: var(--ink); transition: border-color .15s, background .15s; }
.pubopt:hover { border-color: var(--ink-dim); }
.pubopt.on { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); }
.pubopt .k { font-family: var(--disp); font-size: 18px; font-weight: 600; color: var(--ink-dim); text-align: center; border: 1.5px solid var(--card-edge); border-radius: 3px; line-height: 28px; }
.pubopt b { font-family: var(--disp); font-weight: 500; font-size: 17px; letter-spacing: .04em; }
.pubopt small { display: block; font-size: 14px; color: var(--ink-dim); margin-top: 2px; line-height: 1.4; }
/* lot 8 : sous les trois réponses, l'autre voie — laisser le test de niveau mesurer — puis la question d'expérience
   (une fois par compte). Filets pointillés de la feuille, pas de carte. */
.pubtest, .pubxp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--card-edge); color: var(--ink); font-size: 15px; }
.pubtest > span, .pubxp > span:first-child { flex: 1 1 260px; }
.pubtest > span { font-family: var(--disp); font-weight: 500; font-size: 16px; letter-spacing: .04em; }
.pubtest small, .pubxp small { display: block; font-family: var(--sans); font-weight: 400; letter-spacing: 0; font-size: 13.5px; color: var(--ink-dim); margin-top: 2px; line-height: 1.4; }
.ink .mode-toggle { border-color: var(--card-edge); }
.ink .mode-toggle button { color: var(--ink-dim); }
.ink .mode-toggle button.on { background: var(--ink); color: var(--card); }

/* Réglages › Compte : une rangée pointillée par filière, comme la grille du jury */
.pubtks { margin-top: 8px; border-top: 1px dashed var(--baize-line); }
.pubtk { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto 150px; gap: 6px 14px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--baize-line); }
.pubtk .pn { font-family: var(--disp); font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.pubtk .pm { font-size: 13.5px; color: var(--fg-dim); }
.pubtk .pm b { color: var(--fg); font-weight: 600; }
.pubtk [data-pubtest] { justify-self: stretch; }

/* ------------------------------------------------------------ « Par où commencer » (lot 13, 02/10)
   Le carton unique d'un compte qui n'a rien fait dans la filière : une feuille crème centrée sur le tapis, un en-tête de
   registre (Courier Prime : ce que l'étudiant a dit), le titre, UNE phrase qui dit pourquoi, UN tampon rouge, puis les
   autres portes en boutons secondaires et le test en lien pointillé. Pas de carte icône-titre-texte : c'est une feuille. */
.start { max-width: 880px; margin: 0 auto 30px; padding: 22px 28px 16px; }
.start .seye { font-family: var(--type); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); }
.start .seye b { color: var(--ink); font-weight: 600; }
.start .seye .xlink { display: inline; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; padding: 0; margin-left: 8px; vertical-align: baseline; }
.start h2 { color: var(--ink); font-size: 30px; letter-spacing: .08em; margin-top: 8px; line-height: 1.1; }
.start .why { font-size: 16.5px; line-height: 1.5; color: var(--ink); max-width: 70ch; margin-top: 10px; text-wrap: pretty; }
.start .sacts { display: flex; align-items: center; gap: 16px 26px; flex-wrap: wrap; margin-top: 22px; }
.start .snext { font-size: 14px; color: var(--ink-dim); max-width: 38ch; line-height: 1.4; }
.start .snext b { color: var(--ink); font-weight: 600; }
.start .salt { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--card-edge); }
.start .salt .xlink { margin-left: auto; font-size: 13.5px; }
.start .glp { font-size: 14px; color: var(--ink-dim); line-height: 1.5; margin-top: 16px; max-width: 78ch; }
.start .glp b { color: var(--ink); font-weight: 600; }
.start .sfoot { display: flex; justify-content: flex-end; margin-top: 6px; }
.start .sfoot .xlink { font-size: 12.5px; }
/* sur une Table neuve, le bandeau des voies n'est plus que le moyen mnémotechnique : pas de phrase au-dessus */
.voies.mnemo { border-top: 0; }
.voies.mnemo .voie { margin-top: 0; }

@media (max-width: 720px) {
  /* le carton tient dans le premier écran : tampon pleine largeur sous la phrase, portes secondaires empilées */
  .start { padding: 16px 16px 12px; margin-bottom: 22px; }
  .start h2 { font-size: 24px; }
  .start .why { font-size: 15.5px; margin-top: 8px; }
  .start .sacts { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .start .stamp-btn { width: 100%; font-size: 18px; padding: 14px 20px; }
  .start .snext { max-width: none; text-align: center; }
  .start .salt .btn { flex: 1 1 auto; }
  .start .salt .xlink { margin-left: 0; flex: 1 1 100%; text-align: left; }
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .voie { border-left: 0; padding: 12px 0 14px; border-top: 1px dashed var(--baize-line); margin-top: 0; }
  .voie:first-child { border-top: 0; }
  .voie.rec { border-top: 2px solid var(--cream); }
  .vv { font-size: 22px; }
  .vb .btn { flex: 1 1 auto; }
  .vwhy .btn { width: 100%; }
  .pubopt { min-height: 56px; }
  .pubtest .btn, .pubxp .mode-toggle { width: 100%; }
  .pubxp .mode-toggle button { flex: 1; min-height: 40px; }
  .pubtk { grid-template-columns: minmax(0, 1fr) auto; }
  .pubtk .pm { grid-column: 1 / -1; grid-row: 2; }
  .pubtk .mode-toggle { grid-column: 1 / -1; display: flex; }
  .pubtk .mode-toggle button { flex: 1; min-height: 38px; white-space: nowrap; }
  .pubtk [data-pubtest] { grid-column: 2; grid-row: 1; }
}
