:root {
  --bg: #050816;
  --bg-alt: #0b1220;
  --card: #0f172a;
  --card-soft: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border: #1f2937;
  --radius: 18px;
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.8);
}

/* RESET simple */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

/* STRUCTURE GLOBALE */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-soft);
  max-width: 550px;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(248, 250, 252, 0.2));
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* NAV */

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  border-radius: 999px;
  transition: width 0.2s ease;
}

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

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

/* Burger mobile */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(31, 41, 55, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  margin: 0 auto;
  border-radius: 999px;
  background: #e5e7eb;
}

/* BOUTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  color: #020617;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(37, 99, 235, 0.7);
}

.btn-small {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
}

.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--text);
}

/* HERO */

.hero {
  padding: 5rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-text h1 span {
  background: linear-gradient(120deg, #38bdf8, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tag {
  display: inline-flex;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}

.hero-sub {
  color: var(--text-soft);
  max-width: 520px;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* HERO VISUAL */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 920px; /* augmente si tu veux + grand */
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
  user-select: none;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  border-radius: 1.8rem;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border: 1px solid rgba(30, 64, 175, 0.8);
  box-shadow: var(--shadow-strong);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-screen {
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  height: 170px;
  position: relative;
  overflow: hidden;
}

.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    115deg,
    rgba(15, 23, 42, 0.1) 0,
    rgba(15, 23, 42, 0.6) 40%,
    transparent 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-box {
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(30, 64, 175, 0.7);
}

/* SERVICES */

.services-grid {
  margin-top: 2.8rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.service-card ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.service-card li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--accent);
}

/* PORTFOLIO – BULLES */

.section-portfolio {
  position: relative;
}

.section-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 60%);
  pointer-events: none;
}

.portfolio-bubbles {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.bubble {
  position: relative;
  width: 190px;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
}

.bubble-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 0, #38bdf8, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 1);
  position: relative;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.bubble-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), transparent);
}

.bubble-label h3 {
  font-size: 0.95rem;
  font-weight: 500;
}

.bubble-label p {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.bubble:hover .bubble-inner {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 1);
}

/* Légère variation de timing pour que ça ne flotte pas pareil */

.bubble-delay-1 .bubble-inner {
  animation-delay: 1.4s;
}

.bubble-delay-2 .bubble-inner {
  animation-delay: 2.7s;
}

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

/* NOTE PORTFOLIO */

.portfolio-note {
  margin-top: 1.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* PROCESS */

.process-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.process-step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* CONTACT */

.section-contact {
  padding-bottom: 4rem;
}

.contact-inner {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: #020617;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* FOOTER */

.footer {
  padding: 1.7rem 0 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-note {
  opacity: 0.7;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 0.6rem;
  }

  .nav-links {
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-links.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.35rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-bubbles {
    gap: 1.6rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
