/* Le stand de la méthode Paddock (08/11 ; Yann : « A · Le stand » ; le socle-moteur le 09/11). ÉCRITE PAR
   outils/illustrations/stand.py : ne pas la modifier à la main. La scène autour de l'écran signature : la caméra
   (stand__camera) porte la coque (les onglets et l'écran, la vue du client) et le décor : le socle-moteur continu au
   liseré fixe, le plateau de nuit, les personnes (CD, MR), le worker Suivi de chantier (Ocre, sa tuile) ; puis les bulles
   des remarques et le jeton d'Anthelixa qui vient régler la vue. Le socle ne bouge jamais ; aux arrêts 1 à 3, la coque se
   soulève puis se repose ; sur la Méthode, à la mise en autonomie, la caméra recule et montre deux autres clients
   fictifs sur le même socle, le même worker dans une autre tenue. La mécanique du tableau, des épingles, du matin, des
   onglets et du compteur reste dans reglage.css (classe reglage-app), et reglage.js pose data-etat. Chargée après
   reglage.css. Sans JavaScript et en mouvement réduit : l'état 4, fixe (sur la Méthode, le recul et les trois plateaux). */
.stand.reglage-app { --stand-vive: #D4A552; --stand-fonce: #88641C; --stand-clair: #FCEED7; --stand-moteur: #ED760E;
  position: relative; padding: 14px 14px 0; border: 0; border-radius: 18px; background: none; box-shadow: none; }
/* 09/11, Yann : « toutes les animations directement sur le fond blanc, en fondu, ça serait plus pro » : plus de cadre de
   nuit ; le plateau devient une dalle claire, ses bords se fondent dans la page ; l'écran des lots reste un écran (sombre),
   le socle-moteur garde son corps sombre et son liseré orange */
