/* MeetTomo DA v3 for the webapp: the upgrades Loïc approved on 2026-10-28 for meettomo.net,
   carried over to the app at his request. An additive layer loaded after the frozen
   "Glass & Watercolor" theme: no theme file, palette, hover watercolor or animated background
   rule changes. Driven by da-v3.js. Pedagogical states (correct, wrong, locked, selected) keep
   their meaning. Every movement stops under prefers-reduced-motion. */

/* ---------- Typography: Fraunces (SOFT axis) for headings; in Japanese, the phone's own fonts (23/11/2026, Loïc: no Japanese web font to download) ---------- */
:root{--mt-display:'Fraunces Variable',Georgia,'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans CJK JP','Noto Sans JP',Meiryo,serif}
html[lang=ja]{--mt-display:'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans CJK JP','Noto Sans JP',Meiryo,sans-serif}
body{font-variation-settings:'SOFT' 100}
:is(h1,h2,.serif,.kind-note,.revision-card h3,.flashcard,.stat strong,.score,.discovery-links strong,main h3){font-family:var(--mt-display)}
/* Fraunces runs a little wider than Georgia: keep the same line breaks as before. */
@media(min-width:1101px){h1{font-size:clamp(32px,3.65vw,52px)}}
.kind-note{font-size:16px}

