/* Plume v2 — courses, briefing, photo, accueil guidé et animations. Complète styles.css. */
:root { --c-course: #2F8F5B; --glow: rgba(229, 138, 60, .35); }
@media (prefers-color-scheme: dark) { :root { --c-course: #6FCB98; --glow: rgba(240, 154, 78, .3); } }

/* 5 onglets */
nav.tabs .in { grid-template-columns: repeat(5, 1fr); }
nav.tabs button { font-size: .68rem; transition: color .2s, transform .15s; }
nav.tabs button:active { transform: scale(.92); }
nav.tabs button[aria-selected="true"]::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); animation: grow .3s ease; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Transitions d'écran */
main { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.item { transition: transform .15s, box-shadow .2s, opacity .3s; }
.item:active { transform: scale(.985); }
.item.done { opacity: .62; }
.check { transition: background .2s, border-color .2s, transform .2s; }
.check.on { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rep { color: var(--sage); font-weight: 600; }

/* Orbe vivante */
.orb-wrap::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); filter: blur(14px); animation: halo 4.5s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
.thinking .orb-wrap::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, var(--sage) 85%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); mask: radial-gradient(circle, transparent 66%, #000 67%); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Réponse de Plume en bulle, révélée mot à mot */
.status { background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 12px 16px; text-align: left; max-width: 100%; width: 100%; box-shadow: 0 6px 20px -14px rgba(0,0,0,.35); animation: fadeUp .3s ease both; }
.status .heard { text-align: right; margin: -2px 0 8px; }
.status .heard::before { content: "Toi · "; font-style: normal; font-weight: 600; }
.status .who-p { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin-bottom: 2px; }
.word { opacity: 0; animation: word .25s ease forwards; }
@keyframes word { to { opacity: 1; } }

/* Saisie avec bouton photo */
.cam { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.cam:active { transform: scale(.9); }
.cam svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.select { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; }

/* Briefing */
.brief { margin-top: 16px; border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: flex-start; color: #fff;
  background: linear-gradient(135deg, #2A3A55 0%, #1A2230 60%, #3B2A1E 130%); box-shadow: 0 14px 30px -18px rgba(26,34,48,.8); animation: fadeUp .4s ease both; }
.brief b { display: block; font-family: var(--display); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #F6B57C; }
.brief p { margin: 4px 0 0; font-size: .95rem; line-height: 1.45; }
.brief .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); flex: none; }

/* Fin de journée */
.cheer { margin-top: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--sage-soft); color: var(--sage); font-weight: 600; text-align: center; animation: pop .4s ease; }

/* Exemples à essayer */
.try { margin-top: 14px; }
.try p { margin: 0 0 6px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Accueil guidé */
.onb { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.onb .slide { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; max-width: 420px; margin: 0 auto; animation: fadeUp .45s ease both; }
.onb h2 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; margin: 0; text-wrap: balance; }
.onb p { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 32ch; }
.onb .art { width: 190px; height: 190px; border-radius: 50%; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFE3C4, var(--accent-soft) 60%, transparent 72%); }
.onb .art svg { width: 84px; height: 84px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: float 3.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.onb .bubble { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; font-size: .78rem; box-shadow: 0 8px 18px -12px rgba(0,0,0,.4); white-space: nowrap; animation: fadeUp .5s ease both; }
.onb .dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 18px; }
.onb .dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .25s, background .25s; }
.onb .dots i.on { width: 22px; background: var(--accent); }
.onb .actions { display: flex; gap: 10px; max-width: 420px; width: 100%; margin: 0 auto; }
.onb .actions .btn { flex: 1; padding: 14px; }

@media (prefers-reduced-motion: reduce) { .word { opacity: 1; animation: none; } }
