/* ==========================================
   1. VARIABLES & REINITIALISATION GLOBAL
========================================== */
:root {
  --bg-deep: #0e0927;
  --bg-1: #130b39;
  --bg-2: #1a0644;
  --bg-3: #231542;
  --text-main: #ced0f5;
  --text-white: #ffffff;
  --text-muted: #8b8fc4;
  --accent-violet: #7c5cfc;
  --accent-violet-light: #a78bfa;
  --accent-teal: #2dd4bf;
  --accent-pink: #f472b6;
  --accent-amber: #fbbf24;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(124, 92, 252, 0.18);
  --glow: rgba(124, 92, 252, 0.25);
  
  --font-body: 'DM Sans', sans-serif;
  --font-title: 'Syne', sans-serif;
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  min-height: 100vh;
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGES ─── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }


/* ==========================================
   2. NAVIGATION
========================================== */
nav {
  position: fixed; 
  top: 0; left: 0; right: 0; 
  z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(13, 9, 39, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(124, 92, 252, 0.12);
}

.nav-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-white);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo span { color: var(--accent-violet-light); }

.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-white); }

.nav-cta {
  background: linear-gradient(90deg, var(--accent-violet), #9d6fff);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.35);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 28px rgba(124, 92, 252, 0.5); 
}


/* ==========================================
   3. HERO SECTION
========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 3rem;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 { width: 600px; height: 600px; background: rgba(124, 92, 252, 0.18); top: -150px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: rgba(45, 212, 191, 0.1); bottom: -100px; right: -150px; }
.orb-3 { width: 350px; height: 350px; background: rgba(244, 114, 182, 0.08); top: 40%; left: 50%; transform: translate(-50%, -50%); }

.hero-badge {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-violet-light);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before { 
  content: '●'; 
  color: var(--accent-teal); 
  animation: pulse 2s infinite; 
}

.hero-badge img {
  height: 22px;
  width: auto;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 860px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title .accent { color: var(--accent-violet-light); }
.hero-title .accent-teal { color: var(--accent-teal); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-buttons {
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
  flex-wrap: wrap;
  margin-top: 1.8rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-violet), #9d6fff);
  color: #fff; 
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 500; 
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(124, 92, 252, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 40px rgba(124, 92, 252, 0.55); 
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(206, 208, 245, 0.25);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 500; 
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover { 
  border-color: var(--accent-violet-light); 
  color: var(--text-white); 
  background: rgba(124, 92, 252, 0.08); 
}

.hero-stats {
  display: flex; 
  gap: 3rem; 
  justify-content: center; 
  flex-wrap: wrap;
  margin-top: 2.2rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-title);
  font-size: 1.9rem; 
  font-weight: 800;
  color: var(--text-white);
}

.stat-num span { color: var(--accent-violet-light); }
.stat-label { 
  font-size: 0.8rem; 
  color: var(--text-muted); 
  letter-spacing: 0.05em; 
  text-transform: uppercase; 
  margin-top: 0.2rem; 
}

/* ─── HEROBANNER BUY-INNER ─── */
.hero-partnership {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 10px 20px;
  border: 1px solid rgba(108, 92, 231, 0.65);
  border-radius: 999px;
  background: rgba(20, 15, 53, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e6e8ff;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(108, 92, 231, 0.12);
  transition: all 0.25s ease;
}

.hero-partnership:hover {
  border-color: rgba(145, 111, 255, 0.9);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.25);
  transform: translateY(-2px);
}

.partnership-logo {
  width: 60px;
  height: 31px;
  object-fit: contain;
  border-radius: 8px;
}

.partnership-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.partnership-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 5px;
}

.partnership-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.partnership-text {
  font-size: 14px;
  font-weight: 600;
  color: #e6e8ff;
}

.partnership-description {
  font-size: 11px;
  font-weight: 400;
  color: #9294bd;
}


/* ==========================================
   4. STRUCTURE DES SECTIONS ET COMPOSANTS
========================================== */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem; 
  font-weight: 600;
  color: var(--accent-violet-light);
  letter-spacing: 0.15em; 
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700; 
  color: var(--text-white);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem; 
  line-height: 1.7;
  max-width: 560px; 
  margin-top: 1rem;
  font-weight: 300;
}

