:root {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    --black: #030405;
    --surface: #090b0d;
    --surface-raised: #101316;
    --ink: #f6f7f8;
    --muted: #9ca4ae;
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.22);
    --mint: #55e6b1;
    --gold: #f3ca63;
    --coral: #ff806d;
    --max: 1180px;
    color-scheme: dark;
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--black); }
body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--black);
    color: var(--ink);
    font-family: var(--font-sans);
    letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--mint); color: #02110c; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    min-height: 58px;
    border-bottom: 1px solid transparent;
    background: rgba(3, 4, 5, 0.72);
    backdrop-filter: blur(24px) saturate(145%);
    transition: background 200ms ease, border-color 200ms ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(3, 4, 5, 0.9); }
.header-inner {
    display: flex;
    width: min(calc(100% - 40px), var(--max));
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
}
.brand, .site-nav, .hero-actions, .story-actions, .signal-strip, .site-footer {
    display: flex;
    align-items: center;
}
.brand {
    flex: 0 0 auto;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}
.brand-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #f5f6f7;
    color: #07090a;
    font-size: 0.84rem;
    font-weight: 700;
}
.site-nav { gap: 4px; color: rgba(255,255,255,.72); font-size: .87rem; }
.site-nav a { padding: 9px 12px; transition: color 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; outline: none; }
.site-nav .nav-login {
    margin-left: 5px;
    border-radius: 999px;
    background: #fff;
    color: #090b0d;
    font-weight: 600;
}
.menu-toggle {
    position: relative;
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease;
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }

.section-dark {
    position: relative;
    overflow: hidden;
    background: var(--black);
    color: var(--ink);
}
.eyebrow {
    margin-bottom: 14px;
    color: var(--mint);
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-story {
    --story-progress: 0;
    --device-scale: .84;
    position: relative;
    height: 900svh;
    background: var(--black);
}
.story-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: var(--black);
    isolation: isolate;
}
.story-grid {
    position: absolute;
    inset: 58px max(18px, calc((100% - var(--max)) / 2)) 0;
    z-index: -2;
    border-inline: 1px solid rgba(255,255,255,.035);
    pointer-events: none;
}
.story-grid::before {
    position: absolute;
    inset: 0 50% 0 auto;
    width: 1px;
    background: rgba(255,255,255,.025);
    content: '';
}
.story-scene {
    position: absolute;
    z-index: 3;
    left: 50%;
    width: min(calc(100% - 40px), 980px);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity 420ms ease, transform 520ms ease;
}
.story-scene.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.story-intro { top: 92px; }
.story-intro h1 {
    color: #fff;
    font-size: 7rem;
    font-weight: 600;
    line-height: .9;
    letter-spacing: 0;
}
.story-tagline {
    margin-top: 16px;
    color: #fff;
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1;
}
.story-lead {
    max-width: 660px;
    margin: 16px auto 0;
    color: rgba(255,255,255,.66);
    font-size: 1.12rem;
    line-height: 1.5;
}
.story-detail {
    top: 92px;
    width: min(calc(100% - 40px), 820px);
}
.story-detail h2 {
    font-size: 3.35rem;
    font-weight: 600;
    line-height: 1.02;
}
.story-detail.story-compact h2 { font-size: 2.65rem; }
.story-detail.story-compact > p:not(.eyebrow) { max-width: 720px; margin-top: 12px; font-size: .96rem; line-height: 1.45; }
.story-compact .story-actions { margin-top: 14px; }
.story-detail > p:not(.eyebrow) {
    max-width: 680px;
    margin: 14px auto 0;
    color: rgba(255,255,255,.66);
    font-size: 1.08rem;
    line-height: 1.52;
}
.story-actions, .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.story-product {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    width: min(78vw, 1080px, calc((100svh - 270px) * 1.25));
    transform: translateX(-50%) scale(var(--device-scale));
    transform-origin: center bottom;
    transition: transform 180ms linear;
    will-change: transform;
}
.story-product > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.scroll-cue {
    position: absolute;
    z-index: 4;
    bottom: 25px;
    left: max(24px, calc((100% - var(--max)) / 2));
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,.54);
    font-size: .78rem;
    opacity: 1;
    transition: opacity 240ms ease;
}
.product-story:not([data-scene="0"]) .scroll-cue { opacity: 0; }
.scroll-cue i {
    position: relative;
    display: block;
    width: 1px;
    height: 34px;
    overflow: hidden;
    background: rgba(255,255,255,.2);
}
.scroll-cue i::after {
    position: absolute;
    inset: -100% 0 auto;
    height: 100%;
    background: #fff;
    content: '';
    animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { transform: translateY(0); }
    100% { transform: translateY(200%); }
}
.story-progress {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 22px;
    width: 2px;
    height: 112px;
    overflow: hidden;
    background: rgba(255,255,255,.13);
    transform: translateY(-50%);
}
.story-progress span {
    display: block;
    width: 100%;
    height: calc(var(--story-progress) * 100%);
    background: var(--mint);
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 19px;
    font-size: .92rem;
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button-primary { background: #fff; color: #060809; }
.button-secondary {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.05);
    color: #fff;
}

.signal-strip {
    width: min(calc(100% - 40px), var(--max));
    justify-content: center;
    margin: 0 auto;
    padding: 0 0 110px;
    background: var(--black);
}
.signal-item {
    width: 25%;
    min-height: 138px;
    padding: 26px 22px;
    border-block: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.signal-item:last-child { border-right: 1px solid var(--line); }
.signal-item strong, .signal-item span { display: block; }
.signal-item strong { color: #fff; font-size: 1.15rem; }
.signal-item span {
    margin-top: 8px;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.5;
}

.platform, .data-flow, .solutions, .realisations { padding: 128px 24px; }
.platform { border-top: 1px solid var(--line); background: var(--surface); }
.section-heading {
    width: min(100%, var(--max));
    margin: 0 auto 68px;
    text-align: center;
}
.section-heading h2, .closing h2 {
    max-width: 940px;
    margin: 0 auto;
    color: #fff;
    font-size: 4.8rem;
    font-weight: 600;
    line-height: .98;
    letter-spacing: 0;
}
.section-heading > p:not(.eyebrow), .closing p:not(.eyebrow) {
    max-width: 740px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.62;
}
.section-heading-left { text-align: left; }
.section-heading-left h2, .section-heading-left > p:not(.eyebrow) { margin-left: 0; }

.application-view {
    display: grid;
    width: min(100%, var(--max));
    grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: 60px;
    margin: 0 auto;
    padding: 72px 0;
    border-block: 1px solid var(--line);
}
.interface-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.68);
    font-size: .82rem;
    font-weight: 600;
}
.interface-label i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(85,230,177,.1);
}
.application-copy h3 {
    margin-top: 28px;
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.06;
}
.application-copy > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.62;
}
.application-facts { margin-top: 34px; border-top: 1px solid var(--line); }
.application-facts div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.application-facts dt { color: rgba(255,255,255,.4); font-size: .78rem; }
.application-facts dd { color: rgba(255,255,255,.82); font-size: .94rem; }
.application-product { min-width: 0; }
.application-product img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 34px 60px rgba(0,0,0,.48));
}

.feature-grid {
    display: grid;
    width: min(100%, var(--max));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 72px auto 0;
}
.feature-item {
    min-width: 0;
    padding: 28px 8px 10px 0;
    border-top: 2px solid var(--line-strong);
}
.feature-item:nth-child(1) { border-color: var(--mint); }
.feature-item:nth-child(2) { border-color: var(--gold); }
.feature-item:nth-child(3) { border-color: var(--coral); }
.feature-item > span {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
    text-transform: uppercase;
}
.feature-item h3 {
    margin-top: 22px;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.12;
}
.feature-item p { margin-top: 14px; color: var(--muted); line-height: 1.58; }

