/* ==========================================================================
   Hooked Academy — espace étudiant et espace équipe (composants partagés).
   Mobile d'abord : barre d'onglets en bas sur téléphone, barre latérale dès 980 px.
   ========================================================================== */

/* --fg-rgb : couleur des voiles et des filets (blanc en sombre, encre en clair, voir « Thème clair » en fin de fichier) */
:root {
  --fg-rgb: 255 255 255;
}

body.ap {
  min-height: 100svh;
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(70vmax 50vmax at 100% -10%, rgb(201 162 39 / 0.1), transparent 60%),
    radial-gradient(60vmax 40vmax at -10% 110%, rgb(236 122 69 / 0.06), transparent 60%),
    var(--ink-950);
}
.ap-root {
  min-height: 100svh;
}
.ap-boot {
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.ap-boot-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgb(201 162 39 / 0.18);
  animation: bootp 1s infinite alternate;
}
@keyframes bootp {
  to {
    transform: scale(1.15);
    opacity: 0.5;
  }
}

/* Boutons */
.b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: rgb(var(--fg-rgb) / 0.06);
  color: var(--mist-100);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  transition: transform 0.25s var(--courbe), box-shadow 0.25s, background 0.2s;
  white-space: nowrap;
}
.b:hover {
  box-shadow: inset 0 0 0 1px var(--gold-400);
}
.b:active {
  transform: scale(0.97);
}
.b--or {
  background: var(--gold-grad);
  color: var(--ink-950);
  box-shadow: 0 10px 30px -12px rgb(201 162 39 / 0.8);
}
.b--or:hover {
  box-shadow: 0 0 0 6px rgb(201 162 39 / 0.15), 0 14px 36px -12px rgb(201 162 39 / 0.9);
}
.b--ok {
  background: var(--body);
  color: var(--ink-950);
  box-shadow: none;
}
.b--danger {
  color: #f0a796;
  box-shadow: inset 0 0 0 1px rgb(226 96 74 / 0.5);
}
.b--s {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.b--i {
  width: 40px;
  min-height: 40px;
  padding: 0;
}
.b[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Champs */
.in {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  font-size: 16px;
}
.in:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--gold-400), 0 0 0 4px rgb(201 162 39 / 0.14);
}
textarea.in {
  resize: vertical;
  min-height: 90px;
}
select.in option {
  background: var(--ink-850);
}
.lbl {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--mist-300);
}

/* Cartes */
.card {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(170deg, rgb(var(--fg-rgb) / 0.045), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07), 0 24px 50px -36px #000;
}
.card h3,
.card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card-k {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.muted {
  color: var(--mist-400);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgb(var(--fg-rgb) / 0.06);
}
.chip--or {
  background: rgb(201 162 39 / 0.16);
  color: var(--gold-300);
}
.chip--ok {
  background: rgb(85 184 148 / 0.16);
  color: var(--body);
}

/* Structure */
.sh {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
}
.side {
  display: none;
}
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgb(7 6 10 / 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgb(var(--fg-rgb) / 0.06);
}
.top .ha-logo {
  font-size: 13px;
  margin-inline-end: auto;
}
.xp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-300);
  background: rgb(201 162 39 / 0.12);
}
.streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--cta);
}
.av {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
  color: var(--ink-950);
  text-decoration: none;
}
.main {
  padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.tabs {
  position: fixed;
  z-index: 45;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 6px;
  border-radius: 22px;
  background: rgb(20 18 24 / 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08), 0 20px 50px -20px #000;
}
.tabs a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mist-400);
  text-decoration: none;
}
.tabs a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabs a[aria-current='page'] {
  color: var(--gold-300);
  background: rgb(201 162 39 / 0.12);
}
@media (min-width: 980px) {
  .sh {
    grid-template-columns: 250px 1fr;
  }
  .side {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 16px;
    border-inline-end: 1px solid rgb(var(--fg-rgb) / 0.06);
    background: rgb(13 12 16 / 0.6);
  }
  .side .ha-logo {
    font-size: 15px;
    margin: 0 8px 22px;
  }
  .side a.nv {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    font-weight: 650;
    color: var(--mist-300);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .side a.nv:hover {
    background: rgb(var(--fg-rgb) / 0.04);
    color: var(--mist-100);
  }
  .side a.nv[aria-current='page'] {
    background: rgb(201 162 39 / 0.12);
    color: var(--gold-300);
  }
  .side a.nv .cnt {
    margin-inline-start: auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 11px;
    text-align: center;
    background: var(--cta);
    color: var(--ink-950);
    font-weight: 800;
  }
  .side-foot {
    margin-top: auto;
    display: grid;
    gap: 8px;
  }
  /* Installer l'application : bouton doré, comme le bouton de l'assistant */
  .side .nv-app {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
    color: var(--ink-950);
    background: var(--gold-grad);
    box-shadow: 0 14px 30px -14px rgb(224 190 85 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .side .nv-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 5px rgb(201 162 39 / 0.14), 0 16px 34px -14px rgb(224 190 85 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.4);
  }
  .side .nv-app:focus-visible {
    outline: 2px solid var(--gold-300);
    outline-offset: 3px;
  }
  .tabs {
    display: none;
  }
  .top .ha-logo {
    visibility: hidden;
  }
  .main {
    padding: 24px 32px 60px;
  }
}

/* Titres de page */
.ph-h {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
}
.ph-h h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 106%;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.ph-h p {
  margin: 6px 0 0;
  color: var(--mist-400);
}

/* Toasts */
.toasts {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgb(20 18 24 / 0.95);
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.4), 0 20px 50px -20px #000;
  font-weight: 650;
  animation: tin 0.45s var(--courbe);
}
.toast b {
  color: var(--gold-300);
}
@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
}

/* Anneaux */
.ring {
  position: relative;
  display: grid;
  place-items: center;
}
.ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
}
.ring .bg {
  stroke: rgb(var(--fg-rgb) / 0.08);
}
.ring .fg {
  stroke: url(#ring-or);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--courbe);
}

/* Connexion */
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 24px 18px;
}
.login-box {
  width: min(100%, 440px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.login-box .ha-logo {
  font-size: 18px;
  margin-bottom: 18px;
}
.login-box h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.login-box h1 em {
  font-style: normal;
  color: var(--gold-300);
}
.login-err {
  min-height: 1.3em;
  margin: 0;
  color: #f0a796;
  font-size: 14px;
}
.login-demo {
  padding: 14px;
  border-radius: 16px;
  background: rgb(201 162 39 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.25);
  font-size: 13px;
  color: var(--mist-300);
}
.login-demo code {
  font-family: var(--font-mono);
  color: var(--gold-300);
}
.login-art {
  display: none;
}
@media (min-width: 980px) {
  .login {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .login-art {
    position: relative;
    display: block;
    height: 100svh;
    overflow: hidden;
    background: radial-gradient(80% 70% at 50% 40%, rgb(201 162 39 / 0.18), transparent 70%), var(--ink-900);
  }
  .login-art .mx {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* ===== ÉTUDIANT : tableau de bord ===== */
.dash {
  display: grid;
  gap: 14px;
}
.hello {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(201 162 39 / 0.22), transparent 60%),
    linear-gradient(170deg, #17151c, #0e0d12);
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.25), 0 30px 70px -40px rgb(201 162 39 / 0.45);
}
.hello h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hello h1 .hi-nw {
  white-space: nowrap;
}
.hello-ar {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--gold-300);
  text-align: left;
}
.lvl {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.lvl-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.lvl-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.lvl-bar {
  height: 10px;
  border-radius: 10px;
  background: rgb(var(--fg-rgb) / 0.08);
  overflow: hidden;
}
.lvl-bar i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  box-shadow: 0 0 18px rgb(201 162 39 / 0.6);
  transform-origin: 0 50%;
}
.hello-deco {
  position: absolute;
  inset-inline-end: -30px;
  top: -20px;
  width: 190px;
  height: 190px;
  opacity: 0.16;
  transform: rotate(-12deg);
}
.hello-deco svg {
  width: 100%;
  height: 100%;
}
.cont {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.cont-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.cont-stage .mx {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.cont-play {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: var(--ink-950);
  box-shadow: 0 0 0 8px rgb(201 162 39 / 0.22);
  transition: transform 0.3s var(--courbe);
}
.cont:hover .cont-play {
  transform: scale(1.1);
}
.cont-b {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}
.cont-b h2 {
  font-size: 22px;
  line-height: 1.08;
}
.cont-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--mist-400);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat {
  display: grid;
  gap: 2px;
  padding: 16px;
}
.stat b {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 112%;
  font-size: 30px;
  line-height: 1;
}
.stat span {
  font-size: 12px;
  color: var(--mist-400);
}
.stat i {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  color: var(--gold-400);
  opacity: 0.7;
}
.overall {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}
.overall .ring {
  width: 116px;
  height: 116px;
}
.overall .ring b {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 26px;
}
.week {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.week span {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--mist-500);
}
.week i {
  width: 100%;
  max-width: 34px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgb(var(--fg-rgb) / 0.06);
  display: grid;
  place-items: center;
}
.week i.on {
  background: linear-gradient(160deg, #ffb07a, var(--cta));
  box-shadow: 0 6px 18px -6px var(--cta);
}
.week i.today {
  box-shadow: inset 0 0 0 2px var(--gold-300);
}
.mods {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.mods a {
  flex: none;
  width: 150px;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgb(var(--fg-rgb) / 0.035);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  transition: transform 0.3s var(--courbe), box-shadow 0.3s;
}
.mods a:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--c);
}
.mods a.is-cur {
  box-shadow: inset 0 0 0 1.5px var(--c), 0 14px 30px -18px var(--c);
}
.mods .ring {
  width: 54px;
  height: 54px;
  color: var(--c);
}
.mods .ring b {
  font-family: var(--font-mono);
  font-size: 12px;
}
.mods h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}
.mods small {
  color: var(--mist-500);
  font-size: 11px;
}
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}
.bdg {
  perspective: 600px;
}
.bdg-in {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 18px;
  text-align: center;
  background: rgb(var(--fg-rgb) / 0.03);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
  transition: transform 0.6s var(--courbe);
  transform-style: preserve-3d;
}
.bdg:hover .bdg-in {
  transform: rotateY(18deg) rotateX(8deg);
}
.bdg-ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mist-500);
  background: rgb(var(--fg-rgb) / 0.05);
}
.bdg.is-on .bdg-ic {
  color: var(--ink-950);
  background: var(--gold-grad);
  box-shadow: 0 0 0 6px rgb(201 162 39 / 0.18), 0 10px 26px -8px rgb(201 162 39 / 0.8);
}
.bdg b {
  font-size: 12px;
  line-height: 1.2;
}
.bdg span {
  font-size: 10.5px;
  color: var(--mist-500);
  line-height: 1.25;
}
.bdg:not(.is-on) b {
  color: var(--mist-400);
}
.lab-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(80% 120% at 0% 0%, rgb(201 162 39 / 0.18), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.045), rgb(var(--fg-rgb) / 0.015));
}
.lab-card .lc-m {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #07060a;
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.4);
}
.lab-card .lc-m svg {
  width: 38px;
  height: 38px;
}
.defi {
  background:
    radial-gradient(90% 120% at 100% 100%, rgb(236 122 69 / 0.18), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.045), rgb(var(--fg-rgb) / 0.015));
}
.defi p {
  margin: 6px 0 12px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}
@media (min-width: 760px) {
  .dash {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }
  .dash > * {
    grid-column: span 12;
  }
  .dash .hello {
    grid-column: span 7;
  }
  .dash .cont {
    grid-column: span 5;
    grid-row: span 2;
  }
  .dash .overall-c {
    grid-column: span 7;
  }
  .dash .stats {
    grid-column: span 7;
    grid-template-columns: repeat(4, 1fr);
  }
  .dash .week-c {
    grid-column: span 5;
  }
  .dash .defi {
    grid-column: span 6;
  }
  .dash .lab-card {
    grid-column: span 6;
  }
  .hello {
    padding: 28px;
  }
}

/* ===== Parcours ===== */
.map {
  position: relative;
  display: grid;
  gap: 26px;
}
.map-mod {
  position: relative;
  padding: 20px 16px 26px;
  border-radius: 26px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 10%, transparent), rgb(var(--fg-rgb) / 0.015) 40%);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
}
.map-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.map-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c);
}
.map-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
}
.map-head p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mist-400);
}
.map-head .ar {
  color: var(--c);
}
.trail {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.trail svg.trail-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.trail-line path {
  fill: none;
  stroke: rgb(var(--fg-rgb) / 0.1);
  stroke-width: 3;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}
.trail-line path.done {
  stroke: var(--c);
  stroke-dasharray: none;
  opacity: 0.6;
}
.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 420px);
  padding-block: 8px;
  padding-inline: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, transform 0.3s var(--courbe);
}
.node:nth-child(4n + 2) {
  margin-inline-start: 18%;
}
.node:nth-child(4n + 3) {
  margin-inline-start: 34%;
}
.node:nth-child(4n + 4) {
  margin-inline-start: 14%;
}
.node:hover {
  background: rgb(var(--fg-rgb) / 0.04);
  transform: translateX(calc(4px * var(--dir, 1)));
}
.node-b {
  flex: none;
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-800);
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.35), 0 0 0 4px var(--ink-950);
  color: var(--mist-400);
  font-family: var(--font-display);
  font-weight: 850;
}
.node.is-done .node-b {
  background: var(--c);
  color: var(--ink-950);
}
.node.is-cur .node-b {
  background: var(--gold-grad);
  color: var(--ink-950);
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.2), 0 0 0 4px var(--ink-950), 0 0 0 9px rgb(201 162 39 / 0.3);
  animation: nodep 1.8s infinite;
}
@keyframes nodep {
  50% {
    box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.2), 0 0 0 4px var(--ink-950), 0 0 0 14px rgb(201 162 39 / 0);
  }
}
.node-t {
  display: grid;
  gap: 1px;
}
.node-t b {
  font-size: 15px;
  line-height: 1.2;
}
.node-t span {
  font-size: 12px;
  color: var(--mist-500);
}
.node-tag {
  position: absolute;
  inset-inline-start: 50px;
  top: -4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  background: var(--gold-400);
  color: var(--ink-950);
}

