/* ==========================================================================
   G3F Digital — feuille de style du site
   Polices et icônes hébergées sur le site : aucune ressource externe.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Thème ---------- */
:root {
  color-scheme: light dark;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #f4f6fb;
  --bg-soft: #eceff8;
  --surface: #fbfcfe;
  --surface-raised: #ffffff;
  --ink: #101a39;
  --ink-soft: #3a4566;
  --muted: #5f6a86;
  --line: rgba(16, 26, 57, 0.09);
  --line-strong: rgba(16, 26, 57, 0.16);

  --brand: #2743b8;
  --brand-strong: #1c2c8a;
  --cyan: #1aa9c2;
  --accent-text: #2743b8;
  --grad: linear-gradient(115deg, #22c3d8 0%, #2f6ae0 48%, #2c35a0 100%);
  --grad-text: linear-gradient(100deg, #5fe0f0 0%, #7fa8ff 55%, #b7a9ff 100%);

  --night: #0a1128;
  --night-2: #0f1a3c;
  --on-night: #eef1fa;
  --on-night-muted: #aab4d0;

  --ok: #10976b;
  --ok-bg: rgba(16, 151, 107, 0.1);
  --soon: #a86400;
  --soon-bg: rgba(214, 140, 20, 0.12);
  --info: #2743b8;
  --info-bg: rgba(39, 67, 184, 0.09);
  --age: #c2263e;
  --age-bg: rgba(194, 38, 62, 0.09);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 57, 0.05), 0 2px 8px rgba(16, 26, 57, 0.04);
  --shadow: 0 1px 2px rgba(16, 26, 57, 0.04), 0 12px 32px -12px rgba(16, 26, 57, 0.14);
  --shadow-lg: 0 2px 4px rgba(16, 26, 57, 0.04), 0 30px 60px -24px rgba(16, 26, 57, 0.28);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f22;
    --bg-soft: #0d1430;
    --surface: #111936;
    --surface-raised: #152044;
    --ink: #e9edf8;
    --ink-soft: #c3cbe2;
    --muted: #9aa5c4;
    --line: rgba(233, 237, 248, 0.08);
    --line-strong: rgba(233, 237, 248, 0.16);

    --brand: #6f8dff;
    --brand-strong: #93aaff;
    --cyan: #4fd8ec;
    --accent-text: #93aaff;

    --night: #070c1d;
    --night-2: #0d1734;

    --ok: #4cd7a3;
    --ok-bg: rgba(76, 215, 163, 0.12);
    --soon: #f3b451;
    --soon-bg: rgba(243, 180, 81, 0.13);
    --info: #93aaff;
    --info-bg: rgba(111, 141, 255, 0.14);
    --age: #ff8095;
    --age-bg: rgba(255, 128, 149, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 36px -14px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.25), 0 34px 70px -26px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(47, 106, 224, 0.22);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon-move {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(47, 106, 224, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(47, 106, 224, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-night);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-night);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 6px 18px -6px rgba(34, 120, 220, 0.6);
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  opacity: 0.86;
  transition: opacity 0.2s, background-color 0.2s;
}

.nav a:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header--solid .header-actions {
  margin-left: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s;
}

.back-link:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

/* Sélecteur de langue */
.lang {
  position: relative;
}

.lang-btn,
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.lang-btn:hover,
.menu-btn:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.lang-btn .icon-sm:last-child {
  transition: transform 0.25s var(--ease);
}

.lang-btn[aria-expanded="true"] .icon-sm:last-child {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: pop 0.22s var(--ease);
}

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--bg-soft);
}

.lang-menu button[aria-checked="true"] {
  color: var(--accent-text);
  font-weight: 600;
}

.lang-menu button .icon {
  opacity: 0;
}

.lang-menu button[aria-checked="true"] .icon {
  opacity: 1;
}

.menu-btn {
  display: none;
  width: 40px;
  padding: 0;
  justify-content: center;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 112px;
  background: var(--night);
  color: var(--on-night);
}

.hero-bg,
.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg {
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(34, 195, 216, 0.28), transparent 60%),
    radial-gradient(55% 65% at 10% 90%, rgba(60, 80, 220, 0.36), transparent 62%),
    radial-gradient(40% 40% at 50% 50%, rgba(47, 106, 224, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

.hero-bg::before {
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}

.hero-bg::after {
  content: "";
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--night) 60%, transparent));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.eyebrow--light {
  color: #8fe6f3;
}

