/* RavenEmu, site officiel. Sombre, violet, sans dépendance externe. */

:root {
  --bg: #07070b;
  --bg-raised: #0d0d14;
  --surface: #111119;
  --surface-2: #161621;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f2fa;
  --muted: #a7a4b8;
  --faint: #8d8aa0;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-deep: #6d28d9;
  --accent-soft: #c4b5fd;
  --accent-ink: #160b2e;
  --live: #4ade80;
  --amber: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; line-height: 1.65; background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.05; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.25; }
p { color: var(--muted); text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { color: var(--accent-soft); overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 .4em; text-align: center; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; }
::selection { color: var(--accent-ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.container { width: min(100% - 48px, 1180px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 50; padding: 10px 18px; border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-weight: 650; clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }

/* Éléments partagés */

.gradient-text {
  background: linear-gradient(100deg, #ede9fe 0%, var(--accent-soft) 30%, var(--accent) 60%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted-title { color: var(--faint); }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.7; max-width: 60ch; }
.inline-link { color: var(--accent-soft); text-decoration: underline; text-decoration-color: rgba(196, 181, 253, .35); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: currentColor; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--accent-soft); font-size: .92rem; font-weight: 600; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .95rem; font-weight: 650; line-height: 1.2; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #9d7bfb 0%, var(--accent-strong) 55%, var(--accent-deep) 100%);
  box-shadow: 0 0 0 1px rgba(196, 181, 253, .25) inset, 0 10px 30px -10px rgba(139, 92, 246, .75);
}
.button-primary:hover { box-shadow: 0 0 0 1px rgba(196, 181, 253, .4) inset, 0 14px 40px -10px rgba(139, 92, 246, .95); }
.button-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.button-ghost:hover { border-color: rgba(167, 139, 250, .6); background: rgba(167, 139, 250, .08); }
.button-small { min-height: 40px; padding: 8px 18px; font-size: .86rem; color: #fff; background: var(--accent-strong); }
.button-small:hover { background: #9d7bfb; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .04); color: #d9d3ee; font-size: .82rem; font-weight: 550; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.dot-live { background: var(--live); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, .14); }
.state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.state-live { color: #bbf7d0; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); }
.state-amber { color: #fde68a; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); }

/* En-tête */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 7, 11, .72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(7, 7, 11, .96); }
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 700; letter-spacing: -.03em; }
.brand img { border-radius: 22%; }
.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 550; transition: color .2s ease, background-color .2s ease; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.icon-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.icon-link svg { width: 22px; height: 22px; }

/* Ouverture */

.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 56px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 40%, rgba(124, 58, 237, .38), transparent 70%),
    radial-gradient(30% 35% at 20% 20%, rgba(167, 139, 250, .16), transparent 70%);
  filter: blur(10px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-copy h1 { margin-top: 26px; }
.hero-lead { margin-top: 26px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--faint); font-size: .86rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .55), rgba(109, 40, 217, .18) 45%, transparent 70%); filter: blur(30px); }
.handheld { position: relative; width: min(100%, 430px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(124, 58, 237, .25)); transform: rotate(-4deg); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px;
  color: var(--text); font-size: .84rem; font-weight: 600;
  background: rgba(17, 17, 25, .78); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.chip-top { top: 12%; left: -2%; }
.chip-bottom { right: -2%; bottom: 14%; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.chip-dot-live { background: var(--live); box-shadow: 0 0 12px var(--live); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(56px, 8vw, 96px); }
.principles li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .025);
  color: #d6d2e6; font-size: .9rem; font-weight: 550; line-height: 1.35;
}
.principles svg, .card-icon svg, .hw-icon svg, .install-notes svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.principles svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* Sections */

.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* Capture de l'application */

.showcase { padding-top: clamp(40px, 6vw, 80px); }
.showcase-grid { display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: clamp(40px, 8vw, 120px); padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(80% 90% at 100% 0%, rgba(124, 58, 237, .14), transparent 60%), var(--bg-raised); }
.steps-list { display: grid; gap: 22px; margin-top: 36px; }
.steps-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps-list h3 { font-size: 1.02rem; }
.steps-list p { margin-top: 4px; font-size: .95rem; }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--accent-soft); background: rgba(167, 139, 250, .12); border: 1px solid rgba(167, 139, 250, .3); font-size: .85rem; font-weight: 700; }
.phone { justify-self: center; text-align: center; }
.phone-frame {
  position: relative; width: min(100%, 300px); padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #2a2838, #121119 40%, #1d1b29);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(139, 92, 246, .45);
}
.phone-frame img { border-radius: 34px; }
.phone figcaption { margin-top: 18px; color: var(--faint); font-size: .82rem; }

/* Fonctions */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 2; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(167, 139, 250, .35); transform: translateY(-2px); }
.card-wide { grid-column: span 4; }
.card-half { grid-column: span 3; }
.card h3 { margin-top: 20px; }
.card p { margin-top: 10px; font-size: .95rem; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--accent-soft); background: linear-gradient(160deg, rgba(167, 139, 250, .22), rgba(109, 40, 217, .1)); border: 1px solid rgba(167, 139, 250, .28); }
.card-icon svg { width: 22px; height: 22px; }
.card-icon .fill, .card-icon .fill-soft { fill: currentColor; }
.card-icon .fill-soft { fill-opacity: .35; }
.card-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.card-title-row h3 { margin-top: 0; }
.card-accent { background: radial-gradient(90% 120% at 100% 0%, rgba(124, 58, 237, .22), transparent 60%), var(--surface); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: #d4cfe6; font-size: .8rem; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; padding-top: 22px; }
.slots span { display: grid; place-items: center; aspect-ratio: 10 / 9; border-radius: 8px; color: var(--faint); font-size: .78rem; font-weight: 650; border: 1px solid var(--line-strong); background: repeating-linear-gradient(135deg, rgba(167, 139, 250, .08) 0 6px, transparent 6px 12px); }
.slots span:first-child { color: var(--accent-soft); border-color: rgba(167, 139, 250, .5); background: linear-gradient(160deg, rgba(139, 92, 246, .35), rgba(109, 40, 217, .1)); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; padding-top: 22px; }
.swatches span { height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); }
.sw-original { background: linear-gradient(90deg, #f8b500, #e8335a, #3b82f6, #22c55e); }
.sw-dmg { background: linear-gradient(90deg, #0f380f, #306230, #8bac0f, #9bbc0f); }
.sw-pocket { background: linear-gradient(90deg, #1f1f1f, #555, #a5a5a5, #e3e3e3); }
.sw-lcd { background: linear-gradient(90deg, #c8a35a, #b5566a, #5b78b0, #5c9e6a); }

/* Cartouche */

.cartridge { position: relative; }
.cartridge::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 45% at 50% 40%, rgba(124, 58, 237, .13), transparent 72%); }
.cartridge .container { position: relative; }
.hardware { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hw-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.hw-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #fff; background: linear-gradient(160deg, #9d7bfb, var(--accent-deep)); box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .8); }
.hw-icon svg { width: 26px; height: 26px; }
.hw-card h3 { margin-top: 24px; font-size: 1.35rem; }
.hw-card > p { margin-top: 10px; font-size: .95rem; }
.games { display: grid; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.games dt { color: var(--faint); font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.games dd { margin-top: 2px; color: #e2deef; font-size: .93rem; }

/* Moteurs */

.engines-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); }
.checks { display: grid; gap: 14px; margin-top: 32px; }
.checks li { position: relative; padding-left: 34px; color: #d6d2e6; font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 5px; height: 9px; border: solid var(--live); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consoles { display: grid; gap: 14px; }
.console { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 22px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.console:hover { border-color: rgba(167, 139, 250, .35); transform: translateX(4px); }
.console h3 { font-size: 1.08rem; }
.console p { margin-top: 2px; font-size: .9rem; }
.console-screen { justify-self: center; width: 76px; border-radius: 8px; border: 3px solid #23212f; box-shadow: 0 0 0 1px var(--line-strong); }
.screen-gb { aspect-ratio: 160 / 144; background: linear-gradient(160deg, #9bbc0f, #8bac0f 50%, #306230); }
.screen-gbc { aspect-ratio: 160 / 144; background: linear-gradient(135deg, #f59e0b, #ef4444 35%, #8b5cf6 65%, #22d3ee); }
.screen-gba { width: 96px; aspect-ratio: 240 / 160; background: linear-gradient(135deg, #6366f1, #a855f7 45%, #ec4899 75%, #f59e0b); }

/* Plateformes */

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.platform-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.platform h3 { font-size: 1.6rem; }
.platform p { margin-top: 16px; }
.platform .text-link { margin-top: 22px; }

/* Installation */

.install-panel {
  position: relative; padding: clamp(28px, 5vw, 56px); border-radius: 32px; overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .25);
  background: radial-gradient(70% 100% at 0% 0%, rgba(124, 58, 237, .25), transparent 60%), radial-gradient(50% 80% at 100% 100%, rgba(109, 40, 217, .18), transparent 60%), var(--bg-raised);
}
.install-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.install-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.install-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.install-steps li { padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(7, 7, 11, .55); }
.install-steps h3 { margin-top: 16px; font-size: 1.05rem; }
.install-steps p { margin-top: 8px; font-size: .93rem; }
.install-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.install-notes p { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; }
.install-notes svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }

/* FAQ */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.link-list { display: grid; margin-top: 30px; border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); color: #d6d2e6; font-weight: 550; transition: color .2s ease, padding .2s ease; }
.link-list a:hover { color: var(--accent-soft); padding-left: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s ease, background-color .2s ease; }
.faq-list details[open] { border-color: rgba(167, 139, 250, .3); background: var(--surface-2); }
.faq-list summary { position: relative; display: block; padding: 20px 56px 20px 22px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s ease; }
.faq-list details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); border-color: var(--accent); }
.faq-list details > p, .build-content { padding: 0 22px 22px; }
.build-content > p:first-child { margin-bottom: 14px; }
.code-block { border-radius: 10px; border: 1px solid var(--line-strong); background: #050508; overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.copy-button { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: .78rem; text-transform: none; letter-spacing: 0; }
.copy-button:hover { border-color: var(--accent); color: var(--accent-soft); }
pre { margin: 0; padding: 16px; overflow-x: auto; }
pre code { color: #e9e5f7; font-size: .88rem; }
.copy-feedback { min-height: 1.4em; margin-top: 8px; font-size: .82rem; }
.build-content .text-link { margin-top: 6px; }

/* Appel final */

.final-cta { padding-top: 0; }
.cta-panel { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(60% 90% at 50% 0%, rgba(124, 58, 237, .3), transparent 70%), var(--bg-raised); }
.cta-panel img { border-radius: 22%; box-shadow: 0 0 50px -10px rgba(139, 92, 246, .8); }
.cta-panel h2 { margin-top: 28px; }
.cta-panel .lead { margin-inline: auto; }
.cta-panel .hero-actions { justify-content: center; }

/* Pied de page */

.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 32ch; font-size: .9rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav h2 { margin-bottom: 6px; color: var(--text); font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.site-footer nav a { color: var(--muted); font-size: .92rem; }
.site-footer nav a:hover { color: var(--accent-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }
.footer-bottom p { max-width: 70ch; color: var(--faint); }

/* Apparition au défilement : uniquement si le navigateur sait la lier au
   défilement et que l'appareil ne demande pas moins de mouvement. Sinon,
   tout est visible d'emblée. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
  .handheld { animation: float 7s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-12px); }
  }
}

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

/* Écrans moyens */

@media (max-width: 1080px) {
  .card, .card-half { grid-column: span 3; }
  .card-wide { grid-column: span 6; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-actions { margin-left: auto; }
  .site-nav {
    order: 3; width: 100%; margin: 0 -8px; padding: 0 0 10px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 6px 12px; font-size: .86rem; }
  .hero-grid, .engines-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { min-height: 0; max-width: 440px; margin-inline: auto; }
  .showcase-grid { grid-template-columns: 1fr; }
  .phone { order: -1; }
  .hardware, .platforms, .install-steps { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

/* Téléphones */

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 60px; gap: 12px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card-half, .card-wide { grid-column: auto; }
  .principles { grid-template-columns: 1fr; }
  .install-notes { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .chip-top { left: 0; }
  .chip-bottom { right: 0; }
  .float-chip { font-size: .76rem; padding: 7px 11px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .console { grid-template-columns: 80px 1fr; padding: 16px; gap: 16px; }
  .console-screen { width: 64px; }
  .screen-gba { width: 80px; }
  .showcase-grid, .install-panel, .cta-panel { border-radius: 24px; }
}

@media (max-width: 380px) {
  .button-small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
