/* ─── LOGO ───────────────────────────────────────────────── */
.logo {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  transition: font-size .4s cubic-bezier(.4,0,.2,1);
}
.logo .logo-img { margin-right: .4rem; }
.logo span      { color: var(--accent); }

.logo-img {
  height: 1.8em;
  width: 1.8em;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-img--mobile { height: 1.6em; width: 1.6em; border-radius: 6px; }
.logo-img-standalone { display: none; }

.tagline {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: font-size .4s cubic-bezier(.4,0,.2,1);
}

/* ─── CARD ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-blue-md);
}
.card::before,
.card.mode-cloud::before {
  display: none;
}

/* ── Compteur de fichiers reçus ──────────────────────────── */
.files-count-label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(74, 144, 217, 0.12);
  margin-bottom: .75rem;
}

.did-you-know-label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  text-align: center;
  padding-bottom: .75rem;
  margin-bottom: .75rem;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity .35s ease, transform .35s cubic-bezier(.4,0,.2,1);
}

/* Sur mobile : réserver exactement 2 lignes pour éviter le décalage
   visuel quand l'anecdote tient en 1 ligne vs 2 lignes.
   text-align: left pour que la 2e ligne commence à gauche comme la 1re,
   le bloc lui-même reste centré via justify-content. */
@media (max-width: 480px) {
  .did-you-know-label {
    min-height: calc(2 * 0.7rem * 1.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
}

@keyframes dykFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dykFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.did-you-know-label.dyk-out {
  animation: dykFadeOut .35s cubic-bezier(.4,0,.2,1) forwards;
}
.did-you-know-label.dyk-in {
  animation: dykFadeIn .35s cubic-bezier(.4,0,.2,1) forwards;
}

/* ─── QR CODE CONTAINER ──────────────────────────────────── */
.qr-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: fit-content;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-blue-md);
  border: 1px solid var(--border);
  transition: padding .4s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.qr-wrap:hover       { box-shadow: 0 8px 40px rgba(74,144,217,.30); }
.qr-wrap.cloud       { box-shadow: 0 4px 24px rgba(123,191,234,.25); }
.qr-wrap.cloud:hover { box-shadow: 0 8px 40px rgba(123,191,234,.40); }

/* ─── QR Génération en cours (placeholder avant réponse n8n) ─ */
/* Le bloc a exactement les mêmes dimensions que le canvas QR réel
   (388×388 dans la .qr-wrap 420×420 avec padding 16px)
   pour que la card ne change pas de hauteur à l'apparition du QR. */
.qr-generating {
  width: 388px;
  height: 388px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.qr-generating-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qr-generating-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse 1.2s infinite;
}
.qr-generating-dot:nth-child(2) { animation-delay: .2s; }
.qr-generating-dot:nth-child(3) { animation-delay: .4s; }
.qr-generating-txt {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: .06em;
}

/* ─── QR Loading dot — utilisé dans les statusEl actifs ─────── */
.qr-loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse 1.2s infinite;
  display: inline-block;
}

/* Compatibilité : .qr-loading reste utilisé dans le statut actif */
.qr-loading {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
}

/* ─── BOUTON ZIP / INFO CARRÉ ────────────────────────────── */
.btn-zip-square {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-blue-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  cursor: pointer;
  transition: box-shadow .25s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1), border-color .2s, background .2s;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0;
}
.btn-zip-square:hover {
  box-shadow: 0 10px 36px rgba(74,144,217,.30);
  transform: translateY(-3px) scale(1.04);
  border-color: var(--accent);
  background: #f0f7ff;
}
.btn-zip-square:disabled { opacity: .55; cursor: default; transform: none; }
.btn-zip-square svg      { width: 44px; height: 44px; flex-shrink: 0; }
.btn-zip-label           { line-height: 1.2; text-align: center; }