/* ===== Leçon ===== */
.lesson {
  display: grid;
  gap: 16px;
}
.ls-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist-400);
}
.ls-crumb a {
  color: var(--mist-300);
  text-decoration: none;
}
.ls-crumb a:hover {
  color: var(--gold-300);
}
.ls-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.ls-title .ar {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--gold-300);
  text-align: left;
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.08), 0 30px 80px -40px rgb(201 162 39 / 0.45);
}
.player iframe,
.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
/* Vidéo pas encore tournée (place réservée) */
.ls-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ls-soon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.45);
  transform: scale(1.04);
}
.ls-soon-in {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: min(440px, 86%);
  padding: 18px 20px;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  background: rgb(0 0 0 / 0.42);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
}
.ls-soon-in b {
  font-size: clamp(16px, 2.4vw, 20px);
}
.ls-soon-in span:not(.ls-soon-ic) {
  font-size: 13px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.8);
}
.ls-soon-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #5fd3b3;
  background: rgb(95 211 179 / 0.14);
}
@media (max-width: 520px) {
  .ls-soon-in span:not(.ls-soon-ic) {
    display: none;
  }
}
.ls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ls-row .grow {
  flex: 1;
}
.ls-note {
  font-size: 12px;
  color: var(--mist-500);
}
.ls-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.04);
}
.ls-tabs button {
  flex: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--mist-400);
  cursor: pointer;
  white-space: nowrap;
}
.ls-tabs button[aria-selected='true'] {
  background: rgb(201 162 39 / 0.16);
  color: var(--gold-300);
}
.ls-panel {
  min-height: 200px;
}
.keys {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: k;
}
.keys li {
  position: relative;
  padding-block: 16px;
  padding-inline: 58px 16px;
  border-radius: 18px;
  background: rgb(var(--fg-rgb) / 0.035);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
  font-size: 15.5px;
}
.keys li::before {
  counter-increment: k;
  content: counter(k);
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  background: var(--gold-grad);
  color: var(--ink-950);
}
.flash {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.fc {
  perspective: 900px;
  min-height: 170px;
  cursor: pointer;
}
.fc-in {
  position: relative;
  height: 100%;
  min-height: 170px;
  transition: transform 0.7s var(--courbe);
  transform-style: preserve-3d;
}
.fc.is-flip .fc-in {
  transform: rotateY(180deg);
}
.fc-f,
.fc-b {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.fc-f {
  background: linear-gradient(160deg, rgb(201 162 39 / 0.18), rgb(var(--fg-rgb) / 0.03));
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.35);
}
.fc-f b {
  font-family: var(--font-display);
  font-size: 20px;
}
.fc-f span {
  font-size: 12px;
  color: var(--mist-400);
}
.fc-b {
  transform: rotateY(180deg);
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  font-size: 14.5px;
}
.quiz {
  display: grid;
  gap: 14px;
}
.qz {
  display: grid;
  gap: 8px;
}
.qz p {
  margin: 0;
  font-weight: 750;
  font-size: 16px;
}
.qz button {
  position: relative;
  text-align: start;
  min-height: 48px;
  padding-block: 12px;
  padding-inline: 44px 14px;
  border: 0;
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.045);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.qz button::before {
  content: attr(data-l);
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgb(var(--fg-rgb) / 0.08);
}
.qz button:hover:not([disabled]) {
  box-shadow: inset 0 0 0 1px var(--gold-400);
}
.qz button.ok {
  background: rgb(85 184 148 / 0.16);
  box-shadow: inset 0 0 0 1.5px var(--body);
}
.qz button.ok::before {
  background: var(--body);
  color: var(--ink-950);
  content: '✓';
}
.qz button.ko {
  background: rgb(226 96 74 / 0.14);
  box-shadow: inset 0 0 0 1.5px var(--danger);
  animation: shake 0.4s;
}
.qz button.ko::before {
  background: var(--danger);
  content: '✕';
}
@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.qz-why {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(201 162 39 / 0.08);
  font-size: 13.5px;
  color: var(--mist-200);
}
.qz-score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(201 162 39 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.3);
  font-weight: 700;
}
.res {
  display: grid;
  gap: 10px;
}
.res-i {
  display: grid;
  gap: 8px;
}
.res-i pre {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #0b0a0e;
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--mist-200);
}
.res-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.res-h b {
  font-size: 14px;
}
.ls-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ls-next a {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgb(var(--fg-rgb) / 0.035);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
}
.ls-next a:last-child {
  text-align: end;
}
.ls-next span {
  font-size: 11px;
  color: var(--mist-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ls-next b {
  font-size: 14px;
}
.done-burst {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.done-burst i {
  background: linear-gradient(180deg, #f2dfa0, #c9a227 60%, #8c6b3f);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.done-burst i:nth-child(2),
.done-burst i:nth-child(3) {
  background: var(--ink-800);
}
.done-burst b {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 120%;
  font-size: clamp(40px, 10vw, 90px);
  color: var(--ink-950);
  white-space: nowrap;
  opacity: 0;
}
@media (min-width: 980px) {
  .lesson {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 22px;
  }
  .lesson > .ls-main {
    display: grid;
    gap: 16px;
  }
  .lesson > .ls-aside {
    position: sticky;
    top: 80px;
    display: grid;
    gap: 12px;
  }
}
.ls-main,
.ls-aside {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.ls-list {
  display: grid;
  gap: 4px;
  max-height: 60vh;
  overflow: auto;
  padding-inline-end: 4px;
}
.ls-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--mist-300);
}
.ls-list a:hover {
  background: rgb(var(--fg-rgb) / 0.04);
}
.ls-list a[aria-current='page'] {
  background: rgb(201 162 39 / 0.12);
  color: var(--gold-300);
}
.ls-list i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  background: rgb(var(--fg-rgb) / 0.06);
}
.ls-list a.is-done i {
  background: var(--body);
  color: var(--ink-950);
}

/* ===== Exercices interactifs ===== */
.wd {
  display: grid;
  gap: 14px;
}
.wd-h {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.wd-p {
  margin: 0;
  color: var(--mist-400);
  font-size: 14px;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: rgb(201 162 39 / 0.18);
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
  color: var(--gold-300);
}
.mini-ph {
  position: relative;
  width: 200px;
  aspect-ratio: 9 / 18;
  margin: 0 auto;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #2a2530, #0d0c10);
  box-shadow: inset 0 0 0 2px #3a3340, 0 30px 70px -30px #000;
}
.mini-sc {
  position: relative;
  height: 100%;
  border-radius: 23px;
  overflow: hidden;
}
.mini-sc .art {
  position: absolute;
  left: 22%;
  width: 56%;
  top: 30%;
  height: 46%;
}
.mini-hl {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 28px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.4);
}
.mini-btn {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  padding: 9px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 11.5px;
  background: var(--cta);
  color: #0b0a0d;
}
.wd-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .wd-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.range {
  width: 100%;
  accent-color: var(--gold-400);
}
.meter {
  height: 10px;
  border-radius: 10px;
  background: rgb(var(--fg-rgb) / 0.08);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cta), var(--gold-400), var(--body));
  transition: width 0.5s var(--courbe);
}
.out {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  background: #0b0a0e;
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.25);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.out .seg-ia {
  color: var(--ia);
}
.sortable {
  display: grid;
  gap: 8px;
}
.sortable li {
  list-style: none;
}
.sortable .it {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  font-weight: 650;
  touch-action: none;
  cursor: grab;
}
.sortable .it .k {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  background: var(--c, var(--gold-400));
  color: var(--ink-950);
}
.sortable .it .mv {
  margin-inline-start: auto;
  display: flex;
  gap: 4px;
}
.sortable.is-ok .it {
  box-shadow: inset 0 0 0 1.5px var(--body);
  background: rgb(85 184 148 / 0.1);
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi {
  padding: 14px;
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.04);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07);
  display: grid;
  gap: 4px;
}
.kpi b {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 26px;
  line-height: 1;
}
.kpi span {
  font-size: 12px;
  color: var(--mist-400);
}
.kpi em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.cam3d {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0c10;
}
.cam3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.cam3d span {
  position: absolute;
  left: 12px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--danger);
}
.ipreview {
  position: relative;
  margin: 0 auto;
  width: min(100%, 300px);
  border-radius: 18px;
  overflow: hidden;
  transition: aspect-ratio 0.5s var(--courbe), background 0.5s;
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.1), 0 30px 70px -30px #000;
}
.ipreview .art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 62%;
  transition: transform 0.6s var(--courbe), filter 0.5s;
}
.ipreview .light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.5s;
}
.ipreview .ip-r {
  position: absolute;
  left: 10px;
  top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
}

/* ==========================================================================
   Espace étudiant — deux formations distinctes, trois langues
   Chaque formation a sa couleur d'accent, posée par [data-track] :
   Créative = or (bande de film), IA = lavande (trame de points, « labo »).
   Les propriétés logiques (inline-start/end) gèrent l'arabe (RTL).
   ========================================================================== */

:root {
  --dir: 1;
  --fill-dir: 90deg;
  --acc: #e0be55;
  --acc-2: #f2dfa0;
  --acc-rgb: 224 190 85;
  --acc-grad: var(--gold-grad);
}
[dir='rtl'] {
  --dir: -1;
  --fill-dir: 270deg;
}
[data-track='creative'] {
  --acc: #e0be55;
  --acc-2: #f2dfa0;
  --acc-rgb: 224 190 85;
  --acc-grad: var(--gold-grad);
}
[data-track='ia'] {
  --acc: #c8b6ff;
  --acc-2: #e9e2ff;
  --acc-rgb: 200 182 255;
  --acc-grad: linear-gradient(180deg, #efeaff 0%, #9c84f0 100%);
}
.ring--ia .fg {
  stroke: url(#ring-ia);
}
.ring > b {
  position: relative;
  font-family: var(--font-display);
  font-weight: 850;
  line-height: 1;
}

/* Flèches : elles suivent le sens de lecture */
.i-back {
  transform: scaleX(-1);
}
[dir='rtl'] .i-dir {
  transform: scaleX(-1);
}
[dir='rtl'] .i-back {
  transform: none;
}
.i-ext {
  transform: rotate(-45deg);
}
[dir='rtl'] .i-ext {
  transform: scaleX(-1) rotate(-45deg);
}
[dir='rtl'] .lvl-bar i {
  transform-origin: 100% 50%;
}

/* Arabe : pas d'interlettrage (il casse les liaisons), interlignes plus ouverts */
html[lang='ar'] body * {
  letter-spacing: 0 !important;
}
html[lang='ar'] :is(h1, h2, h3) {
  line-height: 1.3;
}
html[lang='ar'] .card-k {
  font-size: 12px;
  font-weight: 600;
}
/* Les compositions animées restent mises en page de gauche à droite */
.mx {
  direction: ltr;
}

/* Boutons et pastilles d'accent */
.b--acc {
  background: var(--acc-grad);
  color: var(--ink-950);
  box-shadow: 0 10px 30px -12px rgb(var(--acc-rgb) / 0.8);
}
.b--acc:hover {
  box-shadow: 0 0 0 6px rgb(var(--acc-rgb) / 0.15), 0 14px 36px -12px rgb(var(--acc-rgb) / 0.9);
}
.b--acc-o {
  color: var(--acc-2);
  box-shadow: inset 0 0 0 1.5px rgb(var(--acc-rgb) / 0.55);
}
.b--acc-o:hover {
  background: rgb(var(--acc-rgb) / 0.1);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
.b--l {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
}
/* .b-sub existe aussi dans motion.css (sous-titre de scène, margin-top !important) : on le neutralise ici */
.b .b-sub {
  max-width: none;
  margin: 0 !important;
  color: inherit;
  margin-inline-start: 2px !important;
  padding-inline-start: 9px;
  border-inline-start: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}
.spin {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  animation: spin 0.7s linear infinite;
}
.is-busy .spin {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.chip--acc {
  background: rgb(var(--acc-rgb) / 0.16);
  color: var(--acc-2);
}
.chip--lock {
  color: var(--mist-300);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
}
.dot {
  opacity: 0.5;
}
.skip {
  position: fixed;
  z-index: 300;
  inset-inline-start: 12px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gold-grad);
  color: var(--ink-950);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus-visible {
  top: 12px;
}

/* Sélecteur de langue (FR · EN · ع) */
.lang-sw {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
}
.lang-sw button {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mist-400);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang-sw button:hover {
  color: var(--mist-100);
}
.lang-sw button[lang='ar'] {
  font-family: var(--font-ar);
  font-size: 14px;
}
.lang-sw button[aria-pressed='true'] {
  background: var(--gold-grad);
  color: var(--ink-950);
}
.lang-sw--l button {
  min-width: 58px;
  height: 40px;
  font-size: 13px;
}
.lm {
  position: relative;
}
.lm-b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.09);
  color: var(--mist-200);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lm-b[aria-expanded='true'] {
  box-shadow: inset 0 0 0 1px var(--gold-400);
}
.lm-m {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  background: rgb(20 18 24 / 0.97);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.09), 0 24px 60px -20px #000;
}
.lm-m button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 650;
  cursor: pointer;
}
.lm-m button:hover,
.lm-m button:focus-visible {
  background: rgb(var(--fg-rgb) / 0.06);
}
.lm-m button[aria-checked='true'] {
  color: var(--gold-300);
}

/* ===== Connexion ===== */
.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.login-box .login-top .ha-logo {
  margin: 0;
}
.login-intro {
  display: grid;
  gap: 10px;
}
.login-intro .card-k,
.login-intro .muted {
  margin: 0;
}
.login-intro .muted {
  font-size: 15px;
}
.login-f {
  display: grid;
  gap: 14px;
}
.login-f.is-shake {
  animation: shake 0.4s;
}
.fld {
  display: grid;
  gap: 6px;
}
.fld-h {
  margin: 0;
  font-size: 12px;
  color: var(--mist-500);
}
.pw {
  position: relative;
}
.pw .in {
  padding-inline-end: 54px;
}
.pw-t {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--mist-400);
  cursor: pointer;
}
.pw-t:hover {
  color: var(--mist-100);
  background: rgb(var(--fg-rgb) / 0.05);
}
.in--ltr {
  direction: ltr;
}
[dir='rtl'] .in--ltr {
  text-align: right;
}
.login-demo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.login-demo b {
  color: var(--mist-100);
  font-size: 14px;
}
.login-demo p {
  margin: 2px 0 0;
}
.login-demo .b {
  grid-column: 1 / -1;
}
.login-demo-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgb(201 162 39 / 0.16);
  color: var(--gold-300);
}
@media (min-width: 480px) {
  .login-demo {
    grid-template-columns: auto 1fr auto;
  }
  .login-demo .b {
    grid-column: auto;
  }
}
.login-foot {
  margin: 0;
  font-size: 13px;
  text-align: center;
}
.login-foot a {
  color: var(--gold-300);
}
.login-art-cap {
  position: absolute;
  z-index: 2;
  inset-inline: 28px;
  bottom: 28px;
  display: flex;
}
.login-art-cap span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(7 6 10 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-300);
}

