/* Coquille commune des trois démos (app shell : barre latérale + contenu) */
.app { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .app { grid-template-columns: 220px minmax(0, 1fr); } }

.side { background: var(--white); border-bottom: 1px solid var(--app-line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .side { border-bottom: 0; border-right: 1px solid var(--app-line); padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; } }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.side__brand b { display: block; font-size: 13px; font-weight: 800; line-height: 1.1; }
.side__brand small { font-size: 10px; color: var(--muted); font-weight: 600; }
.side__group { font-size: 10px; font-weight: 700; color: var(--faint); padding: 10px 10px 4px; text-transform: uppercase; letter-spacing: .08em; }
.side__item { font-size: 12px; padding: 7px 10px; border-radius: 8px; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side__item--on { color: var(--app-accent); background: var(--app-soft); font-weight: 700; }
.side__nav { display: none; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .side__nav { display: flex; } }
.side__demo { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--ink); color: var(--white); display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.4; }
.side__demo small { font-size: 10px; font-weight: 700; color: var(--app-accent-light); }
.side__demo .btn { min-height: 32px; font-size: 11px; margin-top: 4px; padding: 0 12px; }
@media (max-width: 899px) { .side__demo { margin-top: 8px; flex-direction: row; align-items: center; flex-wrap: wrap; } .side__demo .btn { margin-left: auto; margin-top: 0; } }

.main { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.main__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.crumb { font-size: 11px; color: var(--muted); font-weight: 600; }
.main__head h1 { font-size: 26px; line-height: 1.05; }
.main__head h1 span { color: var(--muted); font-weight: 500; }
.sub { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--app-line); font-size: 11px; font-weight: 700; color: var(--text); }
.badge { font-size: 10px; font-weight: 800; color: var(--white); background: var(--app-accent); border-radius: 999px; padding: 1px 7px; }

.panel { background: var(--white); border: 1px solid var(--app-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel__head b { font-size: 14px; font-weight: 800; }
.panel__head small { font-size: 11px; color: var(--muted); font-weight: 600; }

.btn-app { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 13px; border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .12s; }
.btn-app:active { transform: translateY(1px); }
.btn-app--main { background: var(--app-accent); color: var(--white); }
.btn-app--main:hover { background: var(--app-accent-dark); }
.btn-app--ghost { background: var(--white); color: var(--ink); border-color: var(--app-line); }
.btn-app--ghost:hover { background: var(--app-bg); }
.btn-app--soft { background: var(--app-soft-2); color: var(--app-accent-dark); }
.btn-app[disabled] { opacity: .45; cursor: not-allowed; }

.row-btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--app-line); background: var(--white); transition: background .12s, border-color .12s; }
.row-btn:hover { background: var(--app-bg); }
.row-btn--on { border-color: var(--app-accent); background: var(--app-soft); }
.row-grid { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.row-grid .row-bar { grid-column: 2 / 4; }
@media (max-width: 640px) { .row-grid .status { display: none; } }
.num { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--app-soft); color: var(--app-accent); }
.row-btn--on .num { background: var(--app-accent); color: var(--white); }
.status { font-size: 10px; font-weight: 700; text-align: right; }
.bar { height: 6px; border-radius: 999px; background: var(--app-line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--app-accent); transition: width .6s var(--ease-out); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: auto; }
.stat { padding: 12px; border-radius: 12px; background: var(--app-bg); border: 1px solid var(--app-line); display: flex; flex-direction: column; gap: 2px; }
.stat small { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-family: var(--font-disp); font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }

.phase { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; }
.phase--now { background: var(--app-soft); border-color: var(--app-soft-2); }
.phase--todo { opacity: .55; }
.phase__dot { width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--white); border: 2px solid #CBD5E1; }
.phase--done .phase__dot { background: var(--app-accent); border-color: var(--app-accent); }
.phase--now .phase__dot { border: 3px solid var(--app-accent); }
.phase b { font-size: 12px; font-weight: 700; display: block; }
.phase small { font-size: 10.5px; color: var(--muted); }
.who { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; }
.who--apprenant { background: #DCFCE7; color: #15803D; }
.who--accompagnateur { background: #DBEAFE; color: #1D4ED8; }
.who--referent { background: #FEF9C3; color: #854D0E; }

.field { height: 36px; border-radius: 10px; border: 1px solid var(--app-line); padding: 0 12px; font: inherit; font-size: 12px; color: var(--ink); background: var(--white); width: 100%; }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--app-line); font-size: 11px; line-height: 1.45; color: var(--text); }
.note .mini-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--app-soft); color: var(--app-accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two > div { padding: 10px 12px; border-radius: 12px; background: var(--app-bg); border: 1px solid var(--app-line); }
.two small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.two b { font-size: 12px; font-weight: 700; }

/* Téléphone (vue apprenant) */
.phone { width: 250px; height: 520px; border-radius: 34px; background: #1E293B; padding: 10px; display: flex; margin-inline: auto; }
.phone__screen { flex: 1; border-radius: 26px; background: #F8FAFC; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; font-size: 11px; color: #1E293B; }
.phone__notch { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 72px; height: 6px; border-radius: 999px; background: #1E293B; }
.phone__hello { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.phone__avatar { width: 32px; height: 32px; border-radius: 999px; background: #003399; color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; }
.phone__next { padding: 10px 12px; border-radius: 14px; background: #003399; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.phone__next small { font-size: 9px; font-weight: 700; color: #BFDBFE; text-transform: uppercase; letter-spacing: .08em; }
.phone__next b { font-size: 12px; font-weight: 700; line-height: 1.3; }
.phone__next span { font-size: 10px; color: #BFDBFE; line-height: 1.35; }
.phone__label { font-size: 10px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .06em; }
.phone__act { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; }
.phone__act b { font-size: 11px; font-weight: 700; line-height: 1.25; }
.phone__act small { font-size: 9px; font-weight: 800; }
.phone__mentor { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #E2E8F0; }
.phone__tabs { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid #E2E8F0; font-size: 9px; font-weight: 700; color: #94A3B8; }

/* Choix (AP) */
.choice { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--app-line); background: var(--white); transition: border-color .12s, background .12s, transform .12s; }
.choice:hover { border-color: var(--app-accent); }
.choice:active { transform: translateY(1px); }
.choice--on { border-color: var(--app-accent); background: var(--app-soft); }
.choice__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; line-height: 1.4; }
.poly { transition: all .6s var(--ease-out); }

.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; flex: 1; min-height: 0; }
@media (min-width: 1100px) { .grid-2 { grid-template-columns: minmax(0, 1fr) 400px; } }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; flex: 1; }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: minmax(0, 1fr) 360px 250px; } }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.back:hover { color: var(--ink); }
