:root {
    color-scheme: dark;
    --ink: #000000;
    --surface-1: #0a0a0a;
    --surface-2: #0f0f0f;
    --surface-3: #141414;
    --line: #1c1c1c;
    --line-soft: #262626;
    --paper: #ffffff;
    --mist: #c8c8c8;
    --dim: #8a8a8a;
    --faint: #555555;
    --accent: #2673FA;
    --accent-soft: rgba(38, 115, 250, .14);
    --accent-mid: rgba(38, 115, 250, .28);
    --accent-glow: rgba(38, 115, 250, .5);
    --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Lato', system-ui, -apple-system, sans-serif;
    --gutter: 24px;
    --nav-h: 72px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

body>main {
    flex: 1 0 auto
}

body>.footer {
    flex-shrink: 0
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0;
    text-wrap: balance
}

p {
    margin: 0
}

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

svg.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important
    }
}

h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -.01em
}

h2 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600
}

h3 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent)
}

.lead {
    font-size: 16px;
    color: var(--mist);
    max-width: 38ch
}

.lead-sm {
    font-size: 16px;
    color: var(--mist);
    max-width: 46ch;
    margin: 10px auto 0
}

@media (min-width:860px) {
    h1 {
        font-size: 32px
    }

    h2 {
        font-size: 22px
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5.4vw + 1rem, 4.5rem);
    letter-spacing: -.02em
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--gutter)
}

section {
    padding-block: 88px
}

@media (max-width:760px) {
    section {
        padding-block: 56px
    }
}

.nav {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 28px;
    padding-inline: var(--gutter);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease
}

.nav.scrolled {
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--line)
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.logo-mark {
    height: 53px;
    width: auto;
    display: block
}

.nav-links {
    display: flex;
    gap: 26px;
    font-size: 13px;
    color: var(--mist);
    margin-inline: auto
}

.nav-links a {
    transition: color .2s
}

.nav-links a:hover {
    color: var(--paper)
}

.nav-cta {
    flex-shrink: 0
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--paper);
    font-size: 22px;
    padding: 4px;
    cursor: pointer
}

@media (max-width:860px) {
    .nav-links {
        display: none
    }

    .nav .nav-cta.desktop-only {
        display: none
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }
}

.nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: var(--ink);
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 28px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease
}

.nav-mobile.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.nav-mobile a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px
}

.nav-mobile .btn {
    margin-top: 8px;
    align-self: flex-start
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, filter .18s ease, background .18s ease, box-shadow .25s ease
}

.btn-accent {
    background: var(--accent);
    color: #fff
}

.btn-accent:hover {
    filter: brightness(1.12);
    transform: translateY(-1px)
}

.btn-outline {
    background: transparent;
    border-color: var(--line-soft);
    color: var(--paper)
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.btn-lg {
    padding: 15px 32px;
    font-size: 14px
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-top: 22px
}

.link-arrow svg {
    transition: transform .2s
}

.link-arrow:hover svg {
    transform: translateX(4px)
}

.reveal {
    opacity: 1;
    transform: none
}

.reveal.js-armed {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.js-armed.in-view {
    opacity: 1;
    transform: none
}

.stage-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(38, 115, 250, 0) 70%);
    filter: blur(10px)
}

.hero {
    padding-top: calc(var(--nav-h) + 64px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center
}

@media (min-width:960px) {
    .hero-inner {
        grid-template-columns: .85fr 1fr;
        gap: 24px
    }
}

.hero-copy .btn {
    margin-top: 28px
}

.hero-copy .eyebrow {
    display: block;
    margin-bottom: 18px
}

.hero-copy .lead {
    margin-top: 16px
}

.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
    --photo-w: min(480px, 84%)
}

/* Le halo suit la taille de la photo : toujours 1,9 fois plus large */
.hero-stage .stage-glow {
    width: calc(var(--photo-w) * 1.9);
    height: auto;
    aspect-ratio: 1/1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: var(--photo-w);
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 82%, transparent 100%);
    mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 82%, transparent 100%)
}

@media (max-width:959px) {
    .hero-stage {
        min-height: auto;
        margin-top: 16px;
        padding-block: 12px;
        --photo-w: min(360px, 84%)
    }

    .hero-photo {
        -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 78%, transparent 100%);
        mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 78%, transparent 100%)
    }
}

.piliers {
    border-top: 1px solid var(--line)
}

.piliers-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px
}

@media (max-width:760px) {
    .piliers-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }
}

.pilier {
    padding-left: 0;
    border-left: 2px solid var(--line-soft);
    padding-left: 20px
}

.pilier svg.icon {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 14px
}

.pilier h3 {
    margin-bottom: 8px
}

.pilier p {
    color: var(--mist);
    font-size: 15px
}

.teaser {
    border-top: 1px solid var(--line);
    text-align: center
}

.teaser .wrap {
    max-width: 640px
}

.teaser h2 {
    margin-top: 10px
}

.teaser-stage {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 44px
}

.teaser-stage .stage-glow {
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.teaser-frame {
    position: relative;
    width: 220px;
    aspect-ratio: 9/17;
    border-radius: 26px;
    border: 1px solid var(--accent);
    overflow: hidden;
    background: var(--surface-1);
    box-shadow: 0 0 40px -8px var(--accent-mid)
}

.teaser-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mist);
    opacity: 0
}

.teaser-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0
}

.teaser-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 55%);
    z-index: 1;
    pointer-events: none
}

.teaser-slide span {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--paper);
    text-transform: none;
    letter-spacing: 0
}

.teaser-slide:first-child {
    opacity: 1
}

.teaser-frame.is-animated .teaser-slide:first-child {
    opacity: 0
}

.realisations {
    border-top: 1px solid var(--line)
}

.section-head {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 44px
}

.section-head p {
    color: var(--mist);
    max-width: 46ch;
    font-size: 15px
}

.cards-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

@media (max-width:860px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:520px) {
    .cards-grid {
        grid-template-columns: 1fr
    }
}

.case-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -20px var(--accent-mid)
}

/* ==== Animations ==== */

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

/* Apparition en cascade des grilles au scroll */
.reveal:not(.js-armed) :is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > *,
.reveal.js-armed.in-view :is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > * {
    animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 80ms)
}

:is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > :nth-child(2) { --i: 1 }
:is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > :nth-child(3) { --i: 2 }
:is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > :nth-child(4) { --i: 3 }
:is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > :nth-child(5) { --i: 4 }
:is(.piliers-grid, .cards-grid, .features-grid, .pricing-grid, .contact-grid, .plus-loin-grid, .faq-list) > :nth-child(n+6) { --i: 5 }

/* Survols */
.nav-links a {
    position: relative
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1)
}

.btn-accent:hover {
    box-shadow: 0 10px 28px -10px var(--accent-glow)
}

.case-thumb {
    transition: transform .6s cubic-bezier(.2, .7, .2, 1)
}

.case-card:hover .case-thumb {
    transform: scale(1.04)
}