/* ===== Coquille ===== */
.sh-b {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.top-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
}
.top-wrap .top {
  position: relative;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  padding-top: max(8px, env(safe-area-inset-top));
  font-size: 12.5px;
  background: linear-gradient(90deg, rgb(201 162 39 / 0.2), rgb(200 182 255 / 0.12)), rgb(10 9 13 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgb(var(--fg-rgb) / 0.06);
}
.demo-bar + .top {
  padding-top: 10px;
}
.demo-bar-k {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink-950);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.demo-bar-t {
  flex: 1;
  min-width: 0;
  color: var(--mist-200);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-bar-cta {
  flex: none;
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--gold-300);
  text-decoration: none;
}
@media (max-width: 560px) {
  .demo-bar-t {
    display: none;
  }
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-k {
  margin: 16px 12px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-500);
}
@media (min-width: 980px) {
  .side {
    overflow-y: auto;
  }
  .side a.nv-trk {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    padding: 10px 12px;
  }
  .side a.nv-trk[aria-current='page'] {
    background: rgb(var(--acc-rgb) / 0.1);
    color: var(--acc-2);
    box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.28);
  }
  .nv-ic {
    grid-row: span 2;
    align-self: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--acc);
    background: rgb(var(--acc-rgb) / 0.12);
    box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.3);
  }
  .nv-t {
    display: grid;
    min-width: 0;
    line-height: 1.25;
  }
  .nv-t b {
    font-size: 14px;
    color: var(--mist-100);
  }
  .nv-t small {
    font-size: 11.5px;
    color: var(--mist-500);
  }
  .nv-bar {
    grid-column: 2;
    height: 3px;
    border-radius: 3px;
    background: rgb(var(--fg-rgb) / 0.08);
    overflow: hidden;
  }
  .nv-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--acc);
  }
  .nv-lk {
    margin-inline-start: auto;
    opacity: 0.6;
  }
  .side-foot .lang-sw {
    justify-self: start;
    margin: 0 8px 6px;
  }
}

/* ===== Accueil ===== */
.sec-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sec-h h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.sec-h p {
  margin: 4px 0 0;
  color: var(--mist-400);
  font-size: 13.5px;
}
.sec-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.hello-lead {
  margin: 12px 0 0;
  max-width: 54ch;
  color: var(--mist-300);
  font-size: 15.5px;
}
.hello-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cont .card-k {
  color: var(--acc-2);
}
.cont-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgb(7 6 10 / 0.7));
  pointer-events: none;
}
.cont-play {
  z-index: 2;
  background: var(--acc-grad);
  box-shadow: 0 0 0 8px rgb(var(--acc-rgb) / 0.22);
}
.prods-g {
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .prods-g {
    grid-template-columns: 1fr 1fr;
  }
}
.prod {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(var(--acc-rgb) / 0.16), transparent 55%),
    linear-gradient(170deg, #17151c, #0c0b10);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.22), 0 30px 70px -45px rgb(var(--acc-rgb) / 0.6);
}
/* Créative : une bande de film en haut de la carte */
.prod[data-track='creative']::before,
[data-track='creative'] .trk-h::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, rgb(224 190 85 / 0.2) 0 12px, transparent 12px 26px);
}
/* IA : une trame de points, comme une grille de labo */
.prod[data-track='ia'],
[data-track='ia'] .trk-h {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(200 182 255 / 0.18), transparent 55%),
    radial-gradient(rgb(200 182 255 / 0.09) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(170deg, #16141d, #0c0b11);
}
.prod-art {
  position: absolute;
  z-index: -1;
  inset-inline-end: -0.04em;
  bottom: -0.2em;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 190px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(var(--acc-rgb) / 0.2);
  pointer-events: none;
}
.prod-h {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.prod-ic {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--acc-grad);
  box-shadow: 0 10px 26px -10px rgb(var(--acc-rgb) / 0.9);
}
.prod-t {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.prod-t small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-400);
}
.prod-t b {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.prod .ring b {
  font-family: var(--font-mono);
  font-size: 12px;
}
.prod-p {
  margin: 0;
  max-width: 48ch;
  color: var(--mist-300);
  font-size: 14.5px;
}
.prod-mods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prod-mods li {
  display: grid;
  gap: 6px;
  padding: 8px 8px 9px;
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.04);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--mist-400);
}
.prod-mods li i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--fill-dir), var(--c) calc(var(--p) * 100%), rgb(var(--fg-rgb) / 0.1) 0);
}
.prod-mods li.is-done {
  color: var(--mist-100);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent);
}
.prod-mods li.is-cur {
  color: var(--acc-2);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
.prod-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prod-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13.5px;
}
.prod-list li.is-open {
  background: rgb(var(--acc-rgb) / 0.12);
  color: var(--mist-100);
}
.prod-list li.is-open svg {
  color: var(--acc);
}
.prod-list li.is-lock {
  color: var(--mist-500);
}
.prod-list li.is-lock span:last-child {
  filter: blur(3px);
  user-select: none;
}
.prod-code {
  min-width: 38px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}
.prod-next {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  padding-inline: 16px 12px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgb(var(--fg-rgb) / 0.04);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
  transition: box-shadow 0.25s, background 0.25s;
}
.prod-next:hover {
  background: rgb(var(--acc-rgb) / 0.08);
  box-shadow: inset 0 0 0 1px var(--acc);
}
.prod-next > span:first-child {
  display: grid;
  min-width: 0;
}
.prod-next small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-500);
}
.prod-next b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
}
.prod-go {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--acc-grad);
  transition: transform 0.3s var(--courbe);
}
.prod-next:hover .prod-go {
  transform: translateX(calc(3px * var(--dir)));
}
.prod-end {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgb(var(--acc-rgb) / 0.12);
  color: var(--acc-2);
}
.prod-end span {
  display: grid;
}
.prod-end small {
  color: var(--mist-300);
}
.lab-card h3 {
  margin: 0;
}
.lab-card p {
  margin: 4px 0 0;
}
.lab-card--s {
  padding: 14px;
}
.lab-card--s .lc-m {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.lab-card--s .lc-m svg {
  width: 28px;
  height: 28px;
}
.lab-card--s h3 {
  font-size: 15px;
}
.lab-card--s p {
  font-size: 12.5px;
}
.bdg-sec {
  display: grid;
  gap: 4px;
}
@media (min-width: 760px) {
  .dash .week-c,
  .dash .defi,
  .dash .lab-card {
    grid-column: span 4;
  }
  .dash--demo .hello {
    grid-column: span 7;
  }
  .dash--demo .cont {
    grid-column: span 5;
    grid-row: auto;
  }
}

/* ===== Parcours ===== */
.trk {
  display: grid;
  gap: 22px;
}
.trk-sw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  background: rgb(var(--fg-rgb) / 0.03);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
}
.trk-sw a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--mist-400);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.trk-sw a:hover {
  color: var(--mist-100);
  background: rgb(var(--fg-rgb) / 0.03);
}
.trk-sw a[aria-current='page'] {
  color: var(--mist-100);
  background: linear-gradient(160deg, rgb(var(--acc-rgb) / 0.18), rgb(var(--acc-rgb) / 0.05));
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.45);
}
.trk-sw-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--acc);
  background: rgb(var(--acc-rgb) / 0.12);
}
.trk-sw a[aria-current='page'] .trk-sw-ic {
  color: var(--ink-950);
  background: var(--acc-grad);
}
.trk-sw-t {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.trk-sw-t b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
}
.trk-sw-t small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist-500);
}
.trk-sw-pc {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--acc-2);
}
.trk-sw-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 3px;
  background: rgb(var(--fg-rgb) / 0.07);
  overflow: hidden;
}
.trk-sw-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--acc);
}
@media (max-width: 560px) {
  .trk-sw a {
    grid-template-columns: auto 1fr;
    padding: 8px 10px 10px;
  }
  .trk-sw-pc,
  .trk-sw-t small {
    display: none;
  }
  .trk-sw-ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
}
.trk-h {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 28px 20px 24px;
  border-radius: 30px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(var(--acc-rgb) / 0.22), transparent 60%),
    linear-gradient(170deg, #17151c, #0c0b10);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.28), 0 40px 90px -50px rgb(var(--acc-rgb) / 0.6);
}
.trk-code {
  position: absolute;
  z-index: -1;
  inset-inline-end: -0.03em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(170px, 30vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgb(var(--acc-rgb) / 0.17);
  pointer-events: none;
}
.trk-hb {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.trk-hb .card-k {
  margin: 0;
  color: var(--acc-2);
}
.trk-h h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.trk-ar {
  margin: 0;
  font-size: 18px;
  color: var(--acc-2);
  text-align: left;
}
.trk-p {
  margin: 0;
  max-width: 54ch;
  color: var(--mist-300);
  font-size: 15.5px;
}
.trk-act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.trk-ring {
  display: flex;
  align-items: center;
  gap: 22px;
}
.trk-ring .ring {
  align-content: center;
  gap: 4px;
  text-align: center;
}
.trk-ring .ring b {
  font-size: 28px;
}
.trk-ring .ring small {
  position: relative;
  max-width: 92px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--mist-400);
}
.trk-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.trk-dl dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-500);
}
.trk-dl dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 26px;
  line-height: 1.1;
}
.trk-demo {
  display: grid;
  justify-items: start;
  gap: 6px;
  max-width: 360px;
  padding: 16px;
  border-radius: 20px;
  background: rgb(7 6 10 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
}
.trk-demo-ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--acc);
  background: rgb(var(--acc-rgb) / 0.14);
}
.trk-demo b {
  font-size: 15px;
}
.trk-demo p {
  margin: 0;
  font-size: 13px;
  color: var(--mist-400);
}
@media (min-width: 900px) {
  .trk-h {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 40px;
  }
}
.trk-end {
  display: grid;
  align-items: center;
  gap: 14px;
  background:
    radial-gradient(100% 140% at 0% 0%, rgb(var(--acc-rgb) / 0.2), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.045), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.4);
}
.trk-end-ic {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--acc-grad);
}
.trk-end h2 {
  font-size: 22px;
}
.trk-end p {
  margin: 4px 0 0;
  color: var(--mist-300);
}
@media (min-width: 760px) {
  .trk-end {
    grid-template-columns: auto 1fr auto;
  }
}
.map-part {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 10px 4px -10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.07);
}
.map-part span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc-2);
}
.map-part b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.map-n {
  flex: none;
  font-size: clamp(30px, 7vw, 44px);
}
.map-ht {
  flex: 1;
  min-width: 0;
}
.map-head p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.lock-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mist-300);
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
}
.done-tag {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  color: var(--ink-950);
}
.map-mod.is-locked {
  padding-block: 16px;
  background: repeating-linear-gradient(135deg, rgb(var(--fg-rgb) / 0.018) 0 10px, transparent 10px 20px);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.05);
}
.map-mod.is-locked .map-n {
  -webkit-text-stroke-color: rgb(var(--fg-rgb) / 0.2);
}
.map-mod.is-locked h2 {
  color: var(--mist-400);
}
.map-bar {
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: rgb(var(--fg-rgb) / 0.07);
  overflow: hidden;
}
.map-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c);
}
.node.is-cur .node-b {
  background: var(--acc-grad);
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.2), 0 0 0 4px var(--ink-950), 0 0 0 9px rgb(var(--acc-rgb) / 0.3);
  animation-name: nodeacc;
}
@keyframes nodeacc {
  50% {
    box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.2), 0 0 0 4px var(--ink-950), 0 0 0 14px rgb(var(--acc-rgb) / 0);
  }
}
.node-tag {
  background: var(--acc);
}
.node.is-lock {
  cursor: default;
  opacity: 0.8;
}
.node.is-lock:hover {
  background: none;
  transform: none;
}
.node.is-lock .node-b {
  background: repeating-linear-gradient(135deg, var(--ink-800) 0 6px, var(--ink-850) 6px 12px);
  color: var(--mist-500);
}
.node-t .node-sk {
  display: grid;
  gap: 5px;
  margin: 4px 0 3px;
}
.node-sk i {
  display: block;
  width: 150px;
  max-width: 50vw;
  height: 7px;
  border-radius: 5px;
  background: rgb(var(--fg-rgb) / 0.07);
}
.node-sk i + i {
  width: 90px;
}
.node-t .node-lk {
  font-size: 11px;
  color: var(--mist-500);
}

