/* ============================================
   Semcode.fr — Custom Styles
   Charte: Navy #333B75, Off-white #F0F5F9,
           Primary #6BA3D6, Secondary #A8C6E6
   ============================================ */

/* --- Scroll behavior --- */
html {
  scroll-behavior: smooth;
}

/* --- Headings font --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
}

/* --- Navbar --- */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(51, 59, 117, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* --- Hero animated curves --- */
.hero-curves path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawCurve 1.5s ease-out forwards;
}
.hero-curves path:nth-child(1) { animation-delay: 0.2s; }
.hero-curves path:nth-child(2) { animation-delay: 0.5s; }
.hero-curves path:nth-child(3) { animation-delay: 0.8s; }
.hero-curves circle {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.3s forwards;
}

@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Scroll reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Counter animation --- */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --- Card hover effects --- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(51, 59, 117, 0.15);
}

/* --- Feature icon container --- */
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

/* --- Accordion transition --- */
.accordion-content {
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* --- Timeline --- */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #397DC6, #A8C6E6);
  transform: translateX(-50%);
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #6BA3D6;
  background: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
}

/* --- Lifecycle stepper --- */
.lifecycle-step {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 0 8px;
}
.lifecycle-step::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #397DC6, #A8C6E6);
  z-index: 0;
}
.lifecycle-step:last-child::after {
  display: none;
}
.lifecycle-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 14px;
}

/* --- Pricing toggle --- */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(51, 59, 117, 0.12);
}
.pricing-popular::before {
  content: 'Populaire';
  position: absolute;
  top: 16px;
  right: -30px;
  background: #397DC6;
  color: #fff;
  padding: 4px 40px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

/* --- CTA gradient background --- */
.cta-gradient {
  background: linear-gradient(135deg, #397DC6 0%, #6BA3D6 100%);
}

/* --- Footer links --- */
.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #6BA3D6;
}

/* --- Active nav link --- */
.nav-link-active {
  color: #6BA3D6 !important;
  position: relative;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #6BA3D6;
  border-radius: 1px;
}

/* --- Badge --- */
.badge-dev {
  background: linear-gradient(135deg, #6BA3D6 0%, #397DC6 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* --- Module grid card --- */
.module-card {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}
.module-card:hover {
  border-color: #6BA3D6;
  box-shadow: 0 4px 16px rgba(107, 163, 214, 0.15);
}

/* --- Smooth page transitions --- */
body {
  opacity: 0;
  animation: pageLoad 0.4s ease-out forwards;
}
@keyframes pageLoad {
  to { opacity: 1; }
}

/* --- Form focus styles --- */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6BA3D6 !important;
  box-shadow: 0 0 0 3px rgba(107, 163, 214, 0.15);
}

/* --- Honeypot --- */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Gradient text helper --- */
.text-gradient {
  background: linear-gradient(135deg, #397DC6, #A8C6E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
