/* ================================================
   CONFIGURATEUR TEINTES V3 - 2 sliders (avant + arrière)
   ================================================ */

.tint-config {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060608 100%);
}

.tint-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tint-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .tint-grid { grid-template-columns: 1fr; }
}

/* === Preview voiture === */
.tint-preview {
  position: relative;
  background: linear-gradient(180deg, #1a1a1f 0%, #0a0a0c 100%);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1400 / 700;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.tint-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tint-preview-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(168,19,140,0.3);
}

/* === Panneau de contrôle === */
.tint-controls {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

@media (max-width: 1024px) {
  .tint-controls { position: static; }
}

.tint-section h4 {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tint-section-title-icon {
  font-size: 1.1rem;
}

/* Bloc d'un slider individuel */
.tint-slider-block {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.tint-slider-block.is-front {
  border-color: rgba(168, 19, 140, 0.25);
}

.tint-slider-block.is-rear {
  border-color: rgba(34, 197, 94, 0.25);
}

.tint-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}

.tint-slider-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tint-slider-icon {
  width: 28px;
  height: 18px;
  flex-shrink: 0;
}

.tint-percent {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-light);
  line-height: 1;
}

.tint-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #f5f5f5 0%, #888 50%, #1a1a1a 100%);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin-bottom: 0.4rem;
}

.tint-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: white;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.tint-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: white;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.tint-slider-name {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Presets rapides (raccourcis) */
.tint-presets-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tint-preset-quick {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.tint-preset-quick:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.tint-preset-quick.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: var(--accent);
  color: white;
}

.tint-preset-quick strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1px;
}

/* Avis légal */
.tint-legal {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.tint-legal-icon {
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
}

.tint-legal.legal-ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.tint-legal.legal-warning {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tint-legal strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* Boutons d'action */
.tint-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tint-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
  .tint-config { padding: 2.5rem 0; }
  .tint-controls { padding: 1.25rem; }
  .tint-percent { font-size: 1.4rem; }
}