/* ===== Leçon ===== */
.ls-k {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.ls-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-crumb a:hover {
  color: var(--acc-2);
}
.ls-crumb .crumb-mod {
  display: inline-block;
  max-width: min(40ch, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.ls-crumb .sep {
  display: inline-flex;
  opacity: 0.45;
}
.player {
  box-shadow: 0 0 0 1px rgb(var(--fg-rgb) / 0.08), 0 30px 80px -40px rgb(var(--acc-rgb) / 0.45);
}
.tg {
  display: flex;
  gap: 6px;
}
.tg button em {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-style: normal;
  text-align: center;
  background: rgb(var(--fg-rgb) / 0.08);
  color: var(--mist-300);
}
.tg button[aria-selected='true'] em {
  background: rgb(var(--acc-rgb) / 0.25);
  color: var(--acc-2);
}
.tg-lk {
  opacity: 0.7;
}
.tg button.is-lock {
  color: var(--mist-500);
}
.ls-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.ls-tabs button[aria-selected='true'] {
  background: rgb(var(--acc-rgb) / 0.16);
  color: var(--acc-2);
}
.tg--tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tg--tiles button {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-height: 86px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  text-align: start;
  background: rgb(var(--fg-rgb) / 0.035);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
  color: var(--mist-300);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.tg--tiles button > svg:first-child {
  color: var(--acc);
}
.tg--tiles button em,
.tg--tiles button .tg-lk {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}
.tg--tiles button:hover {
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.5);
}
.tg--tiles button[aria-selected='true'] {
  color: var(--mist-100);
  background: linear-gradient(160deg, rgb(var(--acc-rgb) / 0.22), rgb(var(--acc-rgb) / 0.06));
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
@media (min-width: 760px) {
  .tg--tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.atl {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgb(200 182 255 / 0.16), transparent 55%),
    radial-gradient(rgb(200 182 255 / 0.08) 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(170deg, #15131c, #0d0c12);
  box-shadow: inset 0 0 0 1px rgb(200 182 255 / 0.28), 0 30px 80px -50px rgb(156 132 240 / 0.7);
}
.atl-h {
  display: flex;
  align-items: center;
  gap: 14px;
}
.atl-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--acc-grad);
}
.atl-h h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 22px;
  line-height: 1.05;
}
.atl-h p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--mist-400);
}
.atl-panel {
  background: rgb(7 6 10 / 0.55);
}
.learn {
  display: grid;
  gap: 10px;
}
.ess-fc {
  margin-top: 20px;
}
.ls-next span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-next a.is-next span {
  justify-content: flex-end;
}
.ls-next a.is-lock {
  opacity: 0.8;
}
.ls-next a.is-lock b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mist-400);
}
.ls-next a.is-next.is-lock b {
  justify-content: flex-end;
}
.ls-trk {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.3), 0 24px 50px -36px #000;
}
.ls-trk-ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--acc-grad);
}
.ls-trk-t {
  flex: 1;
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.ls-trk-t small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc-2);
}
.ls-trk-t b {
  font-size: 14px;
}
.card .ls-mt {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.15;
}
.ls-list a[aria-current='page'] {
  background: rgb(var(--acc-rgb) / 0.12);
  color: var(--acc-2);
}
.ls-list > .is-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--mist-500);
}
.ls-list > .is-lock em {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Fichiers, prompts, états vides */
.files {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.file {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.035);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07);
}
.file-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--acc-2);
  background: rgb(var(--acc-rgb) / 0.14);
}
.file-ic--pdf {
  color: #fff;
  background: linear-gradient(160deg, #f0857a, #c9463a);
}
.file-b {
  display: grid;
  min-width: 0;
}
.file-b b {
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.file-b small {
  font-size: 12px;
  color: var(--mist-500);
}
.file-a {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.file-prev {
  grid-column: 1 / -1;
}
.file-prev iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
@media (min-width: 620px) {
  .file {
    grid-template-columns: auto 1fr auto;
  }
  .file-a {
    grid-column: auto;
  }
}
.imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.imgs a {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--mist-300);
  text-decoration: none;
}
.imgs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--ink-850);
}
.ls-panel .res-i {
  padding: 14px;
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.03);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07);
}
.res-i .card-k {
  margin-bottom: 4px;
}
.res-i[data-track] .card-k,
.ls-panel .res-i .card-k {
  color: var(--acc-2);
}
.res-i .card-k a {
  color: inherit;
  text-decoration: none;
}
.res-i .card-k a:hover {
  text-decoration: underline;
}
.res-h b {
  display: block;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 16px;
  text-align: center;
}
.empty-ic {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--acc);
  background: rgb(var(--acc-rgb) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.3);
}
.empty b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.empty p {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  color: var(--mist-400);
}
.empty .b {
  margin-top: 6px;
}
.locked-p {
  position: relative;
  display: grid;
  min-height: 250px;
}
.locked-sk {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
}
.locked-sk i {
  display: block;
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgb(var(--fg-rgb) / 0.06), rgb(var(--fg-rgb) / 0.02));
}
.locked-p .empty {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  padding: 24px;
  border-radius: 20px;
  background: rgb(13 12 16 / 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
}

/* Quiz */
.qz {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.qz legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 750;
  font-size: 16px;
  line-height: 1.35;
}
.qz-n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acc-2);
  background: rgb(var(--acc-rgb) / 0.16);
}
.qz-a {
  display: grid;
  gap: 8px;
}
.qz button:hover:not([disabled]) {
  box-shadow: inset 0 0 0 1px var(--acc);
}
.qz .qz-why {
  margin-top: 8px;
}
.qz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qz-top .card-k {
  margin: 0;
}
.qz-prog {
  display: flex;
  gap: 5px;
}
.qz-prog i {
  width: 22px;
  height: 5px;
  border-radius: 5px;
  background: rgb(var(--fg-rgb) / 0.1);
}
.qz-prog i.ok {
  background: var(--body);
}
.qz-prog i.ko {
  background: var(--danger);
}
.qz-score {
  flex-wrap: wrap;
  background: rgb(var(--acc-rgb) / 0.1);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.3);
}
.qz-sc {
  font-family: var(--font-mono) !important;
  font-size: 13px;
}
.qz-msg {
  flex: 1;
  min-width: 150px;
  display: grid;
  gap: 2px;
}
.qz-xp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acc-2);
}

/* ===== Bibliothèque ===== */
.lib {
  display: grid;
  gap: 14px;
}
.lib-tabs {
  max-width: 480px;
}
.lib-panel {
  display: grid;
  gap: 12px;
  outline: none;
}
.lib-tools {
  display: grid;
  gap: 10px;
}
.search {
  position: relative;
  display: block;
}
.search > svg {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mist-500);
  pointer-events: none;
}
.search .in {
  padding-inline-start: 44px;
}
.lib-count {
  margin: 0;
  font-size: 13px;
}
.lib-list {
  display: grid;
  gap: 10px;
}
@media (min-width: 900px) {
  .lib-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.lib-trk {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.lib-trk .sec-t {
  color: var(--acc-2);
}
.lib-l .card-k a {
  color: var(--acc-2);
  text-decoration: none;
}
.lib-lock {
  position: relative;
  display: grid;
  min-height: 440px;
}
.lib-sk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  filter: blur(3px);
  opacity: 0.5;
  pointer-events: none;
}
.lib-sk .card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 160px;
}
.lib-sk i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgb(var(--fg-rgb) / 0.08);
}
.lib-sk i:first-child {
  width: 40%;
}
.lib-sk i:nth-child(2) {
  width: 80%;
}
.lib-sk i:nth-child(3) {
  height: 64px;
}
.lib-lock-c {
  position: absolute;
  inset: 0;
  width: min(92%, 440px);
  height: fit-content;
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: rgb(13 12 16 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lib-lock-c h2 {
  font-size: 22px;
}
.lib-lock-c p {
  margin: 0;
  color: var(--mist-400);
}

/* ===== Leçon réservée aux inscrits ===== */
.lk {
  display: grid;
  gap: 18px;
}
.lk-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(70% 80% at 50% 40%, rgb(var(--acc-rgb) / 0.2), transparent 70%),
    linear-gradient(170deg, #141218, #09080c);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.25);
}
.lk-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  filter: blur(1px);
}
.lk-art svg {
  width: 42%;
  max-width: 300px;
  height: auto;
  opacity: 0.1;
}
.lk-art i {
  position: absolute;
  inset-inline-start: 8%;
  height: 10px;
  border-radius: 6px;
  background: rgb(var(--fg-rgb) / 0.06);
}
.lk-art i:nth-of-type(1) {
  top: 14%;
  width: 30%;
}
.lk-art i:nth-of-type(2) {
  top: 22%;
  width: 44%;
}
.lk-art i:nth-of-type(3) {
  bottom: 22%;
  width: 56%;
}
.lk-art i:nth-of-type(4) {
  bottom: 14%;
  width: 24%;
}
.lk-lock {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--ink-950);
  background: var(--acc-grad);
  box-shadow: 0 0 0 10px rgb(var(--acc-rgb) / 0.14), 0 20px 50px -14px rgb(var(--acc-rgb) / 0.8);
}
.lk-b {
  display: grid;
  gap: 12px;
}
.lk-b .card-k {
  margin: 0;
  color: var(--acc-2);
}
.lk-b h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.lk-b > p {
  margin: 0;
  max-width: 56ch;
  color: var(--mist-300);
  font-size: 15.5px;
}
.lk-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lk-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.lk-list svg {
  color: var(--acc);
}
.lk-act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
@media (min-width: 980px) {
  .lk {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    column-gap: 36px;
  }
  .lk .ls-crumb {
    grid-column: 1 / -1;
  }
}

