/* ==========================================================================
   Mirage — Studio de webdesign
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #120d1e;
  --bg-alt: #171123;
  --card: rgba(255, 255, 255, 0.06);
  --card-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.19);

  --purple-300: #cabdf7;
  --purple-400: #b3a1f2;
  --purple-500: #9483ea;
  --purple-600: #7a68cf;
  --purple-900: #241a42;

  --text-1: #f6f4fb;
  --text-2: #bab2d1;
  --text-3: #837a9c;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --container: 1180px;
  --ff-head: 'Space Grotesk', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--purple-500);
  background: rgba(255, 255, 255, 0.06);
}

::selection { background: var(--purple-500); color: #0a0710; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-300);
  border: 1px solid var(--border-strong);
  background: rgba(148, 131, 234, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 8px var(--purple-400);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head .eyebrow { margin-bottom: 1.1rem; }

.method-eyebrow {
  color: var(--text-1);
  font-size: 0.86rem;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
}

.section-head h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.section-head p { color: var(--text-2); font-size: 1.05rem; }

section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.7rem;
  border-radius: 100px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary,
.whatsapp-popup-btn {
  background: linear-gradient(135deg, rgba(202, 189, 247, 0.62), rgba(122, 104, 207, 0.5));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #14102a;
  box-shadow:
    0 8px 22px -8px rgba(148, 131, 234, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.35);
}

.btn-primary:hover,
.whatsapp-popup-btn:hover {
  background: linear-gradient(135deg, rgba(216, 205, 250, 0.72), rgba(148, 131, 234, 0.58));
  box-shadow:
    0 12px 30px -8px rgba(148, 131, 234, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--purple-400);
  background: rgba(148, 131, 234, 0.08);
  transform: translateY(-2px);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.35rem 0;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 0.9rem 0;
  background: rgba(7, 5, 12, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--ff-head); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }

.brand img {
  width: 54px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(148, 131, 234, 0.75)) brightness(1.25) contrast(1.08) saturate(1.15);
  animation: logoFloat 4.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

.main-nav ul { display: flex; align-items: center; gap: 2.1rem; }

.main-nav-mobile-only { display: none; }

.main-nav a {
  font-size: 0.94rem;
  color: var(--text-2);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover { color: var(--text-1); }

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--purple-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .btn { border: 1px solid var(--border-strong); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-1);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 2rem;
}

@media (max-width: 1600px) {
  .hero { height: auto; min-height: 100vh; overflow: visible; padding-bottom: 3rem; }
}

.hero .wrap {
  max-width: 1760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.4rem;
  flex: 0 1 auto;
  min-width: 0;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 4, 9, 0.42) 0%, rgba(5, 4, 9, 0.32) 40%, rgba(6, 4, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 4, 9, 0.42) 0%, rgba(5, 4, 9, 0.04) 40%, rgba(5, 4, 9, 0.04) 60%, rgba(5, 4, 9, 0.42) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; flex: 0 1 680px; text-align: left; }

.hero-content .eyebrow {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 0;
  margin-bottom: 1.3rem;
  border: none;
  background: none;
  color: var(--text-1);
}

.hero-content .eyebrow::before {
  background: var(--purple-300);
  box-shadow:
    0 0 8px 2px rgba(202, 189, 247, 0.85),
    0 0 18px 4px var(--purple-400),
    0 0 32px 8px rgba(148, 131, 234, 0.55);
  animation: eyebrowGlow 2.4s ease-in-out infinite;
}

@keyframes eyebrowGlow {
  0%, 100% {
    box-shadow:
      0 0 8px 2px rgba(202, 189, 247, 0.85),
      0 0 18px 4px var(--purple-400),
      0 0 32px 8px rgba(148, 131, 234, 0.55);
  }
  50% {
    box-shadow:
      0 0 10px 3px rgba(202, 189, 247, 1),
      0 0 24px 6px var(--purple-400),
      0 0 44px 12px rgba(148, 131, 234, 0.7);
  }
}

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

.hero-content h1 {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.hero-content h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--purple-300);
  white-space: nowrap;
}

.hero-content h1 em::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 20%,
    rgba(224, 209, 255, 1) 45%,
    rgba(224, 209, 255, 1) 55%,
    transparent 80%);
  background-size: 220% 100%;
  background-position: -60% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  animation: heroShine 5s ease-in-out infinite;
}

@keyframes heroShine {
  0% { background-position: -60% 0; }
  55% { background-position: 160% 0; }
  100% { background-position: 160% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content h1 em::after { animation: none; display: none; }
}

@media (max-width: 900px) {
  .hero-content h1 em { white-space: normal; }
}

.hero-content .lead {
  margin-top: 1.3rem;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--text-1);
  max-width: 620px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1.2rem; margin-top: 2.4rem; }

.hero-actions .btn { padding: 1rem 1.9rem; font-size: 1rem; }

.hero-trust {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  color: var(--text-2);
  font-size: 0.98rem;
}

.hero-trust .google-icon { width: 18px; height: 18px; flex-shrink: 0; }

.hero-trust .stars { color: var(--purple-300); letter-spacing: 2px; font-size: 0.9rem; }

.hero-trust .star {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.3), color 0.25s ease;
}

.hero-trust .star:hover {
  transform: translateY(-6px);
  color: var(--purple-400);
}

@media (prefers-reduced-motion: reduce) {
  .hero-trust .star { transition: none; }
  .hero-trust .star:hover { transform: none; }
}

/* Hero quote card --------------------------------------------------------- */

