/* Maquettes du bas de la porte : seuls les objets qui n'existent pas encore. Tout descend des jetons de hud.css. */

/* ── Une touche du clavier ─────────────────────────────────────────────── */
.touche {
  --coupe: 5px;
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 6px;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: var(--creux); box-shadow: inset 0 0 0 1px var(--structureVive), inset 0 -2px 0 var(--structure);
  font-family: var(--texte); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--encre);
}

/* ── Les coins de l'écran (A, C) ───────────────────────────────────────── */
.coin { position: absolute; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.coin--gauche { left: 32px; }
.coin--droite { right: 32px; align-items: flex-end; }
.geste-coin {
  display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 3px; cursor: pointer;
  font-family: var(--texte); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--discret);
}
.geste-coin:hover { color: var(--encre); }
.geste-coin.choisi { color: var(--encre); }
.compte-tuile {
  --coupe: 8px;
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: var(--creux); box-shadow: inset 0 0 0 1px var(--structure);
  font-family: var(--titre); font-size: 11px; letter-spacing: 2px; color: var(--discret);
}
.compte-tuile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.geste-coin:hover .compte-tuile { box-shadow: inset 0 0 0 1px var(--structureVive); color: var(--encre); }
.geste-coin.choisi .compte-tuile { box-shadow: inset 0 0 0 1px var(--encre), inset 0 2px 0 var(--accent); color: var(--encre); }
.coin__titre { margin: 0 0 6px 3px; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--efface); }

/* ── Les options de connexion, sous la carte (A, C) ────────────────────── */
.options { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.options__rangee { display: flex; gap: 10px; }
.option {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--texte); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); text-align: center;
}
.option__tuile {
  --coupe: 10px;
  width: 52px; height: 52px; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, 0 100%);
  background: var(--creux); box-shadow: inset 0 0 0 1px var(--structure); color: var(--discret);
}
.option__tuile svg { width: 20px; height: 20px; }
.option:hover { color: var(--discret); }
.option:hover .option__tuile { box-shadow: inset 0 0 0 1px var(--structureVive); color: var(--encre); }
.option.choisie { color: var(--encre); }
.option.choisie .option__tuile { box-shadow: inset 0 0 0 1px var(--encre), inset 0 2px 0 var(--accent); color: var(--encre); }

/* ── La barre de touches (B) ───────────────────────────────────────────── */
.touches {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 26px; padding: 0 16px;
  background: color-mix(in srgb, var(--panneau) 84%, transparent); border-top: 1px solid var(--structureVive);
}
.touches__ressort { flex: 1; }
.touches__item {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--texte); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--discret);
}
.touches__item:hover { color: var(--encre); }
.touches__item.vive { color: var(--signal); }
.touches__item.vive .touche { color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal), inset 0 -2px 0 color-mix(in srgb, var(--signal) 40%, transparent); }

/* ── Dans la carte ─────────────────────────────────────────────────────── */
.carte-connexion .badge__mono svg { width: 26px; height: 30px; fill: currentColor; }
.carte__demande .porte-tierce { width: 100%; margin-top: 4px; }
.carte__demande .plaque { margin-top: 4px; }
.carte__demande [disabled] { opacity: 0.4; cursor: default; }
.carte__demande .consent { margin: 2px 0 4px; }
.refus__oubli { align-self: flex-start; color: var(--encre); text-decoration: underline; text-decoration-color: var(--bordVif); text-underline-offset: 4px; }
.carte__pas { display: flex; gap: 14px; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.carte__pas b { font-weight: 500; color: var(--bon); }
.carte__pas i { font-style: normal; color: var(--encre); }

/* ── Le pupitre de la maquette (hors dessin) ───────────────────────────── */
.maquette {
  position: fixed; z-index: 3000; top: 48px; right: 16px; width: 300px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
  background: #0d0d0f; border: 1px dashed var(--signal); font-family: var(--texte); color: var(--encre);
}
.maquette h3 { margin: 0; display: flex; justify-content: space-between; font-family: var(--titre); font-weight: 400; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--signal); cursor: pointer; white-space: nowrap; }
.maquette.repli > :not(h3) { display: none; }
.maquette__rang { display: flex; flex-wrap: wrap; gap: 6px; }
.maquette button { border: 1px solid var(--structureVive); background: none; color: var(--discret); font-family: var(--texte); font-size: 11.5px; padding: 4px 8px; cursor: pointer; clip-path: none; width: auto; }
.maquette button.choisi { border-color: var(--signal); color: var(--encre); }
.maquette p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--discret); }
.maquette small { font-size: 11px; color: var(--efface); }

.masque { -webkit-text-security: disc; }
