/* ═══════════════════════════════════════════════════
   GOTHAMDEV — UI v4 Overhaul
   Design system, navigation, cartes, motion
   ═══════════════════════════════════════════════════ */

/* ── Tokens v4 ── */
:root {
  --bg-0: #09090b;
  --bg-1: #0f0f12;
  --bg-2: #161619;
  --bg-3: #1c1c21;
  --bg-card: rgba(24, 24, 27, 0.55);
  --bg-elevated: rgba(24, 24, 27, 0.72);

  --border: rgba(255, 255, 255, 0.08);
  --border-md: rgba(255, 255, 255, 0.11);
  --border-lg: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(52, 211, 153, 0.38);

  --text-0: #fafafa;
  --text-1: #a1a1aa;
  --text-2: #71717a;
  --text-3: #52525b;

  --accent: #34d399;
  --accent-2: #2dd4bf;
  --accent-warm: #a78bfa;
  --accent-dim: rgba(52, 211, 153, 0.1);
  --accent-glow: rgba(52, 211, 153, 0.32);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --space-section: clamp(72px, 10vw, 120px);
  --nav-h: 72px;

  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t: 0.35s;
}

/* ── Fond global — grille + lueurs ── */
body {
  background-color: var(--bg-0);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(52, 211, 153, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(45, 212, 191, 0.07), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-attachment: scroll;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -2;
}
body::before {
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 68%);
  filter: blur(40px);
}
body::after {
  right: -120px;
  bottom: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.06) 0%, transparent 70%);
}