.hero-quote {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  flex: 0 0 auto;
  min-width: 660px;
  display: flex;
  gap: 1.8rem;
  text-align: left;
  background: rgba(23, 17, 35, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-l);
  padding: clamp(1.9rem, 2.6vw, 2.4rem);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.hero-quote.card-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-quote { opacity: 1; transform: none; transition: none; }
}

.hero-quote-info { flex: 1 1 240px; min-width: 210px; }

.hero-quote-badge {
  display: inline-flex;
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-300);
  background: rgba(148, 131, 234, 0.12);
  border: 1px solid rgba(148, 131, 234, 0.3);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-quote h2 {
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.hero-quote-info > p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.hero-quote-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-quote-stat { display: flex; flex-direction: column; gap: 0.3rem; }

.hero-quote-stat strong {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-300);
}

.hero-quote-stat span { font-size: 0.9rem; color: var(--text-3); line-height: 1.3; }

.hero-quote-form {
  flex: 1 1 340px;
  min-width: 310px;
  padding-left: 2.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-quote-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.hero-quote-form .form-field { margin-bottom: 0.95rem; }

.hero-quote-form label { display: block; font-size: 0.88rem; color: var(--text-2); margin-bottom: 0.35rem; }

.hero-quote-form input,
.hero-quote-form select,
.hero-quote-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
}

.hero-quote-form textarea { resize: vertical; min-height: 72px; }

.hero-quote-submit {
  width: 100%;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-size: 1rem;
}

.hero-quote-form .form-success { margin-top: 0.9rem; font-size: 0.9rem; padding: 0.75rem 1rem; }

.hero-contact-card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.2rem;
  background: rgba(23, 17, 35, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 1.8vw, 1.7rem) clamp(1.8rem, 2.4vw, 2.3rem);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-quote-contact-title {
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-1);
  flex-shrink: 0;
}

.hero-quote-contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.4;
  word-break: break-word;
  transform-origin: left center;
  transition: color 0.2s ease, transform 0.25s ease;
}

.hero-quote-contact-item:not(.static):hover {
  color: var(--purple-300);
  transform: scale(1.06);
}

.hero-quote-contact-item .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(148, 131, 234, 0.08);
  color: var(--purple-300);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hero-quote-contact-item .ico svg { width: 16px; height: 16px; }

.hero-quote-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-300);
  margin-top: 0.3rem;
}

.hero-quote-contact-link svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .hero .wrap { justify-content: center; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-cards { align-items: center; }
  .hero-quote { flex-direction: column; margin: 0 auto; }
  .hero-quote-form { padding-left: 0; border-left: none; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .hero-contact-card { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-quote-stats { flex-wrap: wrap; row-gap: 1rem; }
  .hero-quote-form-row { grid-template-columns: 1fr; gap: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-3);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--purple-400), transparent); animation: scrollcue 2.2s ease-in-out infinite; }