/* ===== Profil ===== */
.prof {
  display: grid;
  gap: 14px;
}
.prof-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.prof-av {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink-950);
  background: var(--gold-grad);
  box-shadow: 0 14px 34px -14px rgb(201 162 39 / 0.8);
}
.prof-id {
  flex: 1;
  min-width: 180px;
}
.prof-id h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}
.prof-id p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--mist-400);
}
.demo-inc {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.inc {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.inc li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.inc li.ok svg {
  color: var(--body);
}
.inc li.no {
  color: var(--mist-500);
}
.lvl-card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 24px;
}
.lvl-xp {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-300);
  background: rgb(201 162 39 / 0.14);
}
.lvl-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.lvl-steps li {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  font-size: 11.5px;
  color: var(--mist-500);
}
.lvl-steps i {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: rgb(var(--fg-rgb) / 0.08);
}
.lvl-steps li.is-past i {
  background: var(--gold-600);
}
.lvl-steps li.is-cur i {
  background: var(--gold-grad);
  box-shadow: 0 0 14px rgb(201 162 39 / 0.6);
}
.lvl-steps b {
  font-size: 12px;
  line-height: 1.2;
  color: var(--mist-300);
}
.lvl-steps li.is-cur b {
  color: var(--gold-300);
}
.lvl-steps small {
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cert {
  background:
    radial-gradient(100% 120% at 100% 0%, rgb(var(--acc-rgb) / 0.14), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.045), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.25), 0 24px 50px -36px #000;
}
.cert .card-k {
  color: var(--acc-2);
}
.cert-b {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cert .ring b {
  font-size: 18px;
}
.cert-req {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--mist-400);
}
.cert-req li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cert-req li.ok {
  color: var(--mist-100);
}
.cert-req li.ok svg {
  color: var(--body);
}
.cert-msg {
  margin: 12px 0 0;
  font-weight: 650;
  color: var(--acc-2);
}
.prefs {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.prefs .card-k,
.prefs p {
  margin: 0;
}
.prefs hr {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: rgb(var(--fg-rgb) / 0.08);
}
@media (min-width: 980px) {
  .prof {
    grid-template-columns: repeat(12, 1fr);
  }
  .prof > * {
    grid-column: span 12;
  }
  .prof .demo-inc {
    grid-column: span 7;
  }
  .prof .demo-inc + .prefs {
    grid-column: span 5;
  }
}

/* Correctifs de mise en page mobile */
.trail .node {
  width: auto;
  max-width: 420px;
}
.cont {
  container-type: inline-size;
}
.cont-play {
  top: calc(56.25cqw - 27px);
  bottom: auto;
  inset-inline-end: 18px;
}
.cont-b {
  padding-inline-end: 84px;
}
@media (max-width: 560px) {
  .map-head .lock-tag {
    padding: 8px;
    font-size: 0;
  }
  .map-head h2 {
    font-size: 19px;
  }
}

/* Dans une formation, les composants de leçon prennent l'accent de la formation */
main[data-track] .card-k {
  color: var(--acc-2);
}
main[data-track] .lab-card .card-k {
  color: var(--gold-300);
}
.keys li::before {
  background: var(--acc-grad);
}
.fc-f {
  background: linear-gradient(160deg, rgb(var(--acc-rgb) / 0.18), rgb(var(--fg-rgb) / 0.03));
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.35);
}
.qz-why {
  background: rgb(var(--acc-rgb) / 0.08);
}

/* Arabe : un titre resté en français garde sa ponctuation au bon endroit */
[dir='rtl'] :is(.cont-b h2, .prod-next b, .node-t b, .ls-title h1, .map-head h2, .ls-list a span, .ls-next b, .res-h b, .file-b b, .crumb-mod, .ls-mt, .keys li, .qz legend, .qz button, .fc-f b, .fc-b) {
  unicode-bidi: plaintext;
}

/* ===== Connexion : panneau de droite (grand écran) ===== */
@media (min-width: 980px) {
  .login-art {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 22px;
    padding: 48px;
    background:
      radial-gradient(60% 50% at 50% 42%, rgb(201 162 39 / 0.16), transparent 70%),
      linear-gradient(170deg, #121016, #08070a);
  }
  .login-art-cap {
    position: static;
  }
}
.la-screen {
  position: relative;
  width: min(100%, 640px);
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000 url('../../video/m1-l1.jpg') center / cover;
  box-shadow: 0 0 0 1px rgb(242 223 160 / 0.18), 0 50px 120px -40px rgb(201 162 39 / 0.45), 0 30px 60px -30px #000;
}
.la-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.la-screen figcaption {
  position: absolute;
  inset-inline: 14px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgb(246 242 234 / 0.75);
  direction: ltr;
}
.la-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ec7a45;
}
.la-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: la-rec 1s steps(1) infinite;
}
@keyframes la-rec {
  50% {
    opacity: 0;
  }
}
.la-team {
  text-align: center;
}
.la-mark {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 44px;
  background: rgb(201 162 39 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.35), 0 40px 90px -40px rgb(201 162 39 / 0.6);
}
.la-mark svg {
  width: 104px;
  height: 104px;
}
.la-name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.la-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-300);
}
html[lang='ar'] .la-sub {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-size: 15px;
}
@media (prefers-reduced-motion: reduce) {
  .la-rec i {
    animation: none;
  }
}

/* Connexion : rythme vertical régulier, message d'erreur sans trou quand il est vide */
.login-err:empty {
  min-height: 0;
  margin-top: -6px;
}
.login-box {
  gap: 18px;
}
/* Arabe : l'indication du champ se lit de droite à gauche, la saisie reste de gauche à droite */
[dir='rtl'] .in--ltr:placeholder-shown {
  direction: rtl;
}

/* ------------------------------------------------------------------ */
/* Questions fréquentes (#/aide)                                       */
/* ------------------------------------------------------------------ */
.faq {
  display: grid;
  gap: 14px;
  max-width: 860px;
}
.faq .ph-h .card-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--gold-300);
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-i {
  padding: 0;
  transition: box-shadow 0.2s;
}
.faq-i[open] {
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.35), 0 24px 50px -36px #000;
}
.faq-i summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-areas: 'c pm' 'q pm';
  gap: 4px 14px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  border-radius: 22px;
}
.faq-i summary::-webkit-details-marker {
  display: none;
}
.faq-i summary:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}
.faq-c {
  grid-area: c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist-400);
}
[dir='rtl'] .faq-c {
  letter-spacing: 0;
}
.faq-i summary b {
  grid-area: q;
  font-size: 16px;
  line-height: 1.35;
  color: var(--mist-100);
}
.faq-pm {
  grid-area: pm;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.14);
}
.faq-pm::before,
.faq-pm::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--gold-300);
  transition: transform 0.25s var(--courbe);
}
.faq-pm::after {
  transform: rotate(90deg);
}
.faq-i[open] .faq-pm::after {
  transform: rotate(0deg);
}
.faq-a {
  padding: 0 18px 18px;
  color: var(--mist-300, #c9c4d6);
  line-height: 1.6;
}
.faq-a p {
  margin: 0 0 10px;
}
.faq-a p:last-child {
  margin: 0;
}
.faq-more {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.faq-more .empty-ic {
  --acc: #25d366;
  --acc-rgb: 37 211 102;
}
.faq-more p {
  margin: 4px 0 0;
  color: var(--mist-400);
}
.faq-more .b {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (min-width: 640px) {
  .faq-more {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .faq-more .b {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-pm::before,
  .faq-pm::after {
    transition: none;
  }
}

/* ==========================================================================
   Classroom (façon Skool) : cartes de formation et de leçon avec miniature,
   petite intro et barre de progression. Remplace la carte « sentier ».
   ========================================================================== */
.cls {
  gap: 52px;
}
.cmod {
  display: grid;
  gap: 20px;
  scroll-margin-top: 90px;
}
.cmod-h {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.cmod-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 34px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--c);
}
.cmod-ht h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
}
.cmod-ht p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--mist-400);
}
.cmod-ht .cmod-p {
  display: block;
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist-300);
}
.cmod-lv {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 3px;
  font-family: var(--font-body, inherit);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-950);
  background: var(--c);
}
.cmod-bar,
.lc-bar,
.cc-bar {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(var(--fg-rgb) / 0.08);
}
.cmod-bar {
  max-width: 420px;
}
.cmod-bar i,
.lc-bar i,
.cc-bar i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-radius: inherit;
  background: var(--c, var(--acc));
  transition: width 0.6s var(--courbe);
}
.lc-g {
  display: grid;
  /* Façon Skool : des cartes larges (3 par ligne sur ordinateur), bien séparées */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.lc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(170deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08), 0 24px 50px -36px #000;
  transition: transform 0.25s var(--courbe), box-shadow 0.25s;
}
a.lc:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--c), 0 30px 60px -36px #000;
}
a.lc:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
}
.lc.is-cur {
  box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 4px rgb(var(--fg-rgb) / 0.03), 0 30px 60px -36px #000;
}
.lc-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), #111015;
}
.lc-img img,
.cc-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c, var(--acc));
  opacity: 0.7;
}
.lc-dur {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: rgb(0 0 0 / 0.72);
}
.lc-ok {
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--ink-950);
  background: var(--c);
}
.lc-go {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.25s var(--courbe);
}
a.lc:hover .lc-go,
a.lc:focus-visible .lc-go,
.lc.is-lock .lc-go {
  opacity: 1;
  transform: none;
}
.lc.is-lock .lc-img img {
  filter: grayscale(0.7) brightness(0.45) blur(1px);
}
.lc.is-lock {
  cursor: not-allowed;
}
.lc.is-lock .lc-b {
  opacity: 0.7;
}
.lc-here {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-950);
  background: var(--c);
}
.lc-b {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 18px;
}
.lc-k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c);
}
.lc-t {
  font-size: 17px;
  line-height: 1.3;
  color: var(--mist-100);
}
.lc-x {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mist-400);
}
.lc-bar {
  height: 6px;
  margin-top: 6px;
}
.lc-meta {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--mist-400);
}
.lc.is-done .lc-meta {
  color: var(--c);
}
.pk-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.pk-lock h2 {
  margin: 0;
  font-size: 18px;
}
.pk-lock p {
  margin: 4px 0 0;
  color: var(--mist-300);
}
.pk-lock .b {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (min-width: 760px) {
  .pk-lock {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .pk-lock .b {
    grid-column: auto;
  }
}

/* Carte de formation (accueil) */
.prod.cc {
  padding: 0;
  gap: 0;
}
.cc-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgb(var(--acc-rgb) / 0.35), transparent 60%), #111015;
}
.cc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(12 11 16 / 0.85));
}
.cc-code {
  position: absolute;
  z-index: 1;
  inset-inline-start: 18px;
  bottom: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--acc);
}
.cc-lock {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 0.55);
}
.prod.cc.is-lock .cc-img img {
  filter: grayscale(0.6) brightness(0.5);
}
.cc-b {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
}
.cc-h {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.cc-h small {
  font-size: 12px;
  color: var(--mist-400);
}
.cc-h b {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}
.cc-h:hover b {
  color: var(--acc-2);
}
.cc-prog {
  display: grid;
  gap: 6px;
}
.cc-prog small {
  font-size: 12.5px;
  color: var(--mist-400);
}
.cc-bar {
  height: 8px;
}
.cc-bar i {
  background: var(--acc-grad);
}
.prod-next.is-add .prod-go {
  color: #25d366;
}
@media (prefers-reduced-motion: reduce) {
  .lc,
  .lc-go,
  .cmod-bar i,
  .lc-bar i,
  .cc-bar i {
    transition: none;
  }
}
.pk-card {
  display: grid;
  gap: 10px;
}
.pk-card .card-k {
  margin: 0;
}
.pk-tr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mist-400);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.12);
}
.pk-chip.is-on {
  color: var(--acc);
  background: rgb(var(--acc-rgb) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.4);
}
.pk-until {
  margin: 0;
  font-size: 13.5px;
}
.pk-card .b {
  justify-self: start;
}

/* ==========================================================================
   Partie pratique : la to-do de la leçon (onglet Exercice)
   ========================================================================== */
