/* L'écran signature de la méthode Paddock, dessiné d'après l'application (07/11 ; Yann : « l'UX dans le cadre, elle est
   nulle… regarde ce qu'on a fait dans Anthelixa », « la vue noire », puis « plus sexy, plus d'agents »). La coque du thème
   Sombre de l'application (tokens.css, .dark) : la barre latérale à libellés (« Votre entreprise by Anthelixa », Nouvelle
   conversation, Le matin, Validations et son compteur…, puis sa section « Workers », chacun avec sa marque), le titre, la
   table dans sa carte, les pastilles d'état teintées, la marque d'un worker (la tuile teintée au liseré de l'espace,
   l'orbite qui tourne quand il travaille, l'anneau quand il attend) et l'attente (le logo FIXE, l'anneau qui tourne
   autour). Le liseré est la couleur de l'espace, l'orange RAL 2000 par défaut ; les marques des workers prennent les
   couleurs de poste du site (CLAUDE.md). Les boutons au style de l'application : la carte bordée d'encre, sans aplat.
   Chargé sur methode.html et sur l'accueil (le réglage des lots), et sur workers/index.html, avec conversation.css (le
   cas d'école). reglage.js ne pose que data-etat ; tout le mouvement est ici. L'état final est écrit dans le HTML ; en
   prefers-reduced-motion, les états changent sans transition et rien ne tourne. */

/* ------------------------------------------------------------------ les couleurs de l'application (thème Sombre) */
.reglage-app {
  --a-fond: hsl(240 11% 6%); --a-carte: hsl(240 11% 11%); --a-barre: hsl(240 11% 8%); --a-actif: hsl(240 9% 17%);
  --a-filet: hsl(240 7% 16%);
  --a-encre: hsl(240 11% 96%); --a-encre-2: hsl(240 10% 88%); --a-encre-4: hsl(240 8% 64%); --a-encre-5: hsl(240 7% 58%);
  --a-ok: hsl(152 52% 55%); --a-alerte: hsl(34 92% 60%); --a-info: hsl(210 88% 66%);
  --a-espace: #ED760E;               /* le liseré de l'espace : l'orange RAL 2000, la couleur par défaut */
  --a-rare: hsl(20 100% 56%);        /* l'accent rare : l'anneau d'un worker qui attend */
  --a-chrome: hsl(240 9% 12%); --a-onglet: hsl(240 7% 66%);
  --a-tuile: hsl(240 8% 30% / .45); --a-trait: hsl(240 8% 82%);
  --reglage-delai: 1.25s;
  container-type: inline-size; overflow: hidden; border: 1px solid hsl(240 7% 20%); border-radius: 14px;
  background: var(--a-chrome); color: var(--a-encre); font-family: var(--texte); font-size: 13px; line-height: 1.35;
  text-align: left; box-shadow: 0 40px 70px -40px rgba(16, 16, 20, .55);
}
.reglage-app svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reglage-app p { margin: 0; }