.hero-title {
  font-size: clamp(2.5rem, 4.2vw + 0.7rem, 4.1rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-title .grad-text {
  display: block;
}

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

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--on-night-muted);
  font-size: clamp(1.05rem, 0.4vw + 0.98rem, 1.2rem);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-night-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-chips .icon {
  width: 18px;
  height: 18px;
  color: #8fe6f3;
}

/* Entrée du héros (pure CSS, sans attendre le script) */
.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.24s;
}

.hero-visual {
  animation: fade 1.2s var(--ease) 0.15s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* Constellation d'applications */
.stage {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.orbit-1 {
  width: 92%;
  height: 92%;
  border-style: dashed;
  border-color: rgba(143, 230, 243, 0.18);
  animation: spin 80s linear infinite;
}

.orbit-2 {
  width: 58%;
  height: 58%;
  background: radial-gradient(circle, rgba(47, 106, 224, 0.2), transparent 70%);
}

.stage-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.stage-core img {
  width: 22%;
  height: auto;
  border-radius: 24%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04), 0 0 60px rgba(34, 195, 216, 0.45);
}

.tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: float 7s ease-in-out infinite;
}

.tile img {
  width: clamp(72px, 9vw, 108px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 24%;
  object-fit: cover;
}

.tile figcaption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-night);
  white-space: nowrap;
}

.tile figcaption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cd7a3;
  box-shadow: 0 0 10px #4cd7a3;
}

.tile figcaption i.is-soon {
  background: #f3b451;
  box-shadow: 0 0 10px #f3b451;
}

.tile figcaption i.is-web {
  background: #8fb0ff;
  box-shadow: 0 0 10px #8fb0ff;
}

.tile-tod {
  top: 3%;
  left: 2%;
  transform: rotate(-5deg);
}

.tile-gz {
  top: 20%;
  right: 0;
  animation-delay: -2.4s;
}

.tile-gz img {
  width: clamp(86px, 11vw, 132px);
}