/* ── Barre de progression scroll ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 10001;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-warm));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Typographie ── */
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  letter-spacing: -0.035em;
}
h1 em,
h2 em {
  background: linear-gradient(120deg, #8eb8ff 0%, #b8a0ff 45%, #ffc48a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.06em 0.1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

/* ── Navbar pleine largeur (logo + liens dans un seul bandeau) ── */
.navbar {
  padding: 0;
  transition: background var(--t) var(--ease-out), border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
  background: rgba(8, 10, 15, 0.78);
  border-bottom: 1px solid var(--border-md);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
.navbar .container.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 10px clamp(16px, 3vw, 64px);
  min-height: 68px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar.scrolled {
  padding: 0;
  background: rgba(6, 8, 12, 0.94);
  border-bottom-color: var(--border-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.navbar.scrolled .container.nav-inner {
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.nav-links a:not(.btn),
.nav-dropdown-trigger {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-0);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: none;
}
.nav-links a.nav-mobile-only {
  display: none;
}
.nav-links a:not(.btn):hover,
.nav-dropdown-trigger:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.nav-active:not(.btn),
.nav-dropdown-trigger.nav-active {
  color: var(--text-0);
  background: rgba(91, 140, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.2);
}
.nav-dropdown.is-open .nav-dropdown-trigger:not(.nav-active) {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.nav-links .btn-sm {
  margin-left: 4px;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.82rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Nav drawer : règles dans ui-v4 car mobile.css est chargé avec media="(max-width:1024px)" */
.nav-link-fivem {
  color: #c4b5fd;
}

.nav-link-fivem:hover {
  color: #ddd6fe;
  background: rgba(139, 107, 255, 0.1);
}

.nav-link-local {
  border: 1px solid rgba(91, 140, 255, 0.28);
  background: rgba(91, 140, 255, 0.06);
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .nav-link-local {
    justify-content: center;
    text-align: center;
    margin-top: 4px;
  }
}

@media (min-width: 1025px) {
  .burger {
    display: none !important;
  }

  .nav-panel-head,
  .nav-panel-label {
    display: none !important;
  }

  .nav-links {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    box-shadow: none !important;
    visibility: visible !important;
  }

  .nav-panel-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 1;
    overflow: visible;
    padding: 0;
  }

  .nav-links .nav-mobile-only {
    display: none !important;
  }

  .nav-panel-body {
    flex-wrap: nowrap !important;
    gap: 1px !important;
    min-width: 0;
  }

  /* Pill menu : une seule ligne (pages blog / services sans .home-mosa) */
  .mosa-nav-pill {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    flex-shrink: 1;
    min-width: 0;
    gap: 1px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
  }

  .mosa-nav-pill > a:not(.btn),
  .mosa-nav-pill .nav-dropdown-trigger {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-links a:not(.btn),
  .nav-dropdown-trigger {
    padding: 6px 7px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-0);
  }

  .nav-link-fivem {
    color: #c4b5fd !important;
  }

  .nav-link-fivem:hover {
    color: #ddd6fe !important;
    background: rgba(139, 107, 255, 0.12) !important;
  }

  .nav-link-fivem.nav-active {
    color: #ede9fe !important;
    background: rgba(139, 107, 255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(139, 107, 255, 0.28);
  }

  .nav-link-local {
    padding: 6px 11px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(91, 140, 255, 0.32) !important;
    background: rgba(91, 140, 255, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.05);
  }

  .nav-link-local:hover {
    color: var(--text-0) !important;
    background: rgba(91, 140, 255, 0.14) !important;
    border-color: rgba(91, 140, 255, 0.48) !important;
  }

  .nav-link-local.nav-active {
    color: var(--text-0) !important;
    background: rgba(91, 140, 255, 0.18) !important;
    border-color: rgba(91, 140, 255, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.22);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    flex-shrink: 0;
  }

  .nav-actions .locale-switcher-btn {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .nav-actions .btn-sm {
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .nav-actions .locale-switcher {
    margin-left: 0;
  }

  .nav-panel-cta {
    margin-left: 0;
    white-space: nowrap;
  }

  .nav-dropdown {
    position: relative;
    flex-shrink: 0;
  }

  .nav-dropdown-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    opacity: 0.7;
    color: currentColor;
    transition: transform 0.22s var(--ease-out);
  }

  .nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: min(380px, calc(100vw - 32px));
    max-width: 420px;
    padding: 10px;
    margin: 0;
    background: rgba(12, 15, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s var(--ease-out);
  }

  .nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown-item.nav-active {
    background: rgba(91, 140, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.16);
  }

  .nav-dropdown-item-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown-item-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .nav-dropdown-item-thumb-img--svg {
    object-fit: contain;
    padding: 6px;
    background: linear-gradient(145deg, #12151c, #1a2030);
  }

  .nav-dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-top: 2px;
  }

  .nav-dropdown-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-0);
    line-height: 1.25;
  }

  .nav-dropdown-item-desc {
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.45;
    white-space: normal;
  }

  /* Legacy simple links (fallback) */
  .nav-dropdown-menu > a:not(.nav-dropdown-item) {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
  }

  .nav-dropdown-menu > a:not(.nav-dropdown-item):hover {
    color: var(--text-0);
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown-menu > a:not(.nav-dropdown-item).nav-active {
    color: var(--text-0);
    background: rgba(91, 140, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.18);
  }

  .nav-desktop-only {
    display: flex !important;
    align-items: center;
  }

  .nav-dropdown-menu--blog {
    min-width: min(380px, calc(100vw - 32px));
    max-width: 420px;
  }
}

@media (max-width: 1024px) {
  .burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    z-index: 1001;
  }

  .nav-links {
    position: fixed !important;
    top: 0;
    right: 0;
    width: min(92vw, 340px) !important;
    max-width: 340px !important;
    height: 100dvh !important;
    height: 100vh !important;
    max-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: rgba(7, 9, 14, 0.98) !important;
    border-left: 1px solid var(--border-lg) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
    z-index: 999;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    visibility: visible !important;
  }

  .nav-links.open {
    transform: translateX(0) !important;
  }

  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: max(16px, env(safe-area-inset-top)) 20px 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    overflow-y: auto;
    padding: 12px 16px max(24px, env(safe-area-inset-bottom));
  }

  .nav-panel-label {
    display: block;
    margin: 16px 0 6px;
    padding: 0 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
  }

  .nav-links a.nav-mobile-only {
    display: flex !important;
  }

  .nav-desktop-only {
    display: none !important;
  }

  .nav-panel-cta {
    width: 100% !important;
    margin-top: 16px !important;
    justify-content: center !important;
  }
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.logo:hover .logo-img {
  transform: scale(1.04) rotate(-2deg);
}

/* ── Boutons ── */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.btn-primary,
a.btn.btn-primary,
button.btn.btn-primary {
  background: #ffffff;
  border: none;
  color: #09090b !important;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  color: #09090b !important;
  background: #e4e4e7;
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.16);
}
.nav-links .btn-primary {
  color: #09090b !important;
  text-shadow: none;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fafafa;
  border-radius: 999px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Hero ── */
.hero {
  padding-top: var(--nav-h);
}
@media (min-width: 1101px) {
  .hero { min-height: 100svh; }
}
.hero-inner {
  padding-top: clamp(48px, 8vh, 100px);
  padding-bottom: clamp(48px, 6vh, 80px);
  gap: clamp(48px, 6vw, 88px);
}
.hero-eyebrow {
  padding: 6px 14px 6px 10px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: var(--radius-pill);
  width: fit-content;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.hero-rating-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 196, 77, 0.18);
  background: rgba(255, 196, 77, 0.05);
  color: var(--text-1);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-rating-pill:hover {
  border-color: rgba(255, 196, 77, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.hero-rating-stars {
  color: #ffc44d;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
}
.hero-rating-pill strong {
  color: var(--text-0);
}
.accompagnement-grid {
  margin-top: 8px;
}
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.8;
  color: var(--text-1);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
  align-items: start;
  max-width: 520px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}
.hero-metrics .hm-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.hero-metrics .hm-item:first-child {
  padding-left: 0;
  border-left: none;
}
.hm-num {
  font-size: clamp(1.6rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--text-0), var(--text-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hm-sep {
  display: none;
}

.browser-frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(91, 140, 255, 0.08);
}
.hero-visual:hover .browser-frame {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-8px);
}

/* ── Sections ── */
section[id],
.section[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.section {
  padding: var(--space-section) 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-color: var(--border);
}
.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
  overflow: visible;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid rgba(91, 140, 255, 0.22);
  border-radius: var(--radius-pill);
}
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.section-header h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  overflow: visible;
  line-height: 1.12;
  padding-bottom: 0.06em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-1);
  max-width: min(68ch, 100%);
}

/* ── Manifesto ── */
.manifesto {
  padding: clamp(48px, 8vw, 88px) 0;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(91, 140, 255, 0.06), transparent);
  pointer-events: none;
}
.manifesto-text {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
}

/* ── Onglets services / tarifs ── */
.cat-tabs,
.pricing-switcher {
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(12, 14, 20, 0.8);
  backdrop-filter: blur(16px);
}
.cat-tab.active,
.ps-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.3);
}

/* ── Cartes ── */
.service-card,
.pricing-card,
.portfolio-card,
.testi-card,
.services-extra-card {
  position: relative;
  background: linear-gradient(165deg, rgba(22, 26, 36, 0.95) 0%, rgba(12, 14, 20, 0.98) 100%);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  transition:
    transform var(--t) var(--ease-spring),
    border-color var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease-out);
}
.service-card::before,
.pricing-card::before,
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.35), transparent 40%, transparent 60%, rgba(139, 107, 255, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.service-card:hover::before,
.pricing-card:hover::before,
.portfolio-card:hover::before {
  opacity: 1;
}
.service-card:hover,
.pricing-card:hover,
.portfolio-card:hover,
.testi-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(91, 140, 255, 0.08);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(139, 107, 255, 0.1));
  border: 1px solid rgba(91, 140, 255, 0.2);
}

