/* ============================================================
   SIS Digital Factory — Styles spécifiques à index.html
   ============================================================ */

/* ============================================================
   HERO — TEXTE FANTÔME (basse opacité en arrière-plan)
   ============================================================ */

@keyframes hero-bg-drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(-10px, -6px) rotate(0.5deg); }
}
@keyframes hero-bg-drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%       { transform: translate(8px, -5px) rotate(-0.5deg); }
}
@keyframes hero-bg-drift-c {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50%       { transform: translate(5px, -8px) rotate(-5deg); }
}

.hero-bg-word-1 { animation: hero-bg-drift-a 22s ease-in-out infinite; }
.hero-bg-word-2 { animation: hero-bg-drift-b 28s ease-in-out infinite 4s; }
.hero-bg-word-3 { animation: hero-bg-drift-c 18s ease-in-out infinite 2s; }

/* ============================================================
   HERO — FORMES FLOTTANTES
   ============================================================ */

@keyframes hero-float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes hero-float-up-sm {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
@keyframes hero-float-rotate {
  0%, 100% { transform: translateY(0)   rotate(45deg); }
  50%       { transform: translateY(-12px) rotate(56deg); }
}
@keyframes hero-float-drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(7px, -11px); }
  66%       { transform: translate(-4px, -7px); }
}

.hero-float-1 { animation: hero-float-up    6s   ease-in-out infinite; }
.hero-float-2 { animation: hero-float-drift  8s   ease-in-out infinite 1s; }
.hero-float-3 { animation: hero-float-up    7.5s ease-in-out infinite 2.5s; }
.hero-float-6 { animation: hero-float-up-sm 11s  ease-in-out infinite 1.5s; }
.hero-float-4 { animation: hero-float-rotate 9s  ease-in-out infinite 0.5s; }
.hero-float-5 { animation: hero-float-drift   5.5s ease-in-out infinite 3s; }

/* ============================================================
   HERO — POINTS PULSANTS
   ============================================================ */

@keyframes hero-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.40; }
  50%       { transform: scale(2);   opacity: 0.10; }
}
@keyframes hero-dot-fade {
  0%, 100% { opacity: 0.30; }
  50%       { opacity: 0.60; }
}

.hero-dot-1 { animation: hero-dot-pulse 4s   ease-in-out infinite; }
.hero-dot-2 { animation: hero-dot-pulse 5.5s ease-in-out infinite 1.5s; }
.hero-dot-3 { animation: hero-dot-pulse 3.5s ease-in-out infinite 0.8s; }
.hero-dot-4 { animation: hero-dot-fade  4.5s ease-in-out infinite 2s; }

/* ============================================================
   HERO — LIGNES DÉCORATIVES
   ============================================================ */

@keyframes hero-line-expand {
  0%, 100% { transform: scaleX(1);   opacity: 0.30; }
  50%       { transform: scaleX(1.5); opacity: 0.55; }
}
@keyframes hero-line-expand-v {
  0%, 100% { transform: scaleY(1)   rotate(90deg); opacity: 0.25; }
  50%       { transform: scaleY(1.6) rotate(90deg); opacity: 0.50; }
}

.hero-line-1 { animation: hero-line-expand   7s ease-in-out infinite 1s; }
.hero-line-2 { animation: hero-line-expand-v 8s ease-in-out infinite 2s; }

/* ============================================================
   HERO — TITRE : GLOW ACCENT
   ============================================================ */

@keyframes hero-text-glow {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.12) drop-shadow(0 0 16px rgba(21, 91, 216, 0.40)); }
}

.hero-text-glow {
  display: inline-block;
  animation: hero-text-glow 4s ease-in-out infinite;
}

/* ============================================================
   HERO — Décoration radiale
   ============================================================ */
.hero-glow {
  background: radial-gradient(circle, rgba(31, 108, 247, 0.18), transparent 60%);
  filter: blur(64px);
  pointer-events: none;
}

/* ============================================================
   SECTION PARCOURS — Journey Step Cards
   UI/UX Pro Max: elevation scale, 8dp spacing, hover states
   ============================================================ */

