/* Fenêtre « Télécharger Textalyse » (assets/telechargement.js). Reprend les couleurs du site (:root et .dark). */
html.tl-ouvert { overflow: hidden; }
.tl-fond { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: color-mix(in oklab, var(--background) 55%, rgb(0 0 0 / .45)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: tl-apparait .18s ease-out; }
.tl-carte { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box;
  padding: 28px 24px 22px; border-radius: 24px; background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); box-shadow: 0 24px 64px rgb(0 0 0 / .28); animation: tl-monte .22s cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 480px) { .tl-carte { padding: 32px 32px 24px; } }
.tl-fermer { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.tl-fermer:hover { background: var(--muted); color: var(--foreground); }
.tl-titre { margin: 0 40px 0 0; font-family: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif; font-weight: 400;
  font-size: 1.9rem; line-height: 1.1; letter-spacing: -.01em; color: var(--foreground); }
.tl-texte { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }
.tl-form { display: grid; gap: 12px; margin-top: 22px; }
.tl-form[hidden], .tl-precision[hidden], .tl-secours[hidden] { display: none; }
.tl-libelle { font-size: 13px; font-weight: 500; color: var(--foreground); }
.tl-champ { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px;
  color: var(--foreground); background: var(--background); border: 1px solid var(--input, var(--border)); margin-top: -4px; }
.tl-champ::placeholder { color: var(--muted-foreground); opacity: .7; }
.tl-accord { display: flex; align-items: flex-start; gap: 10px; }
.tl-case { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cta, var(--foreground)); }
.tl-accord-texte { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.tl-accord-texte a, .tl-secours { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }
.tl-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 4px; border: 0;
  border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--cta, var(--foreground)); color: var(--cta-foreground, var(--background)); transition: opacity .15s, transform .15s; }
.tl-cta:hover:not(:disabled) { transform: translateY(-1px); }
.tl-cta:disabled { opacity: .45; cursor: not-allowed; }
.tl-message { margin: 0; font-size: 13px; color: #c2410c; }
.dark .tl-message { color: #fb923c; }
.tl-message:empty { display: none; }
.tl-secours { justify-self: start; font-size: 13px; }
.tl-precision { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
.tl-precision svg { flex: none; }
.tl-fermer:focus-visible, .tl-champ:focus-visible, .tl-case:focus-visible, .tl-cta:focus-visible, .tl-carte a:focus-visible {
  outline: 2px solid var(--ring, var(--foreground)); outline-offset: 2px; }
@keyframes tl-apparait { from { opacity: 0; } }
@keyframes tl-monte { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .tl-fond, .tl-carte { animation: none; } .tl-cta:hover:not(:disabled) { transform: none; } }