/* ---------- Modules: a breathing watercolor wash under the content ---------- */
.da-wash{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;z-index:-1}
.da-wash::before{content:'';position:absolute;inset:-18%;background:radial-gradient(38% 42% at 20% 26%,var(--mt-a,#e1eedb),transparent 72%),radial-gradient(42% 46% at 82% 80%,var(--mt-b,#dbcdee),transparent 74%);opacity:.34;animation:da-wash 12s ease-in-out infinite alternate}
@keyframes da-wash{from{transform:translate3d(-3%,-2%,0) scale(1)}to{transform:translate3d(3%,3%,0) scale(1.07)}}
/* Inflate when a module below the fold enters the screen. */
.da-await{opacity:0;transform:translateY(24px) scale(.95)}
.da-pop{animation:da-pop .74s cubic-bezier(.34,1.45,.64,1) both}
@keyframes da-pop{0%{opacity:0;transform:translateY(24px) scale(.95)}55%{opacity:1;transform:translateY(-3px) scale(1.012)}78%{transform:translateY(0) scale(.997)}100%{opacity:1;transform:none}}

/* Click celebrations (stars, confetti or sparkles) share one fixed layer, as on meettomo.net. */
.da-fx{position:fixed;inset:0;z-index:2000;pointer-events:none;overflow:hidden}
.da-bit{position:absolute;pointer-events:none;will-change:transform,opacity}
.da-bit-ring{width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:conic-gradient(#7fd1ae,#8cc8f2,#b79cf0,#ef8fb6,#ffd76a,#7fd1ae);-webkit-mask:radial-gradient(circle,transparent 56%,#000 59%,#000 68%,transparent 71%);mask:radial-gradient(circle,transparent 56%,#000 59%,#000 68%,transparent 71%)}

/* Tomo peeks at a large module once, and never the same way twice in a row (da-v3.js).
   Each window clips what is behind the section's edge; --s is his size, --x where along the edge. */
.da-peek{position:absolute;top:0;left:var(--x,80%);width:var(--s,66px);height:calc(var(--s,66px) * .7);translate:-50% -100%;overflow:hidden;pointer-events:none;z-index:3}
.da-peek>.da-mini-tomo{position:absolute;left:0;bottom:calc(var(--s,66px) * -.3);width:var(--s,66px);transform-origin:50% 100%;animation:da-peek-pop 2.3s cubic-bezier(.4,.1,.3,1) both}
@keyframes da-peek-pop{0%{transform:translateY(100%)}24%{transform:translateY(4%) rotate(-6deg)}31%{transform:translateY(11%) rotate(-6deg)}38%{transform:translateY(4%) rotate(-6deg)}72%{transform:translateY(7%) rotate(-4deg)}100%{transform:translateY(100%)}}
/* Hop: he climbs onto the edge, jumps once, and slides back down. */
.da-peek-hop{height:calc(var(--s,66px) * 1.7)}
.da-peek-hop>.da-mini-tomo{bottom:0;animation:da-peek-hop 2.7s cubic-bezier(.4,.1,.3,1) both}
@keyframes da-peek-hop{0%{transform:translateY(100%)}20%{transform:translateY(30%)}30%{transform:translateY(30%) scale(1.08,.9)}40%{transform:translateY(-55%) scale(.94,1.07)}50%{transform:translateY(0) scale(1.1,.88)}57%{transform:translateY(0) scale(1)}78%{transform:translateY(0) rotate(5deg)}100%{transform:translateY(100%)}}
/* Slide: his head shows up, glides along the edge, then dips behind it further on. */
.da-peek-slide{width:calc(var(--s,66px) * 3);translate:0 -100%}
.da-peek-slide>.da-mini-tomo{animation:da-peek-slide 3s cubic-bezier(.45,.1,.35,1) both}
@keyframes da-peek-slide{0%{transform:translate(0,100%)}16%{transform:translate(0,14%) rotate(-7deg)}28%{transform:translate(0,14%) rotate(-7deg)}46%{transform:translate(100%,4%) rotate(4deg)}64%{transform:translate(200%,14%) rotate(8deg)}80%{transform:translate(200%,14%) rotate(8deg)}100%{transform:translate(200%,100%)}}
/* Wave: he rises and sways hello. */
.da-peek-wave>.da-mini-tomo{animation:da-peek-wave 2.6s cubic-bezier(.4,.1,.3,1) both}
@keyframes da-peek-wave{0%{transform:translateY(100%)}20%{transform:translateY(0)}30%{transform:rotate(-11deg)}40%{transform:rotate(10deg)}50%{transform:rotate(-8deg)}60%{transform:rotate(6deg)}70%{transform:rotate(0)}82%{transform:translateY(0)}100%{transform:translateY(100%)}}
/* Shy: only the eyes, a quick duck, then he dares a bigger look. */
.da-peek-shy>.da-mini-tomo{animation:da-peek-shy 2.9s cubic-bezier(.4,.1,.3,1) both}
@keyframes da-peek-shy{0%{transform:translateY(100%)}14%,22%{transform:translateY(16%)}28%,42%{transform:translateY(100%)}54%{transform:translateY(0) scale(1.05,.95)}62%,82%{transform:translateY(0) rotate(4deg)}100%{transform:translateY(100%)}}
/* Side: he leans out from behind the left or right edge of the section (wide screens only). */
.da-peek:is(.da-peek-side-left,.da-peek-side-right){top:var(--y,30%);width:calc(var(--s,66px) * .75);height:var(--s,66px);translate:-100% 0;left:0}
.da-peek-side-right{left:100%!important;translate:0 0!important}
.da-peek:is(.da-peek-side-left,.da-peek-side-right)>.da-mini-tomo{bottom:0;transform-origin:50% 50%}
.da-peek-side-left>.da-mini-tomo{animation:da-peek-side-left 2.6s cubic-bezier(.4,.1,.3,1) both}
.da-peek-side-right>.da-mini-tomo{left:auto;right:0;animation:da-peek-side-right 2.6s cubic-bezier(.4,.1,.3,1) both}
@keyframes da-peek-side-left{0%{transform:translateX(110%) rotate(-24deg)}24%,40%{transform:translateX(26%) rotate(-24deg)}48%{transform:translateX(30%) rotate(-30deg)}56%,78%{transform:translateX(26%) rotate(-22deg)}100%{transform:translateX(110%) rotate(-24deg)}}
@keyframes da-peek-side-right{0%{transform:translateX(-110%) rotate(24deg)}24%,40%{transform:translateX(-26%) rotate(24deg)}48%{transform:translateX(-30%) rotate(30deg)}56%,78%{transform:translateX(-26%) rotate(22deg)}100%{transform:translateX(-110%) rotate(24deg)}}

/* ---------- Glossy buttons ---------- */
/* The gloss and pearl layers stay inside their own button, enabled or not. */
.button.secondary{position:relative;isolation:isolate}
@keyframes da-shine{from{transform:translateX(-120%) skewX(-18deg)}to{transform:translateX(330%) skewX(-18deg)}}
/* Secondary buttons: pearly white, under the theme's own watercolor hover. */
.button.secondary::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;background:linear-gradient(180deg,#ffffffc4,#ffffff00 58%),linear-gradient(115deg,#ffffff00 18%,#f6eefe8c 38%,#eaf8f18c 52%,#fff4ec8c 64%,#ffffff00 82%)}
.da-boing{animation:da-boing .52s cubic-bezier(.3,.7,.4,1)!important}
@keyframes da-boing{0%{transform:scale(1)}22%{transform:scale(1.07,.88)}46%{transform:scale(.95,1.06)}70%{transform:scale(1.02,.98)}100%{transform:scale(1)}}

/* ---------- Icons: unchanged, on a small breathing pastel wash ---------- */
.sidebar nav .nav-icon{border-radius:12px;background:linear-gradient(135deg,#d7f1eb,#ede4f5 48%,#fbe3d3) 0 0/240% 240%;animation:da-icon 7s ease-in-out infinite alternate}
@keyframes da-icon{from{background-position:0 0;scale:1}50%{scale:1.04}to{background-position:100% 100%;scale:1}}

/* ---------- Links: a watercolor stroke slides in under text links ---------- */
:is(main :is(p,li,.kind-note,.storage-notice) a,.text-button,.national-curriculum-link,.profile-change):not(.button):not([data-mt-surface]){background-image:linear-gradient(90deg,#b7dedbd9,#dbcdeed9 55%,#f6ccbbd9);background-repeat:no-repeat;background-position:0 92%;background-size:0% .42em;transition:background-size .5s cubic-bezier(.3,.7,.3,1)}
:is(main :is(p,li,.kind-note,.storage-notice) a,.text-button,.national-curriculum-link,.profile-change):not(.button):not([data-mt-surface]):is(:hover,:focus-visible){background-size:100% .42em}

/* ---------- Navigation: items arrive one by one, once ---------- */
.da-nav-in{animation:da-nav-item .46s cubic-bezier(.34,1.4,.64,1) calc(var(--da-i,0) * 55ms + 80ms) both}
@keyframes da-nav-item{from{opacity:0;transform:translateX(-10px) scale(.96)}to{opacity:1;transform:none}}

/* ---------- Tomo: squash & stretch on touch, the leaves lag behind ---------- */
.tomo.da-squash,.da-mini-tomo.da-squash{animation:da-squash .82s cubic-bezier(.3,.7,.4,1)!important;transform-origin:50% 100%}
.da-squash img[src*="leaves"]{transform-origin:50% 29%;animation:da-leaves-lag 1s ease-out}
@keyframes da-squash{0%{transform:rotate(var(--tomo-tilt,0deg))}16%{transform:rotate(var(--tomo-tilt,0deg)) scale(1.14,.84)}36%{transform:rotate(var(--tomo-tilt,0deg)) translateY(-7%) scale(.9,1.12)}56%{transform:rotate(var(--tomo-tilt,0deg)) scale(1.05,.95)}76%{transform:rotate(var(--tomo-tilt,0deg)) scale(.985,1.015)}100%{transform:rotate(var(--tomo-tilt,0deg))}}
@keyframes da-leaves-lag{0%,18%{transform:rotate(0)}38%{transform:rotate(-13deg)}58%{transform:rotate(9deg)}78%{transform:rotate(-4deg)}100%{transform:rotate(0)}}

/* ---------- Tomo's speech bubbles: glossy, three bouncing dots, then the words ---------- */
#tomo-help-text{position:relative;isolation:isolate;background:linear-gradient(150deg,#ffffffeb,#f8fbf7c7)!important;border:1px solid #ffffffe6!important;box-shadow:inset 0 2px 1px #fff,inset 0 -2px 4px #dbcdee40,0 8px 20px -10px #40526433!important}
#tomo-help-text::before{content:'';position:absolute;left:6%;right:6%;top:2px;height:36%;border-radius:999px;background:linear-gradient(180deg,#ffffffd0,#ffffff00);pointer-events:none;z-index:-1}
#tomo-help-text.da-typing{color:transparent}
#tomo-help-text.da-typing::after{content:'';position:absolute;left:18px;top:26px;width:7px;height:7px;border-radius:50%;background:#7fb39c;box-shadow:13px 0 0 #a594cf,26px 0 0 #eaa98a;animation:da-dot .45s ease-in-out infinite alternate}
#tomo-help-text.da-typed{animation:da-text-in .4s ease-out both}
@keyframes da-dot{from{transform:translateY(2px)}to{transform:translateY(-3px)}}
@keyframes da-text-in{from{opacity:.2}to{opacity:1}}
.da-say{position:relative;isolation:isolate;display:inline-block;white-space:nowrap;font-size:13px;font-weight:800;color:#2f6f58;border:1px solid #ffffffe6;border-radius:16px 16px 4px 16px;padding:9px 13px;background:linear-gradient(150deg,#ffffffee,#f6f1fbd6);box-shadow:inset 0 2px 1px #fff,0 10px 24px -12px #40526440}
.da-say-dots{position:absolute;left:14px;top:50%;display:flex;gap:4px;translate:0 -50%;opacity:0;animation:da-dots-life .62s step-end both}
.da-say-dots i{width:6px;height:6px;border-radius:50%;background:#7fb39c;animation:da-dot .5s ease-in-out infinite alternate}
.da-say-dots i:nth-child(2){background:#a594cf;animation-delay:.14s}.da-say-dots i:nth-child(3){background:#eaa98a;animation-delay:.28s}
@keyframes da-dots-life{0%{opacity:1}100%{opacity:0}}
.da-say-text>span{opacity:0;animation:da-letter .16s ease-out calc(.6s + var(--d,0ms)) forwards}
@keyframes da-letter{from{opacity:0}to{opacity:1}}

/* ---------- Language change: Tomo turns around and greets letter by letter ---------- */
.da-hello{position:fixed;right:22px;top:18px;display:flex;align-items:flex-end;gap:6px;z-index:2100;pointer-events:none;animation:da-hello 3.2s ease both}
/* Bulle posée à droite de Tomo : la pointe part de son côté (retour de Loïc du 11 novembre). */
.da-mini-tomo{display:block;position:relative;aspect-ratio:1;flex:none}
.da-mini-tomo>img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;object-fit:contain;margin:0}
.da-hello>.da-mini-tomo{width:54px;animation:da-turn .9s cubic-bezier(.4,.1,.3,1) both}
@keyframes da-turn{0%{transform:perspective(300px) rotateY(0)}50%{transform:perspective(300px) rotateY(180deg) scale(.96)}100%{transform:perspective(300px) rotateY(360deg)}}
@keyframes da-hello{0%{opacity:0;transform:translateY(-6px)}10%,84%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-4px)}}

/* ---------- Light that follows the pointer or finger (option F2) ---------- */
.da-light{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;mix-blend-mode:soft-light}
.da-light-glow{position:absolute;left:0;top:0;width:76vmax;height:76vmax;margin:-38vmax 0 0 -38vmax;border-radius:50%;opacity:0;transition:opacity .9s ease;will-change:transform}
.da-light.is-on .da-light-glow{opacity:var(--o,0)}
.da-light-white{background:radial-gradient(circle,#ffffff 0%,#ffffffa0 22%,#ffffff00 58%)}
.da-light-mint{background:radial-gradient(circle,#9fdcc2 0%,#9fdcc200 54%)}
.da-light-lavender{background:radial-gradient(circle,#c3aef0 0%,#c3aef000 54%)}
.da-light-peach{background:radial-gradient(circle,#f7b99b 0%,#f7b99b00 54%)}
.da-light-ring{position:fixed;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:2px solid #ffffffd9;box-shadow:0 0 14px #ffffff99,inset 0 0 10px #ffffff80;z-index:-1;pointer-events:none;opacity:0}

/* ---------- Reduced motion: nothing moves ---------- */
@media(prefers-reduced-motion:reduce){
 .da-wash::before,.da-pop,.da-bit,.da-peek,.da-peek>.da-mini-tomo,.da-light,.da-light-ring,.da-boing,.da-hello,.da-hello>.da-mini-tomo,.da-say-dots,.da-say-dots i,.da-say-text>span,.sidebar nav .nav-icon,.button.primary,.button.primary::after,.da-nav-in,.tomo.da-squash,.da-squash img,#tomo-help-text.da-typed,#tomo-help-text.da-typing::after{animation:none!important}
 .da-await,.da-say-text>span,.da-nav-in{opacity:1!important;transform:none!important}
 #tomo-help-text.da-typing{color:inherit}#tomo-help-text.da-typing::after{display:none}
 .da-say-dots,.da-light,.da-light-ring,.da-peek,.da-hello{display:none!important}
 :is(main :is(p,li,.kind-note,.storage-notice) a,.text-button,.national-curriculum-link,.profile-change){transition:none!important}
}

/* ---------- Navigation and secondary buttons: ink at rest, green on hover (Loïc, 5 Nov 2026) ----------
   Same rule as meettomo.net and the iOS app: icons and labels share the text ink, turn green only
   under the pointer or keyboard focus, and icon tiles use the same white glass as the buttons.
   Only the rainbow B4·h buttons (.button.primary) stand out, to confirm or open an important page. */
:root{--mt-nav-ink:#24384a;--mt-nav-icon:#16242f;--mt-nav-green:#438775}
:is(.sidebar nav button,.mobile-nav button,.parent-link,.button.secondary,.subject-switch button,.lang-picker :is(a,button),.profile-change,.text-button,.national-curriculum-link,.secondary-action,.mt-roles-list a,a.has-lang-flag){color:var(--mt-nav-ink);text-decoration:none;transition:color .25s ease}
:is(.sidebar nav button,.mobile-nav button,.parent-link,.button.secondary,.subject-switch button,.lang-picker :is(a,button),.profile-change,.text-button,.national-curriculum-link,.secondary-action,.mt-roles-list a,a.has-lang-flag) svg{color:var(--mt-nav-icon);stroke:currentColor;transition:color .25s ease}
@media(hover:hover){:is(.sidebar nav button,.mobile-nav button,.parent-link,.button.secondary,.subject-switch button,.lang-picker :is(a,button),.profile-change,.text-button,.national-curriculum-link,.secondary-action,.mt-roles-list a,a.has-lang-flag):not(:disabled):hover{color:var(--mt-nav-green)}
 :is(.sidebar nav button,.mobile-nav button,.parent-link,.button.secondary,.subject-switch button,.lang-picker :is(a,button),.profile-change,.text-button,.national-curriculum-link,.secondary-action,.mt-roles-list a,a.has-lang-flag):not(:disabled):hover svg{color:var(--mt-nav-green)}}
:is(.sidebar nav button,.mobile-nav button,.parent-link,.button.secondary,.subject-switch button,.lang-picker :is(a,button),.profile-change,.text-button,.national-curriculum-link,.secondary-action,.mt-roles-list a,a.has-lang-flag):focus-visible{color:var(--mt-nav-green)}
:is(.sidebar nav button,.mobile-nav button,.parent-link,.button.secondary,.subject-switch button,.lang-picker :is(a,button),.profile-change,.text-button,.national-curriculum-link,.secondary-action,.mt-roles-list a,a.has-lang-flag):focus-visible svg{color:var(--mt-nav-green)}
.subject-switch .subject-switch-level{color:var(--mt-nav-ink)}
@media(hover:hover){:is(.subject-switch .subject-switch-level,.onboarding .text-button):hover{color:var(--mt-nav-green)}}
.onboarding .text-button{color:var(--mt-nav-ink);text-decoration:none}
/* Icon tiles: the buttons' white glass instead of the pastel wash. */
.sidebar nav .nav-icon{background:linear-gradient(135deg,#ffffff80,#ffffff30);border:1px solid #ffffffcf;box-shadow:inset 0 1px 1px #fff;border-radius:12px;animation:none}
.sidebar nav button.active .nav-icon{background:#ffffffad}.sidebar nav button[data-pressed] .nav-icon{background:#ffffffad;transform:scale(.94)}/* Contraste AA (audit Modern Web, 13/11/2026) : 5,2:1 sur le fond crème au lieu de 3,8:1 */.page-title>.subtle{color:#5f6b60}
.sidebar .profile .avatar{background:linear-gradient(135deg,#ffffff80,#ffffff30);border:1px solid #ffffffcf;box-shadow:inset 0 1px 1px #fff;color:var(--mt-nav-icon)}
/* Simple links carry no icon: only the label, like meettomo.net. */
.sidebar .parent-link svg{display:none}
/* Buttons side by side in a card or the hero: 12 px apart, and some air when they wrap (Loïc, 6 Nov 2026). */
:is(.card,.hero-copy)>.button:has(+.button){margin-right:12px}
:is(.card,.hero-copy)>.button:has(+.button),:is(.card,.hero-copy)>.button+.button{margin-block:5px}
/* Readable small print by day: the session note and the date reach 4.5:1 on the cream background (WCAG AA, 6 Nov 2026). The veilleuse keeps its own colours. */
:root:not([data-veilleuse=on]) :is(footer,.topbar #date){color:#5f6b63}
/* Bulle de Tomo (11 novembre) : bulle de BD bien ronde, liseré pastel arc-en-ciel, queue courbe vers Tomo, apparition en « pop ». */
.da-hello-tomo .da-say,.da-hello-above .da-say{font-size:15px;line-height:1.3;color:#203b4a;padding:12px 18px;border:2px solid transparent;border-radius:24px;background:linear-gradient(160deg,#fffdfb,#fbf7ff) padding-box,linear-gradient(110deg,#a6dcc0,#c3b1ee 38%,#f3bf9f 70%,#f2d57e) border-box;box-shadow:inset 0 2px 1px #fff,0 14px 26px -14px #4052645e;animation:da-say-pop .5s cubic-bezier(.34,1.56,.64,1) both}
.da-hello-tomo .da-say{transform-origin:0 85%}
.da-hello-tomo .da-say::before{content:"";position:absolute;left:-15px;bottom:5px;width:22px;height:19px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 28 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23a6dcc0'/%3E%3Cstop offset='.5' stop-color='%23c3b1ee'/%3E%3Cstop offset='1' stop-color='%23f3bf9f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M26 2C21 4 17 4 13 3 9 10 5 16 0 21 9 19 18 14 26 9Z' fill='%23fffdfb'/%3E%3Cpath d='M24 2.6C21 4 17 4 13 3 9 10 5 16 0 21 9 19 18 14 24 9.8' fill='none' stroke='url(%23g)' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;z-index:1}
.da-hello-above .da-say{white-space:normal;max-width:calc(100vw - 16px);text-align:center;transform-origin:45% 100%}
.da-hello-above .da-say::before{content:"";position:absolute;left:calc(50% - 4px);bottom:-15px;width:19px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 24 28'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23a6dcc0'/%3E%3Cstop offset='.5' stop-color='%23c3b1ee'/%3E%3Cstop offset='1' stop-color='%23f3bf9f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 0C4 5 4 9 3 13 10 17 16 21 21 26 19 17 14 8 9 0Z' fill='%23fffdfb'/%3E%3Cpath d='M2.4 1.5C4 5 4 9 3 13 10 17 16 21 21 26 19 17 14 8 8.4 1.5' fill='none' stroke='url(%23g)' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;z-index:1}
@keyframes da-say-pop{0%{transform:scale(.3);opacity:0}60%{transform:scale(1.06);opacity:1}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.da-hello-tomo .da-say,.da-hello-above .da-say{animation:none}}
@media(max-width:600px){.da-hello-above .da-say{font-size:14px;padding:8px 14px}}
/* « Changer de classe ou de programme » passe sur deux lignes : le trait pastel souligne chaque ligne (box-decoration-break) au lieu de barrer la seconde. */
.profile-change:not(.button){background-image:none!important}
.profile-change>span{background-image:linear-gradient(90deg,#b7dedbd9,#dbcdeed9 55%,#f6ccbbd9);background-repeat:no-repeat;background-position:0 92%;background-size:0% .42em;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .5s cubic-bezier(.3,.7,.3,1)}
.profile-change:is(:hover,:focus-visible)>span{background-size:100% .42em}
@media(prefers-reduced-motion:reduce){.profile-change>span{transition:none}}
/* Titres et énoncé (#question-title, h2) focalisés par le code (tabindex=-1) : pas de cadre, même arrivé par un lien sans clic
   (24/11/2026, tests/enonce-sans-cadre-20261124.test.mjs) ; le focus clavier visible reste sur les boutons. */
@layer meettomo-theme{:is(h1,h2)[tabindex="-1"]:focus:not(:focus-visible),:is(h1,h2)[tabindex="-1"]:focus{outline:none!important;box-shadow:none!important}}
/* Bulle D validée par Loïc le 11 novembre 2026 : tout ce que Tomo dit sort dans une carte blanche
   signée « Tomo », sans queue, quatre coins ronds identiques (Loïc, 11 novembre : plus de coin pointu), trait arc-en-ciel qui se dessine dessous.
   Couche veilleuse (la plus forte) : même carte de jour comme de nuit. */
@layer meettomo-veilleuse{
:is(.da-hello .da-say,.mt-onb-bubble,.hero-bubble,#tomo-help-text,.parent-test:not([data-espace=dashboard]) .mt-bubble,.class-area .mt-bubble){
 position:relative!important;display:inline-block!important;white-space:normal!important;text-align:left!important;
 padding:11px 18px 14px!important;border-radius:20px!important;
 background:#fffffff2!important;border:1px solid #fff!important;backdrop-filter:none!important;
 box-shadow:inset 0 2px 1px #fff,0 14px 26px -14px #4052645e!important;
 color:#203b4a!important;font-weight:800!important;transform-origin:0 100%;animation:mt-card-pop .45s cubic-bezier(.34,1.56,.64,1) both}
:is(.da-hello .da-say,.mt-onb-bubble,.hero-bubble,.parent-test .mt-bubble,.class-area .mt-bubble) *{color:#203b4a!important}
:is(.da-hello .da-say,.mt-onb-bubble,.hero-bubble,#tomo-help-text,.parent-test:not([data-espace=dashboard]) .mt-bubble,.class-area .mt-bubble)::before{
 content:"Tomo"!important;position:static!important;display:block!important;inset:auto!important;width:auto!important;height:auto!important;
 margin:0 0 2px!important;padding:0!important;border:0!important;background:none!important;transform:none!important;filter:none!important;opacity:1!important;
 font:900 11px/1.2 "Nunito Sans",Nunito,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#438775!important}
:is(.da-hello .da-say,.mt-onb-bubble,.hero-bubble,#tomo-help-text,.parent-test:not([data-espace=dashboard]) .mt-bubble,.class-area .mt-bubble)::after{
 content:""!important;position:absolute!important;left:18px!important;right:18px!important;top:auto!important;bottom:-2px!important;width:auto!important;height:4px!important;margin:0!important;
 border:0!important;border-radius:4px!important;background:linear-gradient(90deg,#a6dcc0,#c3b1ee 38%,#f3bf9f 70%,#f2d57e)!important;
 transform-origin:0 50%;animation:mt-card-line .55s cubic-bezier(.3,.7,.3,1) .25s both}
/* Tomo est à droite de la bulle sur l'accueil : la bulle grandit depuis son côté. */
.hero-bubble{border-radius:20px!important;transform-origin:100% 100%}
/* Bulle placée au-dessus de Tomo (téléphone) : texte centré. */
.da-hello-above .da-say{text-align:center!important;border-radius:20px!important;transform-origin:50% 100%}
}
@keyframes mt-card-pop{0%{transform:scale(.6) translateY(6px);opacity:0}60%{transform:scale(1.04);opacity:1}100%{transform:none}}
@keyframes mt-card-line{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){@layer meettomo-veilleuse{:is(.da-hello .da-say,.mt-onb-bubble,.hero-bubble,#tomo-help-text,.mt-bubble),:is(.da-hello .da-say,.mt-onb-bubble,.hero-bubble,#tomo-help-text,.mt-bubble)::after{animation:none!important}}}
