/* ============================================================
   CHATIVA — homepage.css
   Styles spécifiques à la page d'accueil — thème dark cohérent
   ============================================================ */

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

/* ── Learn more link ─────────────────────────────────────── */
.learn-more-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.learn-more-link:hover {
  color: var(--accent-dark);
}

/* ── Hamburger menu ──────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  border-color: rgba(245,158,11,0.3);
  background: #FFFBF0;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
}

/* ── Comparison table ────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.comparison-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  background: var(--bg-navy);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.comparison-table th.col-pro {
  color: var(--accent);
}

.comparison-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted-dark);
}

.comparison-table td:first-child {
  color: var(--text-dark);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) td {
  background: #F8FAFC;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .col-pro {
  color: var(--accent);
  font-weight: 600;
}

/* ── Step image ──────────────────────────────────────────── */
.step-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-top: 1rem;
  border: 1px solid var(--glass-border);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a p {
  padding: 0 0 1.25rem 0;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin: 0;
}

/* ── Button hover enhancement ────────────────────────────── */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: block; }

  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0F172A;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .navbar-nav.open { display: flex; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr !important; }
  .steps { grid-template-columns: 1fr !important; }
  .comparison-table th,
  .comparison-table td { padding: 0.75rem 1rem; font-size: 0.875rem; }
}