@keyframes scrollcue { 0% { opacity: 0.2; transform: scaleY(0.3); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } 100% { opacity: 0.2; transform: scaleY(0.3); transform-origin: bottom; } }

/* Stats ---------------------------------------------------------------- */

.stats-band { padding: clamp(3rem, 6vw, 4.5rem) 0; }

.stats-head { text-align: center; max-width: 600px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }

.stats-head .eyebrow { margin-bottom: 1rem; }

.stats-head h2 { font-family: var(--ff-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.stat-card {
  background: var(--bg-alt);
  padding: 2.2rem 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  color: var(--purple-300);
}

.stat-label { margin-top: 0.5rem; color: var(--text-2); font-size: 0.92rem; }

/* Services ---------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--purple-600), transparent 30%, var(--purple-400), transparent 65%, var(--purple-900), var(--purple-600));
  filter: blur(38px) saturate(150%);
  opacity: 0.4;
  animation: methodCardSpin 9s linear infinite;
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.service-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(148, 131, 234, 0.12);
  border: 1px solid rgba(148, 131, 234, 0.25);
  color: var(--purple-300);
  margin-bottom: 1.4rem;
}

.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-family: var(--ff-head); font-size: 1.12rem; font-weight: 600; margin-bottom: 0.6rem; }

.service-card p {
  position: relative;
  color: var(--text-1);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.3rem;
  text-shadow: 0 1px 10px rgba(7, 5, 12, 0.55);
}

.service-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--purple-300); }

.service-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }

.service-card:hover .service-link svg { transform: translateX(3px); }

/* Why -------------------------------------------------------------------- */

.why-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.why-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}

.why-visual-static,
.why-visual-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: url('../assets/img/mirage-logo.png');
  mask-image: url('../assets/img/mirage-logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.why-visual-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.why-visual:hover .why-visual-video,
.why-visual:focus-within .why-visual-video { opacity: 1; }

.why-visual-mask {
  position: absolute;
  left: 75%;
  top: 66%;
  width: 22%;
  height: 7%;
  background: var(--bg);
  z-index: 2;
  pointer-events: none;
}

.why-list { display: flex; flex-direction: column; gap: 1.8rem; }

.why-item { display: flex; gap: 1.1rem; }

.why-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--ff-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(202, 189, 247, 0.62), rgba(122, 104, 207, 0.5));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #14102a;
  box-shadow:
    0 8px 22px -6px rgba(148, 131, 234, 0.65),
    0 0 0 6px rgba(148, 131, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-item:hover .why-num {
  transform: translateY(-2px) scale(1.08);
  box-shadow:
    0 12px 28px -6px rgba(148, 131, 234, 0.8),
    0 0 0 8px rgba(148, 131, 234, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.3);
}

.why-item h3 { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }

.why-item p { color: var(--text-2); font-size: 0.95rem; }

/* Method ------------------------------------------------------------------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}

.method-more { text-align: center; margin-top: clamp(2rem, 4vw, 2.8rem); }

.method-card {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
}

.method-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--purple-600), transparent 30%, var(--purple-400), transparent 65%, var(--purple-900), var(--purple-600));
  filter: blur(38px) saturate(150%);
  opacity: 0.4;
  animation: methodCardSpin 9s linear infinite;
}

@keyframes methodCardSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .method-card::before { animation: none; }
}

.method-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, rgba(202, 189, 247, 0.62), rgba(122, 104, 207, 0.5));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #14102a;
  box-shadow:
    0 8px 22px -6px rgba(148, 131, 234, 0.65),
    0 0 0 6px rgba(148, 131, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.method-card:hover .method-step {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 28px -6px rgba(148, 131, 234, 0.8),
    0 0 0 8px rgba(148, 131, 234, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.3);
}

.method-card h3 { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.55rem; }

.method-card p {
  position: relative;
  color: var(--text-1);
  font-size: 0.92rem;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(7, 5, 12, 0.55);
}

.method-connector {
  display: none;
}

/* Constat — "Et vous, où en êtes-vous ?" ---------------------------------- */

.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.question-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 2rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.question-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--purple-600), transparent 30%, var(--purple-400), transparent 65%, var(--purple-900), var(--purple-600));
  filter: blur(38px) saturate(150%);
  opacity: 0.4;
  animation: methodCardSpin 9s linear infinite;
}

