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

/* ── Tokens v4 ── */
:root {
  --bg-0: #050508;
  --bg-1: #0c0e14;
  --bg-2: #12151e;
  --bg-3: #1a1f2c;
  --bg-card: #0f1118;
  --bg-elevated: rgba(15, 17, 24, 0.72);

  --border: rgba(255, 255, 255, 0.06);
  --border-md: rgba(255, 255, 255, 0.1);
  --border-lg: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(91, 140, 255, 0.35);

  --text-0: #f8fafc;
  --text-1: #a8b0c4;
  --text-2: #6b7289;
  --text-3: #454d63;

  --accent: #5b8cff;
  --accent-2: #8b6bff;
  --accent-warm: #ff9f43;
  --accent-dim: rgba(91, 140, 255, 0.14);
  --accent-glow: rgba(91, 140, 255, 0.28);

  --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 90% 55% at 50% -15%, rgba(91, 140, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(139, 107, 255, 0.08), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  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(91, 140, 255, 0.14) 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;
}

.container {
  max-width: 1240px;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* ── 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: 1280px;
  margin: 0 auto;
  padding: 10px clamp(16px, 3vw, 28px);
  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) {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a.nav-mobile-only {
  display: none;
}
.nav-links a:not(.btn):hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.nav-active:not(.btn) {
  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-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;
}

.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 {
  background: linear-gradient(135deg, #5b8cff 0%, #6e8fff 40%, #8b6bff 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91, 140, 255, 0.25);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(91, 140, 255, 0.38);
}
.nav-links .btn-primary {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.btn-ghost {
  border-color: var(--border-md);
  color: var(--text-0);
}
.btn-ghost:hover {
  border-color: var(--border-lg);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
}
.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;
}
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.8;
  color: var(--text-1);
}
.hero-metrics {
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  gap: 28px;
}
.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 {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--border-lg), transparent);
}

.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);
}
.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: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-1);
  max-width: 52ch;
}

/* ── 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);
  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; }

/* 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;
}

/* 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;
}

/* Desktop — nav horizontale */
@media (min-width: 601px) {
  .nav-links {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    overflow: visible;
  }
  .burger {
    display: none;
  }
}

/* ── Responsive UI v4 ── */
@media (max-width: 600px) {
  .nav-links {
    background: transparent;
    border: none;
  }
  .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;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88vw, 320px);
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 32px;
    gap: 8px;
    background: rgba(8, 10, 15, 0.98);
    border-left: 1px solid var(--border-lg);
    border-radius: 0;
    backdrop-filter: blur(24px);
    transition: right 0.4s var(--ease-out);
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a:not(.btn),
  .nav-links a.nav-mobile-only {
    display: flex;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
  .nav-links .btn-sm {
    width: 100%;
    justify-content: center;
    margin: 12px 0 0;
    padding: 14px;
  }
  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hm-sep {
    display: none;
  }
}

/* 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;
  }
}
