/* ============================================================
   COMPTA CANADA - STYLES PREMIUM COMPLÉMENTAIRES
   Pour : hero stats, problèmes/solutions, comparatif, secteurs, blog
   ============================================================ */

/* HERO STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-200);
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--grey-500);
  font-weight: 500;
}

/* PROBLEMES / SOLUTIONS */
.problems-solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.ps-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 2px solid;
}

.ps-problem {
  border-color: rgba(192,0,0,0.15);
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
}

.ps-solution {
  border-color: rgba(46,125,50,0.2);
  background: linear-gradient(135deg, #F0F9F0 0%, #FFFFFF 100%);
  box-shadow: 0 10px 30px rgba(46,125,50,0.08);
}

.ps-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.ps-card h3 {
  font-size: 1.375rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.ps-problem h3 { color: var(--red); }
.ps-solution h3 { color: var(--green); }

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

.ps-card ul li {
  padding: 12px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

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

.ps-problem ul li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: rgba(192,0,0,0.15);
  color: var(--red);
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-solution ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TABLEAU COMPARATIF */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: white;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.9375rem;
}

.comparison-table thead th {
  background: var(--grey-50);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--grey-700);
  border-bottom: 2px solid var(--grey-200);
  white-space: nowrap;
}

.comparison-table thead th.highlight {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
}

.comparison-table tbody td:first-child {
  background: var(--grey-50);
  font-weight: 600;
  width: 25%;
}

.comparison-table tbody td.highlight {
  background: linear-gradient(135deg, rgba(192,0,0,0.05) 0%, rgba(184,134,11,0.05) 100%);
  font-weight: 700;
  color: var(--green);
}

.comparison-table tbody tr:hover td:not(:first-child):not(.highlight) {
  background: var(--grey-50);
}

/* SECTEURS / METIERS */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.sector-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--grey-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

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

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(192,0,0,0.08) 0%, rgba(184,134,11,0.08) 100%);
  border-radius: var(--radius-md);
}

.sector-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.sector-card > p {
  color: var(--grey-500);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sector-card ul {
  list-style: none;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--grey-100);
}

.sector-card ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.875rem;
  color: var(--grey-700);
}

.sector-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--grey-200);
  transition: all 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(192,0,0,0.08);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.blog-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--dark);
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--grey-500);
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* MAPLE LEAF UTILITY */
.maple-leaf {
  display: inline-block;
  vertical-align: middle;
}

.maple-leaf-bullet::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url('assets/maple-leaf-32.png') no-repeat center / contain;
  margin-right: 8px;
  vertical-align: middle;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .problems-solutions { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sectors-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .ps-card { padding: 24px; }
  .ps-card h3 { font-size: 1.125rem; }
}