.todo {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.08);
}
.todo-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.todo-hd .card-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}
.todo-hd h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
}
.todo-n {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--acc);
}
.todo-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(var(--fg-rgb) / 0.08);
}
.todo-bar i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-radius: inherit;
  background: var(--acc-grad, var(--acc));
  transition: width 0.4s var(--courbe);
}
.todo-l {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.todo-i {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  background: rgb(var(--fg-rgb) / 0.03);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.07);
  transition: background 0.2s, box-shadow 0.2s;
}
.todo-i:hover {
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.35);
}
.todo-i input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.todo-b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  color: transparent;
  box-shadow: inset 0 0 0 1.5px rgb(var(--fg-rgb) / 0.28);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.todo-t {
  font-size: 14.5px;
  line-height: 1.5;
}
.todo-i input:checked ~ .todo-b {
  color: var(--ink-950);
  background: var(--acc);
  box-shadow: none;
}
.todo-i input:checked ~ .todo-t {
  color: var(--mist-400);
  text-decoration: line-through;
  text-decoration-color: rgb(var(--acc-rgb) / 0.6);
}
.todo-i input:focus-visible ~ .todo-b {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.todo-x {
  margin: 0;
  font-size: 12.5px;
}
@media (prefers-reduced-motion: reduce) {
  .todo-bar i,
  .todo-i,
  .todo-b {
    transition: none;
  }
}

/* ==========================================================================
   Outils IA (#/outils) : budgets de départ, fiches outils, générateur de prompts
   ========================================================================== */
.tools {
  display: grid;
  gap: 26px;
}
.tools .ph-h .card-k,
.tl-gen .card-k,
.tl-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tl-sec {
  display: grid;
  gap: 14px;
}
.tl-sec-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tl-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
}
.tl-budgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}
.tl-bud {
  display: grid;
  align-content: start;
  gap: 10px;
}
.tl-bud .card-k {
  margin: 0;
}
.tl-bud-p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.tl-bud-p b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.05;
  color: var(--acc);
}
.tl-bud.is-free .tl-bud-p b {
  color: var(--ok, #6fd39b);
}
.tl-bud-p small {
  font-size: 13px;
  color: var(--mist-400);
}
.tl-bud-x {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mist-300);
}
.tl-bud-t {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}
.tl-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.tl-note .ico {
  flex: none;
}
.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 14px;
}
.tl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl[hidden] {
  display: none;
}
.tl-hd {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.tl-hd h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.2;
}
.tl-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--acc);
  background: rgb(var(--acc-rgb) / 0.12);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.3);
}
.tl-pr {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--mist-200, var(--mist-100));
}
.tl-use {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.tl-dl {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.tl-dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}
.tl-dl dt {
  font-weight: 750;
  color: var(--mist-400);
}
.tl-dl dd {
  margin: 0;
  color: var(--mist-300);
}
.tl-ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.tl-ls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--acc);
  text-decoration: none;
}
.tl-ls span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 190px;
}
.tl-ls.is-lock {
  color: var(--mist-400);
}
.tl-ls:hover span {
  text-decoration: underline;
}
.tl-perk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  color: var(--acc);
  background: rgb(var(--acc-rgb) / 0.08);
}
.tl-perk svg {
  flex: none;
  margin-top: 1px;
}
.b--ref {
  border-color: rgb(var(--acc-rgb) / 0.55);
}
.ptn {
  display: grid;
  gap: 12px;
}
.ptn .card-k,
.ptn-x {
  margin: 0;
}
.ptn-i {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ptn-i > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ptn-i small {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--mist-300);
}
.ptn-x {
  font-size: 12px;
  line-height: 1.45;
}
.tl-gen {
  display: grid;
  gap: 14px;
}
.tl-gen .card-k,
.tl-gen > p {
  margin: 0;
}
.tl-gen-g {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}
.tl-form {
  display: grid;
  gap: 12px;
}
.tl-form .lbl[hidden] {
  display: none;
}
.tl-form .b {
  justify-self: start;
}
.tl-out {
  display: grid;
  gap: 10px;
}
.tl-en {
  display: flex;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.tl-en[hidden] {
  display: none;
}
.tl-pre {
  margin: 0;
  min-height: 220px;
  font-family: inherit;
  unicode-bidi: plaintext;
}
.tl-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 860px) {
  .tl-gen-g {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Thème clair (choix de l'étudiant : <html data-theme="light">, gardé dans ce navigateur)
   Le thème sombre reste la référence : ici, seulement des surcharges. Papier chaud, encre,
   accents assombris pour rester lisibles ; vidéos, miniatures et illustrations restent sombres.
   ========================================================================== */
:root[data-theme='light'] {
  color-scheme: light;
  --fg-rgb: 38 30 14;
  --paper: #f7f3ea;
  --paper-2: #fffdf8;
  --mist-100: #1f1b14;
  --mist-200: #2f2a21;
  --mist-300: #4a4437;
  --mist-400: #686153;
  --mist-500: #857d6d;
  --gold-300: #85620d;
  --gold-400: #9a7311;
  --hook: #9a7311;
  --body: #2a8462;
  --cta: #c0521a;
  --ia: #6045c9;
  --ok: #2a8462;
  --danger: #c23b26;
  --acc: #946f10;
  --acc-2: #7a5b0b;
  --acc-rgb: 148 111 16;
  --ombre-pose: 0 1px 2px rgb(60 45 10 / 0.06), 0 12px 30px -18px rgb(60 45 10 / 0.25);
  --ombre-levee: 0 2px 4px rgb(60 45 10 / 0.06), 0 24px 50px -24px rgb(60 45 10 / 0.3);
}
:root[data-theme='light'] [data-track='creative'] {
  --acc: #946f10;
  --acc-2: #7a5b0b;
  --acc-rgb: 148 111 16;
}
:root[data-theme='light'] [data-track='ia'] {
  --acc: #5a40c2;
  --acc-2: #47319f;
  --acc-rgb: 90 64 194;
}
/* Îlots qui restent sombres : on y remet les voiles blancs et les gris clairs */
:root[data-theme='light'] :is(.lc-img, .cc-img, .player, .login-art, .mini-ph, .cam3d, .ipreview, .cont-stage, .la-screen, .lab-card .lc-m, .hello-deco) {
  --fg-rgb: 255 255 255;
  --mist-100: #f6f2ea;
  --mist-200: #ddd7dd;
  --mist-300: #b6afbd;
  --mist-400: #8b8494;
}
:root[data-theme='light'] body {
  color: var(--mist-100);
}
:root[data-theme='light'] body.ap {
  background:
    radial-gradient(70vmax 50vmax at 100% -10%, rgb(201 162 39 / 0.14), transparent 60%),
    radial-gradient(60vmax 40vmax at -10% 110%, rgb(236 122 69 / 0.07), transparent 60%),
    var(--paper);
}
:root[data-theme='light'] .top {
  background: rgb(247 243 234 / 0.86);
}
:root[data-theme='light'] .side {
  background: rgb(255 253 248 / 0.75);
}
:root[data-theme='light'] .tabs {
  background: rgb(255 253 248 / 0.92);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1), 0 18px 40px -18px rgb(60 45 10 / 0.35);
}
:root[data-theme='light'] .tabs a[aria-current='page'] {
  background: rgb(201 162 39 / 0.16);
}
:root[data-theme='light'] :is(.card, .lc, .tl, .tl-bud, .todo-i, .faq-i) {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1), 0 16px 34px -26px rgb(60 45 10 / 0.35);
}
:root[data-theme='light'] a.lc:hover {
  box-shadow: inset 0 0 0 1px var(--c), 0 22px 40px -26px rgb(60 45 10 / 0.4);
}
:root[data-theme='light'] .lc.is-cur {
  box-shadow: inset 0 0 0 1.5px var(--c), 0 22px 40px -26px rgb(60 45 10 / 0.4);
}
:root[data-theme='light'] :is(.in, select.in option) {
  background: #fff;
}
:root[data-theme='light'] :is(.toast, .lm-m) {
  background: rgb(255 253 248 / 0.97);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.12), 0 20px 50px -20px rgb(60 45 10 / 0.35);
}
:root[data-theme='light'] :is(.out, .res-i pre) {
  background: #fbf7ee;
  box-shadow: inset 0 0 0 1px rgb(154 115 17 / 0.3);
}
:root[data-theme='light'] :is(.trk-demo, .atl-panel, .locked-p .empty, .lib-lock-c) {
  background: rgb(255 253 248 / 0.92);
}
:root[data-theme='light'] .cmod-n {
  -webkit-text-stroke-color: color-mix(in srgb, var(--c) 70%, #000);
}
:root[data-theme='light'] .cmod-lv {
  color: #fff;
  background: color-mix(in srgb, var(--c) 72%, #000);
}
:root[data-theme='light'] .lc-k {
  color: color-mix(in srgb, var(--c) 62%, #000);
}
:root[data-theme='light'] :is(.lc-bar i, .cmod-bar i) {
  background: color-mix(in srgb, var(--c) 80%, #000);
}

:root[data-theme='light'] :is(.prod, .trk-h, .atl) {
  background: radial-gradient(120% 90% at 100% 0%, rgb(var(--acc-rgb) / 0.13), transparent 55%), var(--paper-2);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.28), 0 24px 50px -32px rgb(60 45 10 / 0.35);
}
:root[data-theme='light'] :is(.prod[data-track='ia'], [data-track='ia'] .trk-h, .atl) {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(90 64 194 / 0.1), transparent 55%),
    radial-gradient(rgb(90 64 194 / 0.08) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--paper-2);
}

/* Choix du thème (barre du haut et profil) */
.th-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: var(--mist-300);
  background: rgb(var(--fg-rgb) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
}
.th-btn:hover {
  color: var(--mist-100);
}
.th-btn .i-moon,
:root[data-theme='light'] .th-btn .i-sun {
  display: none;
}
:root[data-theme='light'] .th-btn .i-moon {
  display: block;
}

/* Espace équipe (profil du formateur) */
.team-card .b {
  margin-top: 14px;
}

/* Mot de passe de l'étudiant (profil) */
.pw-f {
  display: grid;
  gap: 14px;
  max-width: 440px;
  margin-top: 14px;
}
.pw-f .b {
  justify-self: start;
}

/* ==========================================================================
   Formation Sites & Apps (novembre 2026) : menthe, grille de plan d'architecte
   ========================================================================== */
[data-track='dev'] {
  --acc: #5fd3b3;
  --acc-2: #a6f3dc;
  --acc-rgb: 95 211 179;
  --acc-grad: linear-gradient(180deg, #d6fbef 0%, #2fae8c 100%);
}
.ring--dev .fg {
  stroke: url(#ring-dev);
}
.prod[data-track='dev'],
[data-track='dev'] .trk-h {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(95 211 179 / 0.16), transparent 55%),
    linear-gradient(rgb(95 211 179 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(95 211 179 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(170deg, #0f1a1a, #0a0f12);
}
:root[data-theme='light'] [data-track='dev'] {
  --acc: #1f8f73;
  --acc-2: #176b56;
  --acc-rgb: 31 143 115;
}
:root[data-theme='light'] :is(.prod[data-track='dev'], [data-track='dev'] .trk-h) {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(31 143 115 / 0.1), transparent 55%),
    linear-gradient(rgb(31 143 115 / 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(31 143 115 / 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--paper-2);
}
/* Leçon pratique (Formation Sites & Apps) : petit repère dans la carte */
.lc-prat {
  color: var(--acc);
  font-weight: 700;
}

/* ==========================================================================
   Studio de prompts (#/prompts, novembre 2026) : une couleur par partie du prompt,
   une couleur par formation ; même logique en thème clair (couleurs assombries).
   ========================================================================== */
.ps,
.ps-promo,
.tl-ps,
.ls-ps {
  --ps-role: #e0be55;
  --ps-context: #8fb8e8;
  --ps-brand: #f2a65a;
  --ps-task: #5fd3b3;
  --ps-method: #c8b6ff;
  --ps-rules: #f0a796;
  --ps-examples: #9fd8ff;
  --ps-format: #a6e3a1;
  --ps-check: #ffb4d0;
  --ps-missing: #b9b2c2;
}
[data-g='creative'] {
  --gc: #e0be55;
}
[data-g='ia'] {
  --gc: #c8b6ff;
}
[data-g='dev'] {
  --gc: #5fd3b3;
}
[data-g='vendre'] {
  --gc: #f2a65a;
}
[data-g='mieux'] {
  --gc: #ff9db8;
}

/* Barre latérale : le studio, seul, sous l'accueil */
.side a.nv.nv-ps {
  position: relative;
  margin: 4px 0 2px;
  background: linear-gradient(120deg, rgb(201 162 39 / 0.16), rgb(200 182 255 / 0.12) 55%, rgb(95 211 179 / 0.12));
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.35);
  color: var(--mist-100);
}
.side a.nv.nv-ps svg {
  color: var(--gold-300);
}
.side a.nv.nv-ps[aria-current='page'] {
  box-shadow: inset 0 0 0 1.5px var(--gold-400), 0 10px 30px -14px rgb(201 162 39 / 0.8);
}
.nv-new {
  margin-inline-start: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-grad);
  color: var(--ink-950);
}
/* Barre du bas (téléphone) : le studio au centre */
.tabs a.tab-ps {
  color: var(--gold-300);
}
.tabs a.tab-ps svg {
  box-sizing: content-box;
  padding: 7px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink-950);
  box-shadow: 0 0 0 4px rgb(20 18 24 / 0.86), 0 10px 22px -8px rgb(201 162 39 / 0.9);
}
.tabs a.tab-ps[aria-current='page'] {
  background: none;
}

/* Accueil, Outils IA : la carte du studio */
.ps-promo,
.tl-ps {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(201 162 39 / 0.18), transparent 60%),
    radial-gradient(90% 140% at 100% 100%, rgb(200 182 255 / 0.14), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.3), 0 24px 50px -36px #000;
  transition: transform 0.3s var(--courbe), box-shadow 0.3s;
}
.ps-promo:hover,
.tl-ps:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--gold-400), 0 30px 60px -36px rgb(201 162 39 / 0.55);
}
.tl-ps {
  margin-bottom: 22px;
}
.ps-promo-ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--gold-grad);
  color: var(--ink-950);
  box-shadow: 0 12px 28px -12px rgb(201 162 39 / 0.9);
}
.ps-promo-t {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ps-promo-t .card-k {
  margin: 0;
}
.ps-promo-t .nv-new {
  margin-inline-start: 4px;
}
.ps-promo-t b {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 850;
  letter-spacing: -0.01em;
}
.ps-promo-t .muted {
  font-size: 13.5px;
  line-height: 1.5;
}
.ps-promo-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 13px;
  white-space: nowrap;
  background: rgb(201 162 39 / 0.16);
  color: var(--gold-300);
}
@media (max-width: 640px) {
  .ps-promo,
  .tl-ps {
    grid-template-columns: auto 1fr;
  }
  .ps-promo-go {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* Leçon : générer le prompt de la leçon */
.ls-ps {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.3), 0 24px 50px -36px #000;
}
.ls-ps:hover {
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
}
.ls-ps-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gold-grad);
  color: var(--ink-950);
}
.ls-ps-t {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ls-ps-t small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.ls-ps-t b {
  font-size: 14.5px;
}
.ls-ps-t span {
  font-size: 12.5px;
  color: var(--mist-400);
}

/* Profil : raccourcis */
.prof-links {
  display: grid;
  padding: 6px;
}
.prof-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}
.prof-links a + a {
  border-top: 1px solid rgb(var(--fg-rgb) / 0.06);
}
.prof-links a:hover {
  background: rgb(var(--fg-rgb) / 0.04);
}
.prof-links a span {
  flex: 1;
}
.prof-links a svg:first-child {
  color: var(--gold-300);
}