/* ------------------------------------------------------------------ la barre d'onglets du navigateur */
.reglage-app__onglets { display: flex; align-items: flex-end; gap: 2px; padding: 7px 10px 0; overflow: hidden; }
.reglage-onglet { flex: 0 1 170px; min-width: 0; max-width: 190px; overflow: hidden; white-space: nowrap; }
.reglage-onglet--nous { flex: none; }
.reglage-onglet > span { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px 9px 0 0; color: var(--a-onglet); font-size: 12px; }
.reglage-onglet b { overflow: hidden; min-width: 0; font-weight: 400; text-overflow: ellipsis; }
.reglage-onglet > span::after { content: "×"; margin-left: auto; padding-left: 4px; color: var(--a-onglet); }
.reglage-onglet--nous > span { background: var(--a-fond); color: var(--a-encre); }
.reglage-onglet--nous b { font-weight: 500; }
.reglage-onglet--nous > span::after { content: none; }
.reglage-ico { width: 13px; height: 13px; stroke-width: 1.4; }
/* le logo d'Anthelixa, dessiné dans l'écran (criteres.py admet son orange : .logo-anthelixa) */
.reglage-logo { width: 22px; height: 13px; stroke-width: 9; }
.reglage-logo__i { stroke: #6D5BD0; }
.reglage-logo__o { stroke: #FF6A1F; }
.reglage-logo__a { stroke: currentColor; }

/* ------------------------------------------------------------------ la fenêtre : la barre latérale, puis le contenu */
.reglage-app__fenetre { display: flex; background: var(--a-fond); }
.reglage-barre { display: flex; flex: none; flex-direction: column; gap: 1px; width: 170px; padding: 12px 8px; border-right: 1px solid var(--a-filet);
  background: var(--a-barre); color: var(--a-encre-4); font-size: 12px; }
.reglage-barre__espace { display: flex; flex-direction: column; padding: 2px 6px 10px; color: var(--a-encre); font-family: var(--display); font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.reglage-barre__espace span { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-family: var(--texte); font-size: 9.5px; font-weight: 500; }
.reglage-barre__espace .reglage-logo { width: 15px; height: 9px; }
.reglage-barre__nouvelle { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--a-encre) 42%, transparent);
  border-radius: 8px; background: color-mix(in srgb, var(--a-carte) 88%, transparent); color: var(--a-encre); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.reglage-barre__nouvelle svg { width: 13px; height: 13px; stroke-width: 2.2; }
.reglage-barre__lien { position: relative; display: flex; align-items: center; gap: 9px; height: 27px; padding: 0 8px; border-radius: 7px; white-space: nowrap; }
.reglage-barre__lien svg { width: 15px; height: 15px; stroke-width: 1.7; }
.reglage-barre__lien--actif { background: var(--a-actif); color: var(--a-encre); font-weight: 500; }
.reglage-barre__compte { display: grid; place-items: center; min-width: 17px; height: 17px; margin-left: auto; padding: 0 5px; border-radius: 9px;
  background: color-mix(in srgb, var(--a-encre) 12%, transparent); color: var(--a-encre); font-size: 10.5px; font-weight: 500;
  opacity: 0; scale: .5; transition: opacity .35s var(--reglage-delai), scale .45s var(--reglage-delai) cubic-bezier(.3, 1.6, .5, 1); }
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-barre__compte { opacity: 1; scale: 1; }
/* la section « Workers » de la barre (l'application : index.html, #sbAgents) : chaque worker, sa marque, son état */
.reglage-barre__tete { margin: 10px 0 2px; padding: 4px 8px 3px; border-top: 1px solid var(--a-filet); font-size: 9.5px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--a-encre-5); }
.reglage-barre__worker { display: flex; align-items: center; gap: 8px; height: 27px; padding: 0 6px; border-radius: 7px; color: var(--a-encre-2); white-space: nowrap; }
.reglage-barre__worker .reglage-marque { width: 19px; height: 19px; }
.reglage-barre__etat { margin-left: auto; font-size: 10px; color: var(--a-encre-5); }

.reglage-app__contenu { flex: 1; min-width: 0; padding: 16px 18px 18px; }
.reglage-app__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.reglage-app__titre { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--a-encre); }
.reglage-app__sous { margin-top: 3px; font-size: 12.5px; color: var(--a-encre-5); }

/* le worker de la vue : sa marque, son nom, son état */
.reglage-worker { display: flex; flex: none; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--a-encre); }
.reglage-worker > span { display: flex; flex-direction: column; }
.reglage-worker small { display: grid; font-size: 11px; font-weight: 400; color: var(--a-encre-5); }
.reglage-worker small > span { grid-area: 1 / 1; transition: opacity .35s var(--reglage-delai); }
.reglage-worker__attend { opacity: 0; }
.reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-worker__repos { opacity: 0; }
.reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-worker__attend { opacity: 1; }