/* ─── PAIN SECTION ─── */
.pain-section { background: rgba(0, 0, 0, 0.15); }

.pain-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1.5rem; 
  margin: 3rem auto 0;
  max-width: 900px;
}

.pain-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative; 
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.pain-card:hover { 
  border-color: rgba(124, 92, 252, 0.3); 
  transform: translateY(-4px); 
}

.pain-card::before {
  content: ''; 
  position: absolute; 
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
  opacity: 0; 
  transition: opacity 0.3s ease;
}

.pain-card:hover::before { opacity: 1; }
.pain-emoji { font-size: 2rem; margin-bottom: 1rem; }
.pain-card h3 { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.5rem; }
.pain-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ─── OFFER SECTION ─── */
.offer-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; 
  margin-top: 3rem;
}

.offer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative; 
  overflow: hidden;
}

.offer-card:hover { 
  box-shadow: 0 12px 40px var(--glow); 
  transform: translateY(-5px); 
}

.offer-icon {
  width: 48px; 
  height: 48px;
  background: linear-gradient(135deg, var(--accent-violet), #9d6fff);
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.4rem; 
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.35);
}

.offer-card h3 { font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.6rem; }
.offer-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ─── TOOLS STRIP ─── */
.tools-strip {
  background: rgba(0, 0, 0, 0.2);
  padding: 3rem 2rem;
  overflow: hidden;
}

.tools-label { 
  text-align: center; 
  font-size: 0.75rem; 
  color: var(--text-muted); 
  letter-spacing: 0.12em; 
  text-transform: uppercase; 
  margin-bottom: 2rem; 
}

.tools-scroll { 
  display: flex; 
  gap: 1.5rem; 
  flex-wrap: wrap; 
  justify-content: center; 
}

.tool-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tool-pill:hover { 
  border-color: var(--accent-violet); 
  color: var(--accent-violet-light); 
}

/* ─── CASE STUDIES ─── */
.cases-header { text-align: center; margin-bottom: 3.5rem; }

.cases-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.case-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 50px var(--glow); 
  border-color: rgba(124, 92, 252, 0.4); 
}

.case-card-top {
  padding: 1.8rem 1.8rem 1.2rem;
  position: relative;
}

