:root {
  --ts-bg: #0b0b1a;
  --ts-bg-alt: #111128;
  --ts-bg-soft: #141428;
  --ts-text: #ffffff;
  --ts-muted: #b2b5d6;
  --ts-border: #272743;
  --ts-accent-1: #ff006e;
  --ts-accent-2: #ff8a00;
  --ts-accent-3: #923fff;
  --ts-radius-lg: 24px;
  --ts-radius-md: 16px;
  --ts-radius-sm: 10px;
  --ts-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --ts-shadow-neon: 0 0 35px rgba(255, 0, 110, 0.5);
  --ts-max-width: 1120px;
}

/* RESET SIMPLE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a1b3a 0, #050510 50%, #020109 100%);
  color: var(--ts-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* LAYOUT GÉNÉRAL */
.ts-container {
  width: 100%;
  max-width: var(--ts-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ts-section {
  padding: 6rem 0;
  position: relative;
}

.ts-section-alt {
  padding: 6rem 0;
  background: radial-gradient(circle at top, #171733 0, #050510 55%);
}

.ts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at top left,
    rgba(255, 0, 110, 0.08),
    transparent 55%
  );
  pointer-events: none;
  z-index: -1;
}

/* HEADER */
.ts-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(7, 7, 20, 0.9),
    rgba(7, 7, 20, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(146, 63, 255, 0.3);
}

.ts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.ts-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ts-logo img {
  height: 32px;
  width: auto;
}

.ts-logo.small img {
  height: 24px;
}

.ts-logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.ts-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-nav a {
  text-decoration: none;
  color: var(--ts-muted);
  font-size: 0.95rem;
  position: relative;
}

.ts-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--ts-accent-1),
    var(--ts-accent-2),
    var(--ts-accent-3)
  );
  transition: width 0.2s ease-out;
}

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

.ts-nav a:hover::after {
  width: 100%;
}

/* NAV TOGGLE (MOBILE) */
.ts-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.ts-nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ts-text);
}

/* THEME TOGGLE BUTTON */
.ts-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0.7rem;
  transition: background 0.2s, transform 0.2s;
}

.ts-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.ts-theme-icon {
  font-size: 1.3rem;
  pointer-events: none;
}

/* HERO */
.ts-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ts-hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url("../assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(4px);
  z-index: -3;
}

.ts-hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 0, 110, 0.5),
    transparent 55%
  );
  mix-blend-mode: screen;
  z-index: -2;
}

.ts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at bottom left,
    rgba(146, 63, 255, 0.5),
    transparent 55%
  );
  mix-blend-mode: screen;
  z-index: -2;
}

.ts-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding: 7rem 0 5rem;
}

.ts-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ts-muted);
  margin-bottom: 0.8rem;
}

.ts-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.ts-gradient-text {
  display: inline-block;
  background: linear-gradient(
    120deg,
    var(--ts-accent-1),
    var(--ts-accent-2),
    var(--ts-accent-3)
  );
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.55);
}

.ts-hero-sub {
  color: var(--ts-muted);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.ts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ts-btn {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.2s, border-color 0.2s, color 0.2s;
}

.ts-btn-primary {
  background: linear-gradient(
    120deg,
    var(--ts-accent-1),
    var(--ts-accent-2),
    var(--ts-accent-3)
  );
  color: #fff;
  box-shadow: var(--ts-shadow-neon);
}

.ts-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(255, 0, 110, 0.75);
}

.ts-btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(11, 11, 26, 0.65);
  color: var(--ts-text);
}

.ts-btn-ghost:hover {
  background: rgba(11, 11, 26, 0.95);
}

.ts-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ts-muted);
}