/* ------------------------------------------------------------------ la marque d'un worker (agents.js, agentFace) : la tuile teintée au
   liseré de l'espace, l'orbite et ses nœuds, le cœur ; l'anneau quand il attend. Les teintes : les couleurs de poste. */
.reglage-marque { width: 32px; height: 32px; color: var(--a-trait); }
.reglage-marque__tuile { fill: var(--a-tuile); stroke: var(--a-espace); stroke-width: 1px; vector-effect: non-scaling-stroke; transition: stroke .35s var(--reglage-delai); }
.reglage-marque__orbite path { stroke-width: 2.1; }
.reglage-marque__orbite circle, .reglage-marque__coeur { fill: currentColor; stroke: none; }
.reglage-marque__orbite, .reglage-marque__coeur { transform-origin: 23px 23px; }
.reglage-marque__anneau { stroke: var(--a-rare); stroke-width: 2.2; opacity: 0; transition: opacity .35s var(--reglage-delai); }
.reglage-marque--attend .reglage-marque__anneau { opacity: 1; }
.reglage-marque--attend .reglage-marque__tuile { stroke: transparent; }
.reglage-marque--chantier { --a-tuile: rgba(136, 100, 28, .42); --a-trait: #D4A552; }      /* Suivi de chantier, Ocre */
.reglage-marque--courrier { --a-tuile: rgba(94, 108, 122, .45); --a-trait: #92A4B2; }      /* Courrier, Ardoise */
.reglage-marque--recherche { --a-tuile: rgba(18, 57, 109, .55); --a-trait: #8EBAF7; }      /* Recherche, Encre */
.reglage-marque--facturation { --a-tuile: rgba(4, 71, 48, .55); --a-trait: #58B78E; }      /* Facturation, Sapin */
.reglage-marque--seo { --a-tuile: rgba(0, 95, 102, .5); --a-trait: #68CDD3; }              /* SEO, Canard */
/* le worker de la vue attend vos décisions dès que le bouton Valider est sur la ligne */
.reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-marque--vue .reglage-marque__anneau { opacity: 1; }
.reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-marque--vue .reglage-marque__tuile { stroke: transparent; }

/* le matin, à la mise en autonomie : une carte au liseré de l'espace (comme les cartes de l'application) */
.reglage-app__matin { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0;
  transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), opacity .6s, margin-top .6s; }
.reglage-app__matin > p { overflow: hidden; }
.reglage-app__matin > p > span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--a-espace); border-radius: 10px;
  background: color-mix(in srgb, var(--a-espace) 7%, var(--a-carte)); color: var(--a-encre-2); font-size: 12.5px; }
.reglage-app__matin b { font-weight: 500; color: var(--a-encre); }
.reglage-app__matin svg { width: 17px; height: 17px; color: var(--a-encre); }

/* ------------------------------------------------------------------ la table, dans sa carte */
.reglage-carte { position: relative; margin-top: 14px; padding: 0 12px; border: 1px solid var(--a-filet); border-radius: 10px; background: var(--a-carte); }
.reglage-table { --h: 44px; --c-lot: 0%; --w-lot: 32%; --c-etape: 32%; --w-etape: 31%; --c-devis: 63%; --w-devis: 19%; --c-reste: 82%; --w-reste: 18%;
  position: relative; height: calc(32px + 4 * var(--h)); }
.reglage-ligne { position: absolute; left: 0; right: 0; height: var(--h); border-top: 1px solid var(--a-filet);
  transition: top .7s var(--reglage-delai) cubic-bezier(.2, .7, .2, 1); }
.reglage-ligne--tete { top: 0; height: 32px; border-top: 0; }
.reglage-ligne--l1 { top: 32px; }
.reglage-ligne--l2 { top: calc(32px + var(--h)); }
.reglage-ligne--l3 { top: calc(32px + 2 * var(--h)); }
.reglage-ligne--l4 { top: calc(32px + 3 * var(--h)); }
/* une ligne qui attend une décision : le liseré d'encre de la carte d'un doute, au bord de la carte */
.reglage-ligne::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 2px 2px 0; background: var(--a-encre);
  opacity: 0; transition: opacity .4s var(--reglage-delai); }
.reglage-cell { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-right: 10px;
  transition: left .7s var(--reglage-delai) cubic-bezier(.2, .7, .2, 1), width .7s var(--reglage-delai) cubic-bezier(.2, .7, .2, 1), opacity .4s var(--reglage-delai), color .4s var(--reglage-delai); }
.reglage-ligne--tete .reglage-cell { padding-right: 4px; font-size: 11.5px; font-weight: 500; color: var(--a-encre-5); white-space: nowrap; }
.reglage-cell--lot { left: var(--c-lot); width: var(--w-lot); }
.reglage-cell--lot b { font-weight: 500; color: var(--a-encre); white-space: nowrap; }
.reglage-cell--etape { left: var(--c-etape); width: var(--w-etape); }
.reglage-cell--etape small { font-family: var(--mono); font-size: 11px; color: var(--a-alerte); }
.reglage-cell--devis { left: var(--c-devis); width: var(--w-devis); font-family: var(--mono); font-size: 12px; color: var(--a-encre-4); }
.reglage-cell--reste { left: var(--c-reste); width: var(--w-reste); font-family: var(--mono); font-size: 12px; color: var(--a-encre-5); }
.reglage-ligne--tete .reglage-cell--devis, .reglage-ligne--tete .reglage-cell--reste { font-family: var(--texte); }
.reglage-court { display: none; }
/* les pastilles d'état : la couleur du statut, sur sa teinte à 15 % */
.reglage-pastille { --p: var(--a-encre-4); display: inline-block; padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--p) 15%, transparent);
  color: var(--p); font-size: 11px; font-weight: 500; white-space: nowrap; }