.case-tag {
  display: inline-block;
  font-size: 0.7rem; 
  font-weight: 600;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.tag-violet { background: rgba(124, 92, 252, 0.15); color: var(--accent-violet-light); border: 1px solid rgba(124, 92, 252, 0.25); }
.tag-teal { background: rgba(45, 212, 191, 0.12); color: var(--accent-teal); border: 1px solid rgba(45, 212, 191, 0.25); }
.tag-pink { background: rgba(244, 114, 182, 0.12); color: var(--accent-pink); border: 1px solid rgba(244, 114, 182, 0.25); }
.tag-amber { background: rgba(251, 191, 36, 0.12); color: var(--accent-amber); border: 1px solid rgba(251, 191, 36, 0.25); }

.case-card-top h3 {
  font-family: var(--font-title); 
  font-size: 1.2rem; 
  font-weight: 700;
  color: var(--text-white); 
  margin-bottom: 0.5rem; 
  line-height: 1.3;
}

.case-card-top p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.case-card-bottom {
  padding: 1.2rem 1.8rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

.case-tools-mini { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tool-mini {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem; 
  color: var(--text-muted);
  font-weight: 500;
}

.case-arrow {
  width: 34px; 
  height: 34px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--accent-violet-light); 
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-card:hover .case-arrow { 
  background: var(--accent-violet); 
  color: #fff; 
  transform: translateX(3px); 
}

/* ─── PROCESS ─── */
.process-section { background: rgba(0, 0, 0, 0.15); }

.process-steps {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; 
  margin-top: 3rem;
  position: relative;
}

.process-step { text-align: center; position: relative; }

.step-num {
  width: 54px; 
  height: 54px;
  background: linear-gradient(135deg, var(--accent-violet), #5e3fde);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-family: var(--font-title); 
  font-size: 1.1rem; 
  font-weight: 800;
  color: #fff; 
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
}

.process-step h4 { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--text-white); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── TRUST & TESTIMONIALS ─── */
.trust-band {
  background: linear-gradient(90deg, rgba(124, 92, 252, 0.08), rgba(45, 212, 191, 0.06), rgba(124, 92, 252, 0.08));
  border-top: 1px solid rgba(124, 92, 252, 0.15);
  border-bottom: 1px solid rgba(124, 92, 252, 0.15);
  padding: 4rem 2rem;
  text-align: center;
}

.trust-quote {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; 
  color: var(--text-white);
  max-width: 700px; 
  margin: 0 auto;
  line-height: 1.4;
}

.trust-quote em { color: var(--accent-violet-light); font-style: normal; }

.testimonials-section {
  background: rgba(0, 0, 0, 0.18);
  padding: 5rem 2rem;
  border-top: 1px solid rgba(124, 92, 252, 0.1);
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
}

.testimonials-header { margin-bottom: 3rem; }
.testimonials-track-outer { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.2rem 2.4rem;
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute; 
  top: -0.5rem; left: 1.5rem;
  font-size: 8rem; 
  line-height: 1;
  color: rgba(124, 92, 252, 0.12);
  font-family: var(--font-title);
  pointer-events: none;
}

.testimonial-stars {
  color: var(--accent-amber);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 1.8rem;
  position: relative;
  max-width: 780px;
}

.testimonial-author {
  display: flex; 
  align-items: center; 
  gap: 1rem;
}

.testimonial-avatar {
  width: 46px; 
  height: 46px;
  background: linear-gradient(135deg, var(--accent-violet), #9d6fff);
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-family: var(--font-title); 
  font-weight: 800; 
  font-size: 0.9rem;
  color: #fff; 
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.35);
}

.testimonial-name {
  font-family: var(--font-title); 
  font-weight: 700;
  color: var(--text-white); 
  font-size: 0.95rem;
}

.testimonial-role { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

.testimonials-dots {
  display: flex; 
  justify-content: center; 
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.dot {
  width: 8px; 
  height: 8px;
  border-radius: 50%; 
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer; 
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.dot.active { background: var(--accent-violet-light); transform: scale(1.3); }

.testimonials-nav {
  display: flex; 
  justify-content: center; 
  gap: 1rem; 
  margin-top: 1.2rem;
}

.tnav-btn {
  width: 42px; 
  height: 42px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-main); 
  font-size: 1rem;
  cursor: pointer; 
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.tnav-btn:hover { 
  background: var(--accent-violet); 
  border-color: var(--accent-violet); 
  color: #fff; 
}

/* ─── CALL TO ACTION FINAL ─── */
.cta-final {
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.2) 0%, transparent 70%);
  padding: 7rem 2rem;
}

.cta-final h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; 
  color: var(--text-white);
  letter-spacing: -0.01em; 
  margin-bottom: 1.2rem;
}

.cta-final p { 
  font-size: 1.05rem; 
  color: var(--text-muted); 
  max-width: 480px; 
  margin: 0 auto 2.5rem; 
  line-height: 1.7; 
}

/* ─── FOOTER ─── */
footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 4rem;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  flex-wrap: wrap; 
  gap: 1rem;
}

footer .logo { font-family: var(--font-title); font-weight: 800; color: var(--text-white); font-size: 1rem; }
footer .logo span { color: var(--accent-violet-light); }
footer p { font-size: 0.8rem; color: var(--text-muted); }

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}


/* ==========================================
   5. PAGES DÉDIÉES (PORTFOLIO & CASE DETAIL)
========================================== */
/* ─── PAGE PORTFOLIO ─── */
.portfolio-page {
  padding-top: 9rem;
  padding-bottom: 6rem;
  min-height: 80vh;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-violet);
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.2);
}