.journey-step-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  padding: 1.375rem 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 350ms cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}
.journey-step-card:hover {
  border-color: var(--sis-blue-200);
  box-shadow: 0 8px 28px rgba(21, 91, 216, 0.09), 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(-5px);
}

.journey-step-card--active {
  background: linear-gradient(150deg, var(--sis-blue-600) 0%, var(--sis-blue-800) 100%);
  border-radius: 18px;
  border: 1px solid var(--sis-blue-500);
  box-shadow: 0 8px 36px rgba(21, 91, 216, 0.38), 0 2px 8px rgba(21, 91, 216, 0.18);
  padding: 1.375rem 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 350ms cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}
.journey-step-card--active:hover {
  box-shadow: 0 14px 48px rgba(21, 91, 216, 0.48), 0 4px 12px rgba(21, 91, 216, 0.22);
  transform: translateY(-5px);
}
/* Halo interne discret sur la carte active */
.journey-step-card--active::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  padding-bottom: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}

/* CTA link avec animation gap */
.journey-cta-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sis-blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 200ms ease-out, color 200ms ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.journey-cta-link:hover {
  color: var(--sis-blue-800);
  gap: 0.625rem;
}

/* ============================================================
   SECTION 3 ÉTAPES — Process Steps
   ============================================================ */

.process-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid var(--sis-blue-100);
  box-shadow: 0 4px 16px rgba(21, 91, 216, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
}
.process-step-icon:hover,
.group:hover .process-step-icon {
  border-color: var(--sis-blue-300);
  box-shadow: 0 8px 28px rgba(21, 91, 216, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(-3px);
}
.process-step-icon--active {
  background: linear-gradient(145deg, var(--sis-blue-50) 0%, #ffffff 100%);
  border-color: var(--sis-blue-300);
  border-width: 2px;
  box-shadow: 0 6px 24px rgba(21, 91, 216, 0.16), 0 2px 8px rgba(21, 91, 216, 0.08);
}
.group:hover .process-step-icon--active {
  border-color: var(--sis-blue-500);
  box-shadow: 0 10px 36px rgba(21, 91, 216, 0.26);
}

/* Connecteur entre étapes (desktop) */
.process-connector {
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--sis-blue-200), transparent);
  flex: 1;
  margin-top: -36px; /* aligne avec le centre des icônes */
}

/* Ligne absolue entre les 3 étapes dans la grille desktop */
.step-connector-line {
  background: linear-gradient(90deg, transparent, var(--sis-blue-200) 30%, var(--sis-blue-200) 70%, transparent);
}

/* ============================================================
   SECTION SERVICES — Service Cards (refonte premium)
   UI/UX Pro Max: accent border, elevation, icon states
   ============================================================ */

.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid #F1F5F9;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* Accent bar gauche au hover */
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  background: linear-gradient(180deg, var(--sis-blue-400), var(--sis-blue-600));
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.service-card:hover {
  border-color: var(--sis-blue-100);
  box-shadow: 0 6px 22px rgba(21, 91, 216, 0.09), 0 1px 4px rgba(15, 23, 42, 0.03);
  transform: translateY(-2px) translateX(3px);
}

/* Icône dans la service card */
.service-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
  transition: all 300ms ease;
}
.service-card:hover .service-icon-wrap {
  background: var(--sis-blue-50);
  border-color: var(--sis-blue-200);
}

/* Numéro de service (style raffiné) */
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: right;
  transition: color 250ms ease;
}
.service-card:hover .service-num {
  color: var(--sis-blue-300);
}

