/* ==========================================================================
   Accueil — univers « technophile » : nuit profonde, néons, code
   ========================================================================== */

.page-home { --font-display: "Space Grotesk", system-ui, sans-serif; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, #6d4aff, #8b6cff 40%, #c35cff 70%, #f472b6);
  background-size: 200% 100%;
  box-shadow: 0 14px 40px -14px rgba(139, 108, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 50px -14px rgba(196, 92, 255, 0.95); }
.btn-ghost {
  color: var(--fg);
  background: var(--ghost-bg);
  box-shadow: inset 0 0 0 1px var(--ghost-line);
}
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 116px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
}
.section-kicker::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 40% at 18% 30%, rgba(109, 74, 255, 0.35), transparent 70%),
    radial-gradient(30% 34% at 85% 25%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(34% 36% at 70% 85%, rgba(244, 114, 182, 0.2), transparent 70%);
  filter: blur(20px);
  opacity: var(--glow-opacity);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  to { transform: translate3d(3%, -2%, 0) scale(1.06); }
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

.hero-inner > *,
.about-grid > *,
.bento > * { min-width: 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px var(--chip-line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  max-width: 100%;
}
@media (max-width: 560px) {
  .kicker { font-size: 11.5px; border-radius: 16px; align-items: flex-start; }
  .kicker-dot { margin-top: 4px; flex: none; }
}
.kicker-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero-first { display: block; font-size: clamp(30px, 4.4vw, 58px); color: var(--heading-2); }
.hero-last {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-right: 0.06em;
  white-space: nowrap;
  font-size: clamp(46px, 7.2vw, 104px);
  background: linear-gradient(100deg, #22d3ee, #8b6cff 30%, #f472b6 55%, #fbbf24 75%, #22d3ee);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
  filter: drop-shadow(0 10px 40px rgba(139, 108, 255, 0.35));
}
@keyframes shimmer { to { background-position: -250% 0; } }

.hero-typed {
  margin-top: 26px;
  min-height: 1.6em;
  font-family: var(--font-mono);
  font-size: clamp(17px, 1.9vw, 23px);
  color: var(--text-2);
}
.typed { color: var(--fg); font-weight: 600; }
.caret {
  display: inline-block;
  width: 0.6ch;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--accent-2);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(16px, 1.45vw, 19px);
  color: var(--muted);
}
.hero-lead strong { color: var(--fg); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Fenêtre de code */
.hero-visual { position: relative; padding: 40px 10px; }
.code-window {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(23, 26, 38, 0.92), rgba(12, 14, 22, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -20px rgba(139, 108, 255, 0.35);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.code-window.is-tilting { transition: transform 0.08s linear; }
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-tab {
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #aab3c9;
}
.code-body {
  margin: 0;
  padding: 22px 22px 26px;
  min-height: 330px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.05vw, 14px);
  line-height: 1.75;
  color: #d6deeb;
  white-space: pre;
}
.code-caret {
  display: inline-block;
  width: 8px; height: 1.2em;
  vertical-align: -0.25em;
  background: #8b6cff;
  animation: blink 1s steps(1) infinite;
}
.tk-kw { color: #c792ea; }
.tk-type { color: #22d3ee; }
.tk-str { color: #c3e88d; }
.tk-num { color: #f78c6c; }
.tk-com { color: #5f6b85; font-style: italic; }
.tk-prop { color: #ffcb6b; }
.tk-pun { color: #89ddff; }

/* Icônes d'apps en orbite */
.orbit-icon {
  position: absolute;
  width: clamp(64px, 7vw, 92px);
  aspect-ratio: 1;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.25s var(--ease);
  z-index: 2;
}
.orbit-icon img {
  width: 100%;
  height: 100%;
  border-radius: 24%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite;
  transition: scale 0.3s var(--ease-bounce);
}
.orbit-icon:hover img { scale: 1.12; }
.orbit-1 { top: -6px; right: -12px; }
.orbit-1 img { animation-delay: -1s; rotate: 8deg; }
.orbit-2 { bottom: 2px; left: -26px; }
.orbit-2 img { animation-delay: -3s; rotate: -10deg; }
.orbit-3 { bottom: -18px; right: 22%; width: clamp(54px, 5.6vw, 74px); }
.orbit-3 img { animation-delay: -4.5s; rotate: 6deg; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  width: 26px; height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--ghost-line);
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--fg);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- STATS ---------- */
.stats {
  position: relative;
  padding: 40px 0;
  background: var(--band-bg);
  border-block: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat em { font-style: normal; }

/* ---------- À PROPOS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about-text { display: grid; gap: 18px; margin-top: 30px; color: var(--text-2); font-size: 18px; }
.about-text strong { color: var(--fg); }
.about-values { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.about-values li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.about-values b { color: var(--fg); }
.value-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(139, 108, 255, 0.14);
  color: var(--value-ico);
}
.value-ico svg { width: 20px; height: 20px; }

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 8px 0 0 34px;
  display: grid;
  gap: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, #22d3ee, #8b6cff, #f472b6, transparent);
  border-radius: 2px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px #8b6cff, 0 0 18px rgba(139, 108, 255, 0.7);
}
.tl-year {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--kicker);
}
.tl-now { color: var(--tl-now); }
.tl-past { color: var(--tl-past); }
.timeline h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.01em; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ---------- COMPÉTENCES ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento-card {
  --c: #8b6cff;
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
    var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s var(--ease), box-shadow 0.3s;
}
.bento-card.is-tilting { transition: transform 0.08s linear, box-shadow 0.3s; }
.bento-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.bento-wide { grid-column: span 2; }
.bento-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1.3fr 1fr;
  align-items: center;
  gap: 8px 28px;
}
.bento-full .bento-ico { margin-bottom: 0; }
.bento-full .chips { margin-top: 0; justify-content: flex-end; }
.bento-ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 15px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.bento-ico svg { width: 26px; height: 26px; }
.bento-card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.015em; }
.bento-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--chip-fg);
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px var(--chip-line);
}

.marquee {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee-track--reverse { animation-direction: reverse; animation-duration: 60s; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--marquee-stroke);
}
.marquee-track span::after {
  content: "✦";
  margin-left: 52px;
  font-size: 0.5em;
  color: #8b6cff;
  -webkit-text-stroke: 0;
}
.marquee-track span:nth-child(3n + 1) { color: var(--marquee-fill); -webkit-text-stroke: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- APPS ---------- */
.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.app-card.is-tilting { transition: transform 0.08s linear, box-shadow 0.4s; }
.app-card-bg { position: absolute; inset: 0; z-index: -2; }
.app-card-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: soft-light;
}
.app-card.is-tilting .app-card-glare { opacity: 1; }
.app-card-body { position: relative; z-index: 2; padding: 32px 30px 0; }
.app-card-icon {
  width: 84px; height: 84px;
  border-radius: 24%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 16px 30px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease-bounce);
}
.app-card:hover .app-card-icon { transform: rotate(-6deg) scale(1.06); }
.app-card-genre {
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.app-card h3 { margin-top: 6px; font-size: 38px; letter-spacing: -0.02em; }
.app-card-tag { margin-top: 10px; font-size: 16.5px; line-height: 1.5; opacity: 0.95; }
.app-card-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.app-card-list li { display: flex; align-items: center; gap: 10px; }
.app-card-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.app-card-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.btn-card {
  min-height: 46px;
  padding: 0 22px;
  background: #fff;
  color: #111;
  font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.app-card-store { font-size: 14px; font-weight: 700; text-decoration: none; opacity: 0.9; border-bottom: 2px solid rgba(255, 255, 255, 0.5); }
.app-card-store:hover { opacity: 1; border-color: #fff; }

.app-card-shot {
  position: absolute;
  z-index: 1;
  left: 10%;
  bottom: -6%;
  width: 118%;
  max-width: none;
  height: auto;
  border-radius: 16px;
  border: 6px solid #111;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: rotate(-6deg);
  transition: transform 0.6s var(--ease);
}
.app-card:hover .app-card-shot { transform: rotate(-3deg) translateY(-14px); }
.app-card-shot--portrait {
  left: auto;
  right: -4%;
  bottom: -30%;
  width: 62%;
  border-radius: 26px;
  transform: rotate(8deg);
}
.app-card:hover .app-card-shot--portrait { transform: rotate(4deg) translateY(-18px); }

/* Thèmes des cartes */
.app-card--ellena .app-card-bg {
  background:
    radial-gradient(60% 40% at 80% 6%, rgba(246, 178, 62, 0.55), transparent 70%),
    radial-gradient(70% 50% at 0% 100%, rgba(108, 200, 50, 0.45), transparent 70%),
    repeating-radial-gradient(circle at 110% 40%, transparent 0 22px, rgba(255, 255, 255, 0.03) 22px 24px),
    linear-gradient(165deg, #2f7a1f, #154017 55%, #0b2210);
}
.app-card--baby .app-card-bg {
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.14) 3px, transparent 4px) 0 0 / 36px 36px,
    radial-gradient(55% 40% at 75% 82%, #ffd76e, transparent 70%),
    linear-gradient(170deg, #f0560c, #f47216 55%, #ff8a1f);
}
.app-card--baby { text-shadow: 0 1px 8px rgba(150, 40, 0, 0.35); }
.app-card--fruit { color: #143a12; }
.app-card--fruit .app-card-bg {
  background:
    radial-gradient(16% 11% at 86% 9%, #fff6c2, rgba(255, 213, 79, 0.6) 45%, transparent 70%),
    radial-gradient(40% 7% at 74% 30%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(30% 5% at 22% 58%, rgba(255, 255, 255, 0.75), transparent 70%),
    linear-gradient(180deg, #8fd3ff 0%, #c4e9ff 62%, #f7d98b 62.3%, #efc062 100%);
}
.app-card--fruit .app-card-list li::before { background-color: #2f7d22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.app-card--fruit .btn-card { background: #2f7d22; color: #fff; }
.app-card--fruit .app-card-store { border-color: rgba(20, 58, 18, 0.45); }
.app-card--fruit .app-card-store:hover { border-color: #143a12; }

/* ---------- PROJETS ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s var(--ease), box-shadow 0.3s;
}
.project.is-tilting { transition: transform 0.08s linear, box-shadow 0.3s; }
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}
.project:hover::before { opacity: 1; }
.project-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.project-ico {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(139, 108, 255, 0.8);
}
.project-ico svg { width: 28px; height: 28px; }
.project h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.project-type { color: var(--kicker); font-family: var(--font-mono); font-size: 13px; }
.project > p { color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact { padding-top: 40px; }
.contact-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(135deg, #1a1440, #0d1a33 60%, #2a0f2e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 100px -40px rgba(109, 74, 255, 0.6);
}
.contact-card .section-kicker { justify-content: center; }
.contact-orbs i {
  position: absolute;
  z-index: -1;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orb 14s ease-in-out infinite alternate;
}
.contact-orbs i:nth-child(1) { background: #6d4aff; top: -160px; left: -100px; }
.contact-orbs i:nth-child(2) { background: #22d3ee; bottom: -200px; right: -80px; animation-delay: -5s; opacity: 0.35; }
.contact-orbs i:nth-child(3) { background: #f472b6; top: 30%; left: 55%; width: 260px; height: 260px; animation-delay: -9s; opacity: 0.35; }
@keyframes orb { to { transform: translate(60px, 40px) scale(1.15); } }
.contact-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.contact-lead { max-width: 52ch; margin: 22px auto 0; color: var(--text-2); font-size: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-cards { grid-template-columns: 1fr 1fr; }
  .app-card--fruit { grid-column: 1 / -1; min-height: 560px; }
  .app-card--fruit .app-card-body { max-width: 56%; }
  .app-card--fruit .app-card-shot { left: auto; right: -8%; bottom: 10%; width: 58%; }
}
@media (max-width: 1000px) {
  .bento-full { grid-template-columns: auto 1fr; }
  .bento-full .chips { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .app-cards, .project-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 620px; }
  .app-card--fruit .app-card-body { max-width: none; }
  .app-card--fruit .app-card-shot { left: 10%; right: auto; bottom: -6%; width: 118%; }
  .orbit-2 { left: -6px; }
  .orbit-1 { right: -4px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .bento-full { grid-column: auto; grid-template-columns: 1fr; }
  .bento-full .bento-ico { margin-bottom: 12px; }
  .hero { padding-bottom: 80px; }
  .code-body { min-height: 300px; padding: 18px 16px; }
  .scroll-cue { display: none; }
  .project, .bento-card { padding: 24px; }
}

/* ---------- Mode clair ---------- */
:root[data-theme="light"] .page-home .hero-last { filter: drop-shadow(0 10px 30px rgba(139, 108, 255, 0.22)); }
:root[data-theme="light"] .page-home .code-window {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 40px 80px -30px rgba(20, 30, 70, 0.45),
    0 0 60px -20px rgba(139, 108, 255, 0.3);
}
:root[data-theme="light"] .page-home .orbit-icon img { box-shadow: 0 0 0 3px #fff, 0 18px 34px -12px rgba(20, 30, 70, 0.45); }
:root[data-theme="light"] .page-home .bento-card,
:root[data-theme="light"] .page-home .project {
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 44px -34px rgba(20, 30, 70, 0.35);
}
:root[data-theme="light"] .page-home .bento-ico { color: color-mix(in srgb, var(--c) 70%, #000); }
:root[data-theme="light"] .page-home .value-ico { background: rgba(109, 74, 255, 0.1); }
:root[data-theme="light"] .page-home .timeline li::before { box-shadow: inset 0 0 0 3px #8b6cff, 0 0 12px rgba(139, 108, 255, 0.35); }
:root[data-theme="light"] .page-home .app-card { box-shadow: 0 30px 60px -32px rgba(20, 30, 70, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
:root[data-theme="light"] .page-home .contact-card {
  color: var(--fg);
  background: linear-gradient(135deg, #ede7ff, #e2f6fb 55%, #ffe6f2);
  box-shadow: inset 0 0 0 1px rgba(17, 21, 31, 0.06), 0 50px 100px -50px rgba(109, 74, 255, 0.45);
}
:root[data-theme="light"] .page-home .contact-orbs i { opacity: 0.28; }
:root[data-theme="light"] .page-home .scroll-cue span { background: var(--fg); }