.portfolio-card h3 {
  font-family: var(--font-title);
  color: var(--text-white);
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  line-height: 1.3;
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.card-tags span {
  background: rgba(124, 92, 252, 0.12);
  color: var(--accent-violet-light);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.card-arrow {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.2);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  transition: background 0.2s ease;
}

.portfolio-card:hover .card-arrow {
  background: var(--accent-violet);
}

/* ─── CASE DETAIL PAGE ─── */
.case-detail { padding-top: 6rem; }

.back-btn {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  color: var(--text-muted); 
  font-size: 0.9rem;
  cursor: pointer; 
  background: none; 
  border: none;
  margin-bottom: 3rem;
  transition: color 0.2s ease;
  padding: 0;
}

.back-btn:hover { color: var(--text-white); }
.back-btn svg { width: 16px; height: 16px; }

.detail-header {
  max-width: 820px;
  margin-bottom: 3.5rem;
}

.detail-tag { display: inline-block; margin-bottom: 1.2rem; }

.detail-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; 
  color: var(--text-white);
  letter-spacing: -0.01em; 
  line-height: 1.15;
  margin-bottom: 1rem;
}

.detail-subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 620px; }

.detail-meta {
  display: flex; 
  flex-wrap: wrap; 
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding: 1.8rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  max-width: 820px;
}

.meta-item label { 
  font-size: 0.72rem; 
  color: var(--text-muted); 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  display: block; 
  margin-bottom: 0.3rem; 
}

.meta-item span { font-size: 0.95rem; color: var(--text-white); font-weight: 500; }

.detail-body { max-width: 820px; }
.detail-section { margin-bottom: 3rem; }

.detail-section h3 {
  font-family: var(--font-title); 
  font-size: 1.3rem; 
  font-weight: 700;
  color: var(--text-white); 
  margin-bottom: 1rem;
  display: flex; 
  align-items: center; 
  gap: 0.6rem;
}

.detail-section h3::before {
  content: ''; 
  display: block; 
  width: 4px; 
  height: 20px;
  background: linear-gradient(180deg, var(--accent-violet), var(--accent-teal));
  border-radius: 2px;
}

.detail-section p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.detail-section ul { list-style: none; padding: 0; }

.detail-section ul li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: 0.95rem; 
  color: var(--text-muted); 
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-section ul li::before {
  content: '→';
  position: absolute; 
  left: 0;
  color: var(--accent-violet-light);
}

.result-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; 
  margin-top: 1rem;
}

.result-card {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(45, 212, 191, 0.06));
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 14px; 
  padding: 1.4rem;
  text-align: center;
}

.result-card .num {
  font-family: var(--font-title); 
  font-size: 1.8rem; 
  font-weight: 800;
  color: var(--text-white); 
  line-height: 1;
}

.result-card .num span { color: var(--accent-teal); }
.result-card .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; line-height: 1.4; }

.tools-used {
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.6rem; 
  margin-top: 1rem;
}

.tool-badge {
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.22);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem; 
  color: var(--accent-violet-light);
  font-weight: 500;
}

.detail-nav {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-top: 4rem; 
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-nav button {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 0.7rem 1.6rem;
  color: var(--text-main); 
  font-size: 0.9rem; 
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-nav button:hover { border-color: var(--accent-violet); color: var(--text-white); }
.detail-nav button:disabled { opacity: 0.3; cursor: default; }


/* ==========================================
   6. ANIMATIONS & MEDIA QUERIES
========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.fade-in { animation: fadeUp 0.6s ease both; }

/* ─── MEDIA QUERIES TABLETTE & MOBILE ─── */
@media (max-width: 992px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }

  section { padding: 4rem 1.2rem; }
  
  .hero {
    padding-top: 8rem; 
    padding-bottom: 3rem;
  }

  .hero-badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
    gap: 0.8rem;
  }

  .hero-badge img { height: 22px; width: auto; }
  .hero-title { font-size: 2.1rem; margin-top: 0.5rem; }
  .hero-stats { gap: 2rem; }

  .trust-band { padding: 2rem 1rem; }
  .trust-quote { font-size: 1rem; line-height: 1.5; padding: 0 0.5rem; }

  .testimonials-slider,
  .testimonials-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
  }

  .testimonial-card,
  .trust-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 1.5rem 1rem;
  }

  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
  .detail-meta { gap: 1.2rem; }
}

@media (max-width: 640px) {
  .pain-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .hero-partnership {
    margin-bottom: 22px;
    padding: 9px 15px;
    gap: 8px;
  }

  .partnership-logo { width: 23px; height: 23px; font-size: 15px; }
  .partnership-name { font-size: 14px; }
  .partnership-text { font-size: 12px; }
  .partnership-divider { height: 17px; margin: 0 2px; }
}