/* Carte catalogue complet — premium dark */
.service-card-catalog {
  background: linear-gradient(145deg, #0F172A 0%, var(--sis-blue-900) 100%);
  border-radius: 18px;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(10, 42, 96, 0.40), 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
/* Shimmer interne */
.service-card-catalog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.service-card-catalog:hover {
  box-shadow: 0 10px 36px rgba(10, 42, 96, 0.55), 0 2px 8px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.10);
}
.catalog-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card-catalog:hover .catalog-arrow-btn {
  background: var(--sis-blue-600);
  border-color: var(--sis-blue-500);
  transform: translateX(3px);
}

/* ============================================================
   SECTION TARIF — Carte pricing dark premium
   ============================================================ */

.pricing-card {
  background: linear-gradient(150deg, var(--sis-blue-600) 0%, var(--sis-blue-900) 100%);
  border-radius: 28px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(10, 42, 96, 0.50), 0 4px 16px rgba(0, 0, 0, 0.15);
}
@media (min-width: 640px) {
  .pricing-card { padding: 3.5rem 4.5rem; }
}
/* Shimmer */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 55%);
  pointer-events: none;
}
/* Halo décoratif */
.pricing-card::after {
  content: '';
  position: absolute;
  top: -25%; right: -10%;
  width: 55%;
  padding-bottom: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 108, 247, 0.22), transparent 70%);
  pointer-events: none;
}

/* Bouton blanc sur fond dark */
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: #ffffff;
  color: var(--sis-blue-700);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, color 200ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.btn-on-dark:hover {
  color: var(--sis-blue-800);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

/* Bouton ghost sur fond dark */
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 250ms ease-out;
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION CTA FINALE — Bandeau dark gradient
   ============================================================ */

.cta-banner {
  background: linear-gradient(150deg, var(--sis-blue-600) 0%, var(--sis-blue-900) 100%);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 48px rgba(10, 42, 96, 0.38);
}
@media (min-width: 640px) {
  .cta-banner { padding: 4.5rem 3rem; }
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 108, 247, 0.22), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 58, 133, 0.28), transparent 60%);
  filter: blur(48px);
  pointer-events: none;
}

/* ============================================================
   BROWSER MOCKUP — frame produit dans le hero
   ============================================================ */

.browser-mockup {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--sis-glass-border-strong);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.browser-chrome {
  background: #F8FAFC;
  border-bottom: 1px solid var(--sis-light-200);
  padding: 0.5rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-url {
  flex: 1;
  background: #EEF2F7;
  border-radius: 20px;
  height: 20px;
  margin-left: 0.5rem;
}

/* ============================================================
   HERO — IMAGE D'ARRIÈRE-PLAN (très faible opacité)
   ============================================================ */

.hero-bg-img {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

/* ============================================================
   BLOCS BLEUS — IMAGE D'ARRIÈRE-PLAN (très faible opacité)
   ============================================================ */

.cta-bg-img {
  opacity: 0.22;
  mix-blend-mode: overlay;
}

/* ============================================================
   SCROLLBAR HIDE — showcase gallery
   ============================================================ */

.scrollbar-hide {
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.showcase-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

/* ============================================================
   CARD IMAGE — image de couverture dans les cards "Ce que vous obtenez"
   ============================================================ */

.card-img-cover {
  height: 9rem;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.card-img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-scale:hover .card-img-cover img {
  transform: scale(1.05);
}

/* ============================================================
   PROOF STRIP — bande social proof
   ============================================================ */

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--sis-light-200);
}

.proof-avatar-stack {
  display: flex;
}
.proof-avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--sis-light-200);
  object-fit: cover;
  margin-left: -8px;
}
.proof-avatar-stack img:first-child {
  margin-left: 0;
}

.proof-sep {
  width: 1px;
  height: 20px;
  background: var(--sis-light-200);
}

/* ============================================================
   RESPONSIVE — réduction sur petits écrans
   ============================================================ */

@media (max-width: 767px) {
  .hero-bg-word-2, .hero-bg-word-3 { display: none; }
  .hero-float-4, .hero-float-6, .hero-dot-2, .hero-dot-4,
  .hero-line-1, .hero-line-2 { display: none; }
  .hero-bg-word-1 { font-size: clamp(5rem, 28vw, 10rem); }
  .process-connector { display: none; }
}

@media (max-width: 479px) {
  .hero-float-3, .hero-dot-3 { display: none; }
  .hero-bg-word-1 { opacity: 0.03 !important; }
  .pricing-card { padding: 2rem 1.25rem; }
  .cta-banner   { padding: 2.5rem 1.25rem; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  aside.hover-scale { max-width: 480px; }
}

@media (max-width: 360px) {
  footer .grid { grid-template-columns: 1fr; }
}
