/* ==========================================================================
   Atelier APK — feuille de style
   Thème de base sombre + thèmes par application (.theme-frontline, .theme-bandstudio)
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #09090d;
  --bg-2: #0e0e14;
  --surface: #13131b;
  --surface-2: #1a1a24;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #ecebf2;
  --muted: #9b9aae;
  --faint: #6c6b80;

  --accent: #9db4ff;
  --accent-2: #d7c6ff;
  --accent-ink: #0b0b12;
  --accent-glow: rgba(157, 180, 255, .28);
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-weight: 600;
  --display-tracking: -.02em;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Thème Frontline 2026 : tactique, kaki & ambre */
.theme-frontline {
  --bg: #08090a;
  --bg-2: #0d0f0c;
  --surface: #121510;
  --surface-2: #1a1e17;
  --line: rgba(184, 167, 122, .14);
  --line-strong: rgba(184, 167, 122, .3);
  --text: #eeeadf;
  --muted: #a7a28f;
  --faint: #757160;
  --accent: #f5a524;
  --accent-2: #ffd27a;
  --accent-ink: #141006;
  --accent-glow: rgba(245, 165, 36, .3);
  --gradient: linear-gradient(120deg, #f5a524 0%, #ffcf70 100%);
  --font-display: "Chakra Petch", "Inter", sans-serif;
  --display-weight: 700;
  --display-tracking: .01em;
  --radius: 6px;
  --radius-sm: 4px;
}

/* Thème Band Studio : néon, violet & rose */
.theme-bandstudio {
  --bg: #0a0614;
  --bg-2: #0f0a1d;
  --surface: #150f24;
  --surface-2: #1d152f;
  --line: rgba(196, 167, 255, .12);
  --line-strong: rgba(196, 167, 255, .26);
  --text: #f1ecff;
  --muted: #a99fc4;
  --faint: #776d93;
  --accent: #a78bfa;
  --accent-2: #f472b6;
  --accent-ink: #ffffff;
  --accent-glow: rgba(236, 72, 153, .3);
  --gradient: linear-gradient(120deg, #8b5cf6 0%, #ec4899 100%);
  --font-display: "Syne", "Inter", sans-serif;
  --display-weight: 800;
  --display-tracking: -.02em;
  --radius: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .prose a, li a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
p a:hover, .prose a:hover, li a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.accent, .text-gradient {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.theme-frontline em.accent, .theme-bandstudio em.accent { font-style: normal; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .75rem/1 var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--bh); padding: 0 1.5em;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.theme-frontline .btn { border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--gradient); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-glow); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { --bh: 60px; font-size: 1.05rem; padding: 0 1.9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem/1 "Fraunces", Georgia, serif; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient); color: var(--accent-ink); }
.brand__mark svg { width: 18px; height: 18px; }
.brand b { font-weight: 600; }
.brand span { color: var(--muted); font-weight: 400; font-style: italic; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: .94rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav .nav__cta { margin-left: 8px; color: var(--accent-ink); background: var(--gradient); }
.nav .nav__cta:hover { color: var(--accent-ink); background: var(--gradient); filter: brightness(1.08); }
.nav .nav__cta[aria-current="page"]::after { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav a[aria-current="page"] { background: rgba(255, 255, 255, .05); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav__cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Héros ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 90px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite; }
.orb--1 { width: 520px; height: 520px; background: #4c5fd7; top: -160px; right: -120px; }
.orb--2 { width: 420px; height: 420px; background: #8b5cf6; bottom: -180px; left: -120px; animation-delay: -6s; opacity: .35; }
.orb--3 { width: 300px; height: 300px; background: #f5a524; top: 40%; left: 55%; animation-delay: -12s; opacity: .14; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -40px) scale(1.08); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  opacity: .5;
}
.hero h1 { max-width: 13ch; }
.hero .lead { margin-bottom: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 640px; }
.hero__meta div { min-width: 120px; }
.hero__meta strong { display: block; font: 600 1.6rem/1.1 var(--font-display); }
.hero__meta span { font-size: .85rem; color: var(--muted); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: scroll 2s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Lecteur vidéo ---------- */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4), 0 40px 120px -50px var(--player-glow, var(--accent-glow));
}
.player video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.player__controls {
  position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 8px; padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease);
}
.player:hover .player__controls, .player:focus-within .player__controls, .player.is-paused .player__controls, .player.show-controls .player__controls { opacity: 1; transform: none; }
.player__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff;
  transition: background .2s;
}
.player__btn:hover { background: rgba(255, 255, 255, .26); }
.player__btn svg { width: 18px; height: 18px; }
.player__progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; cursor: pointer; }
.player__progress i { display: block; height: 100%; width: 0; background: var(--gradient); }
.player__badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font: 600 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
}
.player__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.player__unmute {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .82rem; font-weight: 600;
  transition: opacity .3s, background .2s;
}
.player__unmute svg { width: 16px; height: 16px; }
.player__unmute:hover { background: rgba(0, 0, 0, .7); }
.player.has-sound .player__unmute { opacity: 0; pointer-events: none; }
.icon-pause, .player.is-paused .icon-play { display: block; }
.icon-play, .player.is-paused .icon-pause { display: none; }
.icon-sound-on, .player.has-sound .icon-sound-off { display: none; }
.icon-sound-off, .player.has-sound .icon-sound-on { display: block; }

/* ---------- Vitrine d'applications (accueil) ---------- */
.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.showcase + .showcase { margin-top: clamp(96px, 12vw, 160px); }
.showcase--reverse { grid-template-columns: 1fr 1.25fr; }
.showcase--reverse .showcase__media { order: 2; }
.showcase__body h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.showcase__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.tag--accent { border-color: transparent; background: color-mix(in srgb, var(--tag, var(--accent)) 16%, transparent); color: var(--tag, var(--accent)); }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--tag, var(--accent)) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Accents spécifiques des vitrines sur l'accueil */
.showcase--frontline { --tag: #f5a524; --player-glow: rgba(245, 165, 36, .35); }
.showcase--frontline h2 { font-family: "Chakra Petch", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.showcase--frontline .btn--primary { background: linear-gradient(120deg, #f5a524, #ffcf70); color: #141006; box-shadow: 0 10px 30px -10px rgba(245, 165, 36, .45); }
.showcase--bandstudio { --tag: #f472b6; --player-glow: rgba(236, 72, 153, .38); }
.showcase--bandstudio h2 { font-family: "Syne", sans-serif; font-weight: 800; }
.showcase--bandstudio .btn--primary { background: linear-gradient(120deg, #8b5cf6, #ec4899); color: #fff; box-shadow: 0 10px 30px -10px rgba(236, 72, 153, .45); }

@media (max-width: 900px) {
  .showcase, .showcase--reverse { grid-template-columns: 1fr; }
  .showcase--reverse .showcase__media { order: 0; }
}

/* ---------- Cartes / grilles ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 60%, var(--bg)) 100%);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.theme-frontline .card__icon { border-radius: 4px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); width: 54px; border: 0; }
.card__icon svg { width: 22px; height: 22px; }
.card__num { font: 600 .8rem/1 var(--font-mono); color: var(--accent); letter-spacing: .14em; margin-bottom: 18px; display: block; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 7vw, 80px); border: 1px solid var(--line-strong);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 50%), var(--surface);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- Pages applications ---------- */
.app-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.app-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.app-hero__id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.app-icon { width: 76px; height: 76px; flex: none; border-radius: 22px; display: grid; place-items: center; background: var(--gradient); color: var(--accent-ink); box-shadow: 0 16px 40px -14px var(--accent-glow); }
.app-icon svg { width: 40px; height: 40px; }
.theme-frontline .app-icon { border-radius: 8px; background: #11140f; color: var(--accent); border: 1.5px solid var(--accent); }
.app-hero__id small { display: block; font: 600 .74rem/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.app-hero__id strong { display: block; font: var(--display-weight) 1.15rem/1.3 var(--font-display); }
.app-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: .3em; }
.theme-frontline .app-hero h1 { text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.theme-frontline .chip { border-radius: 3px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.chip svg { width: 15px; height: 15px; color: var(--accent); }

.theme-frontline .app-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(245, 165, 36, .14), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(77, 90, 58, .35), transparent 70%),
    repeating-linear-gradient(0deg, rgba(184, 167, 122, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(184, 167, 122, .05) 0 1px, transparent 1px 64px);
}
.theme-bandstudio .app-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 60% at 80% 25%, rgba(139, 92, 246, .32), transparent 65%),
    radial-gradient(40% 55% at 20% 85%, rgba(236, 72, 153, .22), transparent 65%),
    radial-gradient(30% 40% at 55% 10%, rgba(34, 211, 238, .12), transparent 70%);
}
.eq { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.eq i { width: 5px; border-radius: 3px; background: var(--gradient); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.5s; } .eq i:nth-child(4) { animation-delay: -.7s; } .eq i:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

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

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }

.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: .94rem; }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Section téléchargement ---------- */
.download {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(32px, 6vw, 64px); border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%),
    var(--surface);
}
.download h2 { margin-bottom: .35em; }
.download__box { padding: 28px; border-radius: var(--radius); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); text-align: center; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 4px; }
.price strong { font: var(--display-weight) clamp(2.6rem, 5vw, 3.4rem)/1 var(--font-display); }
.price span { color: var(--muted); font-size: .95rem; }
.download__box .btn { width: 100%; margin-top: 18px; }
.download__box .btn + .btn { margin-top: 10px; }
.download__note { margin: 16px 0 0; font-size: .82rem; color: var(--faint); }
.download__steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.download__steps li { counter-increment: s; display: flex; gap: 12px; color: var(--muted); font-size: .95rem; }
.download__steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .75rem/1 var(--font-mono); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }

/* ---------- Guide d'installation ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); max-width: 18ch; }

.guide { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc p { font: 600 .72rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; text-decoration: none; transition: color .2s, background .2s; }
.toc li { counter-increment: t; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 500 .76rem/1.7 var(--font-mono); color: var(--faint); }
.toc a:hover, .toc a.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }
.toc a.is-active::before { color: var(--accent); }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } .toc { position: static; } }

.steps { display: grid; gap: 22px; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step__num { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font: 600 1.5rem/1 var(--font-display); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.step h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .55em; }
.step p, .step li { color: var(--muted); }
.step ol, .step ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.step li::marker { color: var(--accent); font-weight: 600; }
.step > div > :last-child { margin-bottom: 0; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 16px; } .step__num { width: 52px; height: 52px; font-size: 1.25rem; } }

.path { display: inline; padding: 2px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 500 .86em/1.6 var(--font-mono); color: var(--text); }
.path i { font-style: normal; color: var(--accent); }
kbd { font: 500 .85em var(--font-mono); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); }

.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); margin: 18px 0 0; border: 1px solid; font-size: .95rem; }
.callout svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.callout p { margin: 0; color: inherit; }
.callout--info { border-color: rgba(125, 211, 252, .25); background: rgba(125, 211, 252, .06); color: #cdeafe; }
.callout--warn { border-color: rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .06); color: #fde9b0; }
.callout--ok { border-color: rgba(74, 222, 128, .25); background: rgba(74, 222, 128, .06); color: #c9f5d9; }

.tabs { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tabs__list { display: flex; overflow-x: auto; background: var(--bg-2); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs__list button { flex: none; padding: 12px 18px; border: 0; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs__list button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs__panel { padding: 20px 22px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel ol { margin: 0; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.info-item svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.info-item strong { display: block; margin-bottom: 2px; }
.info-item p { margin: 0; color: var(--muted); font-size: .95rem; }

.form { padding: clamp(24px, 5vw, 44px); border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; }
.field label span { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239b9aae' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #f87171; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot p { margin: 0; font-size: .85rem; color: var(--faint); max-width: 40ch; }
.form__status { min-height: 1.5em; margin: 0; font-size: .92rem; color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__grid h4 { font: 600 .75rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__grid ul a { color: var(--muted); font-size: .95rem; text-decoration: none; }
.footer__grid ul a:hover { color: var(--text); }
.footer__about p { color: var(--muted); font-size: .95rem; max-width: 36ch; margin-top: 16px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

code { font: 500 .88em var(--font-mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

.theme-bandstudio h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); letter-spacing: 0; }
.guide > *, .steps, .step > div, .tabs, .split > *, .contact > *, .showcase > *, .app-hero__grid > *, .download > * { min-width: 0; }
@media (max-width: 700px) { .scroll-hint { display: none; } }
