/* ============================================================
   ALL-IN-ONE MACHINES PAGES - Modern Design Enhancement
   Pour les pages de machines tout-en-un (FR, EN, AR)
   ============================================================ */

/* ============= COMPARISON TABLE ============= */
.comparison-table {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  overflow: hidden;
  margin: 60px 0;
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.15);
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  padding: 25px 30px;
  gap: 20px;
}

.comparison-header h4 {
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  padding: 20px 30px;
  gap: 20px;
  border-bottom: 1px solid var(--dark4);
  transition: background 0.3s ease;
}

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

.comparison-row:hover {
  background: var(--dark4);
}

.comparison-label {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.comparison-value {
  color: var(--cream-dim);
  font-size: 0.95rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.comparison-value.yes {
  color: var(--accent-green);
  font-size: 1.3rem;
}

.comparison-value.no {
  color: var(--cream-dim);
  opacity: 0.5;
}

/* ============= SECTION TITLE ============= */
.section-title {
  text-align: center;
  margin: 80px 0 60px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--cream-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============= BRAND SECTIONS ============= */
.brand-section {
  margin: 100px 0;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.brand-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--gold-soft), transparent);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
}

.brand-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 20px;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--dark);
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.35);
  flex-shrink: 0;
}

.brand-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.brand-info p {
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============= MODELS GRID ============= */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.model-card {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 1px solid var(--dark4);
  border-radius: 25px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.model-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(201, 168, 76, 0.2);
  border-color: var(--gold-dim);
}

.model-card:hover::before {
  transform: scaleX(1);
}

.model-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.model-badge.flagship {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
}

.model-badge.breakthrough {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--cream);
}

.model-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 15px;
  line-height: 1.3;
}

.model-price {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 30px;
  display: inline-block;
  padding: 8px 16px;
  background: var(--gold-soft);
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
}

/* ============= MODEL FEATURES ============= */
.model-features {
  margin-bottom: 25px;
}

.feature-item {
  padding: 12px 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--dark3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============= TECH HIGHLIGHTS ============= */
.tech-highlights {
  background: var(--dark4);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid var(--dark3);
  margin-top: 20px;
}

.tech-highlights h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 15px;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.tech-item {
  background: var(--dark3);
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

/* ============= FUTURE SECTION ============= */
.future-section {
  margin: 120px 0;
  padding: 60px 0;
}

.future-title {
  text-align: center;
  margin-bottom: 60px;
}

.future-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.future-title p {
  color: var(--cream-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.future-card {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 1px solid var(--dark4);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.future-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.future-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(201, 168, 76, 0.2);
  border-color: var(--gold-dim);
}

.future-card:hover::before {
  transform: scaleX(1);
}

.future-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}

.future-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 15px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.future-card p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-card,
.future-card {
  animation: fadeInUp 0.6s ease backwards;
}

.model-card:nth-child(1),
.future-card:nth-child(1) { animation-delay: 0.05s; }
.model-card:nth-child(2),
.future-card:nth-child(2) { animation-delay: 0.1s; }
.model-card:nth-child(3),
.future-card:nth-child(3) { animation-delay: 0.15s; }
.model-card:nth-child(4),
.future-card:nth-child(4) { animation-delay: 0.2s; }

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 768px) {
  .comparison-table {
    overflow-x: auto;
    border-radius: 15px;
  }

  .comparison-header,
  .comparison-row {
    min-width: 600px;
    padding: 15px;
    gap: 10px;
  }

  .comparison-header h4,
  .comparison-label,
  .comparison-value {
    font-size: 0.85rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .brand-header {
    flex-direction: column;
    text-align: center;
    padding: 25px;
    gap: 20px;
  }

  .brand-header::before {
    right: 50%;
    transform: translateX(50%);
  }

  .brand-logo {
    margin: 0 auto;
  }

  .brand-info h3 {
    font-size: 1.6rem;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    padding: 25px;
  }

  .model-name {
    font-size: 1.5rem;
  }

  .model-price {
    font-size: 1.2rem;
  }

  .future-grid {
    grid-template-columns: 1fr;
  }

  .future-title h3 {
    font-size: 2rem;
  }

  .future-card h4 {
    min-height: auto;
    font-size: 1.2rem;
  }
}

/* ============= ARABIC RTL SUPPORT ============= */
[dir="rtl"] .comparison-table {
  direction: rtl;
}

[dir="rtl"] .brand-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .brand-header::before {
  right: auto;
  left: 0;
}

[dir="rtl"] .feature-item::before {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 768px) {
  [dir="rtl"] .brand-header {
    flex-direction: column;
    text-align: center;
  }

  [dir="rtl"] .brand-header::before {
    right: 50%;
    left: auto;
    transform: translateX(-50%);
  }

  [dir="rtl"] .brand-logo {
    margin: 0 auto;
  }
}