/* Page publique de l'espace profs (`/profs/`, `npm run build:profs`),
   maquettes `docs/maquettes/espace-profs/profs · desktop 1280.png` et
   `profs · mobile 390.png`. Mobile d'abord ; couleurs, rayons et reliefs
   viennent de tokens.css. Les icones au trait du site sont peintes en masque
   (`.profs-ico`), a la couleur du texte de leur carre : jamais une icone
   noire sur un fond fonce. */

/* --- Gabarit de la page ---------------------------------------------------- */
[data-page="profs-accueil"] .site-frame > .course-page {
  display: block;
  max-width: calc(1080px + 2 * var(--content-gutter));
  padding-block: var(--sp-3) 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Le seul appel de l'en-tete de cette page : violet, comme la maquette */
[data-page="profs-accueil"] .site-top__signup {
  background: var(--violet);
  box-shadow: 0 var(--edge-sm) 0 var(--violet-edge);
  color: var(--on-accent);
}

.profs-section {
  margin-top: 64px;
}

.profs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profs-section h2,
.profs-live h2,
.profs-final h2 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.9375rem;
  font-weight: 800;
  line-height: 1.08;
}

.profs-hl {
  color: var(--flame-text);
}

.profs-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profs-kicker .site-icon {
  width: 18px;
  height: 18px;
}

.profs-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.profs-card {
  border: 1px solid var(--border);
  border-bottom: var(--relief) solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.profs-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
}

.profs-card p {
  margin: 0;
  color: var(--muted);
}

/* Glyphes du site (`<img class="site-icon">`, 24 px par defaut) : la
   taille dessinee est celle de l'attribut, comme sur la maquette */
.course-page .site-icon[width="16"] { width: 16px; height: 16px; }
.course-page .site-icon[width="18"] { width: 18px; height: 18px; }
.course-page .site-icon[width="20"] { width: 20px; height: 20px; }
.course-page .site-icon[width="26"] { width: 26px; height: 26px; }
.course-page .site-icon[width="28"] { width: 28px; height: 28px; }
.course-page .site-icon[width="30"] { width: 30px; height: 30px; }
.course-page .site-icon[width="34"] { width: 34px; height: 34px; }
.course-page .site-icon[width="38"] { width: 38px; height: 38px; }
.course-page .site-icon[width="48"] { width: 48px; height: 48px; }
.course-page .site-icon[width="50"] { width: 50px; height: 50px; }
.course-page .site-icon[width="54"] { width: 54px; height: 54px; }
.course-page .site-icon[width="84"] { width: 84px; height: 84px; }

/* Icone au trait en masque : `data-icon` choisit le dessin */
.profs-ico {
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: var(--profs-ico) center / contain no-repeat;
}

.profs-ico[data-icon="fiche"] { --profs-ico: url("/icones/interface/fiche.svg?v=d22727c16a"); }
.profs-ico[data-icon="reviser"] { --profs-ico: url("/icones/interface/reviser.svg?v=df7fc71fcb"); }
.profs-ico[data-icon="sujet"] { --profs-ico: url("/icones/interface/sujet.svg?v=d3681fecec"); }
.profs-ico[data-icon="utilisateur"] { --profs-ico: url("/icones/interface/utilisateur.svg?v=734c5dce86"); }
.profs-ico[data-icon="cadenas"] { --profs-ico: url("/icones/interface/cadenas.svg?v=36b4f62100"); }
.profs-ico[data-icon="horloge"] { --profs-ico: url("/icones/interface/horloge.svg?v=e32d01db20"); }
.profs-ico[data-icon="telecharger"] { --profs-ico: url("/icones/interface/telecharger.svg?v=13737c5b99"); }
.profs-ico[data-icon="coffre"] { --profs-ico: url("/icones/interface/coffre.svg?v=6fa6073fc1"); }
.profs-ico[data-icon="valider"] { --profs-ico: url("/icones/interface/valider.svg?v=720fe4c2e8"); }
.profs-ico[data-icon="cible"] { --profs-ico: url("/icones/interface/cible.svg?v=12e550bce2"); }
.profs-ico[data-icon="revanche"] { --profs-ico: url("/icones/interface/revanche.svg?v=9aafdc98af"); }
.profs-ico[data-icon="suivant"],
.profs-ico[data-icon="chevron"] { --profs-ico: url("/icones/interface/suivant.svg?v=aa678bbbe6"); }
.profs-ico[data-icon="eclair"] { --profs-ico: url("/icones/glyphes/eclair.svg?v=ae56cd3900"); }
.profs-ico[data-icon="etoile"] { --profs-ico: url("/icones/glyphes/etoile.svg?v=6feee23253"); }
.profs-ico[data-icon="flamme"] { --profs-ico: url("/icones/glyphes/flamme.svg?v=0feccccaad"); }

