/* Loreeya Platform. Values come from tokens.css (the Loreeya design system); type scale from its README. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 19.2px; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }
img { max-width: 100%; }

.eyebrow { margin: 0 0 6px; font-size: 13.6px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.lead { margin: 10px 0 0; color: var(--muted); }
.help { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px;
  border: 2px solid var(--teal); border-radius: var(--radius-pill); background: var(--teal); color: var(--white);
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.link-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--teal);
  text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--navy); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
input[type="email"], input[type="text"] { margin-top: 6px; width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--muted); border-radius: var(--radius-sm); font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); }
input[aria-invalid="true"] { border: 2px solid var(--orange); }
.field-error { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--orange); }
.messages { margin: 20px 0 0; padding: 0; list-style: none; }
.messages li { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* Login: the Connexion board of the MVP mockup. */
.page-login { background: var(--cream); }
.login { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: 0 24px; }
.brand-logos { display: flex; align-items: center; gap: 14px; padding-top: 36px; }
.brand-logos img { display: block; width: auto; height: 34px; }
.brand-logos .logo-partner { height: 22px; }
.brand-logos .sep { width: 1px; height: 28px; background: rgba(1, 57, 94, .25); }
.login-main { flex-grow: 1; padding-top: 36px; }
.login h1 { font-size: 33.6px; }
.login-card { margin-top: 26px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.login-card .btn { margin-top: 14px; }
.login-card .sent { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.login-card .resend { margin-top: 4px; }
.code-input { height: 56px !important; font-size: 24px !important; font-weight: 600; letter-spacing: .4em; text-align: center; color: var(--navy) !important; }

/* Pages of a signed-in person: header, homepage (the Accueil boards of the MVP mockup). */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.app-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand .logo-org { display: block; width: auto; height: 34px; }
.brand .logo-partner { display: block; width: auto; height: 22px; }
.brand .sep { width: 1px; height: 28px; background: rgba(1, 57, 94, .25); }
.account { position: relative; }
.account summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-round);
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; right: 0; top: 52px; min-width: 240px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--card-hover); }
.account-email { margin: 0 0 10px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.h3 { font-size: 19.2px; line-height: 1.2; }

.home-hero { padding: 40px 0; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
.home-hero h1 { margin-top: 2px; }
.resume-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.resume-card h2 { margin: 2px 0 6px; }
.resume-card .meta { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.home-path { padding: 48px 0; background: var(--cream); }
.capsule-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.capsule-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.capsule-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--card-hover); }
.capsule-check { flex: none; width: 28px; height: 28px; margin-top: 2px; border: 2px solid var(--line); border-radius: var(--radius-round);
  display: flex; align-items: center; justify-content: center; }
.status-in_progress .capsule-check { border-color: var(--teal); }
.status-in_progress .capsule-check::after { content: ""; width: 10px; height: 10px; border-radius: var(--radius-round); background: var(--teal); }
.status-done .capsule-check { border-color: var(--teal); background: var(--teal); }
.status-done .capsule-check::after { content: ""; width: 10px; height: 6px; margin-top: -3px; border-left: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white); transform: rotate(-45deg); }
.capsule-text { display: block; min-width: 0; }
.badge { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: var(--radius-chip); background: var(--orange);
  color: var(--white); font-size: 12.5px; font-weight: 600; }
.capsule-title { display: block; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.35; }
.capsule-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.capsule-meta { display: block; margin-top: 8px; color: var(--muted); font-size: 13.6px; }
.status-done .capsule-meta { color: var(--teal); font-weight: 500; }
.path-progress { margin-top: 28px; }
.path-progress p { display: flex; justify-content: space-between; margin: 0 0 8px; color: var(--navy); font-weight: 600; }
.bar { height: 10px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--teal); }
.resource-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; }
.resource-card:hover { color: var(--ink); box-shadow: var(--card-hover); }
.resource-title { display: block; color: var(--navy); font-size: 17px; font-weight: 600; }
.resource-action { color: var(--teal); font-weight: 600; text-decoration: underline; }

