/* ==========================================================================
   TRANSIT « VERROUILLAGE » (Franck, 26/11/2026) : changement de site, carré orange → tableau de bord.
   Un viseur se referme sur le nom de la destination pendant que le serveur répond, puis s'ouvre sur la nouvelle page.
   Le mouvement est piloté par public/js/transit.js (element.animate) : les animations CSS du BO restent coupées
   (public/css/fluide.css). Ici, seulement la forme et l'état de repos de chaque pièce.
   ========================================================================== */

.kt {
  position: fixed; inset: 0; z-index: 2147483000;
  pointer-events: auto; cursor: progress;
  -webkit-user-select: none; user-select: none;
  contain: strict;
}
.kt-voile { position: absolute; inset: 0; background: rgba(11, 10, 10, .93); }

/* Le trait du verrouillage, d'un bord à l'autre. */
.kt-ligne {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
  background: var(--esp-accent, #ff6a1f); opacity: 0; transform-origin: 50% 50%;
}

/* Les quatre coins : posés au centre de l'écran, placés par transform. */
.kt-cadre { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.kt-c {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: block;
  border: 0 solid var(--esp-accent, #ff6a1f);
}
.kt-hg { border-top-width: 3px; border-left-width: 3px; }
.kt-hd { margin-left: -26px; border-top-width: 3px; border-right-width: 3px; }
.kt-bg { margin-top: -26px; border-bottom-width: 3px; border-left-width: 3px; }
.kt-bd { margin-left: -26px; margin-top: -26px; border-bottom-width: 3px; border-right-width: 3px; }

/* Le nom visé, au centre. */
.kt-centre {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: calc(100vw - 72px); text-align: center; color: var(--esp-ink, #ece8e3);
}
.kt-centre > * { transform-origin: 50% 50%; }
.kt-quoi {
  font: 800 11px/1.2 Archivo, system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase;
  color: var(--esp-accent-text, #ff9257); margin-bottom: 8px;
}
.kt-nom {
  position: relative; display: inline-block; max-width: 100%; vertical-align: top;
  font: 800 clamp(26px, 5.2vw, 56px)/1.05 Archivo, system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase;
}
.kt-fantome, .kt-txt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-fantome { visibility: hidden; }
.kt-txt { position: absolute; left: 0; top: 0; right: 0; text-overflow: clip; }
.kt-barre {
  position: relative; width: 120px; height: 2px; margin: 14px auto 0; overflow: hidden; opacity: 0;
  background: rgba(236, 232, 227, .16);
}
.kt-barre > i { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; display: block; background: var(--esp-accent, #ff6a1f); }

/* ARRIVÉE après une navigation classique : la nouvelle page est cachée dès son premier affichage (classe posée en tête
   de base.html.twig), le temps que transit.js pose le viseur et l'ouvre. Si le script manque, le voile s'efface seul. */
html.kt-arrivee::after {
  content: ''; position: fixed; inset: 0; z-index: 2147483001; background: rgba(11, 10, 10, .93);
  animation: kt-secours .2s linear 1.2s forwards;
}
@keyframes kt-secours { to { opacity: 0; visibility: hidden; } }