/* Carre de couleur qui porte une icone */
.profs-tile {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid;
  border-radius: 12px;
}

.profs-tile[data-tone="violet"] { border-color: var(--violet-edge); background: var(--violet); color: var(--on-accent); }
.profs-tile[data-tone="flame"] { border-color: var(--flame-edge); background: var(--flame); color: var(--on-flame); }
.profs-tile[data-tone="cyan"] { border-color: var(--cyan-edge); background: var(--cyan); color: var(--on-flame); }
.profs-tile[data-tone="success"] { border-color: var(--success-dark); background: var(--success); color: var(--on-accent); }
.profs-tile[data-tone="soft"] { border-color: var(--border); background: var(--soft); color: var(--muted); }

.profs-tile--lg {
  width: 88px;
  height: 88px;
  border-bottom-width: 5px;
  border-radius: var(--r-xl);
}

.profs-tile--lg .profs-ico {
  width: 44px;
  height: 44px;
}

.profs-spark {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.profs-spark[data-tone="flame"] { fill: var(--flame); }
.profs-spark[data-tone="cyan"] { fill: var(--cyan); }
.profs-spark[data-tone="violet"] { fill: var(--sel-border); }

.profs-confetti {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profs-confetti [data-tone="pink"] { fill: var(--subject-francais); }
.profs-confetti [data-tone="cyan"] { fill: var(--cyan); }
.profs-confetti [data-tone="violet"] { fill: var(--sel-border); }
.profs-confetti [data-tone="flame"] { fill: var(--flame); }
.profs-confetti [data-tone="green"] { fill: var(--league-emeraude); }

.button .profs-ico {
  width: 24px;
  height: 24px;
}

/* --- Hero ----------------------------------------------------------------- */
.profs-hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.profs-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
}

.profs-hero__chips .site-icon {
  width: 16px;
  height: 16px;
}

.profs-hero h1 {
  margin: var(--sp-4) 0 18px;
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.profs-hero__accent {
  position: relative;
}

.profs-hero__line {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 14px;
  fill: none;
  stroke: var(--flame-deep);
  stroke-width: 5;
  stroke-linecap: round;
}

.profs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 22px;
}

.profs-actions .button {
  width: 100%;
}

.profs-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.profs-counters li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-bottom: var(--relief) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.profs-counters strong {
  margin-bottom: -8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
}

/* Scene de l'exemple : fond, etincelles, pastilles flottantes */
.profs-scene {
  position: relative;
  padding: var(--space-6) var(--sp-2) 40px;
}

.profs-scene::before {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  background: var(--hero);
  content: '';
}

.profs-spark[data-place="top"] { top: -14px; left: 40%; width: 28px; height: 28px; }
.profs-spark[data-place="bottom"] { bottom: 20px; left: 46%; }
.profs-spark[data-place="side"] { top: 44%; right: 6px; width: 16px; height: 16px; }

.profs-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-bottom: var(--relief) solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.15;
}

.profs-float small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.profs-float[data-float="xp"] { top: -10px; right: -2px; border-color: var(--sel-border); background: var(--sel-bg); color: var(--sel-text); transform: rotate(4deg); }
.profs-float[data-float="fire"] { bottom: 36px; left: -4px; border-color: var(--warm-border); background: var(--warm-bg); color: var(--warm-strong); transform: rotate(-5deg); }
.profs-float[data-float="badge"] { right: 8px; bottom: -14px; border-color: var(--green-strong); background: var(--green-bg); color: var(--green-strong); transform: rotate(-3deg); }
.profs-float[data-float="crown"] { display: none; top: 96px; left: -30px; padding: 10px; transform: rotate(-8deg); }

.profs-float[data-float="xp"] small,
.profs-float[data-float="fire"] small { color: inherit; opacity: 0.8; }