/* Taille réduite en mode actif */
.app.active .btn-zip-square {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  gap: .3rem;
  font-size: .52rem;
}
.app.active .btn-zip-square svg { width: 24px; height: 24px; }

/* Logo PNG dans le bouton Info */
.btn-info-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  pointer-events: none;
}
.app.active .btn-zip-square .btn-info-logo { width: 24px; height: 24px; border-radius: 5px; }

/* Bouton Accueil — rond blanc + PNG nichoir, sans contour ni label */
.btn-home {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}
.btn-home:hover {
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 6px 20px rgba(0,0,0,.20);
}
.btn-home-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  pointer-events: none;
}
.app.active .btn-home       { width: 40px; height: 40px; }
.app.active .btn-home-img   { width: 24px; height: 24px; }

/* ─── BLOC QR DANS LA GRILLE ─────────────────────────────── */
.qr-card {
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-blue);
  transition: box-shadow .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  cursor: pointer;
}
.qr-card:hover { box-shadow: var(--shadow-blue-md); transform: translateY(-2px); }

.qr-card-preview {
  flex: 1;
  min-height: 0;
  background: #ddeeff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  position: relative;
}
.qr-card-preview img,
.qr-card-preview canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
}

/* Row infos en bas — identique à .file-received-row */
.qr-card-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  background: rgba(74, 144, 217, 0.08);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.qr-card-label {
  flex: 1;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  color: var(--accent);
  word-break: break-all;
}
.qr-card-sub {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted);
  margin-top: .1rem;
}

/* Bouton agrandir — style identique à .btn-dl */
.btn-qr-expand {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem .8rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .65rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: opacity .2s, transform .1s cubic-bezier(.4,0,.2,1);
}
.btn-qr-expand:hover { opacity: .85; transform: scale(1.03); }

/* ─── CARTES FICHIERS REÇUS ──────────────────────────────── */
.file-received {
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  animation: fadeIn .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-blue);
  transition: box-shadow .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}
.file-received:hover { box-shadow: var(--shadow-blue-md); transform: translateY(-2px); }

/* ── Bouton masquer/supprimer la card (croix) ───────────── */
.file-received {
  position: relative; /* ancrage pour .btn-dismiss */
}
.btn-dismiss {
  position: absolute;
  top: .45rem;
  right: .45rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font-size: .75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s ease, background .15s ease, transform .15s ease;
  z-index: 10;
  flex-shrink: 0;
}
.file-received:hover .btn-dismiss,
.file-received:focus-within .btn-dismiss {
  opacity: 1;
}
.btn-dismiss:hover {
  background: rgba(200, 30, 30, .82);
  transform: scale(1.12);
}
/* Sur mobile : toujours visible (pas de hover) */
@media (hover: none) {
  .btn-dismiss { opacity: .72; }
}

/* Zone aperçu */
.file-preview {
  flex: 1;
  min-height: 0;
  background: #ddeeff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.file-preview img   { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-preview audio { width: calc(100% - 1rem); margin: auto; display: block; }
.file-preview iframe { width: 100%; height: 100%; border: none; display: block; background: #fff; }
.file-preview-icon  { font-size: 3.5rem; opacity: .5; }
.file-preview {
  flex: 1;
  min-height: 0;
  background: #ddeeff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 0.35rem; /* small padding to avoid clipping when animating */
}

.file-loading-image {
  width: 64%;
  height: 64%;
  object-fit: contain;
  opacity: .95;
  animation: pulse 1.2s infinite;
  display: block;
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Barre infos + bouton */
.file-received-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  background: rgba(74, 144, 217, 0.08);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.file-icon { font-size: 1.4rem; flex-shrink: 0; }
.file-info { flex: 1; }
.file-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  color: #3d8a5f;
  word-break: break-all;
}
.file-received.cloud-file .file-name { color: var(--accent); }
.file-size {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted);
  margin-top: .15rem;
}

/* Bouton télécharger */
.btn-dl {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem .8rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .65rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: opacity .2s, transform .1s cubic-bezier(.4,0,.2,1);
}
.btn-dl:hover      { opacity: .85; transform: scale(1.03); }
.btn-dl.cloud-dl   { background: var(--accent); }

/* ─── ÉTAT CHARGEMENT CARTE FICHIER ─────────────────────── */
.file-received.loading .file-preview {
  background: linear-gradient(90deg, #ddeeff 25%, #c8e0f8 50%, #ddeeff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.file-received.loading .file-name { color: var(--muted); font-style: italic; }
.file-received.loading .btn-dl    { opacity: .4; cursor: default; pointer-events: none; }
.file-loading-icon { font-size: 2.2rem; animation: pulse 1.2s infinite; opacity: .5; }

/* ─── BARRE DE PROGRESSION P2P (carte en cours de réception) ──── */
.file-progress-track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, .5);
  z-index: 2;
}
.file-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width .2s linear;
}

