/* 30/11/2026 v20261130b : identique a 20261130a (le choix tactile est fait par le JS) */
/* 30/11/2026 v20261130a : affiche sur tout appareil tactile (classe gfc-scan-tactile posee par le JS), plus de condition de largeur */
/* 05/11/2026 (Raph) — bouton scan code-barres de la barre de recherche, mobile uniquement */
.gfc-scan-btn { display: none; }
html.gfc-scan-tactile #search_block_top .gfc-scan-btn {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; right: 40px; transform: translateY(-50%);
    width: 36px; height: 34px; padding: 0; margin: 0; border: 0; background: transparent;
    color: #333; cursor: pointer; z-index: 3; -webkit-tap-highlight-color: transparent;
  }
html.gfc-scan-tactile #search_block_top .gfc-scan-btn::after {
    content: ""; position: absolute; right: -2px; top: 8px; bottom: 8px; width: 1px; background: #ddd;
  }
html.gfc-scan-tactile #search_block_top .gfc-scan-btn:active { color: #f08a00; }
html.gfc-scan-tactile #search_block_top .gfc-scan-input { padding-right: 84px !important; }

/* fenetre camera plein ecran */
html.gfc-scan-actif, html.gfc-scan-actif body { overflow: hidden !important; }
.gfc-scan { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; background: #000; }
.gfc-scan--ouvert { display: block; }
.gfc-scan__video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.gfc-scan__cadre {
  position: absolute; left: 8%; right: 8%; top: 32%; height: 22%;
  border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .9);
}
.gfc-scan__cadre span {
  position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #f08a00;
  box-shadow: 0 0 8px #f08a00; animation: gfcScanLigne 1.6s ease-in-out infinite alternate;
}
@keyframes gfcScanLigne { from { transform: translateY(-38px); } to { transform: translateY(38px); } }
.gfc-scan__haut {
  position: absolute; top: max(18px, env(safe-area-inset-top)); left: 16px; right: 16px; text-align: center;
  color: #fff; font-size: 16px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.gfc-scan__bas {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px max(18px, env(safe-area-inset-bottom));
  max-height: 46%; overflow: auto; text-align: center;
}
.gfc-scan__msg { color: #fff; font-size: 15px; margin-bottom: 12px; min-height: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.gfc-scan__msg--erreur { color: #ffb4a8; }
.gfc-scan__msg--ok { color: #b9f0c0; }
.gfc-scan__annuler, .gfc-scan__relancer {
  display: block; width: 100%; max-width: 420px; margin: 8px auto 0; padding: 13px 16px; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.gfc-scan__annuler { background: rgba(255, 255, 255, .92); color: #222; }
.gfc-scan__relancer { background: #f08a00; color: #fff; }
.gfc-scan__item {
  display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto 8px; padding: 8px 10px;
  background: #fff; border-radius: 10px; color: #222 !important; text-align: left; text-decoration: none !important;
}
.gfc-scan__item img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.gfc-scan__item span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.gfc-scan__item small { display: block; font-weight: 400; color: #666; }

/* v e : reglage du zoom camera */
.gfc-scan__zoom { position: absolute; left: 50%; transform: translateX(-50%); top: calc(32% + 22% + 18px); display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 24px; background: rgba(0, 0, 0, .55); color: #fff; width: min(84%, 360px); box-sizing: border-box; }
.gfc-scan__zoom[hidden] { display: none; }
.gfc-scan__zm { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #222; font-size: 20px; line-height: 34px; padding: 0; cursor: pointer; }
.gfc-scan__zr { flex: 1; min-width: 0; accent-color: #f08a00; }
.gfc-scan__zv { flex: none; min-width: 38px; text-align: center; font-size: 14px; font-weight: 600; }

/* v g : changer d'objectif + importer une photo */
.gfc-scan__outils { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.gfc-scan__objectif, .gfc-scan__album { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.6);
  border-radius: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; margin: 0; }
.gfc-scan__objectif[hidden] { display: none; }
.gfc-scan__album input { display: none; }