/* Tableau de suivi d'exemple, a onglets */
.profs-demo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-bottom: var(--edge-md) solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.profs-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profs-demo__tab {
  min-height: 40px;
  padding: 0 var(--sp-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.profs-demo__tab[aria-selected="true"] {
  border-color: var(--sel-border);
  background: var(--sel-bg);
  color: var(--sel-text);
}

.profs-demo__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.profs-demo__panel[hidden] {
  display: none;
}

.profs-demo__top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.profs-demo__dot {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-bottom: 4px solid;
  border-radius: var(--radius-md);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
}

.profs-demo__dot[data-tone="francais"] { border-color: var(--subject-francais-edge); background: var(--subject-francais); }
.profs-demo__dot[data-tone="maths"] { border-color: var(--subject-maths-edge); background: var(--subject-maths); }
.profs-demo__dot[data-tone="bac"] { border-color: var(--subject-philo-edge); background: var(--subject-philo); }

.profs-demo__head {
  flex: 1;
  min-width: 0;
}

.profs-demo__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.15;
}

.profs-demo__line {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.profs-demo__progress {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
}

.profs-demo__progress span {
  color: var(--muted);
}

.profs-demo__segs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: var(--sp-1);
}

.profs-demo__segs i {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--track);
}

.profs-demo__segs i[data-on] { background: var(--success); }
.profs-demo__segs i[data-now] { background: var(--flame); }

.profs-demo__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profs-demo__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: var(--soft);
  font-size: 0.9375rem;
  font-weight: 700;
}

.profs-demo__row .chip {
  display: none;
}

.profs-demo__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-bottom: 3px solid;
  border-radius: 50%;
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 800;
}

.profs-demo__avatar[data-tone="1"] { border-color: var(--violet-edge); background: var(--violet); }
.profs-demo__avatar[data-tone="2"] { border-color: var(--cyan-edge); background: var(--cyan-edge); }
.profs-demo__avatar[data-tone="3"] { border-color: var(--subject-francais-edge); background: var(--subject-francais); }
.profs-demo__avatar[data-tone="4"] { border-color: var(--border); background: var(--soft); color: var(--muted); }

.profs-demo__score {
  font-family: var(--font-display);
  font-size: 1.0625rem;
}

.profs-demo__foot {
  display: grid;
  gap: 10px;
}

