/* --------------------------------------------------------------------------
   La soute (22/11/2026) — le document lu remplace la zone de dépôt. Commune au tunnel
   (nouveau parcours) et à la Salle de contrôle (Constellation, Galaxie, Trou de ver, Panneau).
   Bandeau plein « Votre document est dans la soute », fiche du document (nom, pages, poids).
   Couleurs : --r-succes (vert en clair, menthe en sombre) ; le texte du bandeau prend
   --r-surface (blanc en clair, bleu nuit en sombre) : lisible dans les deux thèmes.
   -------------------------------------------------------------------------- */
.soute {
  --soute-feuille: #f7f9fc;          /* papier : clair dans les deux thèmes */
  --soute-feuille-2: #dfe7f3;
  --soute-feuille-3: #c9d6ea;
  --soute-ligne: #b8c6da;
  --soute-titre: #1f4b7a;
  position: relative;
  border: 2.5px solid var(--r-succes, #0b8a52);
  border-radius: var(--tunnel-rayon, 18px);
  background: var(--r-succes-doux, rgba(11, 138, 82, 0.1));
  overflow: hidden;
}
.soute[hidden] { display: none; }
.soute--arrivee { animation: soute-anneau 1.4s ease-out 1; }
@keyframes soute-anneau {
  from { box-shadow: 0 0 0 0 var(--r-succes, #0b8a52); }
  to   { box-shadow: 0 0 0 22px transparent; }
}
.soute-bandeau {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 18px;
  background: var(--r-succes, #0b8a52);
  color: var(--r-surface, #fff);
  font-family: var(--r-police-titre, inherit); font-weight: 700; font-size: 1.05rem;
}
.soute-rond {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--r-surface, #fff); color: var(--r-succes, #0b8a52); font-weight: 900;
}
.soute-doc { display: flex; align-items: center; gap: 22px; padding: 18px 20px; }
.soute-feuilles { position: relative; flex: none; width: 70px; height: 90px; }
.soute--arrivee .soute-feuilles { animation: soute-tombe .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes soute-tombe { from { transform: translateY(-40px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.soute-feuilles i {
  position: absolute; inset: 0; border-radius: 6px;
  background: var(--soute-feuille); border: 1px solid var(--r-bordure, rgba(31, 75, 122, .15));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}
.soute-feuilles i:nth-child(1) { transform: translate(8px, 6px) rotate(5deg); background: var(--soute-feuille-3); }
.soute-feuilles i:nth-child(2) { transform: translate(4px, 3px) rotate(2deg); background: var(--soute-feuille-2); }
.soute-feuilles i:nth-child(3)::before {
  content: ""; position: absolute; left: 10px; top: 12px; width: 60%; height: 5px; border-radius: 3px;
  background: var(--soute-titre);
  box-shadow: 0 12px 0 -1px var(--soute-ligne), 0 22px 0 -1px var(--soute-ligne), 0 32px 0 -1px var(--soute-ligne),
              0 42px 0 -1px var(--soute-ligne), 0 52px 0 -1px var(--soute-ligne);
}
.soute-sceau {
  position: absolute; right: -12px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--r-succes, #0b8a52); color: var(--r-surface, #fff); font-weight: 900; font-size: 18px;
  box-shadow: 0 0 0 4px var(--r-surface, #fff);
}
.soute--arrivee .soute-sceau { animation: soute-tampon .5s .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes soute-tampon { from { transform: scale(0); } to { transform: scale(1); } }
.soute-infos { min-width: 0; }
.soute-nom { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--r-texte, inherit); overflow-wrap: anywhere; }
.soute-meta { margin: 3px 0 0; font-size: .9rem; color: var(--r-texte-2, inherit); }
.soute-changer {
  margin-top: 10px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  background: var(--r-surface, transparent); color: var(--r-texte, inherit);
  border: 1px solid var(--r-bordure-forte, currentColor);
}
.soute-changer:hover, .soute-changer:focus-visible { border-color: var(--r-succes, #0b8a52); }
@media (prefers-reduced-motion: reduce) {
  .soute--arrivee, .soute--arrivee .soute-feuilles, .soute--arrivee .soute-sceau { animation: none; }
}

/* Plusieurs documents (Trou de ver) : une ligne par document, sous le même bandeau. */
.soute-doc + .soute-doc { border-top: 1px solid color-mix(in srgb, var(--r-succes, #0b8a52) 30%, transparent); }
.soute-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.soute-actions .soute-changer { margin-top: 0; }
.soute-pied { padding: 0 20px 16px; }
/* Version compacte (poste de commande, colonne étroite) */
.soute--compacte .soute-bandeau { font-size: .95rem; padding: 8px 12px; }
.soute--compacte .soute-doc { gap: 16px; padding: 14px 14px; }
.soute--compacte .soute-feuilles { width: 46px; height: 60px; }
.soute--compacte .soute-feuilles i:nth-child(3)::before { left: 7px; top: 8px; height: 4px;
  box-shadow: 0 8px 0 -1px var(--soute-ligne), 0 15px 0 -1px var(--soute-ligne), 0 22px 0 -1px var(--soute-ligne), 0 29px 0 -1px var(--soute-ligne); }
.soute--compacte .soute-sceau { width: 26px; height: 26px; font-size: 14px; right: -9px; bottom: -8px; }
.soute--compacte .soute-nom { font-size: .95rem; }