.question-card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.question-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(148, 131, 234, 0.12);
  border: 1px solid rgba(148, 131, 234, 0.25);
  color: var(--purple-300);
  margin-bottom: 1.4rem;
}

.question-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.question-icon-row .question-icon { margin-bottom: 0; }

.site-url {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  clip-path: inset(0 100% 0 0);
}

.question-card.in-view .site-url {
  animation: siteUrlCycle 4s ease-in-out 0.3s infinite;
}

@keyframes siteUrlCycle {
  0%   { clip-path: inset(0 100% 0 0); }
  35%  { clip-path: inset(0 0% 0 0); }
  65%  { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-url { clip-path: inset(0 0 0 0); animation: none; }
}

.funnel-visual {
  height: 24px;
  width: auto;
  max-width: 100%;
  color: var(--purple-300);
  clip-path: inset(0 100% 0 0);
}

.question-card.in-view .funnel-visual,
.realisation-blurb.in-view .funnel-visual {
  animation: siteUrlCycle 4s ease-in-out 0.3s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .funnel-visual { clip-path: inset(0 0 0 0); animation: none; }
}

.question-icon svg { width: 22px; height: 22px; }

.icon-swap-wrap {
  position: relative;
  overflow: hidden;
  perspective: 200px;
}

.pass-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
  opacity: 0;
  animation: iconPass 6.6s ease-in-out infinite;
}

.pass-icon svg { width: 19px; height: 19px; }

@keyframes iconPass {
  0%   { opacity: 0; transform: rotateY(-75deg) scale(0.6); }
  4%   { opacity: 1; transform: rotateY(0deg) scale(1); }
  29%  { opacity: 1; transform: rotateY(0deg) scale(1); }
  33%  { opacity: 0; transform: rotateY(75deg) scale(0.6); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pass-icon { animation: none; opacity: 0; }
  .pass-icon:first-child { opacity: 1; transform: none; }
}

/* Curseur qui clique + réactions ------------------------------------------ */

.cursor-demo {
  position: relative;
  width: 96px;
  height: 30px;
  flex-shrink: 0;
}

.cursor-icon {
  position: absolute;
  top: 4px;
  left: 0;
  width: 19px;
  height: 19px;
  color: var(--text-1);
  filter: drop-shadow(0 2px 4px rgba(7, 5, 12, 0.6));
  opacity: 0;
  transform: translateX(72px);
}

.cursor-ripple {
  position: absolute;
  top: 3px;
  left: -1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1.5px solid var(--purple-300);
  opacity: 0;
}

.cursor-pop {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  color: var(--purple-300);
  opacity: 0;
}

.cursor-pop svg { width: 17px; height: 17px; display: block; }

.question-card.in-view .cursor-icon,
.realisation-blurb.in-view .cursor-icon { animation: cursorMove 6s ease-in-out infinite; }
.question-card.in-view .cursor-ripple,
.realisation-blurb.in-view .cursor-ripple { animation: clickRipple 6s ease-in-out infinite; }
.question-card.in-view .cursor-pop-like,
.realisation-blurb.in-view .cursor-pop-like { animation: popLike 6s ease-in-out infinite; }
.question-card.in-view .cursor-pop-star,
.realisation-blurb.in-view .cursor-pop-star { animation: popStar 6s ease-in-out infinite; }
.question-card.in-view .cursor-pop-comment,
.realisation-blurb.in-view .cursor-pop-comment { animation: popComment 6s ease-in-out infinite; }
.question-card.in-view .cursor-pop-share,
.realisation-blurb.in-view .cursor-pop-share { animation: popShare 6s ease-in-out infinite; }

@keyframes cursorMove {
  0%   { opacity: 0; transform: translateX(72px); }
  8%   { opacity: 1; transform: translateX(72px); }
  40%  { opacity: 1; transform: translateX(0); }
  45%  { opacity: 1; transform: translateX(0) scale(0.8); }
  50%  { opacity: 1; transform: translateX(0) scale(1.05); }
  55%  { opacity: 1; transform: translateX(0) scale(1); }
  88%  { opacity: 1; transform: translateX(0) scale(1); }
  95%  { opacity: 0; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(72px) scale(1); }
}

@keyframes clickRipple {
  0%, 43%  { opacity: 0; transform: scale(0.3); }
  47%      { opacity: 0.8; transform: scale(0.6); }
  62%      { opacity: 0; transform: scale(1.9); }
  100%     { opacity: 0; transform: scale(1.9); }
}

@keyframes popLike {
  0%, 46%  { opacity: 0; transform: translate(-2px, 2px) scale(0.5); }
  52%      { opacity: 1; transform: translate(-8px, -8px) scale(1); }
  78%      { opacity: 1; transform: translate(-16px, -28px) scale(1); }
  92%, 100% { opacity: 0; transform: translate(-20px, -36px) scale(0.8); }
}

@keyframes popStar {
  0%, 49%  { opacity: 0; transform: translate(4px, 0) scale(0.5); }
  55%      { opacity: 1; transform: translate(6px, -10px) scale(1); }
  80%      { opacity: 1; transform: translate(10px, -32px) scale(1); }
  94%, 100% { opacity: 0; transform: translate(12px, -40px) scale(0.8); }
}

@keyframes popComment {
  0%, 52%  { opacity: 0; transform: translate(10px, 2px) scale(0.5); }
  58%      { opacity: 1; transform: translate(18px, -8px) scale(1); }
  82%      { opacity: 1; transform: translate(26px, -26px) scale(1); }
  95%, 100% { opacity: 0; transform: translate(30px, -34px) scale(0.8); }
}

@keyframes popShare {
  0%, 55%  { opacity: 0; transform: translate(14px, 4px) scale(0.5); }
  61%      { opacity: 1; transform: translate(26px, -2px) scale(1); }
  84%      { opacity: 1; transform: translate(38px, -14px) scale(1); }
  97%, 100% { opacity: 0; transform: translate(44px, -20px) scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-icon, .cursor-ripple, .cursor-pop { animation: none; opacity: 0; }
}

.question-card p {
  position: relative;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(7, 5, 12, 0.55);
}

/* Portfolio — showcase téléphones ------------------------------------------ */

.phone-showcase {
  position: relative;
  width: 100%;
  height: 580px;
}

.phone-showcase-left {
  width: 460px;
  max-width: 460px;
  flex-shrink: 0;
}

.showcase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 2rem;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.phone-group {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.25rem);
  flex-shrink: 0;
}

.browser-group {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.25rem);
  flex-shrink: 0;
}