.profs-demo__hard {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px var(--sp-3);
  border: 2px solid var(--warm-border);
  border-radius: var(--radius-lg);
  background: var(--warm-bg);
  color: var(--warm-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.profs-demo__hard strong {
  display: block;
  color: var(--warm-strong);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bouton dessine : l'exemple ne relance personne */
.profs-demo__nudge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 4px solid var(--violet-edge);
  border-radius: var(--radius-lg);
  background: var(--violet);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 800;
}

.profs-demo__note {
  align-self: flex-end;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Etapes ---------------------------------------------------------------- */
.profs-steps {
  display: grid;
  gap: var(--space-8);
  width: 100%;
  margin: var(--sp-7) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.profs-step {
  position: relative;
  border-bottom-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--sp-5) var(--space-6) var(--space-6);
}

.profs-step__number {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-bottom: 4px solid var(--violet-edge);
  border-radius: 50%;
  background: var(--violet);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
}

.profs-step__number[data-tone="flame"] {
  border-bottom-color: var(--flame-edge);
  background: var(--flame);
  color: var(--on-flame);
}

.profs-step__ill {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.profs-spark[data-place="a"] { top: 16px; left: 22px; }
.profs-spark[data-place="b"] { right: 26px; bottom: 18px; width: 14px; height: 14px; }

.profs-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--sp-3) 18px;
  border: 3px dashed var(--sel-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--sel-text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: rotate(-3deg);
}

.profs-ticket .gem {
  width: 26px;
  height: 26px;
  filter: none;
}

.profs-stack {
  position: relative;
  width: 200px;
  height: 110px;
}

.profs-mini {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  padding: 10px var(--sp-3);
  border: 1px solid var(--border);
  border-bottom: 4px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 800;
}

.profs-mini .profs-demo__dot {
  width: 30px;
  height: 30px;
  border-bottom-width: 3px;
  border-radius: 9px;
  font-size: 0.75rem;
}

.profs-mini .site-icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
}

.profs-mini[data-place="1"] { top: 0; left: 0; transform: rotate(-6deg); }
.profs-mini[data-place="2"] { top: 34px; left: 18px; transform: rotate(3deg); }
.profs-mini[data-place="3"] { top: 68px; left: 30px; }

.profs-chart {
  position: relative;
  width: 210px;
  height: 110px;
}

.profs-bars {
  width: 210px;
  height: 110px;
}

.profs-bars [data-tone="violet"] { fill: var(--violet); stroke: var(--violet); }
.profs-bars [data-tone="flame"] { fill: var(--flame); stroke: var(--flame); }

.profs-chart .site-icon {
  position: absolute;
  top: -6px;
  left: 150px;
}

/* --- Boucle ---------------------------------------------------------------- */
.profs-loop {
  display: grid;
  gap: var(--sp-1);
  width: 100%;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.profs-loop__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
  padding: 22px 18px;
  text-align: center;
}

.profs-loop__item p {
  font-size: 0.9375rem;
}

.profs-loop__arrow {
  display: grid;
  place-items: center;
  height: 36px;
  color: var(--muted);
  transform: rotate(90deg);
}

.profs-loop__arrow .profs-ico {
  width: 30px;
  height: 30px;
}

.profs-loop__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* --- Jeu de la classe ------------------------------------------------------ */
.profs-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.profs-feature {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--space-6);
}

.profs-feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profs-feature h3 .gem {
  width: 28px;
  height: 28px;
  filter: none;
}

.profs-feature p {
  font-size: 0.9375rem;
}

.profs-medals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.profs-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  border-radius: var(--radius-lg);
  background: var(--soft);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.profs-medal svg {
  width: 56px;
  height: 56px;
}

.profs-medal span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.profs-medal[data-best] {
  background: var(--green-bg);
  color: var(--green-strong);
  outline: 2px solid var(--green-strong);
}

.profs-medal[data-best] span { color: var(--green-text); }

.profs-medal[data-rank="1"] .profs-medal__ribbon { fill: var(--muted); opacity: 0.6; }
.profs-medal[data-rank="1"] .profs-medal__rim { fill: var(--border); }
.profs-medal[data-rank="1"] .profs-medal__core { fill: var(--surface); }
.profs-medal[data-rank="1"] .profs-medal__sign { fill: var(--muted); }
.profs-medal[data-rank="2"] .profs-medal__ribbon { fill: var(--violet-edge); }
.profs-medal[data-rank="2"] .profs-medal__rim { fill: var(--violet); }
.profs-medal[data-rank="2"] .profs-medal__core { fill: var(--violet-edge); }
.profs-medal[data-rank="2"] .profs-medal__sign { fill: var(--violet-light); }
.profs-medal[data-rank="3"] .profs-medal__ribbon { fill: var(--flame-edge); }
.profs-medal[data-rank="3"] .profs-medal__rim { fill: var(--flame); }
.profs-medal[data-rank="3"] .profs-medal__core { fill: var(--flame-deep); }
.profs-medal[data-rank="3"] .profs-medal__sign { fill: var(--on-accent); }

.profs-medal__lines {
  fill: none;
  stroke: var(--violet-edge);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.profs-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.profs-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: var(--radius-md);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.profs-day .profs-ico {
  width: 24px;
  height: 24px;
  opacity: 0.45;
}

.profs-day[data-on] {
  background: var(--warm-bg);
  color: var(--warm-strong);
}

.profs-day[data-today] {
  outline: 2px dashed var(--flame);
}

.profs-day[data-today] .site-icon {
  width: 30px;
  height: 30px;
  margin-block: -3px;
}

.profs-leagues {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: var(--sp-1) 0 0;
  list-style: none;
}

.profs-league {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
}

.profs-league .gem {
  width: 30px;
  height: 30px;
  filter: none;
}

.profs-league .chip {
  padding: 3px var(--sp-2);
  font-size: 0.6875rem;
}

.profs-league[data-current] {
  color: var(--text);
}

.profs-league[data-current] .gem {
  width: 36px;
  height: 36px;
}

.profs-league__bar {
  width: 100%;
  border-bottom: 4px solid var(--league-edge);
  border-radius: 10px 10px 4px 4px;
  background: var(--league);
}

.profs-league[data-current] .profs-league__bar {
  outline: 3px solid var(--sel-border);
}

.profs-league__bar[data-step="1"] { height: 28px; }
.profs-league__bar[data-step="2"] { height: 42px; }
.profs-league__bar[data-step="3"] { height: 56px; }
.profs-league__bar[data-step="4"] { height: 70px; }
.profs-league__bar[data-step="5"] { height: 84px; }
.profs-league__bar[data-step="6"] { height: 98px; }

.profs-goal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
}

.profs-ring {
  position: relative;
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  margin: 0;
}

.profs-ring svg {
  width: 132px;
  height: 132px;
  transform: rotate(-90deg);
}

.profs-ring__track,
.profs-ring__value {
  fill: none;
  stroke-width: 14;
}

.profs-ring__track { stroke: var(--track); }
.profs-ring__value { stroke: var(--flame); stroke-linecap: round; }

.profs-ring > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.profs-ring strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.profs-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 700;
}

