/* =========================================================
   YZ & Co. — Premium Portfolio CSS
   Version finale corrigée
========================================================= */

:root {
  --bg: #04050b;
  --bg-2: #090b14;
  --surface: rgba(12, 14, 24, 0.72);
  --surface-strong: rgba(15, 17, 30, 0.92);

  --text: #f8f7ff;
  --muted: #aaa6bf;
  --muted-2: #7f7b95;

  --primary: #7b2fbe;
  --primary-2: #9a5cff;
  --blue: #2d7dff;

  --border: rgba(140, 91, 255, 0.18);
  --border-strong: rgba(162, 112, 255, 0.42);

  --gradient-main: linear-gradient(135deg, #7b2fbe 0%, #9a5cff 45%, #2d7dff 100%);
  --gradient-soft: linear-gradient(180deg, rgba(123, 47, 190, 0.14), rgba(45, 125, 255, 0.05));

  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(123, 47, 190, 0.22);
  --radius: 26px;

  --container: 1180px;
  --nav-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(123, 47, 190, 0.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(45, 125, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #04050b 0%, #070913 40%, #05060c 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary-2);
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-heading p,
.about-copy p,
.contact-copy p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 760px;
}

.center p {
  margin-left: auto;
  margin-right: auto;
}

.accent,
.accent-soft {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================
   GLOBAL BG
========================= */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 47, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 190, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,1));
  opacity: 0.28;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.5;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: rgba(123, 47, 190, 0.26);
  top: -100px;
  left: -120px;
  animation: drift1 12s ease-in-out infinite alternate;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(45, 125, 255, 0.16);
  top: 15%;
  right: -100px;
  animation: drift2 14s ease-in-out infinite alternate;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: rgba(154, 92, 255, 0.16);
  bottom: 8%;
  left: 35%;
  animation: drift3 16s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(50px, 30px, 0) scale(1.08); }
}

@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-60px, 40px, 0) scale(1.06); }
}

@keyframes drift3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -40px, 0) scale(1.12); }
}

/* =========================
   PAGES LÉGALES (Mentions légales, etc.)
   Typographie aérée pour la lecture.
========================= */
.legal-page {
  padding: 140px 0 80px;
}

.legal-page .container {
  max-width: 880px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.legal-page__intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(149, 86, 255, 0.18);
}

.legal-page h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 56px 0 18px;
  color: var(--primary-2);
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal-page p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 16px;
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-page li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  margin: 4px 0;
}

