/* ==========================================
   SERVICES.CSS - KarimBuilds
   Page Services - Mise en page classique optimisée conversion
   Architecture linéaire traditionnelle, sans Bento Box
   ========================================== */

/* ===== HERO - Centré et classique ===== */
.services-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(43, 127, 217, 0.02) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  padding: 6rem 0 3rem;
  text-align: center;
}

.services-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding: 0.5rem 1.25rem;
  background: rgba(43, 127, 217, 0.08);
  border-radius: var(--radius-full);
}

.services-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.services-hero-title .accent {
  background: var(--gradient-bold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-hero-subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-ghost {
  background: white;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.services-hero-meta {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

.services-hero-meta span {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.services-hero-meta span::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== SECTIONS GÉNÉRALES ===== */
.services-section {
  padding: 4.5rem 0;
}

.services-pillars {
  background: white;
}

.services-templates,
.services-tools,
.services-bundles {
  background: var(--color-bg-light);
}

.services-method-why {
  background: white;
}

.services-pricing,
.services-faq {
  background: var(--color-bg-light);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-bold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* ===== 3 PILIERS - Grid classique 3 colonnes ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: calc(10px + 0.5rem);
}

.pillar-card {
  padding: 2.5rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.pillar-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.pillar-card > p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.5rem;
}

.pillar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-card ul li {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  color: var(--color-text);
  line-height: 1.6;
}

.pillar-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== TEMPLATES - Cards verticales classiques ===== */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-template {
  padding: 2.5rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card-template:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.card-template h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.3;
}

.card-intro {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-relaxed);
  flex-grow: 0;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.card-list li {
  padding: 0.75rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  line-height: 1.5;
  font-size: var(--font-size-sm);
  padding-left: 1.5rem;
  position: relative;
}

.card-list li:last-child {
  border-bottom: none;
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.card-target {
  padding: 1rem 1.25rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.card-target strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.card-price {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(43, 127, 217, 0.05) 0%, rgba(91, 79, 184, 0.05) 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-price span {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-price strong {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  background: var(--gradient-bold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-template .btn {
  width: 100%;
  margin-top: auto;
}

/* ===== OUTILS MÉTIER - Grid 2 colonnes ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card-tool {
  padding: 2rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.card-tool:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card-tool h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.card-tool p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.5rem;
}

.card-tool ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-tool ul li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.card-tool ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

/* ===== BUNDLES - Grid 3 colonnes ===== */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card-bundle {
  padding: 2rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.card-bundle:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card-bundle h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.card-bundle > p:first-of-type {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-relaxed);
}

.section-note {
  max-width: 700px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(43, 127, 217, 0.05);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ===== MÉTHODE + POURQUOI - Section fusionnée 2 colonnes ===== */
.services-method-why {
  background: white;
}

.method-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.method-column {
  display: flex;
  flex-direction: column;
}

.method-column h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-bold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.method-column > p {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
}

.why-column {
  display: flex;
  flex-direction: column;
}

.why-column h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-bold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-column > p {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: var(--line-height-relaxed);
}

/* ===== MÉTHODE - Liste verticale numérotée compacte ===== */
.method-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.method-steps li {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
}

.method-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-md);
  margin-left: -1rem;
}

.method-steps li:hover {
  border-left-color: var(--color-primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.method-steps h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
  padding-left: 1.25rem;
}

.method-steps p {
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
  margin-bottom: 0;
  padding-left: 1.25rem;
  font-size: var(--font-size-sm);
}

/* ===== POURQUOI MOI - Liste verticale compacte ===== */
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-item {
  padding: 1.5rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-border);
  transition: all var(--transition-base);
}

.why-item:hover {
  border-left-color: var(--color-primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.why-item h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.why-item p {
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

/* ===== PRICING - Bloc enrichi avec hiérarchie visuelle ===== */
.pricing-content {
  max-width: 850px;
  margin: 0 auto;
}

/* Intro principale */
.pricing-content > p:first-of-type {
  font-size: var(--font-size-lg);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}

/* Liste des options */
.pricing-content ul {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  display: grid;
  gap: 1rem;
}

.pricing-content ul li {
  padding: 1.5rem 1.75rem;
  margin-bottom: 0;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  position: relative;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  transition: all var(--transition-base);
  padding-left: 3.5rem;
}

.pricing-content ul li:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.pricing-content ul li::before {
  content: '✓';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(43, 127, 217, 0.7) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Conclusion avec encadré */
.pricing-content > p:last-of-type {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(43, 127, 217, 0.04) 0%, rgba(91, 79, 184, 0.04) 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
  margin-top: 2.5rem;
  font-weight: 500;
}

/* ===== FAQ - Liste verticale centrée ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  padding: 2rem 2.5rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.faq-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.4;
}

.faq-item p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* ===== CTA FINAL - Bloc centré hero-like ===== */
.services-final-cta {
  padding: 4.5rem 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(43, 127, 217, 0.03) 100%
  );
  text-align: center;
}

.final-cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border-light);
  box-shadow: var(--shadow-xl);
}

.final-cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.25;
}

.final-cta-content p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 2.5rem;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

/* ===== RESPONSIVE - Tablette ===== */
@media (max-width: 1024px) {
  .pillars-grid,
  .templates-grid,
  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-column {
    order: 2;
  }

  .method-column {
    order: 1;
  }
}

/* ===== RESPONSIVE - Mobile ===== */
@media (max-width: 768px) {
  .services-hero {
    min-height: auto;
    padding: 5rem 0 2.5rem;
  }

  .services-hero-title {
    font-size: 2rem;
  }

  .services-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .services-hero-actions .btn {
    width: 100%;
  }

  .services-hero-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .services-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .pillars-grid,
  .templates-grid,
  .tools-grid,
  .bundles-grid {
    grid-template-columns: 1fr;
  }

  .method-why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .method-steps li {
    padding: 1rem 1.25rem 1rem 2rem;
  }

  .method-steps li::before {
    width: 2rem;
    height: 2rem;
    font-size: var(--font-size-xs);
    margin-left: -1rem;
  }

  .method-steps h3,
  .method-steps p {
    padding-left: 0.75rem;
  }

  .why-item {
    padding: 1.25rem;
  }

  .pricing-content,
  .final-cta-content {
    padding: 2rem 1.5rem;
  }

  .pricing-content > p:first-of-type {
    font-size: var(--font-size-base);
    text-align: left;
  }

  .pricing-content ul li {
    padding: 1.25rem 1.25rem 1.25rem 3rem;
  }

  .pricing-content ul li::before {
    width: 1.5rem;
    height: 1.5rem;
    left: 1rem;
    font-size: 0.75rem;
  }

  .pricing-content > p:last-of-type {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .final-cta-content h2 {
    font-size: 1.5rem;
  }

  .btn-large {
    width: 100%;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .pillar-card,
  .card-template,
  .card-tool,
  .card-bundle,
  .why-item,
  .faq-item {
    padding: 1.5rem;
  }

  .card-price strong {
    font-size: var(--font-size-xl);
  }

  .method-steps li {
    padding: 1rem 1rem 1rem 1.75rem;
  }

  .method-why-grid {
    gap: 2rem;
  }
}

/* ===== ANIMATIONS SCROLL REVEAL ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-play-state: paused;
}

.scroll-reveal.revealed {
  animation-play-state: running;
}