/* =========================================================================
 * wellbeing.css — Météo des émotions et écran de pause
 *   Couleurs douces, pas de clignotement, animations lentes.
 * ========================================================================= */

/* ---------- Météo des émotions ---------- */
.mood-screen { position: relative; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px 0; }
.mood-screen h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.mood-screen > p { margin: 0; }
.mood-sky { font-size: 4.5rem; animation: moodFloat 4s ease-in-out infinite; }
.mood-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 150px)); gap: 14px; margin-top: 10px; }
.mood-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; border-radius: 26px; cursor: pointer;
  border: 4px solid color-mix(in srgb, var(--mc) 35%, white); background: #fff; box-shadow: var(--shadow); font-family: inherit; color: var(--ink);
  transition: transform .12s, border-color .12s;
}
.mood-btn:active { transform: scale(.95); border-color: var(--mc); }
.mood-emoji { font-size: 3.6rem; line-height: 1; }
.mood-label { font-weight: 600; font-size: 1.05rem; }
.mood-skip { margin-top: 6px; }
.mood-thanks .mood-help { font-size: 1.3rem; line-height: 1.5; max-width: 520px; }
@keyframes moodFloat { 50% { transform: translateY(-6px); } }

/* ---------- Bouton Pause (en-tête des devoirs) ---------- */
.btn-pause { background: #e8f4ff; color: #1f5f99; box-shadow: 0 4px 0 #b9dbf7; font-size: 1.15rem; flex: none; }
.btn-pause span { font-weight: 700; }

/* ---------- Écran de pause (au-dessus de tout, calme) ---------- */
.pause-screen {
  position: fixed; inset: 0; z-index: 2147483100; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(160deg, #dff1ff, #e9e4ff 60%, #fdf1f7); animation: fadeIn .4s;
}
.pause-screen.closing { opacity: 0; transition: opacity .25s; }
.pause-box { width: min(560px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pause-box h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); color: #2b3a67; }
.pause-sub { margin: 0; font-size: 1.15rem; color: #4b5a86; }
.breath { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin: 10px 0; }
.breath-circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), rgba(0, 180, 216, .25) 70%, transparent 72%);
  animation: breathe 8s ease-in-out infinite; /* 4 s inspirer, 4 s expirer */
}
.breath-word { position: relative; font-size: 1.5rem; font-weight: 700; color: #2b3a67; margin: 0; }
@keyframes breathe { 0%, 100% { transform: scale(.55); } 50% { transform: scale(1); } }
.pause-ideas { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.pause-ideas li { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .75); border-radius: 16px; padding: 10px 12px; font-size: 1.05rem; text-align: left; }
.pause-ideas li span { font-size: 1.6rem; }
.pause-time { margin: 2px 0; color: #6b74a0; }
.pause-resume { background: #fff; color: #2b3a67; box-shadow: 0 5px 0 rgba(43, 58, 103, .18); margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .breath-circle { animation-duration: 16s; } }

/* ---------- Espace parent : bien-être ---------- */
.wellbeing { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.wellbeing p { margin: 4px 0; }
.pause-live { background: #e8f4ff; color: #1f5f99; border-radius: 12px; padding: 6px 10px; display: inline-block; animation: pulseSoft 2.5s infinite; }
.mood-week { display: flex; gap: 6px; margin: 6px 0; }
.mood-day { display: flex; flex-direction: column; align-items: center; min-width: 30px; font-size: 1.25rem; line-height: 1.1; }
.mood-day small { font-size: .7rem; color: var(--muted); text-transform: uppercase; }
@keyframes pulseSoft { 50% { opacity: .65; } }

@media (max-width: 700px) {
  .mood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .pause-ideas { grid-template-columns: 1fr; }
  .btn-pause span { display: none; }
}