.legal-page a {
  color: var(--primary-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.legal-page a:hover {
  color: #c8a0ff;
}

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

.legal-page__last-updated {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(149, 86, 255, 0.18);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .legal-page {
    padding: 110px 0 60px;
  }
  .legal-page h2 {
    font-size: 1.35rem;
    margin-top: 42px;
  }
}


/* =========================
   HEADER CLEAN
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 12, 0.82);
  border-bottom: 1px solid rgba(149, 86, 255, 0.12);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-width: 120px;
  height: 70px;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 76px;
  max-width: 240px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(149, 86, 255, 0.18);
  background: rgba(255,255,255,0.03);
  position: relative;
  cursor: pointer;
}

.burger span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 10px;
  transition: 0.25s ease;
}

.burger span:first-child {
  transform: translateY(-4px);
}

.burger span:last-child {
  transform: translateY(4px);
}

.burger.active span:first-child {
  transform: rotate(45deg);
}

.burger.active span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 999;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(10, 12, 22, 0.96);
  border: 1px solid rgba(149, 86, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: #fff;
}

/* =========================
   BUTTONS
========================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.14) 50%, transparent 100%);
  transform: translateX(-100%);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.8s ease, opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-sm {
  padding: 13px 22px;
  font-size: 0.95rem;
}

.btn-primary {
  color: white;
  background: var(--gradient-main);
  box-shadow:
    0 18px 40px rgba(123, 47, 190, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn-primary:hover {
  box-shadow:
    0 24px 56px rgba(123, 47, 190, 0.36),
    0 0 0 1px rgba(180, 130, 255, 0.3);
}

.btn-secondary {
  color: white;
  border-color: rgba(140, 91, 255, 0.2);
  background: rgba(18, 21, 35, 0.58);
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  border-color: rgba(162, 112, 255, 0.4);
  box-shadow: 0 16px 40px rgba(22, 24, 44, 0.32);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #cda8ff;
  border: 1px solid rgba(149, 86, 255, 0.18);
  background: rgba(123, 47, 190, 0.08);
  backdrop-filter: blur(10px);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a65cff;
  box-shadow: 0 0 18px rgba(166, 92, 255, 0.9);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero-title .line {
  display: block;
}

.hero-title .word {
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0;
  transform: translateY(28px);
  animation: wordReveal 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: .05s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .14s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .26s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .36s; }
.hero-title .line:nth-child(3) .word:nth-child(1) { animation-delay: .46s; }
.hero-title .line:nth-child(3) .word:nth-child(2) { animation-delay: .56s; }
.hero-title .line:nth-child(3) .word:nth-child(3) { animation-delay: .66s; }

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  max-width: 760px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 42px;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #9f65ff;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 38px;
  border: 1px solid rgba(149, 86, 255, 0.18);
  background:
    radial-gradient(circle at 50% 20%, rgba(149, 86, 255, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(22, 18, 44, 0.88), rgba(10, 12, 22, 0.94));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(140, 91, 255, 0.35), transparent 62%);
  filter: blur(50px);
  z-index: 0;
}

.portrait-frame {
  position: relative;
  width: min(82%, 420px);
  aspect-ratio: 0.95 / 1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(154, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(45, 125, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(16, 14, 30, 0.98), rgba(8, 10, 20, 1));
  box-shadow:
    0 0 90px rgba(123, 47, 190, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.portrait {
  display: none;
}

.showcase-visual {
  isolation: isolate;
}

.showcase-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(149, 86, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 86, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
}

.showcase-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  z-index: 0;
}

.glow-1 {
  width: 220px;
  height: 220px;
  background: rgba(149, 86, 255, 0.26);
  top: 10%;
  left: 10%;
}

.glow-2 {
  width: 220px;
  height: 220px;
  background: rgba(45, 125, 255, 0.2);
  bottom: 10%;
  right: 10%;
}

.main-screen {
  position: relative;
  z-index: 2;
  width: 68%;
  height: 62%;
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(38, 26, 70, 0.96), rgba(14, 16, 30, 0.96));
  border: 1px solid rgba(170, 120, 255, 0.16);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 0 40px rgba(123, 47, 190, 0.12);
  transform: rotate(-6deg);
}

.screen-header {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.screen-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.screen-hero {
  margin-bottom: 20px;
}

.screen-title,
.screen-text,
.mini-card,
.code-line,
.ui-line {
  position: relative;
  overflow: hidden;
}

.screen-title::before,
.screen-text::before,
.mini-card::before,
.code-line::before,
.ui-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  animation: shimmer 4s linear infinite;
}

.screen-title {
  height: 22px;
  width: 78%;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 12px;
}

.screen-title.small {
  width: 52%;
}

.screen-text {
  height: 12px;
  width: 88%;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-top: 14px;
}

.screen-text.short {
  width: 64%;
}

.screen-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 92px;
}

.mini-card {
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.05);
}

.mini-card.active {
  background: linear-gradient(180deg, rgba(149, 86, 255, 0.34), rgba(45, 125, 255, 0.16));
}

.code-panel {
  position: absolute;
  right: 8%;
  bottom: 14%;
  z-index: 3;
  width: 34%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(10, 12, 22, 0.72);
  border: 1px solid rgba(149, 86, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: rotate(8deg);
}

.code-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.code-line:last-child {
  margin-bottom: 0;
}

.w-100 { width: 100%; }
.w-90 { width: 90%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }

.floating-ui {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(10, 11, 20, 0.66);
  border: 1px solid rgba(149, 86, 255, 0.14);
  backdrop-filter: blur(10px);
}

.ui-top-left {
  top: 10%;
  left: 8%;
  width: 116px;
}

.ui-bottom-right {
  right: 10%;
  top: 16%;
  width: 126px;
}

.ui-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a5cff, #2d7dff);
  box-shadow: 0 0 20px rgba(123, 47, 190, 0.35);
}

.ui-line {
  height: 9px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.ui-line.short {
  width: 68%;
}

.ui-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(149, 86, 255, 0.18);
  color: #d4b2ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.floating-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(162, 112, 255, 0.16);
  z-index: 1;
}

.ring-a {
  width: 240px;
  height: 240px;
  top: 18%;
  right: 16%;
}

.ring-b {
  width: 320px;
  height: 320px;
  bottom: 8%;
  left: 8%;
  border-color: rgba(45, 125, 255, 0.12);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(220%);
  }
}

.floating-badge {
  position: absolute;
  left: 28px;
  bottom: 40px;
  z-index: 2;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(10, 11, 20, 0.92);
  border: 1px solid rgba(149, 86, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0,0,0,0.36);
}

.floating-badge h3 {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #a662ff;
}

.floating-badge p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================
   GLASS / CARDS
========================= */
.glass-card,
.pricing-card,
.project-card,
.contact-form,
.about-photo-wrap {
  position: relative;
  background: rgba(13, 16, 29, 0.72);
  border: 1px solid rgba(149, 86, 255, 0.16);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
}

.glass-card::before,
.pricing-card::before,
.project-card::before,
.contact-form::before,
.about-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(162, 112, 255, 0.18);
  pointer-events: none;
}

/* =========================
   SERVICES
========================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: 28px;
  padding: 34px 30px;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(20, 15, 40, 0.8), rgba(12, 15, 28, 0.94));
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(162, 112, 255, 0.34);
  box-shadow:
    0 24px 50px rgba(0,0,0,0.4),
    0 0 38px rgba(123, 47, 190, 0.12);
}

.card-icon {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.service-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7b2fbe, #5f6fff);
}

.service-card h3 {
  font-size: 1.8rem;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.service-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
}

.price-line {
  margin-top: 26px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #9b5fff;
}

.price-line span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-card {
  border-radius: 30px;
  padding: 18px;
  overflow: hidden;
  transition: transform 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(162, 112, 255, 0.34);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42),
    0 0 42px rgba(123, 47, 190, 0.12);
}

.project-thumb {
  height: 260px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(180deg, rgba(123, 47, 190, 0.45), rgba(6, 8, 18, 0.94));
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

/* Badge "site fictif" à côté du titre du projet */
.project-fiction-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(149, 86, 255, 0.16);
  border: 1px solid rgba(149, 86, 255, 0.32);
  color: #c8a0ff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #b38cff;
  border: 1px solid rgba(149, 86, 255, 0.18);
  background: rgba(123, 47, 190, 0.08);
}

