/* ==========================================================================
   École Les Oliviers — espace parents (application de téléphone)
   S'appuie sur ecole.css (jetons, boutons, pastilles, niveaux, cartes).
   ========================================================================== */

:root {
  --orange: #c4620f;
  --orange-soft: #fde2c6;
  --plum: #85466f;
  --plum-soft: #f2dcea;
  --olive-soft: #e3ebd2;
  --app-bg: #f8f4ea;
}

/* ---------- Page : bandeau + scène ------------------------------------------ */

html, body { height: 100%; }
body.pa { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; overflow: clip; background: var(--cream); }
.pa .demo-bar { flex: none; }

.stage {
  flex: 1 1 auto; min-height: 0; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  align-items: center; padding: 22px 24px;
  background:
    radial-gradient(900px 520px at 50% 115%, rgba(169, 196, 106, .32), transparent 62%),
    radial-gradient(700px 420px at 12% -8%, rgba(240, 178, 61, .16), transparent 60%),
    var(--cream);
}

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

/* Couleurs par type de notification */
.c-red { --c: var(--red); --c-soft: var(--red-soft); --c-ink: #8e2a17; }
.c-orange { --c: var(--orange); --c-soft: var(--orange-soft); --c-ink: #7a3d06; }
.c-green { --c: var(--ok); --c-soft: var(--ok-soft); --c-ink: #24592c; }
.c-blue { --c: var(--blue); --c-soft: var(--blue-soft); --c-ink: #1f4a7a; }
.c-gold { --c: #b07a00; --c-soft: var(--sun-soft); --c-ink: #6d4500; }
.c-plum { --c: var(--plum); --c-soft: var(--plum-soft); --c-ink: #5e2f4f; }
.c-olive { --c: var(--olive); --c-soft: var(--olive-soft); --c-ink: #2f4519; }
.c-sand { --c: var(--ink-2); --c-soft: var(--sand); --c-ink: var(--ink); }
.ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--c-soft, var(--sand)); color: var(--c, var(--ink-2)); }
.ico .i { width: 20px; height: 20px; }

/* Avatars et niveaux */
.av--primaire { background: #fde6c2; color: #8a5300; }
.av--college { background: #d8e8c4; color: #3c5a1d; }
.av--lycee { background: #d6e3f2; color: #24527f; }
.av--sm { width: 26px; height: 26px; font-size: 11px; }
.lvl--xs { height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; }

/* ---------- Le téléphone ------------------------------------------------------ */

.app {
  grid-column: 2; grid-row: 1; position: relative; isolation: isolate;
  display: flex; flex-direction: column; width: 100%; height: min(100%, 880px);
  background: var(--app-bg); border: 10px solid #141a10; border-radius: 54px; overflow: hidden; overflow: clip;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 0 0 5px rgba(255, 253, 247, .6), 0 50px 90px -40px rgba(29, 38, 23, .6), 0 22px 40px -24px rgba(29, 38, 23, .4);
}

/* Barre d'état (seulement dans le cadre « téléphone » sur grand écran) */
.sb { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 30px 0 34px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.sb__island { position: absolute; left: 50%; top: 9px; width: 104px; height: 29px; margin-left: -52px; border-radius: 999px; background: #141a10; }
.sb__icons { display: flex; align-items: center; gap: 6px; }
.sb__icons svg { height: 12px; width: auto; fill: currentColor; }

/* En-tête de l'application */
.ah { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px 8px; }
.ah__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.ah__brand svg { width: 34px; height: 34px; }
.ah__brand span { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1; letter-spacing: -.02em; }
.ah__brand small { display: block; margin-top: 3px; font-family: var(--text); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ah__bell { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s; }
.ah__bell:hover { border-color: var(--ink-3); }
.ah__bell .i { width: 22px; height: 22px; transform-origin: 50% 12%; }
.ah__bell.is-ring .i { animation: ring .9s ease; }
.ah__bell .badge { position: absolute; top: -3px; right: -3px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-13deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--paper); }
.badge.is-pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Zone qui défile */
.app__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; outline: none; }
.view { padding: 2px 18px 28px; }

/* Barre d'onglets */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr)); padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 253, 247, .96); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; border-radius: 14px; color: var(--ink-3); font-size: 11.5px; font-weight: 700; text-decoration: none; transition: color .2s; }
.tabbar__ico { position: relative; display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .25s; }
.tabbar__ico .i { width: 22px; height: 22px; }
.tabbar__ico .badge { position: absolute; top: -4px; right: 6px; }
.tabbar a:hover { color: var(--ink); }
.tabbar a[aria-current="page"] { color: var(--olive); }
.tabbar a[aria-current="page"] .tabbar__ico { background: var(--olive-soft); }
.tabbar a[aria-current="page"] .i { stroke-width: 2.1; }

/* ---------- Éléments communs des vues ----------------------------------------- */

.hello { padding: 6px 0 2px; }
.hello__date { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hello__title { margin-top: 2px; font-size: 30px; line-height: 1.08; }
.hello__title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; color: var(--olive); }

.vh { padding: 8px 0 2px; }
.vh h1 { font-size: 26px; line-height: 1.1; }
.vh p { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--ink-3); }

/* Puces : choix de l'enfant */
.kids { display: grid; grid-template-columns: auto repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; }
.kids--many .kid__cls { display: none; }
.kids--many .kid--all { padding: 8px 12px; }
.kid { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); text-align: left; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.kid:hover { border-color: var(--ink-3); }
.kid:active { transform: scale(.98); }
.kid__name { overflow: hidden; font-family: var(--display); font-size: 15.5px; font-weight: 650; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.kid__meta { display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.kid__cls { overflow: hidden; text-overflow: ellipsis; }
.kid--all { padding: 8px 15px; }
.kid[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 10px 20px -12px rgba(29, 38, 23, .7); }
.kid[aria-pressed="true"] .kid__meta { color: rgba(255, 253, 247, .72); }

.sec { margin-top: 22px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec__head h2 { font-size: 19px; }
.sec__aside { font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: 3px; }
.link { min-height: 36px; padding: 6px 0; border: 0; background: none; color: var(--olive); font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.link:hover { color: var(--ink); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.muted { font-size: 13px; color: var(--ink-3); }
.fine { margin: 20px 6px 4px; font-size: 12px; line-height: 1.55; text-align: center; color: var(--ink-3); }
.btn--block { display: flex; width: 100%; }
.btn--lg svg { width: 18px; height: 18px; }

.pill { flex: none; display: inline-grid; place-items: center; min-width: 58px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill--good { background: var(--ok-soft); color: #2c6b35; }
.pill--mid { background: var(--sun-soft); color: #7a4f00; }
.pill--low { background: var(--red-soft); color: #9c321e; }

/* ---------- Accueil : résumé du jour ------------------------------------------- */

.today { padding: 14px; transition: box-shadow .3s, border-color .3s; }
.today__head { display: flex; align-items: center; gap: 12px; }
.today__head .av { width: 46px; height: 46px; font-size: 17px; }
.today__who { flex: 1; min-width: 0; }
.today__who h3 { font-size: 18.5px; line-height: 1.15; }
.today__who p { display: flex; align-items: center; gap: 6px; margin-top: 3px; overflow: hidden; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.today__who p span:last-child { overflow: hidden; text-overflow: ellipsis; }
.today__ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--ok-soft); color: #2c6b35; font-size: 13px; font-weight: 600; }
.today__ok .i { width: 17px; height: 17px; stroke-width: 2.6; }
.today__alert { display: flex; gap: 10px; margin-top: 12px; padding: 11px 12px; border-radius: 12px; background: var(--red-soft); color: #7d2617; }
.today__alert .i { margin-top: 1px; color: var(--red); }
.today__alert b { display: block; font-size: 14px; line-height: 1.3; }
.today__alert span { display: block; margin-top: 1px; font-size: 12.5px; }
.today--absent { border-color: #e9b4a7; box-shadow: 0 0 0 3px rgba(201, 71, 47, .12), var(--shadow); }
.today--late { border-color: #efc79c; box-shadow: 0 0 0 3px rgba(196, 98, 15, .1), var(--shadow); }
.today--late .today__alert { background: var(--orange-soft); color: #6e3a07; }
.today--late .today__alert .i { color: var(--orange); }
.today.today--ok { border-color: var(--line); box-shadow: var(--shadow); }
.today.today--ok .today__alert { background: var(--ok-soft); color: #24592c; }
.today.today--ok .today__alert > .i { color: var(--ok); }
.today__rows { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.today__rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0 2px; border-top: 1px dashed var(--line); margin-top: 8px; }
.today__rows li:first-child { margin-top: 2px; }
.today__i { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--cream); color: var(--olive); }
.today__rows div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.today__k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.today__rows b { font-size: 14.5px; line-height: 1.3; }
.today__rows b + span { overflow: hidden; font-size: 12.5px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Accueil : fil de notifications -------------------------------------- */

.feed__day { margin: 14px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.nt { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 64px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 253, 247, .7); text-align: left; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.nt:hover { border-color: var(--ink-3); }
.nt:active { transform: scale(.99); }
.nt.is-unread { background: var(--paper); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: var(--shadow); }
.nt__txt { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.nt__txt b { font-size: 14.5px; line-height: 1.3; }
.nt__txt span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.nt__txt time { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.nt__dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--c-soft); }
.nt__chev { width: 16px; height: 16px; margin-top: 4px; color: var(--ink-3); }
.is-flash { animation: flash 1.8s var(--ease); }
.evals li.is-flash, .behav li.is-flash { border-radius: 10px; animation-name: flash-row; }
@keyframes flash-row { 0%, 40% { background: var(--sun-soft); box-shadow: 0 0 0 6px var(--sun-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 4px var(--sun), var(--shadow); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow); } }

.calm { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line); background: rgba(255, 253, 247, .6); color: var(--ink-2); }
.calm .i { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--sun-soft); color: #8a5a00; }
.calm b { display: block; font-size: 14px; color: var(--ink); }
.calm span { font-size: 12.5px; }

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

.kidhead { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 19px; }
.kidhead .av { width: 30px; height: 30px; font-size: 12px; }
.kidhead span:last-child { font-family: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.kidhead--sep { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.nb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }

.avg { display: flex; align-items: center; gap: 16px; padding: 16px; }
.avg__ring { position: relative; flex: none; width: 104px; height: 104px; }
.ring { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 7; }
.ring__bg { stroke: var(--sand); }
.ring__fg { stroke-linecap: round; }
.ring--good .ring__fg { stroke: var(--ok); }
.ring--mid .ring__fg { stroke: var(--sun); }
.ring--low .ring__fg { stroke: var(--red); }
.avg__val { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.02em; text-align: center; }
.avg__val small { display: block; margin-top: 3px; font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.avg__txt { min-width: 0; }
.avg__who { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 14px; }
.avg__txt h3 { margin-top: 6px; font-size: 17px; }
.avg__meta { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.avg__meta b { color: var(--ink-2); }

.block { padding: 16px; }
.block__t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 16px; }
.block__t span { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }

.subj { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.subj li { display: grid; grid-template-columns: minmax(0, 1fr) 84px 42px; align-items: center; gap: 10px; font-size: 13.5px; }
.subj__n { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--sand); }
.bar__f { display: block; height: 100%; border-radius: inherit; }
.bar__f--good { background: var(--ok); }
.bar__f--mid { background: var(--sun); }
.bar__f--low { background: var(--red); }
.subj b { font-size: 14px; text-align: right; }
.subj__todo { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); }

.evals { margin: 0; padding: 0; list-style: none; }
.evals li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sand); }
.evals li:first-child { padding-top: 0; border-top: 0; }
.evals__date { display: grid; flex: none; place-content: center; width: 46px; height: 48px; border-radius: 12px; background: var(--cream); font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; text-transform: uppercase; color: var(--ink-3); }
.evals__date b { font-family: var(--display); font-size: 18px; color: var(--ink); }
.evals li.is-new .evals__date { background: var(--blue-soft); }
.evals__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.evals__txt b { font-size: 14px; line-height: 1.3; }
.evals__txt span { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }

.behav__sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.behav__chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--c-soft); color: var(--c-ink); font-size: 12.5px; font-weight: 700; }
.behav__chip .i { width: 16px; height: 16px; }
.behav { margin: 0; padding: 0; list-style: none; }
.behav li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sand); }
.behav .ico { width: 36px; height: 36px; border-radius: 11px; }
.behav li > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.behav b { font-size: 14px; line-height: 1.3; }
.behav b + span { font-size: 12.5px; color: var(--ink-3); }
.behav__none { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--ok-soft); color: #2c6b35; font-size: 13px; font-weight: 600; line-height: 1.4; }
.behav__none .i { width: 24px; height: 24px; }

/* ---------- Paiements --------------------------------------------------------------- */

.payhero { position: relative; overflow: hidden; margin-top: 14px; padding: 18px 18px 16px; border-radius: 22px; color: var(--paper); background: radial-gradient(260px 180px at 100% 0%, rgba(169, 196, 106, .35), transparent 70%), linear-gradient(160deg, #557635 0%, #3a5521 55%, #2b4117 100%); box-shadow: 0 26px 44px -28px rgba(29, 38, 23, .9); }
.payhero::after { content: ""; position: absolute; right: -36px; top: -36px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255, 253, 247, .12); box-shadow: 0 0 0 22px rgba(255, 253, 247, .04); pointer-events: none; }
.payhero__k { font-size: 12.5px; font-weight: 600; color: rgba(255, 253, 247, .75); }
.payhero__v { margin-top: 2px; font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.gauge { display: flex; gap: 4px; margin: 14px 0 12px; }
.gauge__seg { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 253, 247, .18); }
.gauge__seg span { display: block; height: 100%; border-radius: inherit; background: var(--leaf); }
.payhero__row { display: flex; justify-content: space-between; gap: 12px; }
.payhero__row span { display: flex; flex-direction: column; }
.payhero__row span:last-child { text-align: right; }
.payhero__row small { font-size: 11.5px; color: rgba(255, 253, 247, .7); }
.payhero__row b { font-size: 15px; }
.payhero__plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 253, 247, .16); font-size: 13px; font-weight: 600; }
.payhero__plan .i { width: 18px; height: 18px; color: var(--leaf); }
.payhero__plan span { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: rgba(169, 196, 106, .22); color: #e3efc3; font-size: 11.5px; }

.alert { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--red-soft); color: #7d2617; }
.alert .i { margin-top: 1px; color: var(--red); }
.alert b { display: block; font-size: 14px; }
.alert span { display: block; font-size: 12.5px; }

.nextpay { margin-top: 12px; padding: 16px; }
.nextpay__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nextpay__top > div { flex: 1; min-width: 0; }
.nextpay__k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.nextpay h3 { font-size: 17px; }
.nextpay__d { font-size: 12.5px; color: var(--ink-2); }
.nextpay__amt { font-family: var(--display); font-size: 18px; white-space: nowrap; }
.nextpay__how { margin-top: 8px; font-size: 12px; text-align: center; color: var(--ink-3); }
.done { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 16px; }
.done > .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.6; }
.done b { display: block; }
.done span { font-size: 13px; color: var(--ink-2); }

.fees { margin: 0; padding: 0; list-style: none; }
.fees li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sand); font-size: 14px; font-weight: 600; }
.fees li:first-child { padding-top: 0; border-top: 0; }
.fees small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.fees b { white-space: nowrap; }
.fees__disc, .fees__disc b { color: var(--ok); }
.fees li.fees__total { margin-top: 2px; padding-top: 11px; border-top: 1.5px solid var(--ink); font-weight: 700; }
.fees__total b { font-family: var(--display); font-size: 16.5px; }

.sched { position: relative; margin: 0; padding: 0; list-style: none; }
.sched__it { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.sched__it:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: calc(50% + 12px); height: calc(100% - 24px); width: 2px; background: var(--sand); }
.sched__it.is-paid::after { background: var(--ok); }
.sched__dot { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.sched__dot .i { width: 14px; height: 14px; stroke-width: 3; }
.is-paid .sched__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.is-late .sched__dot, .is-partial .sched__dot { border-color: var(--red); background: var(--red-soft); }
.is-next .sched__dot { border-color: var(--olive); box-shadow: 0 0 0 4px var(--olive-soft); }
.sched__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sched__txt b { font-size: 14.5px; }
.sched__txt span { font-size: 12.5px; color: var(--ink-3); }
.sched__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sched__end b { font-size: 14px; white-space: nowrap; }

.hist { margin: 0; padding: 0; list-style: none; }
.hist button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 0; border: 0; border-top: 1px solid var(--sand); background: none; text-align: left; }
.hist li:first-child button { padding-top: 0; border-top: 0; }
.hist .ico { width: 36px; height: 36px; border-radius: 50%; }
.hist .ico .i { width: 18px; height: 18px; stroke-width: 2.4; }
.hist__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hist__txt b { font-size: 14.5px; }
.hist__txt span { font-size: 12.5px; color: var(--ink-3); }
.hist__r { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--olive); }
.hist__r .i { width: 15px; height: 15px; }
.hist button:hover .hist__r { color: var(--ink); }

/* ---------- Messages ------------------------------------------------------------------ */

.msg { position: relative; margin-top: 12px; padding: 14px 16px; }
.msg.is-unread { border-color: color-mix(in srgb, var(--olive) 40%, var(--line)); }
.msg.is-unread::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--olive); }
.msg__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msg__time { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.msg__time .i { width: 14px; height: 14px; color: var(--sun); }
.msg__new { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.msg__new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.msg h3 { margin-top: 10px; font-size: 17px; }
.msg__for { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.msg__body { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.msg__when { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.msg__when .i { width: 16px; height: 16px; color: var(--olive); }
.msg__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--sand); font-size: 12px; color: var(--ink-3); }
.msg__foot .link { min-height: 32px; padding: 0; font-size: 12.5px; }
.msg__read { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ok); }
.msg__read .i { width: 14px; height: 14px; stroke-width: 2.6; }

.msggroup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; padding: 12px; border-radius: 22px; border: 1px dashed #cfc6ae; background: rgba(236, 229, 211, .55); }
.msggroup__k { display: flex; align-items: flex-start; gap: 10px; padding: 2px 4px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.msggroup__k .i { color: var(--olive); }
.msggroup__k b { color: var(--ink); }
.msggroup .msg { margin-top: 0; }

.empty { margin-top: 24px; padding: 30px 22px; border-radius: 22px; border: 1px dashed var(--line); background: rgba(255, 253, 247, .6); text-align: center; }
.empty__art { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 14px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff, var(--olive-soft)); color: var(--olive); box-shadow: inset 0 0 0 1px rgba(69, 98, 42, .15), 0 0 0 10px rgba(227, 235, 210, .45); }
.empty__art .i { width: 32px; height: 32px; }
.empty h2 { font-size: 18px; }
.empty p { max-width: 32ch; margin: 6px auto 14px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Bus ------------------------------------------------------------------------- */

.buscard { margin-top: 14px; padding: 16px; }
.buscard__head { display: flex; align-items: center; gap: 12px; }
.buscard__head h3 { font-size: 16.5px; }
.buscard__head p { font-size: 13px; color: var(--ink-2); }
.buscard__head .buscard__veh { font-size: 12px; color: var(--ink-3); }
.buscard__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px; margin: 14px 0 12px; }
.buscard__facts div { min-width: 0; padding: 8px 9px; border-radius: 12px; background: var(--cream); }
.buscard__facts dt { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.buscard__facts dd { margin: 2px 0 0; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand); }
.seg button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 700; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(29, 38, 23, .4); }

.busstat { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--olive); color: var(--paper); transition: background-color .4s, color .4s; }
.busstat b { display: block; font-size: 15.5px; line-height: 1.25; }
.busstat span { display: block; font-size: 12.5px; opacity: .82; }
.busstat__pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); animation: beat 1.6s infinite; }
.busstat--soon, .busstat--here { background: var(--sun); color: var(--ink); }
.busstat--soon .busstat__pulse, .busstat--here .busstat__pulse { background: var(--ink); }
.busstat--done { background: var(--ok-soft); color: #234d2a; }
.busstat--done .busstat__pulse { background: var(--ok); animation: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(169, 196, 106, .75); } 70% { box-shadow: 0 0 0 10px rgba(169, 196, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 196, 106, 0); } }

.line { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.line__stop { display: grid; grid-template-columns: 50px 28px minmax(0, 1fr); align-items: center; min-height: 56px; }
.line__time { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.line__dot { position: relative; z-index: 1; justify-self: center; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: var(--paper); transition: border-color .4s, background-color .4s; }
.line__stop.is-past .line__dot { border-color: var(--olive); background: var(--olive); }
.line__stop.is-mine .line__dot { width: 20px; height: 20px; border-color: var(--sun); box-shadow: 0 0 0 5px rgba(240, 178, 61, .25); }
.line__stop.is-school .line__dot { border-radius: 5px; }
.line__name { padding-left: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.line__stop.is-mine .line__name { font-weight: 700; }
.line__me { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--sun-soft); color: #7a4f00; font-size: 11px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.line__track { position: absolute; left: 64px; width: 4px; margin-left: -2px; border-radius: 99px; background: var(--sand); }
.line__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: inherit; background: var(--olive); transition: height 2.4s linear; }
.line__bus { position: absolute; left: 64px; top: 0; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--sun); box-shadow: 0 0 0 3px var(--paper), 0 10px 18px -6px rgba(29, 38, 23, .6); transition: transform 2.4s linear; }
.line__bus .i { width: 20px; height: 20px; }
.buscard__sim { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 12px; color: var(--ink-3); }
.buscard__sim .i { width: 16px; height: 16px; margin-top: 1px; }

/* ---------- Alertes « push » --------------------------------------------------------- */

.pushes { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 80; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.push {
  padding: 11px 13px 13px; border-radius: 22px; background: rgba(255, 253, 247, .88); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 18px 40px -14px rgba(29, 38, 23, .5), 0 2px 6px rgba(29, 38, 23, .08);
  cursor: pointer; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
  animation: push-in .64s cubic-bezier(.2, 1.3, .4, 1); transition: transform .35s var(--ease), opacity .35s;
}
.push.is-out { transform: translateY(-130%) !important; opacity: 0; }
@keyframes push-in { 0% { transform: translateY(-140%); opacity: 0; } 55% { transform: translateY(8px); opacity: 1; } 78% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.push__head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.push__logo { width: 18px; height: 18px; }
.push__app { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.push__kind { font-weight: 700; color: var(--c); }
.push__kind::before { content: "·"; margin-right: 7px; color: var(--ink-3); }
.push__time { margin-left: auto; }
.push__body { display: flex; align-items: center; gap: 11px; margin-top: 8px; }
.push__txt { min-width: 0; }
.push__txt b { display: block; font-size: 15px; line-height: 1.25; }
.push__txt span { display: -webkit-box; margin-top: 1px; overflow: hidden; font-size: 13px; line-height: 1.35; color: var(--ink-2); -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.push--strong { background: rgba(255, 253, 247, .96); border: 1.5px solid var(--c); box-shadow: 0 0 0 4px rgba(201, 71, 47, .16), 0 22px 44px -14px rgba(120, 30, 15, .5); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 22px 44px -14px rgba(120, 30, 15, .5); }
.push--strong .push__txt b { font-size: 17px; }
.push--strong .push__txt span { font-size: 13.5px; color: var(--ink); }
.push--strong .ico { width: 46px; height: 46px; border-radius: 15px; background: var(--c); color: #fff; animation: thump .7s ease .55s 2; }
.push--strong .ico .i { width: 24px; height: 24px; stroke-width: 2; }
@keyframes thump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } }

/* Toasts : dans le téléphone, au-dessus des onglets */
.app .toast-stack { position: absolute; left: 16px; right: 16px; bottom: 90px; z-index: 75; align-items: center; }
.app .toast { max-width: 100%; }
.toast small { display: block; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }

/* ---------- Fenêtre (bottom sheet) ---------------------------------------------------- */

.sheet { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(16, 22, 12, .48); opacity: 0; transition: opacity .3s; }
.sheet__panel { position: relative; max-height: 92%; overflow-y: auto; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--paper); box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .4); outline: none; transform: translateY(100%); transition: transform .38s var(--ease); overscroll-behavior: contain; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 99px; background: var(--line); }
.sheet__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sheet__title { font-size: 21px; }

.payamt { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: var(--cream); }
.payamt span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.payamt strong { font-family: var(--display); font-size: 32px; line-height: 1.15; letter-spacing: -.03em; }
.payamt small { font-size: 12px; color: var(--ink-3); }
.methods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.methods legend { margin-bottom: 8px; padding: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.method { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method:has(input:checked) { border-color: var(--olive); background: #f6f8ee; }
.method:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 2px; }
.method b { display: block; font-size: 14.5px; }
.method small { font-size: 12px; color: var(--ink-3); }
.method__tick { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; }
.method__tick .i { width: 14px; height: 14px; stroke-width: 3; }
.method:has(input:checked) .method__tick { border-color: var(--olive); background: var(--olive); color: #fff; }
.cardart { flex: none; width: 46px; height: 31px; }
.cardart > rect:first-child { fill: currentColor; }
.cardart--cib { color: #2d5f9a; }
.cardart--edahabia { color: #c08a1e; }
.cardart__chip { fill: #f3d58a; }
.cardart__line { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-linecap: round; }
.payhow { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: var(--blue-soft); color: #1f4a7a; font-size: 12.5px; line-height: 1.5; }
.payhow .i { margin-top: 1px; }
.paydemo { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sun-soft); color: #6d4500; font-size: 12.5px; line-height: 1.45; }
.paydemo .i { width: 18px; height: 18px; }

.paying { padding: 34px 10px 44px; text-align: center; }
.paying p { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.spinner { display: inline-block; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; border: 4px solid var(--sand); border-top-color: var(--olive); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.paid { padding: 6px 0 0; text-align: center; }
.paid__check { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 8px var(--ok-soft); animation: pop .6s var(--ease); }
.paid__check .i { width: 32px; height: 32px; stroke-width: 2.6; }
.paid p { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }

.receipt { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fffef9; box-shadow: var(--shadow); }
.receipt__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.receipt__head svg { width: 36px; height: 36px; }
.receipt__head b { display: block; font-family: var(--display); font-size: 15px; }
.receipt__head span { font-size: 12px; color: var(--ink-3); }
.receipt__no { margin: 10px 0 8px; font-size: 12.5px; color: var(--ink-3); }
.receipt__no b { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.receipt dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.receipt dt { color: var(--ink-3); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; }
.receipt__amt { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.receipt__amt span { font-size: 13px; font-weight: 600; }
.receipt__amt b { font-family: var(--display); font-size: 23px; letter-spacing: -.02em; }
.receipt__left { margin-top: 4px; font-size: 12.5px; text-align: right; color: var(--ink-2); }
.receipt__demo { margin-top: 12px; padding: 6px; border: 1px dashed currentColor; border-radius: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-align: center; text-transform: uppercase; color: var(--red); }

/* ---------- Écrire à l'école : actions sur place ------------------------------------ */

.jbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s, transform .2s var(--ease); }
.jbtn:hover { background: var(--olive); }
.jbtn:active { transform: scale(.97); }
.jbtn .i { width: 17px; height: 17px; stroke-width: 2.1; }
.jst { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--sun-soft); color: #6d4500; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.jst .i { width: 15px; height: 15px; stroke-width: 2.4; }
.jst--ok { background: var(--ok-soft); color: #24592c; }
.today__alert .jbtn, .today__alert .jst { margin-top: 10px; }
.today__alert .jst { display: inline-flex; font-size: 12.5px; }
.today__alert .jbtn .i, .today__alert .jst .i { margin: 0; color: currentColor; }
.today--ok .today__alert .jst { background: var(--paper); }

.feed li.has-act { position: relative; }
.has-act .nt { padding-bottom: 66px; }
.has-act:has(.jst) .nt { padding-bottom: 52px; }
.nt__act { position: absolute; left: 64px; bottom: 12px; }
.nt__act.jbtn { min-height: 44px; }

.behav li > .behav__act { flex: none; align-self: center; margin-left: auto; }
.behav .jbtn { min-height: 44px; padding: 0 13px 0 11px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 13px; }
.behav .jbtn:hover { border-color: var(--ink-3); background: var(--paper); }
.behav .jbtn--soft { border-color: transparent; background: var(--sun-soft); color: #6d4500; }
.behav li > .jst.behav__act { flex-direction: row; font-size: 12px; }

.push__act { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 10px 0 0 auto; padding: 0 16px 0 13px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; }
.push__act .i { width: 17px; height: 17px; stroke-width: 2.1; }

/* ---------- Messages : conversation avec la direction -------------------------------- */

.thread { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.thread__day { align-self: center; margin: 2px 0; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bub { max-width: 86%; padding: 9px 13px 7px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; }
.bub p { overflow-wrap: anywhere; }
.bub--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--olive); color: var(--paper); }
.bub--school { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--paper); box-shadow: var(--shadow); transition: border-color .4s, box-shadow .4s; }
.bub--school.is-new { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft), var(--shadow); }
.bub__tag { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; color: rgba(255, 253, 247, .8); }
.bub__tag span { font-weight: 600; }
.bub__who { display: flex; align-items: center; gap: 5px; margin-bottom: 1px; font-size: 11.5px; font-weight: 700; color: var(--olive); }
.bub__who .i { width: 14px; height: 14px; }
.bub__meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 253, 247, .75); }
.bub--school .bub__meta { justify-content: flex-start; color: var(--ink-3); }
.tick { display: inline-flex; align-items: center; gap: 3px; }
.tick .i { width: 15px; height: 15px; stroke-width: 2.2; }
.tick--read { color: #d5ea9c; }
.bub__st { display: flex; align-items: center; gap: 6px; margin: 7px -5px -1px; padding: 6px 9px; border-radius: 11px; background: rgba(255, 253, 247, .14); font-size: 12px; font-weight: 700; }
.bub__st .i { width: 14px; height: 14px; stroke-width: 2.4; }
.bub__st--ok { background: var(--paper); color: var(--ok); }
.bub.is-flash { animation-name: flash-bub; }
@keyframes flash-bub { 0%, 35% { box-shadow: 0 0 0 4px var(--sun); } 100% { box-shadow: 0 0 0 0 transparent; } }

.none { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(255, 253, 247, .6); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.none .i { color: var(--olive); }

.write { margin-top: 14px; }
.write__bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 7px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-3); font-size: 15px; font-weight: 600; text-align: left; box-shadow: var(--shadow); transition: border-color .2s; }
.write__bar:hover { border-color: var(--olive); }
.write__bar > .i:first-child { color: var(--olive); }
.write__bar span { flex: 1; min-width: 0; }
.write__go { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--olive); color: var(--paper); }
.write__topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.write__t { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; min-height: 64px; padding: 11px 4px 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 253, 247, .7); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; transition: border-color .2s, transform .2s var(--ease); }
.write__t:hover { border-color: var(--olive); }
.write__t:active { transform: scale(.97); }
.write__t .i { width: 22px; height: 22px; color: var(--olive); }

/* Fenêtre « écrire » : réponses rapides + mot libre */
.cctx { display: flex; align-items: center; gap: 8px; margin-top: -4px; font-size: 14px; color: var(--ink-2); }
.cctx b { color: var(--ink); }
.cquote { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--c-soft); color: var(--c-ink); }
.cquote .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--paper); }
.cquote b { display: block; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.cquote small { font-size: 12.5px; }
.cseg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 16px; background: var(--sand); }
.cseg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 700; transition: background-color .2s, color .2s; }
.cseg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(29, 38, 23, .4); }
.qr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.qr--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr__b { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 12px 8px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 700; line-height: 1.25; text-align: left; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.qr__b:hover { border-color: var(--olive); }
.qr__b:active { transform: scale(.98); border-color: var(--olive); background: var(--olive-soft); }
.qr__b span { flex: 1; min-width: 0; }
.qr__b > .i:first-child { width: 22px; height: 22px; color: var(--olive); }
.qr__go { width: 16px; height: 16px; color: var(--ink-3); }
.qr--grid .qr__b { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; min-height: 84px; padding: 12px 12px 12px 14px; font-size: 14.5px; }
.qr--grid .qr__b span { grid-row: 2; grid-column: 1 / -1; }
.qr--grid .qr__go { grid-row: 1; grid-column: 2; }
.say { display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 15px; border-radius: 26px; border: 1.5px solid var(--line); background: var(--cream); transition: border-color .2s, background-color .2s; }
.say:focus-within { border-color: var(--olive); background: var(--paper); }
.say__in { flex: 1; min-width: 0; height: 44px; max-height: 140px; padding: 10px 0; border: 0; background: transparent; font-size: 16px; line-height: 1.5; resize: none; outline: none; }
.say__in:focus-visible { outline: none; }
.say__send { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--olive); color: var(--paper); transition: background-color .2s; }
.say__send:hover { background: var(--ink); }
.say__send .i { width: 19px; height: 19px; }

/* ---------- Côté gauche sur grand écran ----------------------------------------------- */

.side { display: none; }
.side__title { margin-top: 24px; font-size: 34px; line-height: 1.08; }
.side__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--olive); }
.side__lede { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.side__try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 26px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.side__eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.side__eyebrow .i { width: 16px; height: 16px; }
.side__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); text-align: left; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.side__btn:hover { border-color: var(--olive); background: #fff; }
.side__btn:active { transform: scale(.98); }
.side__btn .i { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--olive); color: var(--paper); }
.side__btn b { display: block; font-size: 14px; }
.side__btn small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.side__hint { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.side__hint a { font-weight: 700; color: var(--olive); }

@media (min-width: 1100px) {
  .stage { column-gap: 64px; }
  .side { display: block; grid-column: 1; grid-row: 1; justify-self: end; align-self: center; width: 100%; max-width: 350px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  .side__lede, .side__hint, .side__btn small { display: none; }
  .side__title { margin-top: 14px; font-size: 28px; }
  .side__try { margin-top: 16px; }
  .side__btn { min-height: 48px; }
}
@media (min-width: 1100px) and (max-height: 560px) {
  .side { display: none; }
}

/* Écrans peu hauts : barre d'état plus compacte */
@media (min-width: 561px) and (max-height: 720px) {
  .stage { padding-top: 14px; padding-bottom: 14px; }
  .sb { height: 36px; }
  .sb__island { top: 6px; height: 25px; }
}

/* ---------- Téléphone réel (ou iframe étroite) : plein écran --------------------------- */

@media (max-width: 560px) {
  .stage { display: block; padding: 0; background: var(--app-bg); }
  .app { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .sb { display: none; }
  .ah { padding-top: 10px; }
  .pa .demo-bar { padding: 6px 14px; font-size: 11.5px; line-height: 1.4; }
}
@media (min-width: 561px) {
  .pushes { top: 48px; }
}
@media (max-width: 360px) {
  .view { padding-left: 14px; padding-right: 14px; }
  .hello__title { font-size: 26px; }
  .subj li { grid-template-columns: minmax(0, 1fr) 64px 40px; }
}

/* Dans le cadre de téléphone de la page « en direct » */
.is-embed .pa .demo-bar, .is-embed .demo-bar { display: none; }