/* Page */
.ps {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.ps-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(200 182 255 / 0.16), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgb(201 162 39 / 0.14), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
}
.ps-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 106%;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.ps-lead {
  margin: 12px 0 0;
  max-width: 60ch;
  color: var(--mist-300);
  line-height: 1.55;
}
.ps-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ps-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgb(var(--fg-rgb) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
}
.ps-badges li svg {
  color: var(--gold-300);
}
.ps-hero-art {
  display: grid;
  place-items: center;
}
.ps-ha-win {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 320px);
  padding: 16px 18px 22px;
  border-radius: 20px;
  background: #0b0a0e;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -30px #000;
  transform: rotate(-2deg);
}
.ps-ha-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}
.ps-ha-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}
.ps-ha-l {
  display: block;
  height: 9px;
  width: var(--w);
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent));
  transform-origin: 0 50%;
  animation: ps-type 5.4s var(--courbe) infinite;
}
[dir='rtl'] .ps-ha-l {
  transform-origin: 100% 50%;
}
.ps-ha-l:nth-of-type(2) {
  animation-delay: 0.25s;
}
.ps-ha-l:nth-of-type(3) {
  animation-delay: 0.5s;
}
.ps-ha-l:nth-of-type(4) {
  animation-delay: 0.75s;
}
.ps-ha-l:nth-of-type(5) {
  animation-delay: 1s;
}
.ps-ha-l:nth-of-type(6) {
  animation-delay: 1.25s;
}
.ps-ha-go {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink-950);
  box-shadow: 0 12px 26px -10px rgb(201 162 39 / 0.9);
  animation: ps-pop 5.4s var(--courbe) infinite;
}
@keyframes ps-type {
  0%,
  6% {
    transform: scaleX(0);
    opacity: 0.4;
  }
  30%,
  86% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes ps-pop {
  0%,
  40% {
    transform: scale(0.6);
    opacity: 0;
  }
  50%,
  88% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .ps-hero {
    grid-template-columns: 1fr;
  }
  .ps-hero-art {
    display: none;
  }
}

/* Choix du modèle */
.ps-pick {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ps-gs {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.ps-gs::-webkit-scrollbar {
  display: none;
}
.ps-gs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.ps-tpls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}
.ps-tpl {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 13px 14px;
  border: 0;
  border-radius: 18px;
  text-align: start;
  cursor: pointer;
  color: inherit;
  background: linear-gradient(170deg, rgb(var(--fg-rgb) / 0.045), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.08);
  transition: transform 0.25s var(--courbe), box-shadow 0.25s, background 0.25s;
}
.ps-tpl[hidden] {
  display: none;
}
.ps-tpl:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 55%, transparent);
}
.ps-tpl[aria-pressed='true'] {
  background: linear-gradient(170deg, color-mix(in srgb, var(--gc) 16%, transparent), rgb(var(--fg-rgb) / 0.02));
  box-shadow: inset 0 0 0 1.5px var(--gc), 0 16px 34px -22px color-mix(in srgb, var(--gc) 80%, transparent);
}
.ps-tpl-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--gc);
  background: color-mix(in srgb, var(--gc) 14%, transparent);
}
.ps-tpl-t {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ps-tpl-t b {
  font-size: 14px;
  line-height: 1.25;
}
.ps-tpl-t small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--mist-400);
}
.ps-tpl:has(.ps-tpl-lk) {
  padding-inline-end: 34px;
}
.ps-tpl-lk {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  color: var(--mist-400);
}

/* Atelier */
.ps-ws {
  display: grid;
  gap: 18px;
  scroll-margin-top: 80px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc, #e0be55) 30%, transparent), 0 30px 60px -40px #000;
}
.ps-ws-h {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
}
.ps-ws-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--ink-950);
  background: var(--gc);
  box-shadow: 0 12px 26px -14px var(--gc);
}
.ps-ws-tt .card-k {
  margin: 2px 0 4px;
  color: var(--gc);
}
.ps-ws-tt h2 {
  font-size: clamp(20px, 3vw, 26px);
}
.ps-ws-tt .muted {
  margin: 4px 0 0;
  font-size: 13.5px;
}
.ps-mode {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px;
  justify-items: stretch;
  max-width: 260px;
}
.ps-mode button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
}
.ps-mode button[aria-pressed='true'] {
  background: rgb(201 162 39 / 0.18);
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
  color: var(--gold-300);
}
.ps-mode small {
  grid-column: 1 / -1;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--mist-400);
}
@media (max-width: 760px) {
  .ps-ws-h {
    grid-template-columns: auto 1fr;
  }
  .ps-mode {
    grid-column: 1 / -1;
    max-width: none;
  }
}
.ps-ws-g {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) {
  .ps-ws-g {
    grid-template-columns: 1fr;
  }
}
.ps-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ps-opt-t {
  font-style: normal;
  font-weight: 500;
  color: var(--mist-500);
}
.ps-opts {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.03);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
}
.ps-o {
  display: grid;
  gap: 6px;
}
.ps-o-l {
  font-size: 12px;
  font-weight: 700;
  color: var(--mist-400);
}
.ps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ps-chips button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.1);
}
.ps-chips button[aria-pressed='true'] {
  color: var(--gc);
  background: color-mix(in srgb, var(--gc) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--gc);
}
.ps-tg {
  display: grid;
  gap: 8px;
}
.ps-sw {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.ps-sw.is-off {
  cursor: default;
  color: var(--mist-400);
}
.ps-sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ps-sw-k {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.12);
  transition: background 0.2s;
}
.ps-sw-k::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--courbe);
}
.ps-sw input:checked + .ps-sw-k {
  background: var(--gc);
}
.ps-sw input:checked + .ps-sw-k::after {
  transform: translateX(calc(16px * var(--dir, 1)));
}
.ps-sw input:focus-visible + .ps-sw-k {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}
.ps-ln {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-300);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ps-fa {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Résultat */
.ps-res {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ps-meter {
  --mc: #f0a796;
  display: grid;
  gap: 7px;
}
.ps-meter[data-l='1'] {
  --mc: #e0be55;
}
.ps-meter[data-l='2'] {
  --mc: #8fd9a8;
}
.ps-meter[data-l='3'] {
  --mc: #5fd3b3;
}
.ps-meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.ps-meter-top #ps-sc {
  color: var(--mc);
  font-weight: 700;
}
.ps-meter-top #ps-sc b {
  font-family: var(--font-display);
  font-size: 18px;
}
.ps-bar {
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(var(--fg-rgb) / 0.08);
}
.ps-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 55%, transparent), var(--mc));
  transition: width 0.5s var(--courbe);
}
.ps-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mist-300);
}
.ps-tip svg {
  flex: none;
  margin-top: 2px;
  color: var(--mc);
}
.ps-pv-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ps-pv-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-400);
}
.ps-pv {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  white-space: normal;
  unicode-bidi: plaintext;
}
.ps-b {
  --c: var(--ps-context);
  padding: 2px 0 2px 12px;
  border-inline-start: 3px solid var(--c);
}
[dir='rtl'] .ps-b {
  padding: 2px 12px 2px 0;
}
.ps-b[data-k='role'] {
  --c: var(--ps-role);
}
.ps-b[data-k='brand'] {
  --c: var(--ps-brand);
}
.ps-b[data-k='task'] {
  --c: var(--ps-task);
}
.ps-b[data-k='method'] {
  --c: var(--ps-method);
}
.ps-b[data-k='rules'] {
  --c: var(--ps-rules);
}
.ps-b[data-k='examples'] {
  --c: var(--ps-examples);
}
.ps-b[data-k='format'] {
  --c: var(--ps-format);
}
.ps-b[data-k='check'] {
  --c: var(--ps-check);
}
.ps-b[data-k='missing'] {
  --c: var(--ps-missing);
}
.ps-b-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
  cursor: help;
}
.ps-b-k code {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mist-500);
}
.ps-b-t {
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ps-raw-t {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ps-miss {
  padding: 0 3px;
  border-radius: 5px;
  background: rgb(240 167 150 / 0.2);
  color: #f0a796;
}
.ps-media {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
}
.ps-seg {
  --c: var(--ps-context);
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: help;
}
.ps-seg[data-k='subject'],
.ps-lg[data-k='subject'],
.ps-seg[data-k='action'],
.ps-lg[data-k='action'] {
  --c: var(--ps-role);
}
.ps-seg[data-k='ref'],
.ps-lg[data-k='ref'],
.ps-seg[data-k='keep'],
.ps-lg[data-k='keep'] {
  --c: var(--ps-context);
}
.ps-seg[data-k='scene'],
.ps-lg[data-k='scene'],
.ps-seg[data-k='style'],
.ps-lg[data-k='style'] {
  --c: var(--ps-task);
}
.ps-seg[data-k='comp'],
.ps-lg[data-k='comp'],
.ps-seg[data-k='camera'],
.ps-lg[data-k='camera'] {
  --c: var(--ps-method);
}
.ps-seg[data-k='light'],
.ps-lg[data-k='light'],
.ps-seg[data-k='audio'],
.ps-lg[data-k='audio'] {
  --c: var(--ps-brand);
}
.ps-seg[data-k='mood'],
.ps-lg[data-k='mood'],
.ps-seg[data-k='dialogue'],
.ps-lg[data-k='dialogue'] {
  --c: var(--ps-check);
}
.ps-seg[data-k='text'],
.ps-lg[data-k='text'] {
  --c: var(--ps-format);
}
.ps-seg[data-k='format'],
.ps-lg[data-k='format'] {
  --c: var(--ps-missing);
}
.ps-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.ps-lg {
  --c: var(--ps-context);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  cursor: help;
}
.ps-neg {
  display: grid;
  gap: 8px;
}
.ps-neg[hidden],
.ps-note[hidden] {
  display: none;
}
.ps-neg-t {
  margin: 0;
  font-size: 12.5px;
}
.ps-note {
  display: grid;
  gap: 6px;
  margin: 0;
}
.ps-note span {
  display: flex;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mist-300);
}
.ps-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--gold-300);
}
.ps-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-act .b--or.is-done {
  background: var(--body);
}
.ps-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--mist-400);
}
.ps-next:empty {
  display: none;
}
.ps-nx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--mist-100);
  background: rgb(var(--fg-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.12);
}
.ps-nx:hover {
  box-shadow: inset 0 0 0 1px var(--gold-400);
}

/* Modèle verrouillé (compte démo) */
.ps-lock {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 16px 12px;
  text-align: center;
}
.ps-lock h3 {
  margin: 0;
  font-size: 20px;
}
.ps-lock p {
  max-width: 52ch;
  margin: 0;
}
.ps-lock-ic {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgb(var(--fg-rgb) / 0.06);
  color: var(--gold-300);
}
.ps-lock-a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

/* Mon contexte, prompts récents */
.ps-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 860px) {
  .ps-more {
    grid-template-columns: 1fr;
  }
}
.ps-more details > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.ps-more details > summary::-webkit-details-marker {
  display: none;
}
.ps-more summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.ps-more summary small {
  font-size: 12.5px;
  color: var(--mist-400);
}
.ps-ctx.is-on summary small {
  color: var(--body);
}
.ps-sum-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgb(201 162 39 / 0.14);
  color: var(--gold-300);
}
.ps-pm {
  position: relative;
  width: 14px;
  height: 14px;
}
.ps-pm::before,
.ps-pm::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--mist-400);
  transition: transform 0.25s var(--courbe);
}
.ps-pm::after {
  transform: rotate(90deg);
}
details[open] .ps-pm::after {
  transform: rotate(0deg);
}
.ps-ctx-x {
  margin: 14px 0 10px;
  font-size: 13px;
}
.ps-ctx-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ps-ctx-g label:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .ps-ctx-g {
    grid-template-columns: 1fr;
  }
}
.ps-ctx-a {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.ps-hl {
  display: grid;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 0;
  list-style: none;
}
.ps-hl li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.03);
}
.ps-hl li > div {
  display: grid;
  min-width: 0;
}
.ps-hl b {
  font-size: 13.5px;
}
.ps-hl small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--mist-400);
}
.ps-hl-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--gc);
  background: color-mix(in srgb, var(--gc) 14%, transparent);
}
.ps-hist-0 {
  margin: 14px 0 0;
  font-size: 13px;
}

/* Ce qui fait la différence */
.ps-learn h2 {
  font-size: clamp(20px, 3vw, 26px);
}
.ps-learn > .muted {
  margin: 6px 0 0;
}
.ps-learn-g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ps;
}
.ps-learn-g li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgb(var(--fg-rgb) / 0.03);
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.06);
}
.ps-learn-g b {
  font-size: 14px;
}
.ps-learn-g p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist-400);
}
.ps-learn-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgb(201 162 39 / 0.14);
  color: var(--gold-300);
}
.ps-src {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
}
.ps-src a {
  color: var(--mist-300);
}