.project-card h3 {
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 22px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b06cff;
  font-weight: 600;
}

.project-link:hover {
  color: #d4b6ff;
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  max-width: 10ch;
}

.about-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px 24px;
  margin-top: 34px;
  max-width: 520px;
}

.about-points li {
  position: relative;
  padding-left: 18px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

.about-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a55fff;
}

.about-photo-wrap {
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(123, 47, 190, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(18, 16, 34, 0.96), rgba(9, 12, 21, 1));
}

.about-logo-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(10, 11, 20, 0.82);
  border: 1px solid rgba(149, 86, 255, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.about-logo-img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 170px;
  object-fit: contain;
}

.about-photo {
  max-height: 92%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,0.42));
}

/* =========================
   PRICING
========================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pricing-card {
  border-radius: 30px;
  padding: 34px 28px;
  min-height: 420px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 52px rgba(0,0,0,0.42),
    0 0 36px rgba(123, 47, 190, 0.1);
}

.pricing-card-featured {
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 47, 190, 0.18), transparent 38%),
    rgba(16, 18, 31, 0.92);
  border-color: rgba(162, 112, 255, 0.32);
}

.recommend-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8d48ff, #6c5cff);
}

.pricing-emoji {
  font-size: 2rem;
  margin-bottom: 18px;
}

.pricing-card h3 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #c8a0ff;
  margin-top: 16px;
}

.pricing-sub {
  margin-top: 8px;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.pricing-card li {
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.pricing-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: -1px;
  color: #9f65ff;
  font-size: 0.82rem;
}

/* =========================
   CONTACT
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.contact-copy p {
  max-width: 620px;
}

.contact-info {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(149, 86, 255, 0.12);
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background:
    linear-gradient(180deg, rgba(123, 47, 190, 0.18), rgba(45, 125, 255, 0.08));
  border: 1px solid rgba(149, 86, 255, 0.18);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
}

.info-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.96rem;
}

.contact-form-wrap {
  position: relative;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-radius: 30px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(18, 20, 34, 0.88), rgba(10, 12, 21, 0.96));
}

.contact-form select,
.contact-form textarea,
.contact-form .submit-btn,
.contact-form .form-message {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(149, 86, 255, 0.16);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  outline: none;
  transition: 0.25s ease;
  margin-bottom: 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Select : on retire l'apparence native et on dessine notre propre chevron */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa6bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-form select option {
  background: #0e1020;
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8f89ab;
}

