/* La page d'APEX sur apex.altorbe.com : l'identité d'Altorbe (fond nuit, Manrope, bleu glacier),
   avec le cyan et le bleu canard de l'icône d'APEX comme accents. */
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations'); 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; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); 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; }

:root {
  --background: #081116; --surface: #0b161d; --text: #f4f3f0; --muted: #bec7cd; --soft: #8fa1ab;
  --accent: #acd8ef; --cyan: #50b6d9; --teal: #1f6e8c; --line: #37464e; --card-line: #26343d;
  --gutter: clamp(22px, 2.5vw, 42px);
  font-family: 'Manrope Variable', system-ui, sans-serif; color: var(--text); background: var(--background);
  font-synthesis: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--background); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
strong { color: var(--text); font-weight: 650; }
.frame { width: calc(100% - var(--gutter) * 2); max-width: 1240px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; border-radius: 40px; background: var(--accent); color: var(--background); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* En-tête : le nom d'APEX, et le lien vers Altorbe, tout petit. */
.site-header { display: flex; align-items: center; justify-content: space-between; height: clamp(68px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 2vw, 27px); font-weight: 650; letter-spacing: .02em; }
.apex-mark { width: clamp(24px, 2vw, 29px); height: auto; flex-shrink: 0; }
.altorbe-link { display: inline-flex; align-items: flex-start; gap: 3px; min-height: 32px; padding-top: 9px; color: var(--soft); font-size: 12px; font-weight: 560; letter-spacing: -.01em; transition: color 180ms ease; }
.altorbe-link svg { width: 5px; height: 5px; margin-top: 1px; color: var(--accent); }
.altorbe-link:hover { color: var(--accent); }

/* Titre, puis la vidéo posée sur l'horizon d'Altorbe. */
.eyebrow { color: var(--accent); text-transform: uppercase; font-weight: 500; font-size: clamp(11px, 1vw, 13px); letter-spacing: .26em; line-height: 1.6; }
.hero { position: relative; overflow: hidden; padding-bottom: clamp(56px, 7vw, 110px); border-bottom: 1px solid #22323b; }
.hero-text { position: relative; z-index: 1; text-align: center; padding-top: clamp(36px, 4vw, 60px); }
.hero h1 { margin: 6px 0 14px; font-size: clamp(60px, 7.4vw, 104px); font-weight: 650; line-height: .95; letter-spacing: .04em; background: linear-gradient(180deg, #f4f3f0 30%, #9fd6ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acronym { color: var(--muted); font-size: clamp(16px, 1.75vw, 22px); line-height: 1.5; letter-spacing: -.01em; text-wrap: balance; }
.acronym b { color: var(--text); font-weight: 750; }
.hero-description { max-width: 46em; margin: 12px auto 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; text-wrap: balance; }
.film { position: relative; z-index: 1; max-width: 1080px; margin-top: clamp(30px, 3.4vw, 48px); }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #3c5562; border-radius: clamp(10px, 1.2vw, 16px); background: #050b0f; box-shadow: 0 0 0 1px rgb(172 216 239 / 6%), 0 30px 90px -20px rgb(80 182 217 / 30%), 0 18px 60px rgb(0 0 0 / 55%); }
.player iframe, .player-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { object-fit: cover; }
.player-soon { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 9px 18px; border: 1px solid #3c5562; border-radius: 40px; background: rgb(8 17 22 / 78%); color: var(--muted); font-size: 13px; white-space: nowrap; backdrop-filter: blur(6px); }
.film figcaption { margin-top: 16px; color: var(--soft); font-size: 13px; text-align: center; letter-spacing: .01em; }
.hero-art { position: absolute; z-index: 0; left: 50%; bottom: 0; width: max(1500px, 125%); max-width: none; transform: translateX(-50%); opacity: .85; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 42%); mask-image: linear-gradient(to bottom, transparent 8%, #000 42%); }

/* Sections : une étiquette numérotée et un filet, comme sur altorbe.com. */
.block { padding-top: clamp(56px, 6.4vw, 96px); }
.section-label { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(24px, 2.6vw, 36px); }
.section-label .eyebrow { flex-shrink: 0; }
.section-label span { height: 1px; flex-grow: 1; background: #4a626e; }
h2 { font-size: clamp(30px, 3.9vw, 54px); font-weight: 620; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.section-title { max-width: 18em; margin-bottom: clamp(28px, 3.2vw, 44px); }
.need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.need-text { display: grid; gap: 18px; color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.75; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li { padding: 26px 26px 30px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--card-line); }
.step-number { color: var(--cyan); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.steps h3 { margin: 10px 0 10px; font-size: clamp(22px, 2vw, 27px); font-weight: 650; letter-spacing: -.035em; }
.steps p:not(.step-number) { color: var(--muted); font-size: 15px; line-height: 1.7; }

.screen { overflow: hidden; border: 1px solid var(--card-line); border-radius: 14px; background: var(--surface); }
.screen img { width: 100%; border-bottom: 1px solid var(--card-line); background: #fff; }
.screen figcaption { padding: 14px 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.screen-main { margin-top: clamp(32px, 3.6vw, 52px); }
.screens-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.screens-note { margin-top: 14px; color: var(--soft); font-size: 12px; }

.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 14px clamp(28px, 5vw, 80px); margin-top: clamp(40px, 4.4vw, 64px); padding: clamp(26px, 3.4vw, 48px); border: 1px solid #2e4a57; border-radius: 16px; background: radial-gradient(120% 140% at 0% 0%, rgb(80 182 217 / 13%), transparent 55%), var(--surface); }
.ai .eyebrow { grid-column: 1 / -1; color: var(--cyan); }
.ai h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 620; line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.ai-text { display: grid; gap: 14px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.status-card { padding: 26px 26px 22px; border: 1px solid var(--card-line); border-radius: 14px; background: var(--surface); }
.status-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.status-card h3::before { content: ''; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; }
.status-done h3::before { background: var(--cyan); box-shadow: 0 0 12px rgb(80 182 217 / 70%); }
.status-first h3::before { background: transparent; border: 2px solid var(--cyan); }
.status-todo h3::before { background: transparent; border: 2px dashed var(--soft); }
.status-card ul { padding: 0; list-style: none; }
.status-card li { padding: 10px 0; border-top: 1px solid rgb(255 255 255 / 7%); color: var(--muted); font-size: 15px; line-height: 1.55; }
.status-note, .next-note { max-width: 52em; margin-top: 22px; color: var(--soft); font-size: 14px; line-height: 1.7; }

.ddrs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 80px); }
.ddrs-list div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.ddrs-list div:last-child { grid-column: 1 / -1; }
.ddrs-list dt { margin-bottom: 8px; color: var(--accent); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.ddrs-list dd { color: var(--muted); font-size: 16px; line-height: 1.75; }
.ddrs-list sub { font-size: .7em; line-height: 0; }

.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.tech-facts { padding: 0; list-style: none; }
.tech-facts li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; line-height: 1.6; }
.tech-facts li:last-child { border-bottom: 1px solid var(--line); }
.tech-facts span { color: var(--soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }

.next-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; counter-reset: step; }
.next-list li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--teal); }
.next-list li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--cyan); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.next-list h3 { margin-bottom: 8px; font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.next-list p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.site-footer { margin-top: clamp(64px, 7vw, 110px); padding: 26px 0 34px; border-top: 1px solid var(--line); }
.site-footer p { color: var(--soft); font-size: 12px; line-height: 1.6; }

.not-found h2 { margin: 12px 0 22px; }
.not-found a { color: var(--accent); border-bottom: 1px solid #7a9dad; }

@media (max-width: 900px) {
  .steps, .next-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--card-line); }
  .status-grid { grid-template-columns: 1fr; }
  .next-list { row-gap: 28px; }
}
@media (max-width: 700px) {
  .site-header { height: 64px; }
  .hero-text { padding-top: 42px; }
  .eyebrow { font-size: 10px; letter-spacing: .2em; }
  .hero h1 { margin-block: 8px 14px; }
  .acronym { font-size: 15px; }
  .hero-description { font-size: 15px; }
  .film { width: 100%; padding-inline: 12px; }
  .player-soon { font-size: 12px; padding: 7px 14px; }
  .film figcaption { font-size: 12px; padding-inline: 10px; }
  .hero-art { width: 1000px; }
  .need-grid, .tech-grid, .ai, .screens-pair, .ddrs-list { grid-template-columns: 1fr; }
  .need-grid, .tech-grid { gap: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0 22px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--card-line); }
  .screen figcaption { font-size: 13px; }
  .tech-facts li { grid-template-columns: 1fr; gap: 4px; }
  .next-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