.pricing-card--featured {
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.15), 0 24px 60px rgba(91, 140, 255, 0.12);
}
.pc-amount {
  letter-spacing: -0.04em;
}

/* ── Portfolio ── */
.pf-thumb {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.portfolio-card--featured {
  border-color: rgba(91, 140, 255, 0.25);
}

/* ── Process ── */
.pf-step {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  background-clip: padding-box;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.pf-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.5), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Contact ── */
.contact-form {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-md);
  background: linear-gradient(165deg, rgba(18, 21, 30, 0.95), rgba(10, 12, 18, 0.98));
  padding: clamp(28px, 4vw, 40px);
}
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(91, 140, 255, 0.04);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.12);
}

.social-btn {
  border-radius: var(--radius-md);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ── Footer ── */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border-md);
}
.footer-body {
  padding: clamp(48px, 8vw, 80px) 0;
}
.footer-col-title {
  color: var(--text-0);
}
.logo-img--footer {
  width: 140px;
  height: 140px;
  border-radius: 20px;
}

/* ── Back to top ── */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-lg);
  border-radius: 50%;
  background: rgba(12, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text-0);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity var(--t) var(--ease-out),
    transform var(--t) var(--ease-out),
    visibility var(--t),
    border-color var(--t-fast),
    background var(--t-fast);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── FAB mobile (contact rapide) ── */