/* Couleur de l'option vide ("Formule choisie (optionnel)") quand non sélectionnée */
.contact-form select:invalid,
.contact-form select option[value=""] {
  color: #8f89ab;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(162, 112, 255, 0.42);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(123, 47, 190, 0.12);
}

.submit-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.28);
  border-top-color: #fff;
  display: none;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text {
  opacity: 0.72;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
}

.form-message {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.96rem;
  color: #cda8ff;
}

.form-message.success {
  color: #c7a4ff;
}

.form-message.error {
  color: #ff9cba;
}

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

/* =========================
   FOOTER
========================= */
.footer {
  padding: 42px 0 36px;
  border-top: 1px solid rgba(149, 86, 255, 0.12);
  background: linear-gradient(180deg, rgba(8, 9, 16, 0.3), rgba(5, 6, 12, 0.92));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo-img {
  display: block;
  width: auto;
  height: 88px;
  max-width: 280px;
  object-fit: contain;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a,
.footer-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: #d9c0ff;
}

.footer-bottom p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav,
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo-img {
    height: 58px;
  }
}

/* =========================
   REVEAL ON SCROLL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  transition:
    opacity 0.8s cubic-bezier(.2,.8,.2,1),
    transform 0.8s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================
   MAGNETIC / HOVER UTILS
========================= */
.magnetic {
  will-change: transform;
}

.project-card,
.service-card,
.pricing-card,
.info-item,
.about-photo-wrap,
.contact-form {
  will-change: transform;
}

/* =========================
   SECTION SPACING
========================= */
.work {
  padding-top: 100px;
}

.about {
  padding-top: 110px;
}

.pricing {
  padding-top: 110px;
}

.contact {
  padding-top: 110px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1140px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .about-visual {
    order: -1;
  }

  .hero-card {
    max-width: 620px;
    min-height: 620px;
  }

  .service-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-copy p,
  .section-heading p,
  .about-copy p {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 80px;
  }

  .container {
    width: min(var(--container), calc(100% - 26px));
  }

  .section {
    padding: 88px 0;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 10px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 10vw, 4.4rem);
  }

  .hero-text {
    font-size: 1.02rem;
    line-height: 1.8;
  }

  .hero-stats {
    gap: 22px;
  }

  .hero-card {
    min-height: 520px;
    border-radius: 30px;
  }

 .portrait-frame {
  width: min(82%, 320px);
  border-radius: 24px;
}

  .floating-badge {
    left: 18px;
    right: 18px;
    bottom: 24px;
    padding: 16px 18px;
  }

  .floating-badge h3 {
    font-size: 1.55rem;
  }

  .service-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .pricing-card {
    min-height: auto;
  }

  .about-photo-wrap {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.75rem;
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 10px 14px;
    gap: 10px;
    margin-bottom: 20px;
  }

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

  .btn,
  .btn-sm {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .stat strong {
    font-size: 1.65rem;
  }

  .stat span {
    font-size: 0.82rem;
  }

  .project-thumb {
    height: 220px;
    font-size: 3.2rem;
  }

  .project-card h3 {
    font-size: 1.5rem;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .footer-links,
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .main-screen {
    width: 74%;
    height: 56%;
    padding: 14px;
  }

  .code-panel {
    width: 42%;
    padding: 14px;
    right: 6%;
    bottom: 12%;
  }

  .floating-ui {
    transform: scale(0.9);
  }

  .ring-a {
    width: 180px;
    height: 180px;
  }

  .ring-b {
    width: 240px;
    height: 240px;
  }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}