.profs-tiers li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profs-tiers .profs-tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.profs-tiers .profs-ico {
  width: 18px;
  height: 18px;
}

/* --- Usages ---------------------------------------------------------------- */
.profs-uses {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.profs-use {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profs-use__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 130px;
}

.profs-use__art > svg {
  width: 190px;
  height: 100px;
}

.profs-use[data-tone="maths"] .profs-use__art { background: var(--subject-maths); }
.profs-use[data-tone="francais"] .profs-use__art { background: var(--subject-francais); }
.profs-use[data-tone="bac"] .profs-use__art { background: var(--subject-philo); }

.profs-use__art .chip {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
}

.profs-use[data-tone="maths"] .profs-use__art > .site-icon {
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 22px);
}

.profs-use[data-tone="bac"] .profs-use__art > .site-icon {
  position: absolute;
  top: calc(50% - 52px);
  left: calc(50% + 32px);
}

.profs-art__edge { fill: var(--on-flame); opacity: 0.35; }
.profs-use[data-tone="maths"] .profs-art__edge { fill: var(--subject-maths-edge); opacity: 1; }
.profs-use[data-tone="francais"] .profs-art__edge { fill: var(--subject-francais-edge); opacity: 1; }
.profs-use[data-tone="bac"] .profs-art__edge { fill: var(--subject-philo-edge); opacity: 1; }
.profs-art__paper { fill: var(--on-accent); }
.profs-art__math { fill: var(--subject-maths); font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.profs-art__cyan { fill: var(--cyan); }
.profs-art__flame { fill: var(--flame); }
.profs-art__violet { fill: var(--violet); }
.profs-art__ink { fill: var(--on-flame); }
.profs-art__light { fill: var(--on-accent); }
.profs-art__ink--soft { opacity: 0.5; }
.profs-art__title { fill: var(--subject-philo); }
.profs-art__line { fill: var(--violet-light); opacity: 0.5; }

.profs-use__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 22px;
}

.profs-use ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.profs-use li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.profs-use li .site-icon,
.profs-use li .gem {
  width: 20px;
  height: 20px;
  filter: none;
}

.profs-use__link {
  margin-top: auto;
  color: var(--accent-text);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* --- Defi au tableau ------------------------------------------------------- */
.profs-live {
  position: relative;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  margin-top: 64px;
  padding: var(--space-6);
  overflow: hidden;
  border: 2px solid var(--warm-border);
  border-radius: var(--radius-2xl);
  background: var(--warm-bg);
}

.profs-live__text {
  position: relative;
}

.profs-live .profs-kicker,
.profs-live h2 {
  color: var(--warm-strong);
}

.profs-live .profs-lead {
  color: var(--warm-text);
}

.profs-live .button {
  width: 100%;
  margin-top: var(--sp-6);
}

.profs-live__podium {
  position: relative;
  display: flex;
  flex-direction: column;
}

.profs-live__podium .profs-demo__note {
  color: var(--warm-text);
}

.profs-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: var(--sp-5) 0 0;
  list-style: none;
}

.profs-podium__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.profs-podium__name {
  color: var(--warm-strong);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.1;
}

.profs-podium__score {
  color: var(--warm-text);
  font-size: 0.8125rem;
  font-weight: 800;
}

.profs-podium__step strong {
  display: grid;
  place-items: start center;
  box-sizing: border-box;
  width: 100%;
  padding-top: 10px;
  border-bottom: 6px solid;
  border-radius: 16px 16px 6px 6px;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
}

.profs-podium__step[data-rank="1"] strong { height: 130px; border-color: var(--flame-edge); background: var(--flame); color: var(--on-flame); }
.profs-podium__step[data-rank="2"] strong { height: 96px; border-color: var(--violet-edge); background: var(--violet); color: var(--on-accent); }
.profs-podium__step[data-rank="3"] strong { height: 72px; border-color: var(--cyan-edge); background: var(--cyan); color: var(--on-flame); }

/* --- Donnees des eleves ---------------------------------------------------- */
.profs-data {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}

.profs-shield {
  width: 92px;
  height: 104px;
  margin-bottom: var(--sp-3);
}

.profs-shield__edge { fill: var(--success-dark); }
.profs-shield__body { fill: var(--success); }