.home-skills { padding: 48px 0; }
.checks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: var(--radius-round); background: var(--teal); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white); transform: rotate(-45deg); }

/* Capsule page (the Page de capsule boards): the player, its tabs, the path beside it (below on a phone). */
.capsule-layout { display: grid; gap: 32px; padding-top: 20px; padding-bottom: 48px; }
.capsule-main { min-width: 0; }
.crumbs { margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.crumbs a { text-decoration: none; }
.player { background: var(--white); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; background: var(--navy-2); }
.stage { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.player:fullscreen .stage { border: 0; border-radius: 0; }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.subtitle-line { min-height: 1.65em; margin: 10px 0 0; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--navy);
  color: var(--white); font-size: 16px; text-align: center; }
.subtitle-line:empty { visibility: hidden; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; }
.play { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: var(--radius-round);
  background: var(--teal); color: var(--white); cursor: pointer; }
.play:hover { background: var(--navy); }
.play .icon-pause, .play.is-playing .icon-play { display: none; }
.play.is-playing .icon-pause { display: block; }
.seek { flex: 1 1 160px; min-width: 120px; accent-color: var(--teal); }
.time { min-width: 92px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ctl { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  color: var(--navy); font: 600 14px var(--font-sans); cursor: pointer; }
.ctl:hover { border-color: var(--teal); }
.ctl[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); }
.ctl-icon { display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; }
.click-hint { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { /* a touch screen: no mouse, no arrow keys */
  .hint-pointer { display: none; }
  .hint-touch { display: block; }
}
.capsule-h1 { margin-top: 24px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.capsule-meta-line { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--muted); font: 600 15px var(--font-sans); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--teal); color: var(--navy); }
.tab-panel { padding-top: 20px; }
.tab-panel .h3 { margin-top: 20px; color: var(--navy); }
.transcript { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.phrase { display: flex; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--ink); font: 400 15px/1.55 var(--font-sans); text-align: left; cursor: pointer; }
.phrase:hover { background: var(--cream); }
.phrase.is-current { background: var(--teal-tint); }
.phrase-time { flex: none; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.capsule-aside .h3 { color: var(--navy); }
.capsule-aside .path-progress { margin-top: 12px; }
.mini-path { display: grid; gap: 2px; margin: 16px 0 0; padding: 0; list-style: none; }
.mini-path a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink);
  font-size: 14.5px; line-height: 1.45; text-decoration: none; }
.mini-path a:hover { background: var(--cream); color: var(--ink); }
.mini-path a.is-current { background: var(--teal-tint); font-weight: 600; color: var(--navy); }
.mini-path .capsule-check { width: 20px; height: 20px; margin-top: 1px; }
.mini-path .status-in_progress .capsule-check::after { width: 7px; height: 7px; }
.mini-path .status-done .capsule-check::after { width: 8px; height: 5px; border-width: 2px; }
.next-card { display: block; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--ink); text-decoration: none; }
.next-card:hover { color: var(--ink); box-shadow: var(--card-hover); }

/* Legal texts: one readable column. */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal .updated { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--cream); font-size: 14px; }

.site-footer { padding: 24px 0; font-size: 13.6px; line-height: 1.6; color: var(--muted); }
.powered { display: flex; align-items: center; gap: 10px; }
.powered img { display: block; width: auto; height: 20px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.legal-links a { font-weight: 500; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.rights { margin: 8px 0 0; }
.notice { margin: 8px 0 0; font-size: 12.5px; }

@media (min-width: 900px) {
  .login-main { padding-top: 56px; }
  .header-row { min-height: var(--header-h); }
  .home-hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap-wide); }
  .home-path, .home-skills { padding: var(--section-y) 0; }
  .capsule-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap-wide); padding-top: 28px; }
  .capsule-aside { padding-top: 38px; }
}