.reglage-pastille--ok { --p: var(--a-ok); }
.reglage-pastille--alerte { --p: var(--a-alerte); }
.reglage-pastille--info { --p: var(--a-info); }
.reglage-decider { --p: var(--a-alerte); display: block; height: 0; overflow: hidden; padding: 0 6px; border-radius: 5px; background: color-mix(in srgb, var(--p) 15%, transparent);
  color: var(--p); font-size: 10.5px; font-weight: 500; line-height: 16px; opacity: 0; transition: opacity .4s var(--reglage-delai), height .4s var(--reglage-delai); }
/* Valider : le bouton fort de l'application, la carte bordée d'encre, sans aplat */
.reglage-valider { position: absolute; top: 50%; right: 0; translate: 0 -50%; padding: 4px 11px; border: 1px solid color-mix(in srgb, var(--a-encre) 42%, transparent);
  border-radius: 7px; background: color-mix(in srgb, var(--a-carte) 88%, transparent); color: var(--a-encre); font-size: 12px; font-weight: 500;
  opacity: 0; scale: .8; transition: opacity .4s calc(var(--reglage-delai) + .1s), scale .45s calc(var(--reglage-delai) + .1s) cubic-bezier(.3, 1.6, .5, 1); }

/* réglage 1 : le reste à payer passe juste après le lot */
.reglage-app:is([data-etat="1"], [data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-table { --c-reste: 32%; --w-reste: 18%; --c-etape: 50%; --w-etape: 31%; --c-devis: 81%; --w-devis: 19%; }
.reglage-app:is([data-etat="1"], [data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-cell--reste { font-weight: 500; color: var(--a-encre); }
/* réglage 2 : ce qui attend une décision remonte, et entre dans les Validations */
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-ligne--l2 { top: 32px; }
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-ligne--l4 { top: calc(32px + var(--h)); }
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-ligne--l1 { top: calc(32px + 2 * var(--h)); }
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-ligne--l3 { top: calc(32px + 3 * var(--h)); }
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-ligne--decision::before { opacity: 1; }
.reglage-app:is([data-etat="2"], [data-etat="3"], [data-etat="4"]) .reglage-ligne--decision .reglage-decider { height: 16px; opacity: 1; }
/* réglage 3 : le devis retenu s'efface pour laisser la place au bouton ; on valide sans ouvrir le dossier */
.reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-cell--devis { opacity: 0; }
.reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-valider { opacity: 1; scale: 1; }

/* ------------------------------------------------------------------ la remarque épinglée : la personne (un rond, ses initiales) se pose
   sur ce qui la gêne, puis la remarque se coche quand la vue a changé */
.reglage-signal { position: absolute; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--a-encre);
  border-radius: 50%; background: var(--a-actif); font-size: 10.5px; font-weight: 500; color: var(--a-encre); opacity: 0; pointer-events: none;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55); transition: left .7s var(--reglage-delai) cubic-bezier(.2, .7, .2, 1); }
.reglage-signal > * { grid-area: 1 / 1; }
.reglage-signal svg { width: 14px; height: 14px; stroke: var(--a-carte); stroke-width: 2.6; opacity: 0; }
.reglage-signal--1 { top: 3px; left: calc(var(--c-reste) - 30px); }
.reglage-signal--2 { top: calc(32px + var(--h) / 2 - 13px); left: calc(var(--c-reste) - 30px); }
.reglage-signal--3 { top: calc(32px + var(--h) / 2 - 13px); right: 78px; }
@keyframes reglage-epingle { 0% { opacity: 0; scale: .5; } 10% { opacity: 1; scale: 1; } 90% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
@keyframes reglage-coche { 0%, 62% { background-color: var(--a-actif); } 70%, 100% { background-color: var(--a-encre); } }
@keyframes reglage-initiales { 0%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes reglage-coche-svg { 0%, 62% { opacity: 0; } 70%, 100% { opacity: 1; } }

/* ------------------------------------------------------------------ l'attente de l'application (attente-animation.js) : le logo FIXE,
   l'anneau qui tourne autour, pendant que la vue se met à jour (une fois par réglage) */
.reglage-attente { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 9px; border-radius: 10px;
  background: color-mix(in srgb, var(--a-carte) 74%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none; }
.reglage-attente__logo { position: relative; display: grid; place-items: center; width: 54px; height: 54px; }
.reglage-attente__logo svg { width: 32px; height: 32px; border-radius: 7px; stroke: none; }
.reglage-attente__anneau { position: absolute; inset: 0; border: 3px solid color-mix(in srgb, var(--a-espace) 22%, transparent); border-top-color: var(--a-espace); border-radius: 50%; }
.reglage-attente__texte { font-size: 12px; color: var(--a-encre-2); }
@keyframes reglage-attente-1 { 0% { opacity: 0; visibility: visible; } 14% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes reglage-attente-2 { 0% { opacity: 0; visibility: visible; } 14% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes reglage-attente-3 { 0% { opacity: 0; visibility: visible; } 14% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes reglage-tourne-1 { to { rotate: 360deg; } }
@keyframes reglage-tourne-2 { to { rotate: 360deg; } }
@keyframes reglage-tourne-3 { to { rotate: 360deg; } }
@keyframes reglage-respire { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes reglage-orbite { to { rotate: 360deg; } }

@media (prefers-reduced-motion: no-preference) {
  .reglage-app[data-etat="1"] .reglage-attente { animation: reglage-attente-1 1.5s .15s ease both; }
  .reglage-app[data-etat="2"] .reglage-attente { animation: reglage-attente-2 1.5s .15s ease both; }
  .reglage-app[data-etat="3"] .reglage-attente { animation: reglage-attente-3 1.5s .15s ease both; }
  .reglage-app[data-etat="1"] .reglage-attente__anneau { animation: reglage-tourne-1 .9s linear 2; }
  .reglage-app[data-etat="2"] .reglage-attente__anneau { animation: reglage-tourne-2 .9s linear 2; }
  .reglage-app[data-etat="3"] .reglage-attente__anneau { animation: reglage-tourne-3 .9s linear 2; }
  .reglage-app[data-etat="1"] .reglage-signal--1,
  .reglage-app[data-etat="2"] .reglage-signal--2,
  .reglage-app[data-etat="3"] .reglage-signal--3 { animation: reglage-epingle 3s ease-out both, reglage-coche 3s both; }
  .reglage-app[data-etat="1"] .reglage-signal--1 > span, .reglage-app[data-etat="2"] .reglage-signal--2 > span,
  .reglage-app[data-etat="3"] .reglage-signal--3 > span { animation: reglage-initiales 3s both; }
  .reglage-app[data-etat="1"] .reglage-signal--1 svg, .reglage-app[data-etat="2"] .reglage-signal--2 svg,
  .reglage-app[data-etat="3"] .reglage-signal--3 svg { animation: reglage-coche-svg 3s both; }
  /* un worker qui travaille : son orbite tourne ; un worker qui attend : son cœur respire (app.css, agMarkRot, agMarkBreathe) */
  .reglage-marque--travaille .reglage-marque__orbite { animation: reglage-orbite 5s linear infinite; }
  .reglage-marque--attend .reglage-marque__coeur,
  .reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-marque--vue .reglage-marque__coeur { animation: reglage-respire 3.4s ease-in-out infinite; }
}

/* ------------------------------------------------------------------ la mise en autonomie : les anciens onglets se ferment, le matin s'affiche */
.reglage-onglet--ancien { transition: max-width .6s cubic-bezier(.2, .7, .2, 1), opacity .4s, flex-basis .6s; }
.reglage-app[data-etat="4"] .reglage-onglet--ancien { max-width: 0; flex-basis: 0; opacity: 0; }
.reglage-app[data-etat="4"] .reglage-onglet--ancien:nth-child(2) { transition-delay: .25s; }
.reglage-app[data-etat="4"] .reglage-onglet--ancien:nth-child(3) { transition-delay: .5s; }
.reglage-app[data-etat="4"] .reglage-onglet--ancien:nth-child(4) { transition-delay: .75s; }
.reglage-app[data-etat="4"] .reglage-onglet--ancien:nth-child(5) { transition-delay: 1s; }
.reglage-app[data-etat="4"] .reglage-app__matin { grid-template-rows: 1fr; margin-top: 12px; opacity: 1; transition-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .reglage-app *, .reglage-app *::before, .reglage-app *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ une colonne moins large : la barre repliée, comme dans l'application
   (les icônes et les marques seules, le compteur des Validations en pastille sur la sienne) */
@container (max-width: 659px) {
  .reglage-barre { width: 50px; padding: 12px 7px; }
  .reglage-barre__espace, .reglage-barre__mot, .reglage-barre__etat { display: none; }
  .reglage-barre__nouvelle { justify-content: center; height: 34px; padding: 0; }
  .reglage-barre__lien { justify-content: center; height: 32px; padding: 0; }
  .reglage-barre__compte { position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 9.5px;
    background: var(--a-encre); color: var(--a-fond); }
  .reglage-barre__tete { height: 0; margin: 8px 4px 6px; padding: 0; overflow: hidden; }
  .reglage-barre__worker { justify-content: center; height: 32px; padding: 0; }
  .reglage-barre__worker .reglage-marque { width: 22px; height: 22px; }
}
/* ------------------------------------------------------------------ sur téléphone : sans barre ; le lot et son étape sur deux niveaux */
@container (max-width: 480px) {
  .reglage-barre { display: none; }
  .reglage-app__onglets { padding: 6px 8px 0; }
  .reglage-onglet { flex: 0 0 auto; }
  .reglage-onglet--ancien b, .reglage-onglet--ancien > span::after { display: none; }
  .reglage-onglet--ancien > span { padding: 7px 8px; }
  .reglage-app__contenu { padding: 12px; }
  .reglage-app__titre { font-size: 16.5px; }
  .reglage-app__sous { font-size: 12px; }
  .reglage-worker > span { display: none; }
  .reglage-worker .reglage-marque { width: 30px; height: 30px; }
  .reglage-carte { margin-top: 10px; padding: 0 10px; }
  .reglage-ligne::before { left: -10px; }
  .reglage-table { --h: 50px; --w-lot: 58%; --c-etape: 0%; --w-etape: 58%; --c-devis: 58%; --w-devis: 21%; --c-reste: 79%; --w-reste: 21%; }
  .reglage-app:is([data-etat="1"], [data-etat="2"]) .reglage-table { --c-reste: 58%; --w-reste: 21%; --c-devis: 79%; --w-devis: 21%; --c-etape: 0%; --w-etape: 58%; }
  .reglage-app:is([data-etat="3"], [data-etat="4"]) .reglage-table { --w-lot: 58%; --c-reste: 58%; --w-reste: 21%; --c-devis: 79%; --w-devis: 21%; --c-etape: 0%; --w-etape: 58%; }
  .reglage-cell--lot { justify-content: flex-start; padding-top: 8px; }
  .reglage-cell--lot b { font-size: 13px; }
  .reglage-cell--etape { top: 28px; bottom: auto; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; white-space: nowrap; overflow: hidden; }
  .reglage-pastille { padding: 0 6px; }
  .reglage-ligne--tete .reglage-cell--etape { display: none; }
  .reglage-ligne--tete .reglage-cell--lot { padding-top: 0; justify-content: center; }
  .reglage-ligne--tete .reglage-long { display: none; }
  .reglage-ligne--tete .reglage-court { display: inline; }
  .reglage-decider { display: none; }
  .reglage-cell--devis, .reglage-cell--reste { font-size: 11.5px; }
  .reglage-valider { padding: 3px 9px; font-size: 11.5px; }
  .reglage-signal--3 { right: 64px; }
  .reglage-app__matin > p > span { padding: 8px 10px; font-size: 12px; }
}

/* ------------------------------------------------------------------ sous l'écran : le compteur des réglages, puis la légende */
.reglage-compteur { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--gris-3); }
.reglage-compteur__n::after { content: "3 réglages"; }
.reglage-app[data-etat="0"] ~ .reglage-compteur .reglage-compteur__n::after { content: "telle que la maquette"; }
.reglage-app[data-etat="1"] ~ .reglage-compteur .reglage-compteur__n::after { content: "1 réglage"; }
.reglage-app[data-etat="2"] ~ .reglage-compteur .reglage-compteur__n::after { content: "2 réglages"; }
:lang(en) .reglage-compteur__n::after { content: "3 tunings"; }
:lang(en) .reglage-app[data-etat="0"] ~ .reglage-compteur .reglage-compteur__n::after { content: "as in the mock-up"; }
:lang(en) .reglage-app[data-etat="1"] ~ .reglage-compteur .reglage-compteur__n::after { content: "1 tuning"; }
:lang(en) .reglage-app[data-etat="2"] ~ .reglage-compteur .reglage-compteur__n::after { content: "2 tunings"; }
.reglage-legende { margin-top: 4px; font-family: var(--mono); font-size: 13px; color: var(--gris-3); }

/* une remarque de l'arrêt au stand, dans le récit : la phrase, signée du métier seul (un exemple, pas un témoignage) */
.reglage-quand { margin-bottom: 14px; font-size: 15px; font-weight: 500; color: var(--gris-3); }
.reglage-remarque { margin: 0; }
.reglage-remarque p { font-family: var(--display); font-weight: 600; font-size: var(--taille-l); line-height: var(--interligne-l); letter-spacing: var(--approche-l); text-wrap: balance; }
.reglage-remarque cite { display: block; margin-top: 10px; font-style: normal; font-size: 16px; color: var(--gris-3); }
.reglage-fait { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 16px; }
.reglage-fait svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--nuit); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* la commande Pause, Reprendre, Rejouer (l'accueil, le cas d'école des workers) */
.reglage-commande[hidden] { display: none; }