/* Thème clair */
:root[data-theme='light'] .ps,
:root[data-theme='light'] .ps-promo,
:root[data-theme='light'] .tl-ps,
:root[data-theme='light'] .ls-ps {
  --ps-role: #9a7311;
  --ps-context: #2f6fb0;
  --ps-brand: #b5651d;
  --ps-task: #1f8f73;
  --ps-method: #6045c9;
  --ps-rules: #b5482f;
  --ps-examples: #1f7ea8;
  --ps-format: #3b8a3a;
  --ps-check: #b23a72;
  --ps-missing: #6f6878;
}
:root[data-theme='light'] [data-g='creative'] {
  --gc: #9a7311;
}
:root[data-theme='light'] [data-g='ia'] {
  --gc: #6045c9;
}
:root[data-theme='light'] [data-g='dev'] {
  --gc: #1f8f73;
}
:root[data-theme='light'] [data-g='vendre'] {
  --gc: #b5651d;
}
:root[data-theme='light'] [data-g='mieux'] {
  --gc: #b23a72;
}
:root[data-theme='light'] .ps-ws-ic {
  color: #fff;
}
:root[data-theme='light'] .side a.nv.nv-ps {
  background: linear-gradient(120deg, rgb(201 162 39 / 0.18), rgb(96 69 201 / 0.08) 55%, rgb(31 143 115 / 0.08));
}
:root[data-theme='light'] .tabs a.tab-ps svg {
  box-shadow: 0 0 0 4px rgb(255 253 248 / 0.95), 0 10px 22px -8px rgb(154 115 17 / 0.6);
}
:root[data-theme='light'] :is(.ps-promo, .tl-ps) {
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(201 162 39 / 0.16), transparent 60%),
    radial-gradient(90% 140% at 100% 100%, rgb(96 69 201 / 0.08), transparent 60%),
    var(--paper-2);
}
:root[data-theme='light'] .ps-hero {
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(96 69 201 / 0.1), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgb(201 162 39 / 0.14), transparent 60%),
    var(--paper-2);
}
:root[data-theme='light'] .ps-miss {
  color: #b5482f;
  background: rgb(181 72 47 / 0.12);
}
:root[data-theme='light'] .ps-meter {
  --mc: #b5482f;
}
:root[data-theme='light'] .ps-meter[data-l='1'] {
  --mc: #9a7311;
}
:root[data-theme='light'] .ps-meter[data-l='2'],
:root[data-theme='light'] .ps-meter[data-l='3'] {
  --mc: #1f8f73;
}
@media (prefers-reduced-motion: reduce) {
  .ps-ha-l,
  .ps-ha-go {
    animation: none;
  }
  .ps-ha-go {
    opacity: 1;
  }
}

/* ==========================================================================
   Accueil sans vide (novembre 2026) : à gauche la bienvenue (qui prend la hauteur
   restante) et le studio ; à droite la leçon à reprendre ; puis les chiffres sur toute
   la largeur, les trois formations côte à côte, la semaine et le défi en deux colonnes.
   ========================================================================== */
.hello-date {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--mist-400);
}
.hello-date::first-letter {
  text-transform: uppercase;
}
.hello .lvl {
  margin-top: auto;
  padding-top: 18px;
}
.hello--demo {
  justify-content: center;
}
/* Icône du moment de la journée (à la place de l'emoji) */
.hi-ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-start: 0.18em;
  vertical-align: -0.13em;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgb(201 162 39 / 0.45));
}
.hi-s1 {
  stop-color: #f8e3a0;
}
.hi-s2 {
  stop-color: #c9a227;
}
:root[data-theme='light'] .hi-s1 {
  stop-color: #e2b543;
}
:root[data-theme='light'] .hi-s2 {
  stop-color: #94690c;
}
:root[data-theme='light'] .hi-ic {
  filter: drop-shadow(0 4px 10px rgb(154 115 17 / 0.3));
}
@media (prefers-reduced-motion: no-preference) {
  .hi-ic {
    animation: hi-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.25) 0.45s both;
  }
  .hi-ic--sun .hi-rays {
    transform-origin: 24px 24px;
    animation: hi-spin 26s linear infinite;
  }
  .hi-ic--rise .hi-up {
    animation: hi-up 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  }
  .hi-ic--rise .hi-rays {
    animation: hi-glow 2.6s ease-in-out 2s infinite alternate;
  }
  .hi-ic--moon .hi-moon {
    transform-origin: 24px 26px;
    animation: hi-rock 5s ease-in-out infinite alternate;
  }
  .hi-ic--moon .hi-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: hi-tw 2.2s ease-in-out infinite alternate;
  }
  .hi-ic--moon .hi-star--2 {
    animation-delay: 1.1s;
  }
}
@keyframes hi-in {
  from {
    opacity: 0;
    transform: translateY(0.18em) rotate(-30deg) scale(0.5);
  }
}
@keyframes hi-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hi-up {
  from {
    transform: translateY(12px);
  }
}
@keyframes hi-glow {
  from {
    opacity: 0.5;
  }
}
@keyframes hi-rock {
  from {
    transform: rotate(-9deg);
  }
  to {
    transform: rotate(5deg);
  }
}
@keyframes hi-tw {
  from {
    opacity: 0.3;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}
/* La carte de reprise peut s'allonger : le texte reste centré sous la vidéo */
.cont {
  grid-template-rows: auto 1fr;
}
.cont-b {
  align-content: center;
}
/* Les cartes de formation : même hauteur, bouton en bas */
.cc-b {
  flex: 1;
}
/* Trois formations : côte à côte s'il y a la place, sinon deux et la dernière en large */
.prods {
  container: prods / inline-size;
}
@container prods (min-width: 560px) {
  .prods-g {
    grid-template-columns: 1fr 1fr;
  }
  .prods-g > .prod:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .prods-g > .prod:last-child:nth-child(odd) .cc-img {
    flex: 0 0 46%;
    aspect-ratio: auto;
    min-height: 240px;
  }
  .prods-g > .prod:last-child:nth-child(odd) .cc-img::after {
    background: linear-gradient(180deg, transparent 55%, rgb(12 11 16 / 0.8));
  }
  .prods-g > .prod:last-child:nth-child(odd) .cc-b {
    justify-content: center;
    padding: 22px 24px;
  }
}
@container prods (min-width: 940px) {
  .prods-g {
    grid-template-columns: repeat(3, 1fr);
  }
  .prods-g > .prod:last-child:nth-child(odd) {
    grid-column: auto;
    flex-direction: column;
  }
  .prods-g > .prod:last-child:nth-child(odd) .cc-img {
    flex: none;
    aspect-ratio: 16 / 8;
    min-height: 0;
  }
  .prods-g > .prod:last-child:nth-child(odd) .cc-img::after {
    background: linear-gradient(180deg, transparent 45%, rgb(12 11 16 / 0.85));
  }
  .prods-g > .prod:last-child:nth-child(odd) .cc-b {
    justify-content: flex-start;
    padding: 16px 20px 20px;
  }
  .prods-g .prod-p {
    font-size: 14px;
  }
}
@media (min-width: 760px) {
  .dash--me {
    grid-template-rows: 1fr auto;
  }
  .dash--me > .hello {
    grid-column: 1 / span 7;
    grid-row: 1;
  }
  .dash--me > .ps-promo {
    grid-column: 1 / span 7;
    grid-row: 2;
    gap: 14px;
    padding: 16px 18px;
    container-type: inline-size;
  }
  .dash--me > .cont {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
  }
  .dash--me > .stats {
    grid-column: 1 / -1;
  }
  .dash:not(.dash--lab) :is(.week-c, .defi) {
    grid-column: span 6;
  }
  /* Le studio dans la colonne de gauche : il se resserre avec la place */
  @container (max-width: 600px) {
    .ps-promo-gl {
      display: none;
    }
    .ps-promo-go {
      width: 42px;
      height: 42px;
      padding: 0;
      justify-content: center;
    }
  }
  @container (max-width: 470px) {
    .ps-promo-t .muted {
      display: none;
    }
  }
}

/* ==========================================================================
   Aperçu offert (novembre 2026) : 5 vidéos de chaque formation hors du pack.
   Badge « Offerte » sur les leçons, bandeau du parcours, bandeau sous la vidéo,
   pied de la carte de formation de l'accueil ; dates d'accès par formation (profil).
   ========================================================================== */
.lc-pv {
  position: absolute;
  z-index: 2;
  inset-inline-end: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-950);
  background: var(--gold-grad);
  box-shadow: 0 6px 16px -6px rgb(201 162 39 / 0.8);
}
.lc.is-pv {
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.45), 0 24px 50px -36px #000;
}
.pk-pv {
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(201 162 39 / 0.16), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.35), 0 24px 50px -36px #000;
}
.pk-pv .empty-ic {
  color: var(--gold-300);
}
.pk-acts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pk-acts .b {
  grid-column: auto;
}
@media (min-width: 760px) {
  .pk-acts {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
}
.pv-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0 !important;
}
.pv-dots i {
  width: 22px;
  height: 6px;
  border-radius: 6px;
  background: rgb(var(--fg-rgb) / 0.12);
}
.pv-dots i.on {
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgb(201 162 39 / 0.5);
}
.pv-dots small {
  margin-inline-start: 4px;
  font-size: 12px;
  color: var(--mist-400);
}
/* Sous la vidéo d'une leçon offerte */
.ls-pv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  margin-top: 14px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(201 162 39 / 0.14), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(201 162 39 / 0.35);
}
.ls-pv-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--ink-950);
  background: var(--gold-grad);
}
.ls-pv-t .card-k {
  margin: 0 0 4px;
  color: var(--gold-300);
}
.ls-pv-t p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--mist-300);
}
.ls-pv-a {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 980px) {
  .ls-pv {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .ls-pv-a {
    grid-column: auto;
  }
}
/* Carte de formation (accueil) hors du pack : la vidéo offerte, puis l'ajout */
.prod-next.is-pv small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-300);
}
.prod-next.is-add small svg {
  vertical-align: -2px;
}
.prod-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: -4px;
  padding: 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--mist-300);
}
.prod-add:hover {
  color: rgb(var(--fg-rgb));
  background: rgb(var(--fg-rgb) / 0.05);
}
.prod-add svg {
  color: #25d366;
}
/* Profil : la date de fin de chaque formation */
.pk-dates {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--mist-300);
}
.pk-dates b {
  color: rgb(var(--fg-rgb));
  font-weight: 700;
}
.pk-dates li.is-exp span {
  color: #ec7a45;
}
:root[data-theme='light'] .ls-pv-t .card-k,
:root[data-theme='light'] .prod-next.is-pv small {
  color: #94690c;
}

/* Compte démo de 24 h : bandeau permanent (temps restant + WhatsApp), formulaire, fin de l'essai */
.trial-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 14px;
  padding-top: max(8px, env(safe-area-inset-top));
  font-size: 12.5px;
  line-height: 1.4;
  /* fond toujours sombre (aussi en thème clair) : texte clair fixe */
  color: #ddd7dd;
  background: linear-gradient(90deg, rgb(37 211 102 / 0.16), rgb(201 162 39 / 0.14)), rgb(10 9 13 / 0.94);
  backdrop-filter: blur(14px);
}
.trial-bar + .top {
  padding-top: 10px;
}
.trial-bar-k {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #07060a;
  color: #f2dfa0;
}
.trial-bar-t {
  flex: 1 1 16em;
  min-width: 0;
}
.trial-bar-t b {
  color: #fff;
}
.trial-bar-wa,
.trial-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: #25d366;
  color: #062b14;
  font-weight: 800;
  text-decoration: none;
}
.trial-bar-wa {
  flex: none;
  margin-inline-start: auto;
  padding: 6px 12px;
}
.trial-wa {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font-size: 16px;
}
.trial-packs {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.trial-pk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.12);
  cursor: pointer;
}
.trial-pk:has(input:checked) {
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
}
.trial-pk.is-off {
  opacity: 0.5;
  cursor: not-allowed;
}
.trial-free {
  margin: 0;
  font-size: 12.5px;
}
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Atelier pratique filmé (format long) : badge, carte « pourquoi c'est plus long », chapitres cliquables */
.chip--wk {
  background: rgb(var(--acc-rgb) / 0.12);
  color: var(--acc-2);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.35);
}
.ls-wk {
  margin-top: 14px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgb(var(--acc-rgb) / 0.12), transparent 60%),
    linear-gradient(170deg, rgb(var(--fg-rgb) / 0.05), rgb(var(--fg-rgb) / 0.015));
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.3);
}
.ls-wk-h {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
}
.ls-wk-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--ink-950);
  background: var(--acc);
}
.ls-wk-h .card-k {
  margin: 0 0 4px;
  color: var(--acc-2);
}
.ls-wk-h p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mist-300);
}
.ls-wk-t {
  margin: 18px 0 2px;
  font-size: 15px;
}
.ls-wk-tip {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--mist-500);
}
.ls-wk-ch {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ls-wk-ch button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.04);
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ls-wk-ch button:hover {
  background: rgb(var(--fg-rgb) / 0.08);
}
.ls-wk-ch button:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.ls-wk-ch button[aria-current] {
  background: rgb(var(--acc-rgb) / 0.16);
  box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / 0.45);
}
.ls-wk-ch time {
  flex: none;
  min-width: 46px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--acc-2);
  background: rgb(var(--acc-rgb) / 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .ls-wk-ch button {
    transition: none;
  }
}
