/* =====================================================================
   Minuteur de relaxation Cap555 - bloc autonome, avec outils/commun/fenetre.css
   Fenêtre couleur crépuscule, bol chantant au centre.
   ===================================================================== */
.mn {
  --of-1: #55285c; --of-2: #301638; --of-3: #140a18;
  --of-lueur-haut: rgba(232, 140, 192, .32); --of-lueur-bas: rgba(255, 122, 26, .2);
}
.mn-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: start; }
.mn-scene { position: sticky; top: 1rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.mn-stage {
  position: relative;
  width: min(20rem, 74vw); aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 50% 45%, rgba(255, 190, 140, .12) 0%, rgba(0, 0, 0, .3) 70%);
}
.mn-stage:focus-visible { outline: 2px solid var(--of-vert-clair); outline-offset: 6px; }
.mn-stage > svg.mn-anneau { position: absolute; inset: 0; width: 100%; height: 100%; }
.mn-piste { fill: none; stroke: #e8b0d0; stroke-width: 1.2; opacity: .35; }
.mn-prog { fill: none; stroke: #ff7a1a; stroke-width: 2.6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 2px rgba(255, 122, 26, .9)); }
.mn-ondes { position: absolute; inset: 0; pointer-events: none; }
.mn-ondes span { position: absolute; left: 50%; top: 44%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%; border: 1.5px solid rgba(255, 210, 168, .55); opacity: 0; }
.mn.is-running .mn-ondes span { animation: mn-onde 4.5s ease-out infinite; }
.mn.is-running .mn-ondes span:nth-child(2) { animation-delay: 1.5s; }
.mn.is-running .mn-ondes span:nth-child(3) { animation-delay: 3s; }
@keyframes mn-onde { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2); opacity: 0; } }
.mn-bol { position: absolute; left: 22%; top: 24%; width: 56%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); transition: filter .6s; }
.mn.is-running .mn-bol { filter: drop-shadow(0 0 22px rgba(255, 170, 100, .55)) drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.mn-label { position: absolute; left: 0; right: 0; top: 66%; display: flex; flex-direction: column; align-items: center; pointer-events: none; color: #fff7ee; }
.mn-temps { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.mn-statut { font-size: .95rem; color: var(--of-vert-clair); min-height: 1.4em; }
.mn-reglages { display: flex; flex-direction: column; gap: 1rem; }
.mn-reglages .of-panneau { display: flex; flex-direction: column; gap: .85rem; }
.mn .of-sous-titre { margin: 0; }
.mn-ligne { display: flex; align-items: flex-end; gap: .6rem; }
.mn-ligne .of-champ { flex: 1; }
.mn .mn-essai {
  flex: none;
  font: inherit; font-size: .88rem;
  padding: .52rem .9rem;
  color: var(--of-texte);
  background: var(--of-champ);
  border: 1px solid rgba(255, 122, 26, .45);
  border-radius: 10px;
  cursor: pointer;
}
.mn .mn-essai:hover { border-color: var(--of-orange); }
.mn .mn-essai:focus-visible { outline: 2px solid var(--of-vert-clair); outline-offset: 2px; }
.mn input[type=file] { width: 100%; font: inherit; font-size: .85rem; color: var(--of-doux); }
.mn input[type=file]::file-selector-button {
  font: inherit; color: #fff4ea;
  background: linear-gradient(180deg, var(--of-grenat-vif), var(--of-grenat));
  border: 1px solid var(--of-orange); border-radius: 10px;
  padding: .4rem .95rem; margin-right: .75rem; cursor: pointer;
}
.mn.is-running .mn-reglages .verrouillable { opacity: .55; }
@media (max-width: 820px) {
  .mn-corps { grid-template-columns: 1fr; gap: 1.2rem; }
  .mn-scene { position: static; }
}