.fab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.95) 30%);
  pointer-events: none;
}
.fab-bar a {
  pointer-events: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform var(--t-fast);
}
.fab-bar a:active {
  transform: scale(0.97);
}
.fab-project {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35);
}
.fab-wa {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(18, 140, 126, 0.2));
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #fff;
}
.fab-wa svg { flex-shrink: 0; }
.fab-call {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
}
.fab-call svg { flex-shrink: 0; }
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #041018 !important;
  border: none;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.28);
}
.btn-call:hover {
  filter: brightness(1.06);
  color: #041018 !important;
}
.cl-item--phone .cl-icon--phone {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}
.cl-phone-link {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}
.cl-phone-link:hover { color: #38bdf8; }
.contact-call-cta { margin: 0.35rem 0 1rem; }

/* Reveal — jamais masquer le texte */
.reveal,
.reveal-fast {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}

/* ── Marquee ── */
.marquee-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.02);
}

/* ── Formulaire contact (sections dynamiques) ── */
.contact-form {
  gap: 0;
}
.form-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 8px;
}
.form-section--dynamic {
  padding-top: 18px;
}
.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.form-section-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: 10px;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin: 0 0 4px;
}
.form-section-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}
.form-section .form-row,
.form-section .form-group {
  margin-top: 0;
}
.form-section .form-row + .form-row,
.form-section .form-group + .form-group,
.form-section .form-row + .form-group {
  margin-top: 14px;
}
.form-panel-empty {
  font-size: 0.85rem;
  color: var(--text-3);
  text-align: center;
  padding: 20px 16px;
  border: 1px dashed var(--border-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  margin: 0;
  transition: opacity 0.25s var(--ease-out);
}
.form-panel-empty.is-hidden {
  display: none;
}
.form-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: formPanelIn 0.35s var(--ease-out);
}
.form-panel.is-active {
  display: flex;
}
.form-subpanel {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(91, 140, 255, 0.15);
  background: rgba(91, 140, 255, 0.04);
  animation: formPanelIn 0.35s var(--ease-out);
}
.form-subpanel.is-active {
  display: flex;
}
.form-subpanel-intro {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: var(--accent);
  line-height: 1.5;
}
@keyframes formPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.form-group--check {
  margin-top: 4px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  position: relative;
}
.form-check-input {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.form-check-ui {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 2px solid rgba(91, 140, 255, 0.45);
  background: rgba(10, 12, 18, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.15s var(--ease-out);
  pointer-events: none;
}
.form-check-icon {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.form-check-input:checked + .form-check-ui {
  border-color: #5b8cff;
  background: linear-gradient(135deg, #5b8cff 0%, #6e8fff 50%, #22c55e 100%);
  box-shadow: 0 0 16px rgba(91, 140, 255, 0.35);
}
.form-check-input:checked + .form-check-ui .form-check-icon {
  opacity: 1;
  transform: scale(1);
}
.form-check:hover .form-check-ui {
  border-color: rgba(91, 140, 255, 0.75);
}
.form-check-input:focus-visible + .form-check-ui {
  outline: 2px solid rgba(91, 140, 255, 0.8);
  outline-offset: 2px;
}
.form-check-text {
  flex: 1;
  min-width: 0;
}
.form-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-check a:hover {
  color: var(--text-0);
}
.form-field-invalid,
.form-group input.form-field-invalid,
.form-group select.form-field-invalid,
.form-group textarea.form-field-invalid {
  border-color: rgba(239, 68, 68, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}
.form-check-input.form-field-invalid + .form-check-ui {
  border-color: rgba(239, 68, 68, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
  background: rgba(239, 68, 68, 0.08);
}
.form-validation-summary {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.86rem;
  line-height: 1.55;
}
.form-validation-summary[hidden] {
  display: none !important;
}
.form-validation-summary strong {
  display: block;
  color: #fca5a5;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-validation-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}
.form-validation-summary li + li {
  margin-top: 4px;
}
.contact-form > .btn {
  margin-top: 20px;
}
.contact-form > .form-note {
  margin-top: 12px;
}
.form-turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
  min-height: 65px;
}
.form-turnstile-wrap[hidden] {
  display: none !important;
}

/* Message de succès */
.form-success {
  text-align: center;
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 32px);
}
.form-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(91, 140, 255, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.15);
}
.form-success-icon svg {
  width: 36px;
  height: 36px;
}
.form-success-ref {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(91, 140, 255, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-0);
  margin: 0 0 12px;
}
.form-success-lead {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto 28px;
}
.form-success-lead strong {
  color: var(--text-0);
}
.form-success-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 380px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-success-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-1);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.form-success-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 8px;
}
.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.form-success-actions .btn {
  min-width: 160px;
}
.form-success-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Services extra & CTA ── */
.services-cta {
  border-radius: var(--radius-xl);
  border-color: rgba(91, 140, 255, 0.2);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.1), rgba(139, 107, 255, 0.05));
}
.services-extra {
  border-radius: var(--radius-xl);
}

