/* File: panel-iso.css - Styles panneau isométrique
 * Desc: En français, dans l'architecture, je suis les styles CSS spécifiques au contenu du panneau isométrique (grille translation, rotation)
 * Version 3.2.0 (nettoyage sélecteurs)
 * Author: DNAvatar.org - Arnaud Maignan
 * Date: June 08, 2025 19:15 UTC+1
 * Logs:
 *   - v3.2.0: Nettoyage sélecteurs - suppression .panel-floating générique pour le contenu
 *   - v3.1.0: Ajout tailles repliées spécifiques (25px LEFT, 30px TOP)
 *   - v3.0.0: Suppression de tous les styles spécifiques .isometries-panel, utilisation des classes génériques
 *   - v2.3.0: Correction largeur repliée à 25px (20px drag + 5px)
 *   - v2.2.0: Correction - en mode LEFT, largeur bornée à 30px, hauteur libre
 *   - v1.3.6: Renforcement styles verrouillé avec !important et bordure rouge
 *   - v1.3.5: Ajout styles pour état verrouillé (rouge) et déverrouillé (bleu)
 *   - v1.3.4: overflow: hidden sur le panneau pour garantir la hauteur stricte 30px plié
 */

/* 🎯 Tailles repliées spécifiques au panneau isométrique */
/* Supprimé - défini dans panel-manager.css */

/* Version 1.3.1 — largeur héritée de panel-rotation.css (max-content) */

/* Bloc vue + boutons : centré, un peu d'air en dessous avant le zoom/dist */
#isometriesPanel .isometries-c1l1-slot {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px 0;
}

/* Rotations : alignées à gauche, champs resserrés pour que les 6 tiennent dans la fenêtre */
#isometriesPanel .rotation-info {
  align-items: flex-start;
  padding-left: 6px;
}


/* === GRID TRANSLATION === */

.translation-grid {
  display: grid;
  grid-template-columns: repeat(3, 20px);
  grid-template-rows: repeat(3, 20px);
  gap: 2px;
  padding: 8px;
  justify-content: center;
}

.translation-grid button {
  width: 20px;
  height: 20px;
  border: 1px solid #bdc3c7;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.translation-grid button:hover {
  background: #3498db;
  color: white;
  border-color: #2980b9;
  transform: scale(1.1);
}

.translation-grid button:active {
  transform: scale(0.95);
  background: #2980b9;
}

#camCenter {
  background: #e74c3c;
  color: white;
  border-color: #c0392b;
}

#camCenter:hover {
  background: #c0392b;
  transform: scale(1.15);
}

/* === SEPARATOR === */

.separator {
  text-align: center;
  color: #7f8c8d;
  font-size: 10px;
  padding: 0 0 1px 0;
  margin: 1px 0;
}

/* === ROTATION CONTROLS === */

.rotation-controls {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  width: 100%;
}

.rotation-axis {
  display: flex;
  align-items: center;
  font-size: 10px;
}

.axis-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Case à cocher cible de rotation (cochée = surface ; décochée = caméra) */
.rot-target-check {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.angle-display {
  width: 32px;
  height: 16px;
  display: inline-flex;
  justify-content: center;
  font-size: 11px;
}

.rotation-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rotation-buttons-vertical button {
  width: 12px;
  height: 10px;
  border: 1px solid #bdc3c7;
  background: #f8f9fa;
  border-radius: 2px;
  cursor: pointer;
  font-size: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.rotation-buttons-vertical button:hover {
  background: #e9ecef;
  transform: scale(1.1);
}

.rotation-buttons-vertical button:active {
  background: #dee2e6;
  transform: scale(0.95);
}

/* === AFFICHAGE ÉCHELLE === */
.scale-display {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 2px 8px;
  margin-top: 2px;
  font-size: 10px;
  color: #000000;
}

.scale-label {
  font-weight: bold;
}

.scale-value {
  font-size: 11px;
  color: #000000;
}

/* Touch : panneau isométries = joystick seul */
.touch-device #isometriesPanel .isometries-c1l1-slot,
.touch-device #isometriesPanel .scale-display,
.touch-device #isometriesPanel .rotation-info,
.touch-device #isometriesPanel .isometries-morph-slot,
.touch-device #isometriesPanel .isometries-stereo-slot {
  display: none !important;
} 