.tile-chr {
  bottom: 2%;
  left: 18%;
  animation-delay: -4.6s;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

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

/* ---------- Sections ---------- */
.section {
  padding: 112px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 2.6vw + 0.9rem, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Applications ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.app:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.app--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.app-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 32px;
}

.app--featured .app-body {
  padding: 44px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.badge--live {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}

.badge--soon {
  background: var(--soon-bg);
  color: var(--soon);
}

.badge--web {
  background: var(--info-bg);
  color: var(--info);
}

.badge--age {
  background: var(--age-bg);
  color: var(--age);
}

.badge--muted {
  background: var(--bg-soft);
  color: var(--muted);
}

.app-name {
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.app--featured .app-name {
  font-size: clamp(1.9rem, 1.8vw + 1.2rem, 2.6rem);
}

.app-kicker {
  margin-top: 6px;
  color: var(--accent-text);
  font-size: 0.93rem;
  font-weight: 600;
}

.app-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.features {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.app--featured .features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

.features .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  margin-top: -5px;
  border-radius: 10px;
  background: var(--info-bg);
  color: var(--accent-text);
}

.app--tod .features .icon {
  background: rgba(255, 122, 26, 0.12);
  color: #e0620a;
}

.app--gz .features .icon {
  background: rgba(184, 137, 43, 0.14);
  color: #9a6b12;
}

@media (prefers-color-scheme: dark) {
  .app--tod .features .icon {
    color: #ff9a4d;
  }

  .app--gz .features .icon {
    color: #e5bd62;
  }
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: auto;
  padding-top: 32px;
}

.app-note {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Bouton Google Play */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px 0 18px;
  border-radius: 16px;
  background: #0d1224;
  color: #f4f6fb;
  box-shadow: 0 14px 30px -14px rgba(13, 18, 36, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(13, 18, 36, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-play svg {
  width: 28px;
  height: 28px;
}

.btn-play span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-play small {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.btn-play strong {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (prefers-color-scheme: dark) {
  .btn-play {
    background: #f1f4fb;
    color: #0d1224;
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.8);
  }
}

/* Visuels des cartes */
.app-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 250px;
}

.app-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}

.app-media img {
  transition: transform 0.8s var(--ease);
}

.app:hover .app-media img {
  transform: scale(1.04) rotate(-1deg);
}

.app-media--tod {
  background:
    radial-gradient(55% 55% at 55% 50%, rgba(255, 110, 20, 0.42), transparent 70%),
    radial-gradient(90% 90% at 100% 0%, rgba(255, 150, 60, 0.16), transparent 60%),
    #0e0b0a;
}

.app-media--tod img {
  width: min(86%, 380px);
  height: auto;
  /* Le fond noir de l'icône se fond dans la lueur orange. */
  mix-blend-mode: lighten;
}

.app-media--gz {
  background:
    radial-gradient(55% 60% at 50% 45%, rgba(222, 175, 70, 0.34), transparent 70%),
    linear-gradient(160deg, #1e3a8a 0%, #13235a 55%, #0c1638 100%);
}

.app-media--gz img {
  width: auto;
  height: 232px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.5));
}

.app-media--chr {
  background:
    radial-gradient(55% 60% at 50% 50%, rgba(79, 216, 236, 0.3), transparent 70%),
    linear-gradient(160deg, #2c3fc4 0%, #1b2479 60%, #121a5a 100%);
}

.app-media--chr img {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.06), 0 0 0 26px rgba(255, 255, 255, 0.035), 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}

.app-formerly {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Studio ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  min-width: 0;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(47, 106, 224, 0.8);
}

.pillar-icon .icon {
  width: 24px;
  height: 24px;
}

.pillar h3 {
  font-size: 1.14rem;
  font-weight: 600;
}

.pillar p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 64px;
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(34, 195, 216, 0.3), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(60, 80, 220, 0.4), transparent 62%),
    var(--night);
  color: var(--on-night);
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  font-size: clamp(1.9rem, 2.4vw + 0.9rem, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.contact-card p {
  margin-top: 16px;
  color: var(--on-night-muted);
  font-size: 1.08rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  font-size: clamp(1.02rem, 0.8vw + 0.9rem, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.contact-email span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.contact-email .icon {
  width: 24px;
  height: 24px;
  color: #8fe6f3;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.contact-card .contact-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
}

.btn-copy.is-done {
  border-color: rgba(76, 215, 163, 0.6);
  color: #7ff0c4;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 650;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-links a,
.footer-bottom a {
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.section--contact {
  padding: 88px 0 96px;
}

/* ---------- Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.08s;
}

.reveal.d2 {
  transition-delay: 0.16s;
}

.reveal.d3 {
  transition-delay: 0.24s;
}

/* ---------- Pages légales et 404 ---------- */
.page {
  padding: calc(var(--header-h) + 56px) 0 96px;
}

.page-head {
  max-width: 780px;
  margin: 0 auto 36px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.page-head .updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.prose h2 {
  margin: 40px 0 12px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 600;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}

.prose ul {
  margin: 0;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--cyan);
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.not-found {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found .code {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 650;
}

.not-found p {
  max-width: 440px;
  margin: 12px auto 32px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    padding: calc(var(--header-h) + 48px) 0 88px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .stage {
    width: min(100%, 400px);
  }

  .app--featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .app--featured .app-media {
    order: -1;
    min-height: 300px;
  }

  .app--featured .app-body {
    padding: 36px;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: flex;
    animation: pop 0.22s var(--ease);
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    opacity: 1;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-btn {
    display: inline-flex;
  }

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

  .app--featured .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .prose {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 16px;
  }

  .brand {
    gap: 10px;
    font-size: 1rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .back-link {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--line-strong);
  }

  .back-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .hero-chips {
    gap: 10px 18px;
    margin-top: 32px;
    font-size: 0.88rem;
  }

  .stage {
    width: min(100%, 340px);
  }

  .tile {
    gap: 8px;
    padding: 10px 10px 9px;
    border-radius: 22px;
  }

  .tile figcaption {
    font-size: 0.72rem;
  }

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

  .app-body,
  .app--featured .app-body {
    padding: 26px 22px 28px;
  }

  .app-media {
    min-height: 220px;
  }

  .app-media--gz img {
    height: 200px;
  }

  .app-media--chr img {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }

  .btn-play {
    flex: 1 1 100%;
    justify-content: center;
  }

  .contact-card {
    padding: 36px 22px;
    border-radius: 26px;
    gap: 28px;
  }

  .contact-email {
    width: 100%;
    padding: 16px 18px;
    gap: 12px;
  }

  .page {
    padding-top: calc(var(--header-h) + 36px);
  }

  .prose {
    padding: 26px 20px;
    border-radius: var(--radius);
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

.footer-links a[aria-current="page"] {
  color: var(--ink);
}