/* ── Testimonials ── */
.testi-card {
  position: relative;
}
.testi-card::after {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(91, 140, 255, 0.12);
  pointer-events: none;
}

/* Masquer l'ancien bouton footer si présent */
.footer .back-top {
  display: none;
}

/* ── Responsive UI v4 (nav drawer → mobile.css @1024px) ── */
@media (max-width: 600px) {
  .navbar .container.nav-inner {
    padding: 8px 14px;
    min-height: 58px;
  }
  .logo-img {
    width: 40px;
    height: 40px;
  }
  .form-section-head {
    gap: 10px;
  }
  .form-success-actions {
    flex-direction: column;
  }
  .form-success-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .fab-bar {
    display: flex;
  }
  .back-top {
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 16px;
    width: 44px;
    height: 44px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 14px 16px;
    max-width: 100%;
  }
  .hero-metrics .hm-item {
    padding-left: 0;
    border-left: none;
    align-items: center;
    text-align: center;
  }
}

/* Desktop : CTA sticky + retour en haut sans chevauchement */
@media (min-width: 980px) {
  .back-top {
    right: calc(20px + min(220px, 26vw) + 14px);
    bottom: 22px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .reveal,
  .reveal-fast,
  .back-top,
  .service-card,
  .pricing-card,
  .portfolio-card {
    transition: none !important;
    animation: none !important;
  }
  .hero-visual:hover .browser-frame {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════
   Mosa AI — référence visuelle (captures Nextjsshop)
   Noir pur · blanc/gris · CTA blanc texte noir
   ═══════════════════════════════════════════════════ */
:root {
  --bg-0: #000000;
  --bg-1: #09090b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-elevated: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-md: rgba(255, 255, 255, 0.12);
  --border-lg: rgba(255, 255, 255, 0.18);
  --text-0: #ffffff;
  --text-1: #a1a1aa;
  --text-2: #71717a;
  --text-3: #52525b;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-dim: rgba(34, 197, 94, 0.1);
  --accent-glow: rgba(34, 197, 94, 0.25);
}

body {
  background-color: #000000;
  background-image: none;
}
body::before,
body::after {
  display: none;
}

.scroll-progress {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

h1 em,
h2 em {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #71717a;
  color: #71717a;
}

.navbar {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
}

.btn-primary,
.nav-links .btn-primary,
a.btn.btn-primary,
button.btn.btn-primary {
  background: #ffffff !important;
  color: #09090b !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1) !important;
  text-shadow: none !important;
}
.btn-primary:hover {
  background: #e4e4e7 !important;
  color: #09090b !important;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.16) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fafafa;
  border-radius: 999px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-eyebrow,
.section-tag {
  font-family: var(--font-mono);
  color: #a1a1aa;
  background: transparent;
  border: none;
  padding-left: 0;
}
.section-tag::before,
.eyebrow-dot {
  background: #ffffff;
  box-shadow: none;
}

.section-tag::before {
  content: '•';
  width: auto;
  height: auto;
  border-radius: 0;
  animation: none;
  margin-right: 6px;
}

.service-card,
.pricing-card,
.portfolio-card,
.testi-card,
.home-hub-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: none;
}
.service-card:hover,
.pricing-card:hover,
.portfolio-card:hover,
.testi-card:hover,
.home-hub-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

:focus-visible {
  outline-color: #ffffff;
}
