/******************************
 * XW Conseil - Page Home     *
 ******************************/

/* ===== Hero ===== */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 110px;
  color: #fff;
  background: linear-gradient(135deg, #0F2F41 0%, #12354A 60%, #0f2f41 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 28%),
              linear-gradient(120deg, rgba(205,163,73,0.14), rgba(18,53,74,0.5));
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  color: #fff;
}

.hero-subtitle {
  max-width: 820px;
  color: #e8edf1;
  font-size: 1.1rem;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-actions .btn-primary-cta { width: auto; max-width: none; }

.hero-secondary {
  border: 1px solid #fff;
  color: #0f172a;
  background: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  background: #dcb463;
  border-color: #dcb463;
  color: #0f172a;
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 20px;
  color: #dce6ed;
  font-weight: 600;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

@keyframes heroGlow {
  from { transform: translate3d(-4px, -6px, 0) scale(1); opacity: 0.95; }
  to   { transform: translate3d(6px, 8px, 0) scale(1.02); opacity: 1; }
}

/* ===== Pillars ===== */
.pillars-grid {
  gap: 18px;
}

.pillar-card {
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(18,53,74,0.08);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: var(--c-gold);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

/* ===== Section header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--c-gold);
  margin: 0 0 6px;
}

.service-cards .card,
.tool-cards .card,
.resource-cards .card,
.trust-grid .card,
.process .step {
  border: 1px solid #eef3f6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(18,53,74,0.08);
}

.service-cards .card,
.tool-cards .card,
.resource-cards .card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

.service-cards .card .card-icon,
.tool-cards .card .card-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: transparent;
  color: var(--c-gold);
  font-size: 1.2rem;
}

.service-cards .card .btn-primary-cta,
.tool-cards .card .btn-primary-cta,
.resource-cards .card .btn-primary-cta { margin-top: auto; width: 100%; }

/* ===== Trust ===== */
.trust-grid .card { padding: 18px; background: #fff; }
.trust-grid .card.soft {
  border-radius: 14px;
  background: var(--c-beige);
  border-color: #e9dfcc;
  box-shadow: 0 14px 30px rgba(18,53,74,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.trust-grid .card.soft:hover,
.trust-grid .card.soft:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(18,53,74,0.08);
}

/* ===== Process ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.process .step {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #fff;
}

.step-number {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: transparent; /* carré transparent comme sur la page Méthode */
  color: var(--c-gold);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== Testimonials ===== */
.testimonial-grid { gap: 18px; }
.testimonial-grid .card {
  padding: 18px;
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18,53,74,0.08);
}
.testimonial-grid .quote { font-style: italic; color: #234157; }
.testimonial-grid .author { margin-top: 10px; font-weight: 600; color: var(--c-primary); }

/* ===== CTA final ===== */
.cta-final { background: linear-gradient(135deg, #0F2F41, #12354A); color: #fff; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #e8edf1; }
.cta-final .hero-secondary { border-color: #fff; background: #fff; color: #0f172a; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .home-hero { padding: 110px 0 90px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary-cta { width: 100%; max-width: 320px; }
  .hero-secondary { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 640px) {
  .home-hero { padding: 90px 0 70px; }
  .section-header { align-items: flex-start; }
  .pillars-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-overlay { animation: none; }
}