.profs-shield__check {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profs-checks {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.profs-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-bottom: var(--relief) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.profs-check .profs-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.profs-check strong {
  display: block;
}

.profs-check > span:last-child {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.profs-check > span:last-child strong {
  margin-bottom: var(--sp-1);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

/* --- FAQ -------------------------------------------------------------------- */
.profs-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 820px;
  margin-top: var(--sp-6);
  text-align: left;
}

.profs-faq__item {
  padding: 0 var(--sp-5);
  border: 1px solid var(--border);
  border-bottom: var(--relief) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profs-faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.profs-faq__item summary::-webkit-details-marker {
  display: none;
}

.profs-faq__item .profs-tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.profs-faq__item .profs-tile .profs-ico {
  width: 20px;
  height: 20px;
}

.profs-faq__question {
  flex: 1;
}

.profs-faq__chevron {
  color: var(--muted);
  transform: rotate(90deg);
}

.profs-faq__item[open] .profs-faq__chevron {
  transform: rotate(-90deg);
}

.profs-faq__item p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* --- Appel final ------------------------------------------------------------ */
.profs-final {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
  padding: var(--sp-7) var(--sp-5);
  overflow: hidden;
  border: 2px solid var(--sel-border);
  border-radius: var(--radius-2xl);
  background: var(--sel-bg);
  text-align: center;
}

.profs-final h2 {
  position: relative;
  margin: 0;
  color: var(--sel-text);
}

.profs-final .profs-lead {
  position: relative;
  color: var(--sel-text);
}

.profs-final .button {
  position: relative;
  width: 100%;
}

.profs-final__art {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 6px;
}

.profs-final__art .gem {
  width: 54px;
  height: 54px;
  filter: none;
}

.profs-final__login {
  position: relative;
  color: var(--sel-text);
  font-size: 0.9375rem;
  font-weight: 800;
}

/* --- Ordinateur ------------------------------------------------------------- */
@media (min-width: 901px) {
  [data-page="profs-accueil"] .site-frame > .course-page {
    padding-top: var(--sp-6);
  }

  .profs-section,
  .profs-live,
  .profs-final {
    margin-top: 96px;
  }

  .profs-section h2,
  .profs-live h2,
  .profs-final h2 {
    font-size: 2.625rem;
  }

  .profs-lead {
    font-size: 1.1875rem;
  }

  .profs-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: var(--space-14);
  }

  .profs-hero h1 {
    font-size: 3.625rem;
  }

  .profs-hero__accent {
    white-space: nowrap;
  }

  .profs-actions .button {
    width: auto;
  }

  .profs-counters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
  }

  .profs-counters li {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
    padding: 10px 14px 10px 10px;
  }

  .profs-counters .profs-tile { grid-row: span 2; }
  .profs-counters strong { margin: 0; align-self: end; }
  .profs-counters li > span:last-child { align-self: start; }

  .profs-scene {
    padding: var(--sp-6) 34px 34px;
  }

  .profs-float[data-float="xp"] { top: -6px; right: -10px; }
  .profs-float[data-float="fire"] { bottom: 58px; left: -36px; }
  .profs-float[data-float="badge"] { right: 24px; bottom: -18px; }
  .profs-float[data-float="crown"] { display: flex; }

  .profs-demo {
    padding: var(--sp-5);
    border-radius: var(--radius-2xl);
  }

  .profs-demo__row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
  }

  .profs-demo__row .chip {
    display: inline-flex;
  }

  .profs-demo__foot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profs-steps,
  .profs-uses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
  }

  .profs-loop {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: center;
    gap: 0;
  }

  .profs-loop__arrow {
    height: auto;
    transform: none;
  }

  .profs-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .profs-medals {
    gap: var(--sp-3);
  }

  .profs-week {
    gap: var(--sp-2);
  }

  .profs-goal {
    flex-direction: row;
    align-items: center;
  }

  .profs-live {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 44px;
  }

  .profs-confetti { display: block; }

  .profs-live .button { width: auto; }

  .profs-podium__step strong { font-size: 2.5rem; }
  .profs-podium__step[data-rank="1"] strong { height: 170px; }
  .profs-podium__step[data-rank="2"] strong { height: 124px; }
  .profs-podium__step[data-rank="3"] strong { height: 92px; }

  .profs-data {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
  }

  .profs-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profs-faq__item p {
    margin-left: 50px;
  }

  .profs-final {
    padding: var(--space-14) var(--space-8);
  }

  .profs-final .button {
    width: auto;
  }
}