.realisation-blurb {
  flex: 0 1 220px;
  width: 220px;
}

.realisation-blurb .question-icon { margin-bottom: 1.2rem; }

.realisation-blurb h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; }

.realisation-blurb p { color: var(--text-2); font-size: 0.88rem; line-height: 1.55; }

.browser-mockup {
  position: relative;
  width: 600px;
  max-width: 100%;
  flex-shrink: 0;
  --browser-scale: 0.41667;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

div.browser-mockup:hover {
  transform: scale(1.2);
  z-index: 5;
  box-shadow: 0 40px 80px -20px rgba(148, 131, 234, 0.4);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.browser-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.browser-dot-red { background: #ff5f57; }
.browser-dot-yellow { background: #febc2e; }
.browser-dot-green { background: #28c840; }

.browser-url {
  flex: 1;
  max-width: 260px;
  height: 20px;
  margin-left: 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.browser-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0812;
}

.browser-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.browser-slide { width: 33.3334%; height: 100%; flex-shrink: 0; }

.browser-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.browser-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 13, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.browser-nav:hover {
  background: rgba(148, 131, 234, 0.55);
  border-color: var(--purple-400);
  transform: translateY(-50%) scale(1.08);
}

.browser-nav svg { width: 17px; height: 17px; }

.browser-nav-prev { left: 12px; }
.browser-nav-next { right: 12px; }

.phone-frame {
  --tx: 0px;
  --ty: 18px;
  --rot: 9deg;
  --scale: 0.86;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 275px;
  height: 575px;
  border-radius: 50px;
  border: 12px solid #1a1424;
  background: #0c0812;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  opacity: 0.7;
  filter: brightness(0.65);
  z-index: 1;
  cursor: pointer;
  transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--scale));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, filter 0.4s ease, z-index 0s;
}

.phone-frame.slot-front { --tx: 0px; --ty: 0px; --rot: 0deg; --scale: 1; opacity: 1; filter: brightness(1); z-index: 3; }
.phone-frame.slot-left  { --tx: -98px; --ty: 18px; --rot: -9deg; --scale: 0.86; opacity: 0.7; filter: brightness(0.65); z-index: 2; }
.phone-frame.slot-right { --tx: 98px; --ty: 18px; --rot: 9deg; --scale: 0.86; opacity: 0.7; filter: brightness(0.65); z-index: 1; }

.phone-frame.is-expanded    { --tx: 0px; --ty: 30px; --rot: 0deg; --scale: 1.32; opacity: 1; filter: brightness(1); z-index: 5; cursor: zoom-out; }
.phone-frame.is-pushed-left  { --tx: -238px; --ty: 55px; --rot: -14deg; --scale: 0.6; opacity: 0.32; filter: brightness(0.4); z-index: 1; }
.phone-frame.is-pushed-right { --tx: 238px; --ty: 55px; --rot: 14deg; --scale: 0.6; opacity: 0.32; filter: brightness(0.4); z-index: 1; }

.phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 112px;
  height: 27px;
  margin-left: -56px;
  background: #1a1424;
  border-radius: 100px;
  z-index: 2;
}

.phone-side-btn {
  position: absolute;
  left: -14px;
  width: 4px;
  height: 40px;
  background: #1a1424;
  border-radius: 2px;
}

.phone-side-btn-1 { top: 112px; }
.phone-side-btn-2 { top: 162px; height: 62px; }

.phone-power-btn {
  position: absolute;
  right: -14px;
  top: 131px;
  width: 4px;
  height: 82px;
  background: #1a1424;
  border-radius: 2px;
}

.phone-frame iframe {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  background: #0c0812;
  transform: scale(0.6436);
  transform-origin: top left;
  pointer-events: none;
}

.phone-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0c0812;
  pointer-events: none;
}

.phone-frame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0c0812;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame { transition: none; }
}

