/* ================================
   PAGE PNEUS
   ================================ */

.pneus-hero {
  background: linear-gradient(135deg, #E63329 0%, #c0201a 100%);
  color: white;
  padding: 60px 0;
}

.pneus-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; }
.pneus-hero > .container > p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

.search-form {
  background: white;
  border-radius: 16px;
  padding: 32px;
  color: #333;
}

.dimension-help {
  background: #fce8e7;
  border-left: 4px solid #E63329;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #555;
}

.dimension-help strong { color: #E63329; }

.search-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.field-group label small { font-weight: 400; color: #aaa; }

.field-group input {
  width: 90px;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s;
}

.field-group.optional input { width: 80px; }

.field-group input:focus {
  outline: none;
  border-color: #E63329;
}

.field-group select {
  width: 110px;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  background: white;
}

.field-group select:focus {
  outline: none;
  border-color: #E63329;
}

.field-group.optional select { width: 100px; }

.search-dimension {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.field-sep-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field-sep {
  font-size: 1.5rem;
  font-weight: 900;
  color: #E63329;
  padding-bottom: 4px;
  line-height: 1;
}

.unit {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
}

.saison-filter {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.saison-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.saison-filter input[type="checkbox"] {
  accent-color: #E63329;
  width: 18px;
  height: 18px;
}

.extra-filters {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-toggle input { accent-color: #E63329; width: 18px; height: 18px; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-selector label { font-weight: 600; font-size: 0.95rem; }

.qty-selector select {
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.qty-selector select:focus {
  outline: none;
  border-color: #E63329;
}

.btn-search {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.marque-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marque-btn {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}

.marque-btn:hover {
  border-color: #E63329;
  color: #E63329;
}

.marque-btn.active {
  background: #E63329;
  border-color: #E63329;
  color: white;
}

/* RÉSULTATS */
.pneus-results { padding: 40px 0; }

#results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

#results-header h2 { font-size: 1.3rem; color: #333; }

#sort-select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tire-result-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.tire-result-card:hover {
  border-color: #E63329;
  transform: translateY(-2px);
}

.tire-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tire-brand-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
}

.tire-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

.tire-saison-badge {
  margin-left: auto;
  font-size: 0.8rem;
  padding: 2px 8px;
  background: #fce8e7;
  color: #E63329;
  border-radius: 20px;
  font-weight: 600;
}

.tire-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ev-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-weight: 600;
}

.express-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #fff3e0;
  color: #e65100;
  border-radius: 20px;
  font-weight: 600;
}

.delivery-info {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
}

/* Étiquette EU */
.tire-eu-label {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid #eee;
}

.label-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}

.label-icon { font-size: 1rem; }

.label-val { font-weight: 700; color: #333; }

.label-grade {
  background: #E63329;
  color: white;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
}

.tire-price-label {
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
}

.tire-designation {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.tire-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tire-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #E63329;
}

.tire-price span { font-size: 1rem; }

.btn-order {
  background: #E63329;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.btn-order:hover { background: #c0201a; }

/* Loading */
.loading-state {
  text-align: center;
  padding: 60px 0;
  color: #666;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #f0f0f0;
  border-top-color: #E63329;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #666;
  font-size: 1.1rem;
}

.empty-state a { color: #E63329; font-weight: 700; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
}

.modal-content h3 { margin-bottom: 16px; }

#modal-product {
  background: #fce8e7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.confirm-msg {
  text-align: center;
  padding: 20px;
  line-height: 1.8;
  color: #555;
}

@media (max-width: 768px) {
  .search-fields { gap: 4px; }
  .field-group input { width: 75px; padding: 10px 8px; }
  .pneus-hero h1 { font-size: 1.7rem; }
}