.ts-hero-badges span {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(20, 20, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ts-hero-visual {
  position: relative;
}

/* HERO CARD IMAGE VERSION */
.ts-hero-card.ts-hero-card-image {
  width: 690px;
  max-width: 100%;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at top, #181836 0, #070717 65%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.85);
  margin-bottom: 1.3rem;
}

.ts-hero-card.ts-hero-card-image .ts-hero-card-header {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-hero-card.ts-hero-card-image .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ts-hero-card.ts-hero-card-image .dot:nth-child(1) {
  background: #ff5f57;
}
.ts-hero-card.ts-hero-card-image .dot:nth-child(2) {
  background: #ffbd2e;
}
.ts-hero-card.ts-hero-card-image .dot:nth-child(3) {
  background: #28c840;
}

.ts-hero-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ts-hero-mockup {
  width: 100%;
  max-width: 380px;
  border-radius: var(--ts-radius-lg);
  border: 1px solid rgba(146, 63, 255, 0.5);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.85);
}

/* SECTIONS GÉNÉRAUX */
.ts-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ts-section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ts-section-header p {
  color: var(--ts-muted);
  max-width: 32rem;
  margin: 0 auto;
}

/* GRIDS & CARDS */
.ts-grid {
  display: grid;
  gap: 1.8rem;
}

.ts-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ts-card {
  background: rgba(11, 11, 36, 0.95);
  border-radius: var(--ts-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.ts-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 0, 110, 0.25),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.ts-card:hover::before {
  opacity: 1;
}

/* ICÔNES SERVICES – LOGO EN GRAND DANS LA CASE */
.ts-card-icon {
  width: 100%;
  height: 160px; /* taille de la case */
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 110, 0.25),
    rgba(146, 63, 255, 0.25)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  overflow: hidden;
  padding: 12px;
}

.ts-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ts-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.ts-card p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--ts-muted);
}

.ts-list {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--ts-muted);
  font-size: 0.9rem;
}

.ts-list li + li {
  margin-top: 0.25rem;
}

/* ABOUT */
.ts-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.ts-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.ts-stats .value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.ts-stats .label {
  font-size: 0.85rem;
  color: var(--ts-muted);
}

.ts-about-card {
  background: radial-gradient(circle at top, #191938 0, #0c0c22 65%);
  border-radius: var(--ts-radius-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(146, 63, 255, 0.5);
  box-shadow: var(--ts-shadow-soft);
}

.ts-list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ts-muted);
  font-size: 0.93rem;
}

.ts-list-check li {
  position: relative;
  padding-left: 1.4rem;
}

.ts-list-check li + li {
  margin-top: 0.5rem;
}

.ts-list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--ts-accent-2);
}

/* PROJECTS */
.ts-project-card .tag {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ts-muted);
}

/* CTA PARALLAX */
.ts-cta-parallax {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.ts-cta-bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at center, #2b1a46, #050511 70%);
  opacity: 0.9;
  z-index: -1;
}

.ts-cta-content {
  text-align: center;
}

.ts-cta-content h2 {
  font-size: 1.9rem;
  margin-bottom: 0.7rem;
}

.ts-cta-content p {
  color: var(--ts-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

/* CONTACT GRID */
.ts-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}

.ts-contact-info {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  color: var(--ts-muted);
  font-size: 0.95rem;
}

.ts-contact-info li + li {
  margin-top: 0.5rem;
}

.ts-contact-info a {
  color: var(--ts-text);
  text-decoration: none;
}

.ts-contact-info a:hover {
  text-decoration: underline;
}

/* FORM */
.ts-form {
  background: rgba(10, 10, 32, 0.95);
  border-radius: var(--ts-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--ts-shadow-soft);
}

.ts-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ts-form-group {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.ts-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ts-muted);
  margin-bottom: 0.25rem;
}

.ts-form input,
.ts-form textarea {
  background: rgba(8, 8, 24, 0.95);
  border-radius: var(--ts-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 0.8rem;
  color: var(--ts-text);
  font-size: 0.95rem;
  outline: none;
}

.ts-form input:focus,
.ts-form textarea:focus {
  border-color: var(--ts-accent-3);
  box-shadow: 0 0 0 1px rgba(146, 63, 255, 0.5);
}

.ts-form textarea {
  resize: vertical;
}

.ts-form-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--ts-muted);
}

/* FOOTER */
.ts-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0 1.8rem;
  background: radial-gradient(circle at top, #171733 0, #050510 65%);
}

.ts-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--ts-muted);
}

.ts-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ts-footer-links a {
  color: var(--ts-muted);
  text-decoration: none;
}

.ts-footer-links a:hover {
  color: var(--ts-text);
}

/* PARALLAX (JS) */
.ts-parallax-layer {
  will-change: transform;
  transition: transform 0.08s linear;
}

/* ==== BACKGROUND SERVICE ==== */
#services {
  position: relative;
  background: #0b0b1a;
  padding: 6rem 0;
  z-index: 1;
}

#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/services-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: -1;
  filter: blur(0px);
}

/* ==== BACKGROUND CONTACT ==== */
#contact {
  position: relative;
  background: #0b0b1a;
  padding: 6rem 0;
  z-index: 1;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/contact-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  filter: brightness(1.05) saturate(1.3);
  z-index: -1;
}