/* Testimonials --------------------------------------------------------- */

.testi-wrap { position: relative; max-width: 780px; margin: 0 auto; }

.testi-track { overflow: hidden; }

.testi-slides { display: flex; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }

.testi-slide { flex: 0 0 100%; padding: 0 0.5rem; }

.testi-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.testi-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--purple-600), transparent 30%, var(--purple-400), transparent 65%, var(--purple-900), var(--purple-600));
  filter: blur(38px) saturate(150%);
  opacity: 0.4;
  animation: methodCardSpin 9s linear infinite;
}

.testi-stars { color: var(--purple-300); letter-spacing: 3px; margin-bottom: 1.3rem; }

.testi-quote {
  position: relative;
  font-family: var(--ff-head);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 10px rgba(7, 5, 12, 0.55);
}

.testi-person { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-300));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 0.95rem; color: #0a0710;
}

.testi-person .name { font-weight: 600; font-size: 0.95rem; }

.testi-person .role { color: var(--text-3); font-size: 0.82rem; }

.testi-controls { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin-top: 2.2rem; }

.testi-dots { display: flex; gap: 0.5rem; }

.testi-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background 0.2s ease, transform 0.2s ease; }

.testi-dots button.active { background: var(--purple-400); transform: scale(1.3); }

.testi-arrow {
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.testi-arrow:hover { border-color: var(--purple-400); background: rgba(148, 131, 234, 0.1); }

.testi-arrow svg { width: 16px; height: 16px; }

/* Contact -------------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 4rem); }

.contact-info h2 { font-family: var(--ff-head); font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; line-height: 1.2; }

.contact-info > p { color: var(--text-2); margin-bottom: 2.4rem; max-width: 420px; }

.contact-list { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.4rem; }

.contact-list li { display: flex; align-items: center; gap: 0.9rem; font-size: 0.96rem; }

.contact-list .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(148, 131, 234, 0.08);
  color: var(--purple-300);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-list .ico svg { width: 18px; height: 18px; }

.contact-list a:hover { color: var(--purple-300); }

.social-row { display: flex; gap: 0.75rem; }

.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-row a:hover { border-color: var(--purple-400); color: var(--purple-300); background: rgba(148, 131, 234, 0.08); }

.social-row svg { width: 17px; height: 17px; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }

.form-field.full { grid-column: 1 / -1; }

.form-field label { font-size: 0.85rem; color: var(--text-2); }

.form-note { font-size: 0.8rem; color: var(--text-3); margin-top: 0.3rem; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  background: rgba(148, 131, 234, 0.1);
  border: 1px solid rgba(148, 131, 234, 0.3);
  color: var(--purple-300);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-success.show { display: flex; }

/* CTA band --------------------------------------------------------------- */

.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(148, 131, 234, 0.12), transparent 60%), var(--bg-alt);
}