/* la caméra : une unité du décor (--u, 1/1000 de la largeur bord à bord) pour placer les voisins sur le même socle */
.stand__camera { --u: calc((100cqw + 28px) / 1000); position: relative; transform-origin: 50% 60%; transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.stand__coque { position: relative; z-index: 1; }
/* les anciens onglets : des pastilles de verre au-dessus de l'écran ; le nôtre, liseré de lumière */
.stand .reglage-app__onglets { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 10px; padding: 0; overflow: hidden; background: none; border: 0; }
.stand .reglage-onglet { flex: 0 1 auto; min-width: 0; margin: 0; border: 1px solid rgba(16, 16, 20, .14); border-radius: 999px; background: rgba(255, 255, 255, .7); }
.stand .reglage-onglet > span { display: flex; align-items: center; gap: 6px; padding: 5px 11px; overflow: hidden; color: #5C5D66; font-size: 11.5px; white-space: nowrap; }
.stand .reglage-onglet > span::after { display: none; }
.stand .reglage-onglet b { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.stand .reglage-onglet svg { width: 14px; height: 14px; }
.stand .reglage-onglet--nous { border-color: var(--nuit, #101014); background: #FFFFFF; box-shadow: 0 6px 14px -8px rgba(16, 16, 20, .35); }
.stand .reglage-onglet--nous > span { background: none; color: var(--nuit, #101014); }
/* l'écran : du verre sombre, un liseré à la couleur du worker, sans la barre de l'application */
.stand .reglage-app__fenetre { display: block; position: relative; z-index: 1; border: 1px solid rgba(245, 245, 247, .12); border-radius: 14px 14px 6px 6px;
  background: rgba(18, 18, 24, .97); box-shadow: 0 26px 46px -24px rgba(16, 16, 20, .5); }
.stand .reglage-app__fenetre::before { content: ""; position: absolute; top: -1px; left: 8%; right: 8%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--stand-vive), transparent); box-shadow: 0 0 14px var(--stand-vive); }
.stand .reglage-app__contenu { padding: 16px 18px 18px; }
.stand__tuile { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--stand-fonce);
  box-shadow: inset 0 0 0 1px var(--stand-vive); color: var(--stand-clair); }
.stand__tuile .picto { width: 18px; height: 18px; stroke-width: 1.7; }
/* le décor : le socle-moteur juste sous la coque, puis les plateaux, les personnes, le worker */
.stand__decor { position: relative; z-index: 2; display: block; width: calc(100% + 28px); height: auto; margin: 0 -14px; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.stand__moteur-dessus { fill: #26262F; }
.stand__moteur-face { fill: url(#stand-moteur); }
.stand__moteur-lueur { fill: var(--stand-moteur); opacity: .1; }
.stand__moteur-lisere { fill: none; stroke: var(--stand-moteur); stroke-width: 1.6; filter: drop-shadow(0 0 3px var(--stand-moteur)); }
.stand__dalle { fill: #ECEAE3; }
.stand__dalle-lueur { fill: url(#stand-lueur); }
.stand__grille { fill: none; stroke: rgba(16, 16, 20, .07); stroke-width: 1; }
.stand__face { fill: url(#stand-face); }
.stand__lisere { fill: none; stroke: rgba(136, 100, 28, .45); stroke-width: 1.4; }
.stand__socle { fill: rgba(16, 16, 20, .06); stroke: rgba(16, 16, 20, .22); stroke-width: 1.2; }
.stand__socle--worker { stroke: var(--stand-vive); }
.stand__personne-corps { fill: #4A4842; }
.stand__personne-tete { fill: #101014; }
.stand__initiales { fill: #F5F4EF; font: 600 11px var(--texte); text-anchor: middle; }
.stand__jambe { fill: #2E2E38; }
.stand__buste { fill: color-mix(in srgb, var(--stand-vive) 78%, var(--stand-fonce)); }
/* la tête du worker : la tuile Ocre de son poste, la même chez tous les clients */
.stand__tete { fill: #88641C; stroke: #D4A552; stroke-width: 1.2; }
.stand__picto { color: #FCEED7; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* la bulle de la remarque, au-dessus de la personne qui parle ; « Anthelixa règle la vue », au-dessus du jeton */
.stand__bulle { position: absolute; z-index: 3; left: 24%; bottom: 18px; max-width: min(52%, 360px); margin: 0; padding: 7px 12px 8px;
  border-radius: 12px 12px 12px 3px; background: #FFFFFF; color: #101014; font-size: 13px; line-height: 1.35;
  box-shadow: 0 0 0 1px rgba(16, 16, 20, .1), 0 14px 26px -14px rgba(16, 16, 20, .4); opacity: 0; translate: 0 8px; pointer-events: none;
  transition: opacity .35s, translate .35s cubic-bezier(.2, .7, .2, 1); }
.stand__bulle b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: #5C5D66; }
.stand__bulle--2 { left: 27%; }
.stand[data-etat="1"] .stand__bulle--1, .stand[data-etat="2"] .stand__bulle--2, .stand[data-etat="3"] .stand__bulle--3 { opacity: 1; translate: 0 0; }
.stand__nous { position: absolute; z-index: 3; right: 15%; bottom: 20px; margin: 0; padding: 3px 10px; border: 1px solid rgba(245, 245, 247, .25);
  border-radius: 999px; background: rgba(16, 16, 20, .8); color: #E4E4EA; font-size: 11.5px; white-space: nowrap; opacity: 0; pointer-events: none; }
/* le jeton d'Anthelixa : il vole du plateau jusqu'à ce qui change, une gerbe de lumière, puis il repart */
.stand__jeton { position: absolute; z-index: 4; left: 50%; top: calc(100% - 40px); display: grid; place-items: center; width: 34px; height: 34px;
  margin: -17px 0 0 -17px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(16, 16, 20, .12), 0 10px 22px -6px rgba(16, 16, 20, .35);
  opacity: 0; pointer-events: none; }
.stand__jeton .logo-anthelixa { width: 22px; height: 22px; }
.stand__etincelles { position: absolute; inset: 0; }
.stand__etincelles i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--stand-vive);
  box-shadow: 0 0 8px var(--stand-vive); opacity: 0; }
/* le compteur des réglages, sous le stand (reglage.css le tient pour .reglage-app) */
@media (prefers-reduced-motion: no-preference) {
  .stand[data-etat="1"] .stand__jeton { animation: stand-vol-1 1.7s .45s cubic-bezier(.45, .05, .25, 1) both; }
  .stand[data-etat="2"] .stand__jeton { animation: stand-vol-2 1.7s .45s cubic-bezier(.45, .05, .25, 1) both; }
  .stand[data-etat="3"] .stand__jeton { animation: stand-vol-3 1.7s .45s cubic-bezier(.45, .05, .25, 1) both; }
  .stand:is([data-etat="1"], [data-etat="2"], [data-etat="3"]) .stand__nous { animation: stand-nous 1.7s .45s ease both; }
  .stand[data-etat="1"] .stand__etincelles i, .stand[data-etat="2"] .stand__etincelles i, .stand[data-etat="3"] .stand__etincelles i { animation: stand-etincelle .7s 1.2s ease-out both; }
  .stand__etincelles i:nth-child(1) { --dx: 26px; --dy: -14px; }
  .stand__etincelles i:nth-child(2) { --dx: -24px; --dy: -18px; }
  .stand__etincelles i:nth-child(3) { --dx: 30px; --dy: 12px; }
  .stand__etincelles i:nth-child(4) { --dx: -28px; --dy: 14px; }
  .stand__etincelles i:nth-child(5) { --dx: 4px; --dy: -30px; }
  .stand__etincelles i:nth-child(6) { --dx: -6px; --dy: 28px; }
  .stand__worker-corps { animation: stand-souffle 2.6s ease-in-out infinite; }
  .stand__personne--mr { animation: stand-souffle 2.8s ease-in-out -1s infinite; }
  /* aux arrêts 1 à 3, la coque se soulève de son socle pendant le réglage (la vue change 1,25 s après l'état, en 0,7 s),
     puis s'y repose ; le socle, lui, ne bouge pas. Un nom par arrêt, pour que l'animation reparte à chaque arrêt. */
  .stand[data-etat="1"] .stand__coque { animation: stand-souleve-1 3s .25s cubic-bezier(.4, 0, .2, 1) both; }
  .stand[data-etat="2"] .stand__coque { animation: stand-souleve-2 3s .25s cubic-bezier(.4, 0, .2, 1) both; }
  .stand[data-etat="3"] .stand__coque { animation: stand-souleve-3 3s .25s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes stand-vol-1 { 0% { opacity: 0; left: 50%; top: calc(100% - 40px); } 15% { opacity: 1; } 45%, 70% { opacity: 1; left: 44%; top: 30%; } 100% { opacity: 0; left: 50%; top: calc(100% - 40px); } }
@keyframes stand-vol-2 { 0% { opacity: 0; left: 50%; top: calc(100% - 40px); } 15% { opacity: 1; } 45%, 70% { opacity: 1; left: 18%; top: 46%; } 100% { opacity: 0; left: 50%; top: calc(100% - 40px); } }
@keyframes stand-vol-3 { 0% { opacity: 0; left: 50%; top: calc(100% - 40px); } 15% { opacity: 1; } 45%, 70% { opacity: 1; left: 86%; top: 46%; } 100% { opacity: 0; left: 50%; top: calc(100% - 40px); } }
@keyframes stand-nous { 0%, 10% { opacity: 0; } 25%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes stand-etincelle { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
@keyframes stand-souleve-1 { 0% { translate: 0 0; } 18%, 76% { translate: 0 -10px; } 100% { translate: 0 0; } }
@keyframes stand-souleve-2 { 0% { translate: 0 0; } 18%, 76% { translate: 0 -10px; } 100% { translate: 0 0; } }
@keyframes stand-souleve-3 { 0% { translate: 0 0; } 18%, 76% { translate: 0 -10px; } 100% { translate: 0 0; } }
/* le souffle bouge par translate, qui s'ajoute au transform du SVG (avec transform, la personne MR sautait à l'origine du
   plateau, hors du stand : corrigé le 08/11) */
@keyframes stand-souffle { 50% { translate: 0 -1.5px; } }
/* une colonne étroite (la Méthode sur téléphone, l'écran collé en haut) : sans bulle (le récit les dit) */
@container (max-width: 480px) {
  .stand .reglage-app__onglets { gap: 4px; margin-bottom: 8px; }
  .stand .reglage-onglet > span { padding: 4px 8px; }
  .stand .reglage-app__contenu { padding: 12px; }
  .stand__bulle { left: 30%; bottom: 8px; max-width: 64%; padding: 5px 9px 6px; font-size: 11.5px; }
  .stand__bulle b { display: none; }
  .stand__nous { display: none; }
}
/* sur la Méthode (08/11, refonte : « ne va pas du tout »), la remarque n'est dite qu'une fois, dans le récit à côté de
   l'écran : pas de bulle ; la personne qui parle s'allume sur le plateau (sa tête cerclée de lumière, son socle) */
.paddock-direct .stand__bulle { display: none; }
.stand__personne-tete, .stand__socle { transition: stroke .35s, filter .35s; }
.paddock-direct .stand:is([data-etat="1"], [data-etat="3"]) .stand__personne--cd .stand__personne-tete,
.paddock-direct .stand[data-etat="2"] .stand__personne--mr .stand__personne-tete { stroke: #ED760E; stroke-width: 3; filter: drop-shadow(0 0 4px rgba(237, 118, 14, .45)); }
.paddock-direct .stand:is([data-etat="1"], [data-etat="3"]) .stand__personne--cd .stand__socle,
.paddock-direct .stand[data-etat="2"] .stand__personne--mr .stand__socle { stroke: #ED760E; }

/* ----- les deux autres clients fictifs (la Méthode seule) : leur coque sur le même socle, à gauche et à droite, hors champ
   tant que la caméra ne recule pas ; leurs mots du côté de la scène ; le même worker, une autre tenue */
.stand__voisin { position: absolute; bottom: 0; width: calc(285 * var(--u)); height: 60%; min-height: 110px; }
.stand__voisin--gauche { left: calc(-310 * var(--u) - 14px); }
.stand__voisin--droite { left: calc(1025 * var(--u) - 14px); }
.stand__voisin--cabinet { --tenue: #9DB2D8; }
.stand__voisin--negoce { --tenue: #8CC3A2; }
.stand__voisin-ecran { position: relative; display: flex; flex-direction: column; gap: 9px; height: 100%; padding: 14px 16px; overflow: hidden;
  border: 1px solid rgba(245, 245, 247, .12); border-radius: 12px 12px 5px 5px; background: rgba(18, 18, 24, .96); }
.stand__voisin-ecran::before { content: ""; position: absolute; top: -1px; left: 8%; right: 8%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tenue), transparent); box-shadow: 0 0 14px var(--tenue); }
.stand__voisin--gauche .stand__voisin-ecran { align-items: flex-end; text-align: right; }
.stand__voisin p { margin: 0; white-space: nowrap; }
.stand__voisin-titre { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: #EDEDF2; }
.stand__voisin-colonne { margin-top: 2px; padding-bottom: 6px; border-bottom: 1px solid rgba(245, 245, 247, .12); font-size: 14px; font-weight: 500;
  color: color-mix(in srgb, var(--tenue) 70%, #F5F5F7); }
.stand__voisin-colonne, .stand__voisin-ligne { align-self: stretch; }
.stand__voisin-ligne { display: flex; justify-content: space-between; gap: 12px; }
.stand__voisin-ligne b { display: block; height: 7px; border-radius: 4px; background: rgba(245, 245, 247, .13); }
.stand__voisin-ligne b:first-child { width: 46%; }
.stand__voisin-ligne b:last-child { width: 24%; background: color-mix(in srgb, var(--tenue) 40%, transparent); }
.stand__voisin-ligne:nth-of-type(2n) b:first-child { width: 34%; }
/* les tenues : le corps, le liseré du socle et du plateau, l'accessoire */
.stand__worker--cabinet { --stand-vive: #9DB2D8; }
.stand__worker--negoce { --stand-vive: #8CC3A2; }
.stand__worker--cabinet .stand__buste { fill: #64769A; }
.stand__worker--negoce .stand__buste { fill: #557F67; }
.stand__echarpe { fill: #C9D4E8; }
.stand__badge { fill: #E3EEDF; }
.stand__badge-cordon { fill: none; stroke: #E3EEDF; stroke-width: 1.2; opacity: .8; }
.stand__badge-ligne { fill: none; stroke: #557F67; stroke-width: 1.4; stroke-linecap: round; }
.stand__plateau--cabinet .stand__lisere { stroke: #9DB2D8; }
.stand__plateau--negoce .stand__lisere { stroke: #8CC3A2; }
.stand__plateau--cabinet .stand__grille, .stand__plateau--negoce .stand__grille { stroke: rgba(16, 16, 20, .05); }
.stand__plateau--cabinet .stand__dalle-lueur, .stand__plateau--negoce .stand__dalle-lueur { display: none; }
/* hors de la mise en autonomie, les voisins restent dans le noir (et hors champ) */
.stand__voisin, .stand__voisin-decor { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
/* la mise en autonomie, sur la Méthode : les anciens onglets se ferment et le matin s'affiche (reglage.css), puis la
   caméra recule doucement et les deux voisins sortent de la pénombre, sur le même socle */
.paddock-direct .stand[data-etat="4"] .stand__camera { scale: .68; transition: scale 1.6s 1.5s cubic-bezier(.45, .05, .25, 1); }
.paddock-direct .stand[data-etat="4"] :is(.stand__voisin, .stand__voisin-decor) { opacity: .92; visibility: visible; transition: opacity 1.2s 2.3s, visibility 0s 2.3s; }
.paddock-direct .stand::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(75% 90% at 50% 52%, transparent 70%, rgba(245, 244, 239, .85) 100%); opacity: 0; transition: opacity .4s; }
/* au recul, une lumière douce tombe du haut sur chaque plateau (derrière la scène) : le nôtre, puis les deux voisins */
.paddock-direct .stand::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(26% 62% at 50% 0%, rgba(255, 255, 255, .5), transparent 100%);
  opacity: 0; transition: opacity .4s; }
.paddock-direct .stand[data-etat="4"]::after, .paddock-direct .stand[data-etat="4"]::before { opacity: 1; transition: opacity 1.6s 1.5s; }
@container (max-width: 480px) {
  .stand__camera { transform-origin: 50% 70%; }
  .paddock-direct .stand[data-etat="4"] .stand__camera { scale: .6; }
  .stand__voisin { width: calc(305 * var(--u)); }
  .stand__voisin--gauche { left: calc(-330 * var(--u) - 14px); }
  .stand__voisin-ecran { gap: 7px; padding: 10px 8px; }
  .stand__voisin-titre { font-size: 14px; }
  .stand__voisin-colonne { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .stand__personne-tete, .stand__socle, .stand__camera, .stand__voisin, .stand__voisin-decor, .stand::after, .stand::before { transition: none !important; }
}