/* ─── SESSION ID ─────────────────────────────────────────── */
.session-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.session-id {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .75rem;
  color: var(--muted);
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .3rem .7rem;
  letter-spacing: .08em;
}
.session-id strong { color: var(--accent); }

/* ─── CRYPTO BANNER ──────────────────────────────────────── */
.crypto-banner {
  background: rgba(90, 170, 122, 0.08);
  border: 1px solid rgba(90, 170, 122, 0.30);
  border-radius: 12px;
  padding: .6rem .9rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: .62rem;
  color: #3d8a5f;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: fadeIn .4s ease;
}
.crypto-banner .lock-icon { font-size: 1rem; flex-shrink: 0; }
.crypto-banner.err {
  background: rgba(224, 90, 90, 0.07);
  border-color: rgba(224, 90, 90, 0.25);
  color: var(--accent2);
}

/* ─── STATUS ZONE ────────────────────────────────────────── */
.status-zone {
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: .72rem;
  color: var(--muted);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: inset 0 1px 4px rgba(74,144,217,.06);
}
.status-line { display: flex; align-items: center; gap: .5rem; animation: fadeIn .3s ease; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.pulse  { background: var(--accent); animation: pulse 1.2s infinite; }
.dot.ok     { background: var(--success); }
.dot.err    { background: var(--accent2); }
.dot.cloud  { background: var(--accent3); animation: pulse 1.2s infinite; }

/* ─── BARRE DE PROGRESSION ───────────────────────────────── */
.progress-wrap         { margin-top: 1rem; display: none; }
.progress-wrap.visible { display: block; }
.progress-label {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  margin-bottom: .4rem;
  display: flex;
  justify-content: space-between;
}
.progress-bar-bg {
  background: #e8f2fc;
  border: 1px solid var(--border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 99px;
  width: 0%;
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
.progress-bar-fill.cloud-fill { background: linear-gradient(90deg, var(--accent3), var(--accent)); }

/* ─── BADGES ─────────────────────────────────────────────── */
.badges {
  display: flex;
  gap: .4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.badge {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .55rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f0f7ff;
}

/* ─── INSTRUCTIONS ───────────────────────────────────────── */
.instructions {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
}
.step {
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .7rem .6rem;
  text-align: center;
  transition: box-shadow .2s cubic-bezier(.4,0,.2,1);
}
.step:hover { box-shadow: var(--shadow-blue); }
.step-num {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--accent);
  display: block;
  margin-bottom: .3rem;
}
.step-num.cloud { color: var(--accent3); }
.step-txt { font-size: .65rem; color: var(--muted); line-height: 1.4; }

/* ─── CONFIG BANNER ──────────────────────────────────────── */
.config-banner {
  background: rgba(224, 90, 90, 0.06);
  border: 1px solid rgba(224, 90, 90, 0.25);
  border-radius: 12px;
  padding: .8rem 1rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: .68rem;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  display: none;
  line-height: 1.6;
}
.config-banner.visible { display: block; }
.config-banner code { background: rgba(224, 90, 90, 0.10); padding: .1rem .3rem; border-radius: 4px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 400px) {
  .instructions { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════
   FOOTER Forge des Communs Numériques Éducatifs
══════════════════════════════════════════════════════════ */
.forge-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  padding: .7rem 1rem;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid rgba(74, 144, 217, 0.15);
}

.forge-footer__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.forge-footer__link:hover { color: var(--accent); }

.forge-footer__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.forge-footer__sep {
  opacity: .4;
}

.forge-footer__item {
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   BOUTON INFO FLOTTANT — PC uniquement, bas gauche
══════════════════════════════════════════════════════════ */
.btn-info-float {
  position: fixed;
  bottom: calc(2rem + 1.6rem); /* au-dessus du footer (~1.6rem de hauteur) */
  left: 1rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 1.5px solid rgba(74, 144, 217, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s;
  padding: 0;
}
.btn-info-float:hover {
  background: rgba(74, 144, 217, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-info-float .btn-info-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}
.btn-info-float .btn-zip-label {
  font-size: .6rem;
  font-family: var(--mono);
  color: var(--muted);
  line-height: 1;
}

/* Masqué sur mobile (le bouton n'est visible qu'en vue PC) */
@media (max-width: 600px) {
  .btn-info-float {
    display: none !important;
  }
}

/* Synchronise avec l'animation intro (même comportement que le footer) */
body.intro-active .btn-info-float {
  opacity: 0;
  pointer-events: none;
}
body.intro-done .btn-info-float {
  animation: appReveal .55s cubic-bezier(.4,0,.2,1) forwards;
}

/* ── Bouton PIN PC→PC dans la barre d'action ─────────────── */
.btn-pin-display {
  cursor: default;
  gap: .25rem;
}

.btn-pin-digits {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: -.01em;
  line-height: 1;
}

/* Taille réduite en mode actif (même que les autres boutons) */
.app.active .btn-pin-display .btn-pin-digits {
  font-size: .85rem;
  gap: 1px;
}

/* ── PIN intégré sous le QR (bloc idle) ──────────────────── */

/* ── Overlay PIN centré dans le QR code ──────────────────── */
/* Les containers QR doivent être position:relative  */
#qrcode-cloud,
#qrcode-grid,
#qrModalContent {
  position: relative;
}

/* L'overlay lui-même est géré en JS (injectPinOverlay),
   mais on ajoute ici un repli CSS pour l'accessibilité */
.qr-pin-overlay {
  pointer-events: none;
  user-select: none;
}

/* ── Session expirée (30 min sans envoi) ─────────────────── */
.session-expired-msg {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 1rem;
}
.session-expired-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
  max-width: 320px;
}
.session-expired-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.session-expired-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.session-expired-text {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}
.session-expired-btn {
  margin-top: .4rem;
  padding: .65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.session-expired-btn:hover { opacity: .85; }

/* ── Session expirée — variante compacte dans la mini-card QR ─
   (remplace le QR+PIN en haut à gauche de la grille quand un
   transfert a déjà eu lieu ; les autres cards fichiers restent) */
.qr-card-expired {
  cursor: default;
  background: #f0f7ff;
}
.qr-card-expired:hover { box-shadow: var(--shadow-blue); transform: none; }
.qr-card-expired-msg {
  width: 100%;
  height: 100%;
  padding: .6rem;
  justify-content: center;
  align-items: center;
}
.qr-card-expired-msg .session-expired-inner {
  gap: .35rem;
  max-width: none;
}
.qr-card-expired-msg .session-expired-icon {
  font-size: 1.7rem;
}
.qr-card-expired-msg .session-expired-title {
  font-size: .82rem;
  letter-spacing: -.01em;
}
.qr-card-expired-msg .session-expired-text {
  font-size: .62rem;
  line-height: 1.35;
}