.cta-band h2 { font-family: var(--ff-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin-bottom: 1rem; }

.cta-band p { color: var(--text-2); max-width: 520px; margin: 0 auto 2rem; }

.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Footer ------------------------------------------------------------------- */

.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }

.footer-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.65;
}

.footer-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.footer-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 100%, rgba(7, 5, 12, 0.05), rgba(7, 5, 12, 0.6));
}

.site-footer .wrap { position: relative; z-index: 1; }

.footer-top { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }

.footer-brand .brand { margin-bottom: 1rem; }

.footer-brand p { color: var(--text-2); font-size: 0.92rem; max-width: 280px; margin-bottom: 1.4rem; }

.footer-col h4 { font-family: var(--ff-head); font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1.1rem; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col a { color: var(--text-2); font-size: 0.93rem; transition: color 0.2s ease; }

.footer-contact-link { display: flex; align-items: center; gap: 0.5rem; }

.footer-contact-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.footer-col a:hover { color: var(--purple-300); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-bottom .legal { display: flex; gap: 1.5rem; }

.footer-bottom .legal a { color: var(--text-3); }

.footer-bottom .legal a:hover { color: var(--text-2); }

/* Reveal on scroll --------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }

[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 980px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .main-nav-mobile-only { display: block; }

  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(7, 5, 12, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    z-index: 99;
  }

  body.nav-open .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  body.nav-open .main-nav a { font-size: 1.3rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .questions-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; }
  .why-visual { max-width: 380px; margin: 0 auto; }
  .phone-frame.is-expanded { --scale: 1.08; }
  .phone-frame.is-pushed-left { --tx: -110px; --scale: 0.52; }
  .phone-frame.is-pushed-right { --tx: 110px; --scale: 0.52; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1850px) {
  .showcase-row { flex-direction: column; align-items: flex-start; }
  .phone-group { flex-wrap: wrap; }
  .browser-group { flex-wrap: wrap; }
  .phone-showcase-left { max-width: 380px; }
  .realisation-blurb { max-width: 460px; width: auto; }
  .browser-mockup { width: 100%; max-width: 540px; --browser-scale: 0.375; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .method-grid, .questions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; }
}

/* WhatsApp widget --------------------------------------------------------- */

.whatsapp-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(5, 4, 9, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.whatsapp-overlay.open { opacity: 1; pointer-events: auto; }

.whatsapp-container {
  position: fixed;
  right: clamp(1.1rem, 3vw, 1.8rem);
  bottom: clamp(1.1rem, 3vw, 1.8rem);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-widget {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(202, 189, 247, 0.62), rgba(122, 104, 207, 0.5));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: #14102a;
  box-shadow:
    0 10px 28px -8px rgba(148, 131, 234, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.whatsapp-widget:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, rgba(216, 205, 250, 0.72), rgba(148, 131, 234, 0.58));
  box-shadow:
    0 14px 34px -8px rgba(148, 131, 234, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -8px 12px -8px rgba(20, 14, 40, 0.3);
}

.whatsapp-widget svg { width: 28px; height: 28px; position: relative; z-index: 1; }

.whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--purple-400);
  opacity: 0.55;
  animation: whatsappPulse 2.6s ease-out infinite;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-ring { animation: none; display: none; }
}

@media (max-width: 640px) {
  .whatsapp-widget { width: 52px; height: 52px; }
  .whatsapp-widget svg { width: 25px; height: 25px; }
}

/* Popup */

.whatsapp-popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1rem);
  width: min(320px, calc(100vw - 2.4rem));
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.whatsapp-popup-close:hover { color: var(--text-1); border-color: var(--purple-400); }

.whatsapp-popup-close svg { width: 14px; height: 14px; }

.whatsapp-popup-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-right: 1.8rem;
  margin-bottom: 1rem;
}