.data-flow { border-top: 1px solid var(--line); }
.flow-list, .case-list {
    width: min(100%, var(--max));
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.flow-item, .case-item {
    display: grid;
    grid-template-columns: 64px minmax(280px, 1fr) 140px;
    align-items: center;
    gap: 30px;
    min-height: 164px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.flow-item > span, .case-item > span {
    color: rgba(255,255,255,.38);
    font-size: .8rem;
    font-weight: 600;
}
.flow-item h3, .case-item h3 {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.1;
}
.flow-item p, .case-item p {
    max-width: 590px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.55;
}
.flow-item strong {
    justify-self: end;
    color: var(--mint);
    font-size: .84rem;
    font-weight: 600;
    text-transform: uppercase;
}

.solutions { border-top: 1px solid var(--line); background: #07090a; }
.solution-showcase {
    display: grid;
    width: min(100%, var(--max));
    margin: 0 auto;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
}
.solution-panel {
    min-height: 300px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.solution-panel:first-child { grid-row: span 2; min-height: 614px; }
.solution-panel p { font-size: .9rem; font-weight: 650; }
.solution-panel h3 {
    max-width: 560px;
    margin-top: 80px;
    font-size: 2.65rem;
    font-weight: 600;
    line-height: 1.05;
}
.solution-panel:not(:first-child) h3 { margin-top: 48px; font-size: 1.85rem; }
.solution-panel span {
    display: block;
    max-width: 520px;
    margin-top: 18px;
    color: rgba(255,255,255,.64);
    line-height: 1.58;
}
.solution-nivo { background: #0b211c; }
.solution-nivo p { color: var(--mint); }
.solution-passage { background: #1b1710; }
.solution-passage p { color: var(--gold); }
.solution-citoyen { background: #211313; }
.solution-citoyen p { color: var(--coral); }

.realisations { border-top: 1px solid var(--line); }
.case-item { grid-template-columns: 64px minmax(220px, .8fr) minmax(300px, 1.2fr); }
.case-item h3, .case-item p { margin-top: 0; }

.closing {
    min-height: 82svh;
    display: grid;
    place-items: center;
    padding: 120px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface-raised);
    text-align: center;
}
.closing-inner { width: min(100%, 940px); }
.closing h2 { font-size: 4.8rem; }

.site-footer {
    width: min(calc(100% - 40px), var(--max));
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
    padding: 36px 0;
    background: var(--black);
    color: rgba(255,255,255,.56);
    font-size: .88rem;
    line-height: 1.6;
}
.site-footer strong { display: block; margin-bottom: 3px; color: #fff; }
.site-footer div:last-child { display: flex; flex-direction: column; align-items: flex-end; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .story-intro h1 { font-size: 5.6rem; }
    .story-tagline { font-size: 2.75rem; }
    .story-detail h2, .section-heading h2, .closing h2 { font-size: 3.75rem; }
    .application-view { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    .header-inner { width: calc(100% - 28px); }
    .menu-toggle { display: inline-flex; flex: 0 0 auto; }
    .site-nav {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 12px 14px 18px;
        border-bottom: 1px solid var(--line);
        background: rgba(3,4,5,.97);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }
    .menu-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .site-nav a {
        display: flex;
        min-height: 46px;
        align-items: center;
        justify-content: center;
    }
    .site-nav .nav-login { margin: 6px 0 0; }
    .product-story { height: 860svh; }
    .story-sticky { min-height: 560px; }
    .story-grid { inset-inline: 14px; }
    .story-intro, .story-detail { top: 94px; width: calc(100% - 30px); }
    .story-intro h1 { font-size: 4.25rem; }
    .story-tagline { margin-top: 12px; font-size: 2.25rem; }
    .story-lead, .story-detail > p:not(.eyebrow) {
        max-width: 520px;
        font-size: .98rem;
        line-height: 1.46;
    }
    .story-detail h2 { font-size: 2.5rem; }
    .story-product { bottom: 42px; width: calc(100% - 14px); }
    .scroll-cue { bottom: 12px; left: 16px; }
    .story-progress { right: 8px; height: 76px; }
    .signal-strip {
        width: calc(100% - 32px);
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 84px;
    }
    .signal-item {
        width: 100%;
        min-height: auto;
        padding: 22px 18px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }
    .signal-item:last-child { border-bottom: 1px solid var(--line); }
    .platform, .data-flow, .solutions, .realisations { padding: 88px 18px; }
    .section-heading { margin-bottom: 48px; }
    .section-heading h2, .closing h2 { font-size: 3rem; }
    .section-heading > p:not(.eyebrow), .closing p:not(.eyebrow) {
        margin-top: 19px;
        font-size: 1.02rem;
    }
    .application-view { grid-template-columns: 1fr; gap: 42px; padding: 48px 0; }
    .application-copy h3 { font-size: 2.25rem; }
    .application-product { grid-row: 1; }
    .feature-grid, .solution-showcase { grid-template-columns: 1fr; }
    .feature-grid { gap: 34px; margin-top: 56px; }
    .flow-item, .case-item {
        grid-template-columns: 44px 1fr;
        gap: 14px;
        min-height: auto;
        padding: 24px 0;
    }
    .flow-item strong { grid-column: 2; justify-self: start; }
    .solution-panel, .solution-panel:first-child { grid-row: auto; min-height: 320px; }
    .solution-panel h3, .solution-panel:not(:first-child) h3 {
        margin-top: 54px;
        font-size: 2rem;
    }
    .case-item p { grid-column: 2; }
    .closing { min-height: 72svh; padding: 92px 18px; }
    .site-footer {
        width: calc(100% - 32px);
        flex-direction: column;
        align-items: stretch;
    }
    .site-footer div:last-child { align-items: flex-start; }
}

@media (max-width: 460px) {
    .story-intro h1 { font-size: 3.35rem; }
    .story-tagline { font-size: 1.85rem; }
    .story-lead { max-width: 340px; }
    .story-detail h2 { font-size: 2.05rem; }
    .story-detail > p:not(.eyebrow) { max-width: 350px; }
    .story-actions { width: 100%; }
    .story-actions .button {
        min-height: 40px;
        padding-inline: 14px;
        font-size: .82rem;
    }
    .section-heading h2, .closing h2 { font-size: 2.45rem; }
    .application-copy h3 { font-size: 2rem; }
    .solution-panel { padding: 26px; }
}

@media (max-height: 700px) and (min-width: 761px) {
    .story-intro, .story-detail { top: 76px; }
    .story-intro h1 { font-size: 4.7rem; }
    .story-tagline { font-size: 2.35rem; }
    .story-detail h2 { font-size: 2.8rem; }
    .story-product { width: min(72vw, 840px, calc((100svh - 240px) * 1.25)); }
}

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

/* OCTOSYSTEM APP EMBED START */
.story-product.app-device {
    bottom: 14px;
    width: min(94vw, 1200px, calc((100svh - 375px) * 1.722));
    max-width: calc(100% - 18px);
    container-type: inline-size;
    filter: drop-shadow(0 42px 70px rgba(0, 0, 0, .58));
}

.macbook-asset {
    position: relative;
    width: 100%;
    aspect-ratio: 4608 / 2675;
}

.macbook-frame {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.macbook-screen.octo-app-embed {
    position: absolute;
    z-index: 1;
    top: 2.13%;
    left: 10.72%;
    width: 78.28%;
    height: 86.28%;
    overflow: hidden;
    background: #eef1f4;
}

.octo-app-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1440px;
    max-width: none;
    height: 900px;
    border: 0;
    opacity: 0;
    transform: scale(.1);
    transform-origin: left top;
    transition: opacity 280ms ease;
}

.octo-app-embed.is-ready iframe { opacity: 1; }

.octo-app-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    background: #eef1f4;
    color: #5e6872;
    font-size: clamp(8px, 1.1cqw, 12px);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.octo-app-loading span {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(26, 39, 49, .14);
    border-top-color: #2788cc;
    border-radius: 50%;
    animation: octo-app-spin .8s linear infinite;
}

.octo-app-loading strong { font-size: 1em; font-weight: 700; }

.octo-app-embed.is-ready .octo-app-loading {
    visibility: hidden;
    opacity: 0;
}

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

@media (max-width: 760px) {
    .story-detail.story-compact h2 { font-size: 2.1rem; }
    .story-detail.story-compact > p:not(.eyebrow) { font-size: .9rem; }

    .story-product.app-device {
        bottom: 48px;
        width: calc(100% - 10px);
        max-width: 640px;
    }

    .octo-app-embed iframe { pointer-events: none; }
}

@media (max-height: 700px) and (min-width: 761px) {
    .story-product.app-device {
        width: min(88vw, 900px, calc((100svh - 340px) * 1.722));
    }
}
@media (max-width: 760px) and (max-height: 680px) {
    .story-intro, .story-detail { top: 70px; }
    .story-detail h2, .story-detail.story-compact h2 { font-size: 1.8rem; }
    .story-detail > p:not(.eyebrow) { margin-top: 8px; font-size: .84rem; line-height: 1.36; }
    .story-detail .eyebrow { margin-bottom: 8px; }
    .story-actions { margin-top: 10px; }
    .story-actions .button { min-height: 36px; }
    .story-product.app-device { bottom: 22px; width: min(92%, 540px); }
}
/* OCTOSYSTEM APP EMBED END */
