/* ==========================================================================
   École Les Oliviers — espace enseignant (application de téléphone)
   S'appuie sur ../ecole.css (jetons, .btn, .tag, .lvl, .card, .av, .toast).
   ========================================================================== */

:root { --tabs-h: 64px; --frame: #1d2617; }

html { height: 100%; }
body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.noscript { padding: 24px; text-align: center; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }

/* ---------- Scène : plein écran sur téléphone, cadre de téléphone sur ordinateur ---------- */

.stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; }
.app { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; background: var(--cream); overflow: hidden; isolation: isolate; }
.pitch { display: none; }

@media (min-width: 640px) {
  body { background: radial-gradient(1200px 600px at 50% 110%, rgba(169, 196, 106, .28), transparent 70%), radial-gradient(800px 500px at 0% 0%, rgba(240, 178, 61, .12), transparent 70%), var(--cream); }
  .stage { align-items: center; padding: 30px 24px; }
  .app { width: 430px; height: min(880px, 100%); border-radius: 40px; box-shadow: 0 0 0 10px var(--frame), 0 0 0 11px #3a4630, 0 60px 90px -40px rgba(29, 38, 23, .55); }
}
@media (min-width: 1100px) {
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) 430px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 72px; }
  .pitch { display: block; justify-self: end; max-width: 340px; }
}
.is-embed .demo-bar, .is-embed .pitch { display: none; }
.is-embed body { background: var(--cream); }
.is-embed .stage { display: flex; padding: 0; }
.is-embed .app { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }

.pitch__kicker { color: var(--olive); }
.pitch__title { margin-top: 14px; font-size: 38px; line-height: 1.04; letter-spacing: -.035em; }
.pitch__title em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--olive); }
.pitch__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.pitch__list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.pitch__list b { color: var(--ink); }
.pitch__list svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--olive); fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pitch__hint { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.pitch__hint a { color: var(--olive); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Barre du haut ---------- */

.bar { position: relative; z-index: 10; flex: none; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 8px 12px 8px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar .ol-logo { min-width: 0; }
.bar .ol-logo svg { width: 32px; height: 32px; flex: none; }
.bar .ol-logo span { font-size: 16px; white-space: nowrap; }
.bar .ol-logo small { font-size: 10px; }
.bar__me { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bar__me .btn { min-height: 44px; padding: 0 14px; gap: 6px; }
.bar__me .btn svg { width: 15px; height: 15px; }
.bar__back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -8px; padding: 0 12px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--olive); font-weight: 700; font-size: 15px; }
.bar__back .i { width: 24px; height: 24px; stroke-width: 2.2; }
.bar__back:active { background: var(--sand); }
.bar__ctx { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; font-weight: 700; font-family: var(--display); font-size: 16px; }

/* ---------- Zone de contenu ---------- */

.screen { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; }
.view { padding: 20px 16px 32px; animation: view-in .4s var(--ease); }
.view--flush { padding: 0; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.screen[data-same] .view, .screen[data-same] .done, .screen[data-same] .done__mark, .screen[data-same] .done__mark svg { animation: none; stroke-dashoffset: 0; }
[tabindex="-1"]:focus { outline: none; }

.kicker { color: var(--ink-3); }
.h1 { font-size: 28px; line-height: 1.08; letter-spacing: -.03em; }
.lead { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.sec h2 { font-size: 18px; }
.sec span { color: var(--ink-3); font-size: 13px; font-weight: 600; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; text-align: center; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--r); }
.empty .i { width: 30px; height: 30px; color: var(--olive); }
.empty b { color: var(--ink); font-family: var(--display); font-size: 17px; }

.banner { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: #7e2a1a; font-size: 14px; line-height: 1.4; }
.banner .i { margin-top: 1px; color: var(--red); }
.banner b { color: var(--ink); }
.banner--ok { background: var(--ok-soft); color: #24502b; }
.banner--ok .i { color: var(--ok); }
.banner--info { background: var(--blue-soft); color: #1f4a78; }
.banner--info .i { color: var(--blue); }

.tag .i { width: 14px; height: 14px; stroke-width: 2.2; }

/* Avatars : quelques tons doux, attribués de façon stable */
.av[data-tone="1"] { background: #e3ecd1; color: #3c5a1d; }
.av[data-tone="2"] { background: #fbe7b8; color: #7a4f00; }
.av[data-tone="3"] { background: #dbe7f3; color: #24527f; }
.av[data-tone="4"] { background: #f1ddd3; color: #8a3a22; }
.av--sm { width: 32px; height: 32px; font-size: 12px; }
.av--md { width: 40px; height: 40px; font-size: 14px; }
.av--lg { width: 64px; height: 64px; font-size: 22px; }

/* Bouton principal pleine largeur et barre d'action collée en bas */
.btn-main { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--olive); color: var(--paper); font-weight: 700; font-size: 16.5px; box-shadow: 0 14px 26px -16px rgba(69, 98, 42, .9); transition: background-color .2s, transform .2s var(--ease); touch-action: manipulation; }
.btn-main:hover { background: #3a5423; }
.btn-main:active { transform: scale(.985); }
.btn-main:disabled { background: #a3ad94; box-shadow: none; cursor: default; }
.btn-main .i { width: 22px; height: 22px; stroke-width: 2.2; }
.btn-main small { font-weight: 600; opacity: .75; font-size: 13.5px; }
.btn-soft { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; touch-action: manipulation; }
.btn-soft:hover { border-color: var(--ink-3); }
.btn-soft:disabled { opacity: .5; cursor: default; }
.btn-soft .i { color: var(--olive); }
.foot { position: sticky; bottom: 0; z-index: 6; display: grid; gap: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--cream) 72%, rgba(246, 242, 231, 0)); }

/* ---------- Barre d'onglets ---------- */

.tabs { position: relative; z-index: 10; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--paper); border-top: 1px solid var(--line); }
.tabs__btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tabs-h); padding: 6px 4px; border: 0; background: none; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .01em; touch-action: manipulation; }
.tabs__btn svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs__btn[aria-current="page"] { color: var(--olive); }
.tabs__btn[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 32%; right: 32%; height: 3px; border-radius: 0 0 3px 3px; background: var(--olive); }
.tabs__badge { position: absolute; top: 7px; left: calc(50% + 7px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.app.is-focus .tabs, .app.is-bare .tabs { display: none; }

/* Notifications dans le cadre du téléphone */
.app .toast-stack { position: absolute; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + 12px); align-items: stretch; }
.app.is-focus .toast-stack, .app.is-bare .toast-stack { bottom: 96px; }
.app .toast { max-width: none; }
.toast--ok .toast__dot { background: var(--leaf); }
.toast--info .toast__dot { background: #8fb7e6; }
.toast--bad .toast__dot { background: #f08a73; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }

/* ---------- Choix de l'enseignant ---------- */

.pick__brand { display: flex; align-items: center; gap: 12px; }
.pick__brand svg { width: 46px; height: 46px; flex: none; }
.pick__brand b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
.pick__brand small { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pick__head { margin-top: 26px; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.who { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.who:hover { border-color: var(--ink-3); }
.who:active { transform: scale(.99); }
.who__txt { flex: 1; min-width: 0; }
.who__name { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.who__name small { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.who__sub { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.who__lv { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.who__lv .lvl { height: 20px; font-size: 11px; }
.who .i { color: var(--ink-3); }
.who[aria-current="true"] { border-color: var(--olive); }
.who--star { flex-wrap: wrap; padding: 16px; border: 2px solid var(--olive); background: linear-gradient(160deg, #fffdf7 40%, #eef3e1); box-shadow: var(--shadow); }
.who--star .who__name { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.who__go { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; margin-top: 4px; padding: 0 16px; border-radius: 12px; background: var(--olive); color: var(--paper); font-weight: 700; }
.who__go .i { color: var(--paper); }
.who__badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--olive); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Aujourd'hui ---------- */

.hello__title { margin-top: 6px; font-size: 30px; line-height: 1.04; letter-spacing: -.035em; }
.hello__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hello__chips .tag { height: 28px; padding: 0 11px; font-size: 12.5px; }

.memo { display: flex; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sun); font-size: 14px; line-height: 1.4; }
.memo .i { margin-top: 2px; color: #a46a00; }
.memo__k { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.memo b { display: block; }
.memo p:last-child { color: var(--ink-2); }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
.tl__time { padding-top: 15px; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tl__time b { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; }
.tl__time span { color: var(--ink-3); font-size: 12px; }
.tl__item.is-past .tl__time { opacity: .55; }

.sess { position: relative; display: block; width: 100%; min-width: 0; padding: 14px 14px 13px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-align: left; transition: border-color .2s, transform .2s var(--ease); }
button.sess:hover { border-color: var(--ink-3); }
button.sess:active { transform: scale(.99); }
.sess__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding-right: 22px; }
.sess__class { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.sess__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 3px; color: var(--ink-2); font-size: 14px; }
.sess__meta span { display: inline-flex; align-items: center; gap: 5px; }
.sess__meta .i { width: 15px; height: 15px; color: var(--ink-3); }
.sess__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.sess__foot:empty { display: none; }
.sess__foot .tag { height: auto; min-height: 26px; padding: 3px 10px; white-space: normal; }
.sess__chev { position: absolute; top: 17px; right: 12px; color: var(--ink-3); }
.sess.is-past { background: rgba(255, 253, 247, .6); box-shadow: none; }
.sess.is-covered { background: transparent; box-shadow: none; border-style: dashed; }
.sess--sub { border-color: #b8cde6; background: linear-gradient(180deg, #f3f7fc, var(--paper) 60%); }
.sess.is-new { animation: fresh 2.6s var(--ease); }
@keyframes fresh { 0%, 30% { box-shadow: 0 0 0 4px var(--sun), var(--shadow); transform: scale(1.015); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow); } }

/* Le cours en cours, mis en avant */
.sess--now { padding: 16px; border-color: var(--olive); background: var(--olive); color: var(--paper); box-shadow: 0 22px 40px -22px rgba(45, 66, 26, .9); }
.sess--now.sess--sub { border-color: #2d4f7a; background: linear-gradient(160deg, #2f5a86, #24466b); }
.sess--now .sess__meta { color: rgba(255, 253, 247, .82); }
.sess--now .sess__meta .i { color: var(--leaf); }
.sess--now .tag { background: rgba(255, 253, 247, .14); color: var(--paper); }
.sess--now .tag--ok { background: var(--ok-soft); color: var(--ok); }
.sess__live { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--leaf); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sess--sub .sess__live { color: #bcd5f2; }
.sess__live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169, 196, 106, .7); } 100% { box-shadow: 0 0 0 9px rgba(169, 196, 106, 0); } }
.cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-top: 14px; padding: 10px 14px; border: 0; border-radius: 14px; background: var(--sun); color: var(--ink); text-align: left; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .6); transition: background-color .2s, transform .2s var(--ease); touch-action: manipulation; }
.cta:hover { background: #f5c25f; }
.cta:active { transform: scale(.985); }
.cta b { display: block; font-size: 17px; line-height: 1.15; }
.cta small { display: block; color: rgba(29, 38, 23, .7); font-size: 13px; font-weight: 600; }
.cta__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(29, 38, 23, .1); }
.cta__ic .i { width: 22px; height: 22px; stroke-width: 2.1; }
.cta--soft { background: rgba(255, 253, 247, .14); color: var(--paper); box-shadow: none; }
.cta--soft:hover { background: rgba(255, 253, 247, .22); }
.cta--soft small { color: rgba(255, 253, 247, .7); }
.cta--soft .cta__ic { background: rgba(255, 253, 247, .14); }

/* ---------- Faire l'appel ---------- */

.call-head { padding: 18px 16px 14px; }
.call-head .h1 { display: flex; align-items: center; gap: 10px; }
.call-head__sub { margin-top: 2px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.call-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.call-ctx b { color: var(--ink); font-family: var(--display); font-size: 17px; }
.call-ctx span { display: inline-flex; align-items: center; gap: 5px; }
.call-ctx .i { width: 15px; height: 15px; color: var(--ink-3); }

.counters { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 16px; background: rgba(246, 242, 231, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.counter { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.counter b { font-family: var(--display); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.counter span { min-width: 0; color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1.15; }
.counter--p b { color: var(--ok); }
.counter--a b { color: var(--red); }
.counter--r b { color: #a46a00; }
.counter--a.is-on { background: var(--red-soft); border-color: #eab3a5; }
.counter--r.is-on { background: var(--sun-soft); border-color: #ecd08f; }

.call-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 4px; }
.call-tools p { min-width: 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.call-tools p b { color: var(--ink-2); font-weight: 700; }
.call-tools .btn { min-height: 44px; flex: none; padding: 0 13px; gap: 6px; font-size: 13.5px; }
.call-tools .btn svg { width: 17px; height: 17px; }

.roll { list-style: none; margin: 0; padding: 8px 12px 6px; display: grid; gap: 6px; }
.pupil { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); text-align: left; transition: background-color .18s, border-color .18s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pupil:active { transform: scale(.99); }
.pupil__name { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; }
.pupil__name b { font-weight: 750; }
.pupil__name small { display: flex; align-items: center; gap: 4px; margin-top: 1px; color: var(--red); font-size: 12px; font-weight: 600; }
.pupil__name small .i { width: 13px; height: 13px; }
.pupil__state { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; min-width: 100px; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pupil__state .i { width: 16px; height: 16px; stroke-width: 2.4; }
.pupil[data-state="present"] .pupil__state { background: var(--ok-soft); color: var(--ok); }
.pupil[data-state="absent"] { background: #fbe9e3; border-color: #e5a08e; }
.pupil[data-state="absent"] .pupil__state { background: var(--red); color: #fff; }
.pupil[data-state="absent"] .av { background: var(--red); color: #fff; }
.pupil[data-state="retard"] { background: #fdf3da; border-color: #e6c272; }
.pupil[data-state="retard"] .pupil__state { background: var(--sun); color: var(--ink); }
.pupil[data-state="retard"] .av { background: var(--sun); color: var(--ink); }
.pupil.is-bump .pupil__state { animation: bump .28s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }

.call-list { margin: 4px 16px 0; padding: 4px 0; list-style: none; }
.call-list li { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.call-list li:last-child { border-bottom: 0; }
.call-list .tag { margin-left: auto; }
.call-note { margin: 10px 16px 0; color: var(--ink-3); font-size: 14px; }

/* Écran de confirmation */
.done { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding: 36px 20px 24px; text-align: center; animation: view-in .45s var(--ease); }
.done__mark { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 10px rgba(69, 98, 42, .12), 0 0 0 22px rgba(69, 98, 42, .06); animation: pop .55s var(--ease); }
.done__mark svg { width: 46px; height: 46px; fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { margin-top: 26px; font-size: 30px; letter-spacing: -.035em; }
.done__ctx { margin-top: 4px; color: var(--ink-2); font-weight: 600; }
.done__msg { margin-top: 18px; max-width: 320px; font-size: 17px; line-height: 1.4; }
.done__msg b { font-weight: 750; }
.done__ch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.done__ch span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.done__ch .i { width: 16px; height: 16px; color: var(--ok); }
.done__list { width: 100%; max-width: 360px; margin: 20px 0 0; padding: 4px 14px; list-style: none; text-align: left; }
.done__list li { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.done__list li:last-child { border-bottom: 0; }
.done__list .tag { margin-left: auto; }
.done__foot { width: 100%; max-width: 360px; margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.done__admin { margin-top: 14px; color: var(--ink-3); font-size: 13px; }

/* ---------- Mes classes ---------- */

.cls-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.cls { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.cls:hover { border-color: var(--ink-3); }
.cls:active { transform: scale(.99); }
.cls__tile { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 16px; font-family: var(--display); font-size: 17px; font-weight: 750; line-height: .95; text-align: center; letter-spacing: -.02em; }
.cls__tile small { display: block; font-size: 12px; font-weight: 700; opacity: .75; }
.tile--primaire { background: #fde6c2; color: #8a5300; }
.tile--college { background: #d8e8c4; color: #3c5a1d; }
.tile--lycee { background: #d6e3f2; color: #24527f; }
.cls__txt { flex: 1; min-width: 0; }
.cls__txt b { display: block; font-size: 15.5px; line-height: 1.25; }
.cls__txt span { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
.cls__stats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.cls .i { color: var(--ink-3); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.kpi { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi b small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi span { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; line-height: 1.25; }

.st-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.st-list li + li { border-top: 1px solid var(--line); }
.st { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px; border: 0; background: none; text-align: left; }
.st:hover { background: #faf7ee; }
.st__name { flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.st__name b { font-weight: 750; }
.st__name small { display: flex; align-items: center; gap: 4px; color: var(--red); font-size: 12px; font-weight: 600; }
.st__name small .i { width: 13px; height: 13px; }
.st .i--chev { color: var(--ink-3); width: 18px; height: 18px; }
.avg { flex: none; min-width: 64px; padding: 4px 8px; border-radius: 8px; background: var(--sand); color: var(--ink-2); font-size: 13.5px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.avg small { font-size: 11px; font-weight: 600; opacity: .7; }
.avg--good { background: var(--ok-soft); color: var(--ok); }
.avg--low { background: var(--red-soft); color: var(--red); }
.avg--none { background: transparent; color: var(--ink-3); font-weight: 600; }

/* Fiche élève */
.kid { display: flex; align-items: center; gap: 14px; }
.kid h1 { font-size: 25px; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.kid p { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.items li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; }
.items li + li { border-top: 1px solid var(--line); }
.items__txt { flex: 1; min-width: 0; line-height: 1.3; }
.items__txt b { display: block; font-size: 14.5px; font-weight: 700; }
.items__txt span { display: block; color: var(--ink-3); font-size: 12.5px; }
.items li.is-mine .items__txt b::after { content: "Vous"; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: #e3ecd1; color: var(--olive); font-size: 10.5px; font-weight: 800; vertical-align: 2px; letter-spacing: .02em; }
.items__name { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.items__name b { font-weight: 750; }
.obs-list { margin-top: 10px; }
.note { flex: none; font-family: var(--display); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.note small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.note--low { color: var(--red); }
.rk { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; }
.rk .i { width: 18px; height: 18px; }
.rk--positive { background: var(--ok-soft); color: var(--ok); }
.rk--negative { background: var(--red-soft); color: var(--red); }
.items li.is-new { animation: fresh-row 2.6s var(--ease); }
@keyframes fresh-row { 0%, 40% { background: var(--sun-soft); } }
.add-obs { margin-top: 2px; }

/* ---------- Notes ---------- */

.field { margin-top: 20px; }
.field__label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field__hint { margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.field__err { margin-top: 6px; color: var(--red); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 650; transition: background-color .15s, border-color .15s, color .15s; touch-action: manipulation; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip .lvl { height: 20px; padding: 0 6px; font-size: 10.5px; }
.chip--sm { min-height: 38px; padding: 0 13px; font-size: 13.5px; }
.chips--scroll { margin-top: 10px; }
.input { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 88px; padding: 12px 14px; resize: none; line-height: 1.4; }
.input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(69, 98, 42, .16); }
.input.is-bad { border-color: var(--red); }
.scale { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sand); }
.scale b { font-family: var(--display); font-size: 22px; line-height: 1; }
.scale span { color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
.form-card { margin-top: 16px; padding: 4px 16px 18px; }
.form-card .btn-main { margin-top: 22px; }

.evals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); text-align: left; transition: border-color .2s; }
.ev:hover { border-color: var(--ink-3); }
.ev__txt { flex: 1; min-width: 0; line-height: 1.3; }
.ev__txt b { display: block; font-size: 15px; }
.ev__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.ev__meta .lvl { height: 20px; font-size: 11px; }
.ev__live { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--ok-soft); font-size: 11px; }
.ev__avg { flex: none; text-align: right; line-height: 1.15; }
.ev__avg b { display: block; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.ev__avg b small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.ev__avg span { color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.ev__live { color: var(--ok); font-style: normal; font-weight: 700; }
.ev .i { color: var(--ink-3); width: 18px; height: 18px; }
.ev.is-new { animation: fresh 2.6s var(--ease); }

/* Grille de saisie */
.gsum { position: sticky; top: 0; z-index: 5; padding: 12px 16px; background: rgba(246, 242, 231, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.gsum__row { display: flex; align-items: center; gap: 10px; }
.gsum__avg { flex: 1; min-width: 0; }
.gsum__avg span { display: block; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.gsum__avg b { font-family: var(--display); font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gsum__avg b small { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.gsum__count { flex: none; text-align: right; }
.gsum__count b { display: block; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.gsum__count span { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.gbar { height: 5px; margin-top: 10px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.gbar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--olive); transition: width .3s var(--ease); }
.grid-head { padding: 16px 16px 6px; }
.grid-head h1 { font-size: 23px; letter-spacing: -.03em; }
.grid-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.grid-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 16px 6px; }
.grid-tools p { color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.grid-tools .btn { min-height: 44px; flex: none; }
.grows { list-style: none; margin: 6px 12px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.grows li + li { border-top: 1px solid var(--line); }
.grow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px 8px 12px; }
.grow label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.25; cursor: pointer; overflow-wrap: anywhere; }
.grow label b { font-weight: 750; }
.grow__in { display: flex; align-items: center; gap: 6px; flex: none; }
.grow__in input { width: 78px; height: 48px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-family: var(--display); font-size: 19px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.grow__in input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(69, 98, 42, .16); }
.grow__in input.is-bad { border-color: var(--red); background: var(--red-soft); }
.grow__in input.is-low { color: var(--red); }
.grow__in span { width: 26px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.grow.is-filled { background: #fbfaf3; }

/* ---------- Feuille du bas (observation) ---------- */

.sheet { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet__back { position: absolute; inset: 0; border: 0; background: rgba(16, 22, 12, .5); animation: fade .25s ease; cursor: default; }
.sheet__panel { position: relative; max-height: 92%; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--paper); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); animation: sheet-up .4s var(--ease); }
.sheet__grip { width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--line); }
.sheet__head { display: flex; align-items: center; gap: 12px; }
.sheet__head h2 { font-size: 20px; }
.sheet__head p { color: var(--ink-3); font-size: 13.5px; }
.sheet__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--sand); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font-weight: 700; font-size: 15px; transition: background-color .15s, border-color .15s, color .15s; }
.seg2 button[data-kind="positive"][aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); color: #24502b; }
.seg2 button[data-kind="negative"][aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: #7e2a1a; }
.sheet .btn-main { margin-top: 18px; }
.sheet__note { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }

.call-tools .sep { display: none; }
@media (max-width: 380px) {
  .call-tools { flex-wrap: wrap; gap: 8px; }
  .call-tools p { flex: 1 1 100%; }
  .call-tools p br { display: none; }
  .call-tools .sep { display: inline; }
  .call-tools .btn { width: 100%; }
}
@media (max-width: 360px) {
  .pupil__state { min-width: 0; }
  .counter { flex-direction: column; align-items: flex-start; gap: 2px; }
  .bar .ol-logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sess__live i { animation: none; }
  .done__mark svg { stroke-dashoffset: 0; }
}