.whatsapp-popup-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #000;
}

.whatsapp-popup-avatar img { width: 100%; height: 100%; object-fit: cover; }

.whatsapp-popup-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--purple-300);
  background: rgba(148, 131, 234, 0.12);
  border: 1px solid rgba(148, 131, 234, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.whatsapp-popup-title {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.whatsapp-popup-text { color: var(--text-2); font-size: 0.9rem; margin-bottom: 1.1rem; }

.whatsapp-popup-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-2);
  margin-bottom: 1.3rem;
}

.whatsapp-popup-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.whatsapp-popup-caption {
  text-align: center;
  color: var(--text-3);
  font-size: 0.78rem;
  margin-top: 0.7rem;
}

.whatsapp-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 100px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.whatsapp-popup-btn svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .whatsapp-popup { padding: 1.25rem; }
}

/* Intro splash --------------------------------------------------------- */

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05040a;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-splash-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.intro-splash-title {
  font-family: var(--ff-head);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text-1);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.intro-splash-logo {
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(148, 131, 234, 0.65));
  animation: introLogoPulse 1.8s ease-in-out infinite;
}

.intro-splash-subtitle {
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-300);
}

@keyframes introLogoPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

body.intro-active { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .intro-splash-logo { animation: none; }
}

/* Legal pages ------------------------------------------------------------- */

.legal-page {
  position: relative;
  padding-top: clamp(8rem, 12vw, 10rem);
  overflow: hidden;
}

.legal-page::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(148, 131, 234, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.legal-page .wrap { position: relative; z-index: 1; max-width: 820px; }

.legal-page .section-head { margin-bottom: 1.4rem; }

.legal-updated {
  display: inline-flex;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.legal-content {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.legal-section {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: clamp(1.6rem, 3vw, 2rem);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.legal-section:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-3px);
}

.legal-content h2 {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--text-1);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.legal-content p { margin-bottom: 0.9rem; }

.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul { margin: 0 0 0.9rem; padding-left: 1.3rem; list-style: disc; display: flex; flex-direction: column; gap: 0.4rem; }

.legal-content ul:last-child { margin-bottom: 0; }

.legal-content a { color: var(--purple-300); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }

.legal-content a:hover { color: var(--purple-400); }

.legal-content strong { color: var(--text-1); font-weight: 600; }

.legal-content h2 { display: flex; align-items: center; gap: 0.7rem; }

.legal-content h2 .legal-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(148, 131, 234, 0.1);
  border: 1px solid rgba(148, 131, 234, 0.28);
  color: var(--purple-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-content h2 .legal-icon svg { width: 16px; height: 16px; }

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.legal-list:last-child { margin-bottom: 0; }

.legal-list li { display: flex; align-items: flex-start; gap: 0.7rem; }

.legal-list li .dot {
  width: 6px;
  height: 6px;
  margin-top: 0.65rem;
  border-radius: 50%;
  background: var(--purple-400);
  flex-shrink: 0;
}

.legal-list li .dot svg { display: none; }

.legal-callout {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(148, 131, 234, 0.08);
  border: 1px solid rgba(148, 131, 234, 0.25);
  border-radius: var(--radius-s);
  padding: 1.1rem 1.3rem;
  margin-top: 1rem;
}

.legal-callout .num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--purple-300);
  white-space: nowrap;
}

.legal-callout p { margin: 0; font-size: 0.88rem; color: var(--text-2); }

.legal-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.9rem 0; }

.legal-tag {
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--purple-300);
  background: rgba(148, 131, 234, 0.1);
  border: 1px solid rgba(148, 131, 234, 0.28);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

@media (max-width: 600px) {
  .legal-callout { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* Dedicated pages (no hero above the first section) --------------------- */

.page-first-section { padding-top: clamp(8rem, 12vw, 10rem); }

.main-nav a.current { color: var(--text-1); }

.main-nav a.current::after { transform: scaleX(1); }

/* "Pourquoi Mirage" — cascade des textes au scroll ----------------------- */

.why-list [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.why-list [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
.why-list [data-reveal]:nth-child(3) { transition-delay: 0.25s; }
.why-list [data-reveal]:nth-child(4) { transition-delay: 0.35s; }
