/* Produit : grilles, cadres, grille LED, barres, boutons events, viewer 3D — hudled landing */

  #product {
    padding-top: 0;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 80px;
  }

  .product-visual {
    position: relative;
  }

  .product-frame {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .product-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,224,.03) 0%, transparent 60%);
    pointer-events: none;
  }

  /* Viewer 3D dans le cadre "Live Preview" */
  #preview-viewer {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
  }
  #preview-viewer:active { cursor: grabbing; }

  /* Grille LED source rendue hors écran : sert de texture à la dalle du modèle 3D */
  .led-grid-src {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 560px;
    pointer-events: none;
  }

  /* ─── Produit BARRES (santé / bouclier-munitions) ─── */
  .product-grid--bars { margin-top: 64px; }
  .product-frame--bar { aspect-ratio: 16 / 9; }
  #bar-viewer {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
  }
  #bar-viewer:active { cursor: grabbing; }

  .bars-live {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .bar-row { display: flex; align-items: center; gap: 12px; }
  .bar-name {
    width: 76px;
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .bar-track {
    flex: 1;
    height: 14px;
    background: #0a0d12;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
  }
  .bar-fill {
    height: 100%;
    width: 100%;
    border-radius: 2px;
    transition: width .12s linear, background .12s linear;
  }
  .bar-val {
    width: 34px;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text);
  }
  .bar-status {
    min-height: 28px;
    text-align: center;
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .15s;
  }

  /* Grille LED (rendue hors écran) — fournit les couleurs lues par la dalle 3D */
  .led-grid {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    gap: 2px;
    padding: 16px;
    background: #050709;
    border-radius: 2px;
  }

  .led-dot {
    aspect-ratio: 1;
    border-radius: 1px;
    background: #1a1e28;
    /* Pas de transition : LED instantanément allumée ou éteinte (pas de dégradé) */
  }

  .led-dot.on     { background: var(--led);  box-shadow: 0 0 4px var(--led),  0 0 8px rgba(0,255,224,.5); }
  .led-dot.green  { background: #00dd00;     box-shadow: 0 0 4px #00dd00,     0 0 8px rgba(0,220,0,.5); }
  .led-dot.orange { background: #ff6400;     box-shadow: 0 0 4px #ff6400,     0 0 8px rgba(255,100,0,.5); }
  .led-dot.red    { background: var(--led3); box-shadow: 0 0 4px var(--led3); }
  .led-dot.yellow { background: var(--led4); box-shadow: 0 0 4px var(--led4); }
  .led-dot.blue   { background: var(--led2); box-shadow: 0 0 4px var(--led2); }
  .led-dot.orange-dim { background: #7a3000; box-shadow: none; }
  .led-dot.green-dim  { background: #004400; box-shadow: none; }
  .led-dot.red-dim    { background: #5a0000; box-shadow: none; }

  .product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    background: rgba(0,255,224,.1);
    border: 1px solid rgba(0,255,224,.3);
    color: var(--led);
    padding: 4px 10px;
    text-transform: uppercase;
  }

  /* ─── Habillage du viewer 3D (cadre Live Preview) ─── */
  .stl-hint {
    position: absolute;
    bottom: 12px;
    right: 16px;
    z-index: 2;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    pointer-events: none;
  }

  .stl-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    transition: opacity .4s;
  }

  .event-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
  }

  .event-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .1s;
    position: relative;
    overflow: hidden;
  }

  .event-btn:hover {
    background: rgba(255,255,255,.04);
    transform: translateY(-1px);
  }

  .event-btn.active {
    background: rgba(255,255,255,.06);
  }

  .event-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity .2s;
  }
  .event-btn.active::before { opacity: 1; }

  .event-btn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .event-btn-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
  }

  .event-btn.active .event-btn-label { color: var(--text); }

  .event-btns-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 14px;
    margin-bottom: 2px;
  }

  .product-info { }

  .product-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--led3);
    border: 1px solid rgba(255,60,110,.3);
    padding: 4px 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
  }

  .product-name {
    font-family: var(--display);
    font-size: 52px;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 20px;
  }

  .product-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 36px;
  }

  .spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .spec-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
  }

  .spec-list li::before {
    content: '▸';
    color: var(--led);
    font-size: 10px;
  }

  .spec-list li span { color: var(--muted); margin-left: auto; font-size: 12px; }