/* ==== OVERLAY NÉON GLOBAL ==== */
.ts-global-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 0, 110, 0.20), transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(146, 63, 255, 0.20), transparent 60%);
  animation: tsOverlayMove 22s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes tsOverlayMove {
  0% {
    transform: translate3d(-40px, -30px, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, 10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(40px, 30px, 0) scale(1.02);
  }
}

/* THÈME CLAIR AUTO (OS) */
@media (prefers-color-scheme: light) {
  :root {
    --ts-bg: #f4f4fb;
    --ts-bg-alt: #ffffff;
    --ts-bg-soft: #f2f3ff;
    --ts-text: #111321;
    --ts-muted: #5b5f7c;
    --ts-border: #d4d7f5;
  }

  body {
    background: radial-gradient(circle at top, #ffffff 0, #e6e7ff 55%, #dde0ff 100%);
    color: var(--ts-text);
  }

  .ts-header {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.8),
      transparent
    );
    border-bottom-color: rgba(146, 63, 255, 0.25);
  }

  .ts-section-alt {
    background: linear-gradient(to bottom, #ffffff 0, #f4f5ff 65%);
  }

  .ts-card,
  .ts-about-card,
  .ts-form {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 40, 0.06);
    box-shadow: 0 18px 40px rgba(12, 19, 60, 0.15);
  }

  .ts-footer {
    background: linear-gradient(to top, #f0f1ff 0, #ffffff 65%);
    border-top-color: rgba(0, 0, 40, 0.08);
  }

  .ts-nav a {
    color: var(--ts-muted);
  }

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

  .ts-btn-ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ts-text);
    border-color: rgba(0, 0, 40, 0.06);
  }

  .ts-btn-ghost:hover {
    background: #ffffff;
  }

  .ts-hero-bg {
    opacity: 0.1;
    filter: blur(5px) saturate(0.7);
  }

  .ts-cta-bg {
    background: radial-gradient(circle at center, #f6e8ff, #e0e5ff 70%);
  }

  .ts-contact-info a,
  .ts-footer-links a {
    color: var(--ts-text);
  }

  .ts-footer-links a:hover {
    color: var(--ts-accent-3);
  }

  .ts-theme-toggle {
    background: rgba(0, 0, 30, 0.06);
    border-color: rgba(0, 0, 30, 0.15);
  }

  .ts-theme-toggle:hover {
    background: rgba(0, 0, 30, 0.14);
  }
}

/* RESPONSIVE <= 960px */
@media (max-width: 960px) {
  .ts-section {
    padding: 4.5rem 0;
  }

  .ts-hero {
    min-height: auto;
  }

  .ts-hero-content {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 6.5rem;
    padding-bottom: 3.8rem;
    gap: 2.4rem;
  }

  .ts-hero-visual {
    order: -1;
    max-width: 360px;
    margin: 0 auto 1.5rem;
  }

  .ts-hero h1 {
    font-size: clamp(2.1rem, 6vw, 2.6rem);
  }

  .ts-hero-sub {
    font-size: 0.95rem;
  }

  .ts-hero-badges {
    gap: 0.4rem;
  }

  .ts-hero-badges span {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
  }

  .ts-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .ts-about-grid,
  .ts-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .ts-card {
    padding: 1.4rem 1.3rem;
  }

  .ts-form {
    padding: 1.5rem 1.3rem;
  }
}

/* RESPONSIVE NAV & FOOTER <= 768px */
@media (max-width: 768px) {
  .ts-nav {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    background: rgba(7, 7, 24, 0.96);
    border-radius: var(--ts-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .ts-nav ul {
    flex-direction: column;
    padding: 0.8rem 1rem;
  }

  .ts-nav.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .ts-nav-toggle {
    display: flex;
  }

  .ts-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* PETIT MOBILE <= 600px */
@media (max-width: 600px) {
  .ts-header-inner {
    padding: 0.7rem 0;
  }

  .ts-logo-text {
    font-size: 0.85rem;
  }

  .ts-container {
    padding: 0 1.1rem;
  }

  .ts-section-header h2 {
    font-size: 1.6rem;
  }

  .ts-section-header p {
    font-size: 0.9rem;
  }

  .ts-about-card {
    margin-top: 0.8rem;
  }

  .ts-contact-grid {
    gap: 2rem;
  }

  .ts-form-row {
    flex-direction: column;
  }

  .ts-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ts-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.1rem;
  }

  .ts-footer-inner {
    gap: 0.7rem;
  }

  .ts-card-icon {
    height: 140px;
  }
}
