/**
 * Services Pages - Shared Styles
 * Styles communs pour toutes les pages de services
 */

/* Feature Cards */
.feature-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-1);
}

.feature-card__text {
  line-height: 1.6;
  color: var(--text-2);
}

/* Repair Categories Grid */
.repair-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.repair-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.repair-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.repair-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.repair-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.repair-card li {
  padding: 0.5rem 0;
  line-height: 1.6;
  color: #666;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.repair-card li:last-child {
  border-bottom: none;
}

.repair-card strong {
  color: #333;
  font-weight: 600;
}

.repair-price {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
  border-radius: 8px;
  text-align: center;
  color: #667eea;
  font-weight: 600;
}

/* Pricing Tables */
.pricing-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  gap: 1rem;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row:nth-child(even) {
  background: #f9f9f9;
}

.pricing-label {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.pricing-value {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 600;
  white-space: nowrap;
}

/* Phone Pricing (for repair pages) */
.phone-pricing {
  margin-top: 1.5rem;
}

.brand-section {
  margin-bottom: 2rem;
}

.brand-section:last-child {
  margin-bottom: 0;
}

.brand-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
}

.pricing-grid {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* FAQ Lists */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem;
  list-style: none;
  user-select: none;
  color: #333;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "▶ ";
  margin-right: 0.5rem;
  color: #667eea;
  transition: transform 0.3s;
  display: inline-block;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item p {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  line-height: 1.6;
  color: #666;
}

.faq-item strong {
  color: #667eea;
  font-weight: 600;
}

/* Info Panel Variants */
.info-panel--highlight {
  background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
  border: 2px solid rgba(102,126,234,0.4);
  text-align: center;
  padding: 2rem;
}

.info-panel--highlight .info-panel__title {
  color: #667eea;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.info-panel--highlight .info-panel__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* Section Grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* CTA Stack */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  align-items: center;
}

.cta-stack .btn {
  min-width: 280px;
}

/* Dark Mode Overrides */
.dark-mode .repair-card {
  background: var(--surface-2);
  border-left-color: #764ba2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-mode .repair-card h3 {
  color: var(--text-1);
}

.dark-mode .repair-card li {
  color: var(--text-2);
  border-bottom-color: rgba(255,255,255,0.05);
}

.dark-mode .repair-card strong {
  color: var(--text-1);
}

.dark-mode .pricing-table {
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode .pricing-row {
  border-bottom-color: var(--surface-3);
}

.dark-mode .pricing-row:nth-child(even) {
  background: var(--surface-1);
}

.dark-mode .pricing-label {
  color: var(--text-1);
}

.dark-mode .pricing-value {
  color: #764ba2;
}

.dark-mode .brand-section h3 {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.dark-mode .pricing-grid {
  background: var(--surface-2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode .faq-item {
  background: var(--surface-2);
  border-left-color: #764ba2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.dark-mode .faq-item summary {
  color: var(--text-1);
}

.dark-mode .faq-item summary::before {
  color: #764ba2;
}

.dark-mode .faq-item p {
  color: var(--text-2);
}

.dark-mode .faq-item strong {
  color: #764ba2;
}

.dark-mode .info-panel--highlight {
  background: linear-gradient(135deg, rgba(118,75,162,0.2) 0%, rgba(102,126,234,0.2) 100%);
  border-color: rgba(118,75,162,0.5);
}

.dark-mode .info-panel--highlight .info-panel__title {
  color: #a78bfa;
}

.dark-mode .info-panel--highlight .info-panel__text {
  color: var(--text-1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .repair-categories {
    grid-template-columns: 1fr;
  }
  
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .pricing-value {
    font-size: 1rem;
  }
  
  .cta-stack .btn {
    width: 100%;
    min-width: auto;
  }
  
  .brand-section h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .repair-card {
    padding: 1rem;
  }
  
  .faq-item {
    padding: 1rem;
  }
  
  .info-panel--highlight {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.repair-card,
.faq-item,
.pricing-table {
  animation: fadeInUp 0.6s ease-out;
}

.repair-card:nth-child(1) { animation-delay: 0.1s; }
.repair-card:nth-child(2) { animation-delay: 0.2s; }
.repair-card:nth-child(3) { animation-delay: 0.3s; }
.repair-card:nth-child(4) { animation-delay: 0.4s; }
.repair-card:nth-child(5) { animation-delay: 0.5s; }
.repair-card:nth-child(6) { animation-delay: 0.6s; }
