/* Outil · Easing : seulement ce qui lui est propre (le reste vient de app/kit.css).
   Préfixe des classes : ea- */

/* À gauche (en haut au téléphone) : un cadre avec le graphique et la piste de l'animation, puis lecture / pause et le nom */
.ea .outil-fixe { align-items: center; }
.ea-cadre { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 16px;
  background: var(--encre); box-shadow: inset 0 0 0 1px var(--filet); }
/* Le graphique garde toujours la même taille : quand la courbe dépasse, c'est le dessin qui se réduit dans le cadre */
.ea-graphe { display: block; width: 100%; max-height: 52vh; aspect-ratio: 328 / 364; touch-action: none; }
@media (max-width: 959px) { .ea-graphe { max-height: 40vh; } }
.ea-grille { stroke: var(--filet-doux); stroke-width: 1; }
.ea-grille.fine { stroke: rgba(242, 240, 235, .035); }                                   /* magnétisme : la grille de 0,05 */
.ea-carre-unite { fill: none; stroke: var(--filet); stroke-width: 1; }
.ea-lineaire { stroke: var(--filet); stroke-width: 1; stroke-dasharray: 4 4; }            /* linéaire, pour comparer */
.ea-courbe { fill: none; stroke: var(--papier); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ea-bras { stroke: var(--peche); stroke-width: 1.5; }
.ea-poignee { fill: var(--noir); stroke: var(--peche); stroke-width: 2.5; cursor: grab; }
.ea-poignee:active { cursor: grabbing; }
.ea-temps { stroke: var(--orange); stroke-width: 1; opacity: .5; }
.ea-point { fill: var(--orange); }

/* La piste : le carré qui suit la courbe ; le carré pâle avance en linéaire (seulement pour le déplacement) */
.ea-piste { position: relative; height: 40px; }
/* L'espacement : la position de chaque image sur la piste (les traits se resserrent là où le mouvement ralentit) */
.ea-espacement { position: absolute; left: 16px; right: 16px; bottom: 0; height: 6px; }
.ea-espacement i { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--filet); translate: -.5px 0; }
.ea-piste:not([data-demo="position"]) .ea-espacement { display: none; }
.ea-carre { position: absolute; left: 0; top: 4px; width: 32px; height: 32px; border-radius: 9px; background: var(--orange); will-change: transform; }
.ea-carre.fantome { background: none; box-shadow: inset 0 0 0 1.5px var(--filet); }
.ea-piste:not([data-demo="position"]) .fantome { display: none; }
.ea-lecture { display: flex; align-items: center; gap: 12px; }
.ea-nom { font: var(--valeur); letter-spacing: .06em; color: var(--texte2); }

/* La timeline : ◀, la barre (une graduation par image, plus marquée toutes les 5), ▶ ; la tête de lecture orange */
.ea-timeline { display: flex; align-items: center; gap: 8px; }
.ea-pas { width: 36px; height: 36px; }
.ea-barre { position: relative; flex: 1; height: 36px; cursor: ew-resize; touch-action: none; outline: none; }
.ea-barre::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%; border-radius: 2px; background: var(--filet); }
.ea-barre:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.ea-graduations { position: absolute; inset: 0; pointer-events: none; }
.ea-graduations i { position: absolute; top: 50%; width: 1px; height: 6px; translate: -.5px -50%; background: var(--filet); }
.ea-graduations i.fort { height: 12px; background: rgba(242, 240, 235, .35); }
.ea-barre [data-tete] { position: absolute; top: 50%; width: 4px; height: 26px; border-radius: 2px; background: var(--orange); translate: -50% -50%; pointer-events: none;
  transition: scale .2s var(--courbe); }
.ea-barre.actif [data-tete] { scale: 1.15 1.1; }
.ea-info { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; font-variant-numeric: tabular-nums; }
.ea-info span { white-space: nowrap; }
.ea-durees { margin-top: var(--libelle); }

/* Réglages */
.ea .inactif { opacity: .35; pointer-events: none; }                                     /* Linear et Sur mesure : pas de sens */
.ea-codes { display: flex; flex-direction: column; }
.ea-code { align-items: center; }
.ea-code .nom { flex: none; width: 110px; }
.ea-code .val { margin-left: 0; flex: 1; min-width: 0; color: var(--papier); white-space: normal; overflow-wrap: anywhere; }
.ea-code .note { display: grid; justify-items: end; }
.ea-code svg { width: 15px; height: 15px; fill: none; stroke: var(--texte2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ea-code:hover svg { stroke: var(--peche); }
.ea-code.inactif { opacity: 1; pointer-events: none; }
.ea-code.inactif .val { color: var(--texte2); }
@media (max-width: 380px) { .ea-code .nom { width: 84px; } }
