/* Page styles for comparateur.html */

.page-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 40px 0 20px;
}
.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #111827 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 480px) {
  .page-header h1 { font-size: 2rem; }
}
.page-header p {
  color: #6b7280;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}
.hero-comparateur {
  --card-bg: linear-gradient(0deg, rgba(255,255,255,.95), rgba(255,255,255,.95)), url('https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&q=70&w=1600');
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.hero-comparateur:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
textarea {
  width: 100%;
  height: 220px;
  padding: 18px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  font-size: 15px;
  resize: vertical;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  line-height: 1.6;
}
textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
textarea::placeholder {
  color: #9ca3af;
}
.result {
  margin-top: 32px;
  background: white;
  padding: 28px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}
.result h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #111827;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result h3::before {
  content: '';
}
.result-content {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  min-height: 100px;
  line-height: 1.8;
  border: 1px solid #e5e7eb;
}
.diff-add {
  background: #dcfce7;
  border-radius: 4px;
  padding: 3px 6px;
  border: 1px solid #86efac;
  font-weight: 500;
}
.diff-del {
  background: #fee2e2;
  border-radius: 4px;
  padding: 3px 6px;
  text-decoration: line-through;
  border: 1px solid #fca5a5;
  font-weight: 500;
}
.info-bar {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  padding: 16px 24px;
  border-radius: 12px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #c7d2fe;
}
.info-bar .icon {
  font-size: 1.5rem;
}
.info-bar p {
  margin: 0;
  color: #4338ca;
  font-size: 0.95rem;
  font-weight: 500;
}
.legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.legend-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
