
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

* { cursor: none !important; }

::-webkit-scrollbar { display: none; width: 0; }

#webgl {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
    opacity: 0; transition: opacity 0.9s ease;   /* fades in over the still image once a frame is drawn */
}
.scene-on #webgl { opacity: 1; }

/* Still image of the scene's first frame: painted with the page, so the opening screen
   never waits for WebGL. The live scene takes over on top of it (js/stage.js). */
.stage-poster { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #05060b; }
.stage-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-on .stage-poster { visibility: hidden; transition: visibility 0s linear 1s; }

/* Opening chapter on first load: already in place at the first paint (no reveal on the
   title and text, which are the page's largest content). The reveal plays on return. */
#slide-1.is-first .line-inner, #slide-1.is-first .slide-desc { transition: none; }
#slide-1.is-first .hero-kicker, #slide-1.is-first .hero-actions, #slide-1.is-first .hero-proof { animation: hero-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
#slide-1.is-first .hero-proof { animation-delay: 0.3s; }
#slide-1.is-first .hero-actions { animation-delay: 0.15s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Poster capture (?shot): the scene alone. */
.shot .cinematic-container, .shot .stage-poster, .shot .cursor-inner, .shot .cursor-outer, .shot .cursor-label,
.shot .story-progress, .shot .scroll-cue, .shot .grid-horizontal-line, .shot .header-progress,
.shot .header-backdrop { visibility: hidden !important; }
.shot #webgl { transition: none; }

/* ---- Reticle cursor: dot, slow-spinning ticks, HUD readout, blend for contrast ---- */
.cursor-inner {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px; background: #ffffff; border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999; mix-blend-mode: difference;
    transition: width 0.25s, height 0.25s, border-radius 0.25s, opacity 0.3s;
}
.cursor-outer {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998; mix-blend-mode: difference;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s, opacity 0.3s;
}
.cursor-ticks { position: absolute; inset: -7px; animation: cursor-spin 16s linear infinite; }
.cursor-ticks span { position: absolute; background: #ffffff; }
.cursor-ticks span:nth-child(1) { left: 50%; top: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(2) { left: 50%; bottom: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(3) { top: 50%; left: 0; width: 6px; height: 1px; margin-top: -0.5px; }
.cursor-ticks span:nth-child(4) { top: 50%; right: 0; width: 6px; height: 1px; margin-top: -0.5px; }
@keyframes cursor-spin { to { transform: rotate(360deg); } }
.cursor-label {
    position: fixed; top: 0; left: 0; transform: translate(26px, 14px);
    font: 500 9px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 2px; white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none; z-index: 9997; mix-blend-mode: difference; transition: opacity 0.3s;
}
body.cursor-hover .cursor-outer { width: 58px; height: 58px; border-color: #ffffff; }
body.cursor-hover .cursor-ticks { animation-duration: 3s; }
body.cursor-hover .cursor-inner { width: 6px; height: 6px; }
body.cursor-text .cursor-inner { width: 1px; height: 18px; border-radius: 0; }
body.cursor-text .cursor-outer { opacity: 0.35; }
body.cursor-hidden .cursor-inner, body.cursor-hidden .cursor-outer, body.cursor-hidden .cursor-label { opacity: 0; }
@media (hover: none), (pointer: coarse) {
    .cursor-inner, .cursor-outer, .cursor-label { display: none; }
    * { cursor: auto !important; }
}

.cinematic-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;          /* clicks pass through to canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 60px 40px 60px;
    box-sizing: border-box;
}

/* ---- Header: quiet, editorial, one typeface ---- */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 70px; z-index: 20;
    pointer-events: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; }
.brand-mark { display: block; width: 26px; height: 18px; flex: 0 0 26px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; }
.header-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
    position: relative; padding: 6px 0;
    font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.4s;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: #ffffff; transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover, .nav-link.is-active { color: #ffffff; }
.nav-link.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.header-counter {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45);
}
.header-counter #brand-chapter { color: #ffffff; }
.counter-sep { width: 14px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    color: #ffffff; text-decoration: none; background: transparent;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
    transition: border-color 0.4s, background 0.4s;
}
.btn-arrow { font-size: 13px; line-height: 1; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-btn:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
.contact-btn:hover .btn-arrow { transform: translate(2px, -2px); }
.header-progress { position: fixed; top: 70px; left: 0; right: 0; height: 1px; z-index: 6; pointer-events: none; }
.header-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
}

.slide { position: absolute; bottom: 12%; pointer-events: none; }

#slide-1 { left: 0; width: 100%; bottom: 15%; }
#slide-1 .slide-title { margin-left: 60px; }
#slide-1 .desc-row { position: relative; display: flex; width: 100%; }
#slide-1 .col-1 {
    margin-left: 60px;
    width: calc(40vw - 60px);
    max-width: calc(40vw - 60px);
}
#slide-1 .col-2 { display: none; }

#slide-2 { left: calc(50vw + 20px); right: 60px; width: auto; bottom: 12%; }
#slide-2 .slide-desc { max-width: min(60ch, 100%); }   /* the paragraph runs almost as wide as its title */

/* Slide 2: four benefits, icon first */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 26px 40px; margin-top: 10px; }
.benefit {
    display: flex; align-items: flex-start; gap: 14px;
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.benefit:nth-child(1) { transition-delay: 0.28s; }
.benefit:nth-child(2) { transition-delay: 0.36s; }
.benefit:nth-child(3) { transition-delay: 0.44s; }
.benefit:nth-child(4) { transition-delay: 0.52s; }
.slide.active .benefit { opacity: 1; transform: none; }
.benefit-icon {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff;
    display: grid; place-items: center;
}
.benefit-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.benefit p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 300; color: #d1d5db; }

/* Slide 4: what changes for the brand. Each line runs from a dim "before" point to a lit
   "after" node; the head rides the fill (both transforms, same timing). */
.gains { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(26px, 3vw, 46px); margin: 30px 0 0; padding: 0; max-width: 640px; }
.gain {
    --d: 0.5s; display: grid; align-content: start; gap: 6px;
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d), transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d);
}
.gain:nth-child(2) { --d: 0.6s; } .gain:nth-child(3) { --d: 0.7s; } .gain:nth-child(4) { --d: 0.8s; }
.gain:nth-child(5) { --d: 0.9s; } .gain:nth-child(6) { --d: 1s; }
.slide.active .gain { opacity: 1; transform: none; }
.gain-line { position: relative; display: block; height: 9px; margin-bottom: 10px; }
.gain-line::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: rgba(255, 255, 255, 0.14); }
.gain-line::after {
    content: ''; position: absolute; left: 0; top: 2px; width: 5px; height: 5px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4); background: #03050c;
}
.gain-fill {
    position: absolute; left: 0; right: 0; top: 4px; height: 1px;
    background: linear-gradient(90deg, rgba(61, 90, 241, 0), #3d5af1 30%, #9fd0ff);
    transform: scaleX(0); transform-origin: 0 50%;
}
.gain-head { position: absolute; inset: 0; transform: translateX(-100%); }
.gain-head::after {
    content: ''; position: absolute; right: -4px; top: 0.5px; width: 8px; height: 8px; border-radius: 50%;
    background: #ffffff; box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.7), 0 0 24px 4px rgba(159, 208, 255, 0.3);
    opacity: 0;
}
.gain-fill, .gain-head { transition: transform 0.5s ease; }
.gain-head::after { transition: opacity 0.3s ease; }
.slide.active .gain-fill, .slide.active .gain-head { transform: none; transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d) + 0.15s); }
.slide.active .gain-head::after { opacity: 1; transition-delay: calc(var(--d) + 0.15s); }
.gain-name { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: #7f8aa3; transition: color 0.4s ease; }
/* each name lights up when its line reaches the after node */
.slide.active .gain-name { color: #f2f7ff; transition: color 0.8s ease calc(var(--d) + 1.25s); }
.gain-desc { font-size: 12.5px; line-height: 1.5; font-weight: 300; color: #b4bccb; }
html.reduce-motion .gain-fill, html.reduce-motion .gain-head { transform: none; transition: none; }
html.reduce-motion .gain-head::after { opacity: 1; transition: none; }
html.reduce-motion .gain-name { color: #f2f7ff; transition: none; }

#slide-3 { left: 60px; width: min(620px, 46vw); bottom: 10%; }

#slide-4 { left: 60px; max-width: 640px; }
#slide-4 .slide-desc { max-width: 44ch; }

.slide-title {
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
    font-size: clamp(44px, 5.4vw, 80px);
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    color: #f2f7ff;
}
.slide-desc {
    font-size: 16px; line-height: 1.7; font-weight: 300;
    color: #d1d5db; letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}
.slide.active .slide-desc { opacity: 1; transform: translateY(0); }

/* Title reveal: each line rises out of its own mask with a long exponential ease.
   Transform and opacity only, so it stays on the compositor and silky. */
.slide-title .line, .contact-title .line {
    display: block; overflow: hidden; white-space: nowrap;   /* two lines, never three: see fitTitles() */
    padding: 0.06em 0 0.16em; margin: -0.06em 0 -0.16em;
}
.line-inner {
    display: block; transform: translateY(112%); opacity: 0; filter: blur(12px);
    transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease-out,
                filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
.line.muted .line-inner { transition-delay: 0.09s; }
.slide.active .slide-title .line-inner, .contact.is-visible .contact-title .line-inner {
    transform: none; opacity: 1; filter: blur(0);
}
.slide-title .line.muted, .contact-title .line.muted { color: #b9c1d1; }
.slide.active { pointer-events: auto; }

.story-progress {
    position: fixed; top: 50%; right: 40px; transform: translateY(-50%);
    z-index: 5; pointer-events: none; transition: opacity 0.6s;
}
.story-dashes { display: flex; flex-direction: column; gap: 12px; }
.story-dash { width: 2px; height: 40px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.story-dash-fill { width: 100%; height: 0%; background: #ffffff; border-radius: 2px; }

.grid-horizontal-line {
    position: fixed; top: 70px; left: 0; right: 0;
    width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.065);
    z-index: 5; pointer-events: none;
}

/* ---- Contact chapter: a real section that rises over the fixed 3D stage ---- */
.scroll-stage { height: 620vh; pointer-events: none; }   /* trois chapitres (voir PAGE/SCENE dans js/stage.js) */
.grid-horizontal-line { transition: opacity 0.6s; }
body.contact-open .story-progress, body.contact-open .grid-horizontal-line { opacity: 0; }

.contact {
    position: relative; z-index: 8;
    min-height: 100vh;
    display: flex; flex-direction: column;
    padding: 150px 60px 90px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 20%, rgba(0, 0, 0, 0.30) 100%);
}
.contact-inner {
    width: 100%; max-width: 1760px; margin: auto;   /* centred in the section, the footer below */
    display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 600px);
    justify-content: space-between; gap: clamp(40px, 6vw, 130px); align-items: center;
}
.contact-eyebrow {
    display: flex; align-items: center; gap: 14px; margin-bottom: 48px;
    font: 500 11px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.contact-title {
    font-size: clamp(48px, 5.8vw, 92px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 400;
    color: #f2f7ff; margin-bottom: 40px;
}

.contact-lead { font-size: 17px; line-height: 1.7; font-weight: 300; color: #d1d5db; margin-bottom: 60px; }
.contact-mail {
    display: inline-flex; align-items: center; gap: 30px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff; text-decoration: none; font-size: 18px; font-weight: 400; transition: gap 0.35s, border-color 0.35s;
}
.contact-mail:hover { gap: 44px; border-color: #ffffff; }
.arrow { font-size: 1.15em; line-height: 1; }
.contact-lead, .contact-mail, .contact-card {
    opacity: 0; transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}
.contact-mail { transition-delay: 0.3s; }
.contact-card { transition-delay: 0.35s; }
.contact.is-visible .contact-lead, .contact.is-visible .contact-mail, .contact.is-visible .contact-card {
    opacity: 1; transform: none;
}

/* The card. By default a CSS glass; when the 3D slab is active (body.has-glass-card)
   the CSS body turns transparent and the WebGL glass shows through behind the fields. */
.contact-card {
    position: relative; width: 100%; max-width: 600px; justify-self: end;
    border-radius: 30px; padding: 40px 44px 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body.has-glass-card .contact-card {
    border-color: transparent; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: none;
}
/* Specular rim on top of the 3D glass: a bright hairline that fades along the edge. */
body.has-glass-card .contact-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 28%,
                                rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.35) 100%);
}
body.has-glass-card .contact-card::after {
    content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 55%);
}
.contact-card > * { position: relative; z-index: 1; }
.card-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
    font: 500 11px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #d7deea;
}
.card-head .arrow { font-size: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font: 500 12px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.04em; color: #dfe6f3; }
.field-label em { font-style: normal; color: #ff9ab8; }
.field-label small { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #8d97ab; margin-left: 8px; }
.field input, .field textarea {
    width: 100%; background: transparent; border: 0; border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    padding: 6px 0 12px; color: #ffffff; outline: none; -webkit-appearance: none; appearance: none;
    font: 300 16px/1.4 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; transition: border-color 0.3s;
    user-select: text; -webkit-user-select: text;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b94a6; }
.field input:focus, .field textarea:focus { border-bottom-color: #ffffff; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0b0b10 inset; -webkit-text-fill-color: #ffffff; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; }
.card-note { font-size: 10.5px; line-height: 1.7; color: #b3bccb; letter-spacing: 0.3px; }
.pill-btn {
    display: inline-flex; align-items: center; gap: 18px; padding: 16px 26px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); color: #ffffff;
    font: 500 13px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.2px;
    transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}
.pill-btn .arrow { font-size: 16px; }
.pill-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-2px); }
@media (max-width: 1000px) {
    .contact { padding: 120px 24px 60px; }
    .contact-inner { grid-template-columns: 1fr; gap: 56px; }
    .contact-card { justify-self: stretch; max-width: none; padding: 32px 26px; }
    .contact-title { letter-spacing: -3px; }
    .field-grid { grid-template-columns: 1fr; gap: 24px; }
    .card-foot { flex-direction: column; align-items: flex-start; }
}

/* ---- Mini footer: hairline, quiet, technical ---- */
.contact-footer {
    position: relative; width: 100%; max-width: 1760px; margin: clamp(64px, 8vw, 110px) auto 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 24px;
    padding: 18px 0 20px; border-top: 1px solid rgba(255, 255, 255, 0.06);
    font: 400 10px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    opacity: 0; transition: opacity 1s ease 0.6s;
}
.contact.is-visible .contact-footer { opacity: 1; }
.contact-footer a { color: inherit; text-decoration: none; transition: color 0.3s; }
.contact-footer a:hover { color: rgba(255, 255, 255, 0.8); }
.footer-spec { color: rgba(255, 255, 255, 0.22); }
@media (max-width: 1000px) {
    .contact-footer { gap: 10px 24px; }
    .footer-spec { display: none; }
}

/* ============================================================================
   Portrait / narrow screens: stacked composition. Text on top with the 3D
   object below on slides 1 and 3; object on top, text below on slides 2 and 4
   (the camera framing in cameraFrame() follows the same alternation).
   ============================================================================ */
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .cinematic-container { padding: 0 24px 24px; }
    .story-progress { right: 12px; }
    .slide, #slide-1, #slide-2, #slide-3, #slide-4 { left: 24px; right: 24px; width: auto; max-width: none; bottom: auto; }
    #slide-1, #slide-3 { top: 98px; bottom: auto; }
    #slide-2, #slide-4 { bottom: 6%; top: auto; }
    #slide-1 .slide-title, #slide-2 .slide-title, .slide-title {
        margin-left: 0; margin-bottom: 14px;
        font-size: clamp(34px, 10vw, 64px); letter-spacing: -0.035em; line-height: 1.0;
    }
    #slide-1 .desc-row { flex-direction: column; }
    #slide-1 .col-1, #slide-1 .col-2 { position: static; margin-left: 0; width: 100%; max-width: 36ch; }
    #slide-1 .col-2 { display: none; }
    .benefits { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
    .benefit { gap: 10px; }
    .benefit-icon { flex-basis: 26px; width: 26px; height: 26px; border-radius: 6px; }
    .benefit-icon svg { width: 14px; height: 14px; }
    .benefit p { font-size: 13px; line-height: 1.45; }
    .gains { gap: 16px 18px; margin-top: 18px; }
    .gain-line { margin-bottom: 7px; }
    .gain-name { font-size: 13px; }
    .gain-desc { display: none; }
    #slide-3, #slide-4 { left: 24px; width: auto; max-width: none; }
    .slide-desc { font-size: 15px; line-height: 1.6; max-width: 36ch; }
    .contact { padding: 110px 24px 100px; }
    .contact-title { font-size: clamp(40px, 10.5vw, 120px); letter-spacing: -0.035em; }
    .contact-lead { margin-bottom: 40px; }
}
/* Header compaction */
@media (max-width: 820px) {
    .header-nav { display: none; }
    .brand-text { white-space: nowrap; }
    .contact-btn { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 420px) { .header-counter { display: none; } }


/* ============================================================================
   Past the 3D stage (Réalisations, then Contact): blurred header backdrop,
   chapter dashes hidden, the Réalisations link marked in red.
   ============================================================================ */
.header-backdrop {
    position: fixed; top: 0; left: 0; right: 0; height: 70px; z-index: 9; pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 6, 14, 0.82), rgba(4, 6, 14, 0.5));
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    opacity: 0; transition: opacity 0.5s;
}
body.past-stage .header-backdrop { opacity: 1; }
body.past-stage .story-progress, body.past-stage .grid-horizontal-line { opacity: 0; }
.header-progress { z-index: 12; }
.nav-link-work { display: inline-flex; align-items: center; gap: 8px; }
.nav-link-work::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #9fd0ff; box-shadow: 0 0 10px rgba(159, 208, 255, 0.8); }
.work-btn {
    display: none; align-items: center; padding: 8px 14px; border-radius: 999px;
    border: 1px solid rgba(159, 208, 255, 0.45); color: #c9e4ff; text-decoration: none;
    font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
}
@media (max-width: 820px) {
    .work-btn { display: inline-flex; }
    .header-actions { gap: 10px; }
}
@media (max-width: 380px) { .brand-text { display: none; } }

/* ---- Contact: sticky intro, three steps, expanded form ---- */
.contact-inner { align-items: start; }
@media (min-width: 1001px) { .contact-intro { position: sticky; top: 130px; } }
.contact-lead { margin-bottom: 40px; }
.contact-steps { list-style: none; display: grid; gap: 14px; max-width: 430px; margin: 0 0 52px; }
.contact-steps li {
    display: flex; gap: 16px; align-items: baseline; padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px; line-height: 1.5; font-weight: 300; color: #cfd6e6;
}
.contact-steps span { flex: none; font-size: 10px; letter-spacing: 0.16em; color: #8d97ab; }
.contact-steps {
    opacity: 0; transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.25s, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.25s;
}
.contact.is-visible .contact-steps { opacity: 1; transform: none; }
.card-head-meta { font-size: 10px; letter-spacing: 0.16em; color: #8d97ab; }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step + .form-step { margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.step-legend {
    float: left; width: 100%; margin-bottom: 24px; padding: 0;
    font: 500 11px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #d7deea;
}
.step-legend + * { clear: both; }
.step-num {
    display: inline-block; margin-right: 12px; padding: 5px 8px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff; letter-spacing: 0.1em; font-size: 10px;
}
.form-step > .field + .field, .form-step > .choice-field + .field, .form-step > .wish-recap + .field { margin-top: 24px; }
.field-error { display: none; font-size: 11.5px; line-height: 1.4; color: #ff9ab8; }
.field-hint { font-size: 11.5px; line-height: 1.5; color: #8d97ab; }
.form-step > .field-budget { margin-top: 24px; }
.is-invalid .field-error { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff6f8e; }

.choice-field { display: flex; flex-direction: column; gap: 12px; }
.choice-field + .choice-field { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
    display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); color: #dfe6f3;
    font: 400 13px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.01em; white-space: nowrap;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.6); }
.chip input:checked + span { background: #ffffff; color: #000000; border-color: #ffffff; }
.chip input:focus-visible + span { outline: 1px solid #ffffff; outline-offset: 3px; }
.choice-field.is-invalid .chip span { border-color: rgba(159, 208, 255, 0.7); }

.select-wrap { position: relative; display: block; }
.select-wrap::after {
    content: ''; position: absolute; right: 4px; top: 38%; width: 7px; height: 7px; pointer-events: none;
    border-right: 1px solid #dfe6f3; border-bottom: 1px solid #dfe6f3; transform: translateY(-50%) rotate(45deg);
}
.field select {
    width: 100%; background: transparent; border: 0; border-radius: 0; outline: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 6px 26px 12px 0;
    color: #ffffff; font: 300 16px/1.4 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; -webkit-appearance: none; appearance: none;
    transition: border-color 0.3s;
}
.field select:focus { border-bottom-color: #ffffff; }
.field select option { background: #0b0b10; color: #ffffff; }

.form-alert { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: #ff9ab8; }
.form-alert:empty { display: none; }
.form-done { display: none; }
.contact-card.is-sent > .form-step, .contact-card.is-sent > .card-foot, .contact-card.is-sent > .form-alert { display: none; }
.contact-card.is-sent > .form-done { display: block; }
.form-done-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; color: #f2f7ff; }
.form-done-text { font-size: 15px; line-height: 1.7; font-weight: 300; color: #d1d5db; margin-bottom: 30px; }
.form-done-text a { color: #ffffff; }
.form-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.text-btn {
    background: none; border: 0; padding: 0 0 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #cfd6e6; font: 500 11px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
}
.text-btn:hover { color: #ffffff; border-color: #ffffff; }
@media (max-width: 1000px) {
    .chip span { padding: 9px 13px; font-size: 12.5px; }
}
.offer-chosen {
    display: flex; align-items: center; gap: 10px; margin: -12px 0 28px; padding: 10px 12px 10px 14px; border-radius: 12px;
    border: 1px solid rgba(169, 187, 255, 0.35); background: rgba(47, 91, 255, 0.08);
    font-size: 12.5px; color: #dfe6f3;
}
.offer-chosen[hidden] { display: none; }
.offer-chosen-text { margin-right: auto; line-height: 1.5; color: #ffffff; }
.offer-chosen button {
    width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent; color: #cfd6e6; font-size: 10px; line-height: 1;
}
.offer-chosen button:hover { background: #ffffff; color: #000000; }

/* ============================================================================
   Opening screen: what Elevate does in one line, two calls to action, a scroll cue.
   ============================================================================ */
.hero-kicker {
    display: flex; align-items: center; gap: 12px;
    font: 500 11px/1.3 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
#slide-1 .hero-kicker { margin: 0 0 26px 60px; }
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0 60px;
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}
.slide.active .hero-kicker, .slide.active .hero-actions { opacity: 1; transform: none; }
.hero-btn {
    display: inline-flex; align-items: center; gap: 14px; padding: 15px 24px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.03); color: #ffffff; text-decoration: none;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font: 500 13px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.02em;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-2px); }
.hero-btn-primary { background: #ffffff; color: #000000; border-color: #ffffff; }
.hero-btn-primary:hover { background: rgba(255, 255, 255, 0.04); color: #ffffff; }
.hero-btn:focus-visible { outline: 1px solid #ffffff; outline-offset: 4px; }
.scroll-cue {
    position: fixed; left: 50%; bottom: 24px; z-index: 11; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%);
    font: 500 9.5px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
    opacity: 0; transition: opacity 0.6s ease;
}
.scroll-cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(255, 255, 255, 0.18); }
.scroll-cue i::after {
    content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #ffffff;
    transform: translateY(-100%); animation: cue-drip 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
/* transform only: the drip runs on the compositor, never through layout */
@keyframes cue-drip { to { transform: translateY(275%); } }
body:not(.is-top) .scroll-cue i::after { animation: none; }
body.is-top .scroll-cue { opacity: 1; }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    #slide-1 .hero-kicker { margin: 0 0 14px; font-size: 9.5px; letter-spacing: 0.18em; }
    .hero-actions { margin: 20px 0 0; gap: 10px; }
    .hero-btn { padding: 13px 18px; font-size: 12.5px; }
    .scroll-cue { bottom: 14px; }
    .scroll-cue span { display: none; }
}

/* ============================================================================
   Services: the glass table beside the chapter. A CSS glass by default; with
   WebGL (body.has-glass-card) a real refracting slab is pinned behind it.
   ============================================================================ */
.services-panel {
    position: fixed; right: 60px; top: 104px; bottom: 7vh; width: min(640px, 41vw);
    display: flex; flex-direction: column; padding: 30px 30px 22px; border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    opacity: 0; transform: translateY(30px); pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.slide.active .services-panel { opacity: 1; transform: none; pointer-events: auto; }
body.has-glass-card .services-panel {
    border-color: transparent; background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.has-glass-card .services-panel::before {           /* specular rim over the 3D glass */
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 30%,
                                rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0.32) 100%);
}
.services-panel > * { position: relative; }
.sp-head { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-shadow: 0 1px 14px rgba(5, 6, 11, 0.75); }   /* stays legible over a glass highlight */
.sp-eyebrow {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    font: 500 10.5px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.sp-title { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; color: #f2f7ff; }
.sp-tabs {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 14px; padding: 4px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(5, 6, 11, 0.45);
}
.sp-tabs button {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px; border: 0; border-radius: 999px; background: transparent; color: #cfd6e6;
    font: 500 12px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.04em; transition: color 0.4s;
}
.sp-tabs button[aria-selected="true"] { color: #05060b; }
.sp-tabs button:focus-visible { outline: 1px solid #ffffff; outline-offset: 2px; }
.sp-tabs-glider {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 999px;
    background: #ffffff; box-shadow: 0 6px 20px rgba(61, 90, 241, 0.3);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-tabs.is-second .sp-tabs-glider { transform: translateX(calc(100% + 4px)); }
.sp-count {
    padding: 3px 7px; border-radius: 999px; font-size: 10px; letter-spacing: 0.06em; color: #ffffff;
    background: #3d5af1;
}
.sp-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px; }
.sp-body::-webkit-scrollbar { display: none; }
.sp-section { animation: sp-in 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes sp-in { from { opacity: 0; transform: translateY(10px); } }
.sp-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.sp-grid li {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(5, 6, 11, 0.38);
    font-size: 12.5px; line-height: 1.3; color: #eef2f9;
}
.sp-grid li span { flex: none; font-size: 9.5px; letter-spacing: 0.1em; color: #8fa3ff; }
/* "Vos ajouts sur mesure": a free description, tied to the contact form (form="contact-form") */
/* dark backing: the 3D glass behind the table catches bright highlights */
#sp-ajouts { height: 100%; }
.sp-wish {
    display: grid; grid-template-rows: auto minmax(96px, 1fr) auto auto; gap: 16px; min-height: 100%; padding: 18px 18px 16px;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(5, 6, 11, 0.55);
}
.sp-wish-lead { margin: 0; font-size: 13.5px; line-height: 1.55; color: #c0c8d6; max-width: 46ch; }
.sp-wish-field { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 9px; }
.sp-wish-label {
    padding: 0; font: 500 10.5px/1.2 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
    letter-spacing: 0.16em; text-transform: uppercase; color: #d7deea;
}
.sp-wish-label small { margin-left: 6px; font-size: 9.5px; letter-spacing: 0.12em; color: #aab3c5; }
.sp-wish textarea {
    width: 100%; height: 100%; min-height: 0; resize: none; padding: 14px 16px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(5, 6, 11, 0.5); color: #f2f7ff;
    font: 400 14px/1.55 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; caret-color: #9fd0ff;
    transition: border-color 0.3s;
}
.sp-wish textarea::placeholder { color: #8a95ad; }
.sp-wish textarea:focus { outline: none; border-color: rgba(159, 208, 255, 0.75); }
.sp-wish-for { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sp-wish-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.sp-wish-note { margin: 0; max-width: 32ch; font-size: 11.5px; line-height: 1.45; color: #aab3c5; }
.sp-wish-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px;
    background: #3d5af1; color: #ffffff; text-decoration: none;
    font: 500 13px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.02em;
    transition: background 0.3s, transform 0.3s;
}
.sp-wish-btn:hover { background: #2f4be0; transform: translateY(-1px); }
.sp-wish-btn:focus-visible { outline: 1px solid #ffffff; outline-offset: 3px; }
/* short screens: the field keeps the room, the call to action stays in view */
@media (min-width: 901px) and (max-height: 800px) {
    .sp-wish { gap: 12px; padding: 14px; grid-template-rows: minmax(80px, 1fr) auto auto; }
    .sp-wish-lead, .sp-wish-note { display: none; }
}
@media (max-width: 900px) and (max-height: 799px), (max-aspect-ratio: 4/5) and (max-height: 799px) {
    .sp-wish-for { display: none; }
}
.wish-recap {
    margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(159, 208, 255, 0.28); background: rgba(61, 90, 241, 0.1);
    font-size: 12.5px; line-height: 1.5; color: #dfe6f3; overflow-wrap: anywhere;
}
.wish-recap b { font-weight: 500; color: #ffffff; }
.sp-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px; color: #c0c8d6;
}
.sp-foot a { color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; white-space: nowrap; }
.sp-foot a:hover { border-color: #ffffff; }
@media (max-width: 1240px) and (min-width: 901px) {
    .services-panel { width: min(560px, 40vw); padding: 24px 22px 18px; }
    .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .services-panel {
        left: 16px; right: 16px; width: auto; top: max(380px, 52vh); bottom: 14px;
        padding: 16px 14px 12px; border-radius: 24px;
    }
    .sp-head { padding-bottom: 10px; }
    .sp-eyebrow { display: none; }
    .sp-title { font-size: 19px; }
    .sp-tabs { margin: 12px 0 10px; }
    .sp-tabs button { padding: 9px 8px; font-size: 11px; }
    .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-grid li { min-height: 40px; font-size: 12px; }
    .sp-foot { display: none; }
    .sp-wish { gap: 10px; padding: 12px; grid-template-rows: minmax(80px, 1fr) auto auto; }
    .sp-wish-field { gap: 8px; }
    .sp-wish-for { gap: 6px; }
    .sp-wish .chips { flex-wrap: nowrap; gap: 6px; }
    .sp-wish .chip span { padding: 8px 11px; font-size: 12px; }
    .sp-wish-lead { display: none; }
    .sp-wish textarea { padding: 10px 12px; font-size: 14px; }
    .sp-wish-note { display: none; }
    .sp-wish-btn { flex: 1; justify-content: center; }
}
html.reduce-motion .sp-section { animation: none; }
html.reduce-motion .sp-tabs-glider { transition: none; }

/* ---- Animation switch in the header ---- */
.motion-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 9px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #cfd6e6;
    font: 500 11px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.06em; transition: border-color 0.3s, color 0.3s;
}
.motion-btn:hover { border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.motion-btn:focus-visible { outline: 1px solid #ffffff; outline-offset: 3px; }
.motion-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.motion-icon path { transition: opacity 0.3s; }
.motion-icon .flat { opacity: 0; }
html.reduce-motion .motion-icon .wave { opacity: 0; }
html.reduce-motion .motion-icon .flat { opacity: 1; }
.motion-switch { position: relative; flex: none; width: 26px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); transition: background 0.3s; }
.motion-switch::after { content: ''; position: absolute; top: 2px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #05060b; transition: left 0.3s, background 0.3s; }
html.reduce-motion .motion-switch { background: rgba(255, 255, 255, 0.16); }
html.reduce-motion .motion-switch::after { left: 2px; background: #cfd6e6; }
@media (max-width: 1240px) {
    .motion-label, .motion-switch { display: none; }
    .motion-btn { width: 34px; padding: 0; justify-content: center; }
}

/* ---- Reduced motion: no travel, no blur, no spin; content simply fades in ---- */
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion .line-inner { transform: none; filter: none; transition: opacity 0.5s ease; }
html.reduce-motion .slide-desc, html.reduce-motion .benefit, html.reduce-motion .gain,
html.reduce-motion .hero-kicker, html.reduce-motion .hero-actions,
html.reduce-motion .contact-lead, html.reduce-motion .contact-mail, html.reduce-motion .contact-card,
html.reduce-motion .contact-steps, html.reduce-motion .services-panel { transform: none; transition: opacity 0.5s ease; }
html.reduce-motion .cursor-ticks, html.reduce-motion .scroll-cue i::after { animation: none; }
html.reduce-motion .hero-btn:hover, html.reduce-motion .pill-btn:hover { transform: none; }

/* Sections out of view: their looping animations (glows, pulses, grain) stop. */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

.sp-foot-sep { display: inline-block; width: 1px; height: 12px; margin: 0 12px; vertical-align: -1px; background: rgba(255, 255, 255, 0.2); }
/* ---- Plan du site en pied de page ---- */
.footer-map { flex-basis: 100%; display: grid; gap: 6px; }
.footer-map ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; }
.footer-map a { display: inline-flex; align-items: center; min-height: 44px; letter-spacing: 0.1em; }
/* ---- Cibles tactiles : 44 px au moins sur écran tactile ---- */
@media (pointer: coarse) {
    .brand, .contact-btn, .work-btn, .motion-btn, .footer-top, .contact-mail { min-height: 44px; }
    .contact-btn, .work-btn { padding-top: 0; padding-bottom: 0; }
    .hero-btn { min-height: 46px; }
    .sp-tabs button, .chip span, .offer-btn, .pf-btn, .pf-link, .text-btn, .pill-btn { min-height: 44px; }
    .offer-chosen button { min-width: 44px; min-height: 44px; }
    .field input, .field select, .field textarea { min-height: 44px; }
}

/* ============================================================================
   Améliorations du 14/10/2026 : accueil plus affirmé, trois réalisations sous
   les boutons, services lisibles, contact incarné, pied de page complet.
   ============================================================================ */
#slide-1 .slide-title { font-size: clamp(50px, 5.9vw, 96px); }
#slide-1 .slide-desc { font-size: 17.5px; }
#slide-1 .hero-btn { padding: 18px 28px; font-size: 14.5px; }
.hero-proof {
    margin: 30px 0 0 60px; opacity: 0; transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}
.slide.active .hero-proof { opacity: 1; transform: none; }
.hero-proof-label { margin-bottom: 12px; font: 500 10.5px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #8d97ab; }
.hero-proof ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.hero-proof a { display: grid; gap: 8px; width: 150px; color: #cfd6e6; text-decoration: none; font: 500 12px/1.2 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; transition: color 0.3s; }
.hero-proof img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18);
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-proof a:hover { color: #ffffff; }
.hero-proof a:hover img { border-color: #9fd0ff; transform: translateY(-3px); }
.hero-proof a:focus-visible { outline: 1px solid #ffffff; outline-offset: 4px; border-radius: 10px; }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    #slide-1 .slide-title { font-size: clamp(40px, 11vw, 64px); }
    #slide-1 .slide-desc { font-size: 15.5px; }
    #slide-1 .hero-btn { padding: 14px 20px; font-size: 13px; }
    .hero-proof { margin: 20px 0 0; }
    .hero-proof ul { gap: 8px; flex-wrap: nowrap; }
    .hero-proof a { width: auto; flex: 1 1 0; min-width: 0; font-size: 11px; }
}
@media (min-width: 901px) and (max-height: 800px) { .hero-proof { display: none; } }

.sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sp-grid li { gap: 12px; min-height: 58px; padding: 10px 14px; font-size: 15px; }
.sp-grid li span { font-size: inherit; letter-spacing: 0; color: inherit; }
.sp-ic { flex: none; width: 24px; height: 24px; color: #9fd0ff; }

.contact-person { display: flex; align-items: flex-start; gap: 16px; max-width: 430px; margin-top: 40px; padding: 20px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
.contact-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(159, 208, 255, 0.35), rgba(61, 90, 241, 0.35)); border: 1px solid rgba(159, 208, 255, 0.4); }
.contact-avatar img { width: 30px; height: 30px; }
.contact-person-name { margin-bottom: 6px; font-size: 16px; font-weight: 500; color: #f2f7ff; }
.contact-person-text { font-size: 14px; line-height: 1.6; font-weight: 300; color: #b3bccb; }

.site-foot { position: relative; margin-top: clamp(80px, 10vw, 140px); padding-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: #b3bccb; }
.site-foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-foot-brand { display: grid; gap: 16px; align-content: start; max-width: 36ch; }
.site-foot-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; color: #f2f7ff; }
.site-foot-brand p { line-height: 1.65; font-weight: 300; }
.site-foot-mail { justify-self: start; display: inline-flex; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(159, 208, 255, 0.4); color: #f2f7ff; text-decoration: none; font-size: 16px; }
.site-foot-mail:hover { border-color: #ffffff; }
.site-foot h2 { margin-bottom: 14px; font: 500 11px/1 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #8d97ab; }
.site-foot ul { list-style: none; display: grid; gap: 2px; }
.site-foot a { color: inherit; text-decoration: none; transition: color 0.3s; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 34px; }
.site-foot a:hover { color: #ffffff; }
.site-foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: 44px; padding: 22px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; color: #8d97ab; }
.site-foot-legal nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
@media (max-width: 1000px) { .site-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Parties basses calculées à l'approche seulement : la page est longue, sa mise en page initiale
   bloquait le téléphone ~2 s. « auto » garde la vraie hauteur une fois la partie affichée. */
html:not(.cv-off) :is(.pf-list, .pf-more, .trust-block, .contact-inner, .site-foot) { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
/* html.cv-off (lien interne cliqué ou arrivée avec une ancre) : tout est mis en page, les sauts tombent juste. */


/* ============================================================================
   20/10/2026. Les 24 types de sites : un libellé long passe à la ligne au lieu de
   déborder sur la case voisine. Puis la version téléphone, plus compacte : en-tête plus
   bas, titres ramenés, textes un cran plus petits, marges resserrées. Sur un téléphone
   (et dans une application qui ajoute sa propre barre), chaque pixel de hauteur compte.
   ============================================================================ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* pas d'agrandissement automatique du texte (iPhone) */
.sp-grid li span { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 720px) {
    .scroll-stage { height: 480vh; }
    .cinematic-container { padding: 0 16px 16px; }
    .main-header { height: 56px; }
    .header-backdrop { height: 56px; }
    .header-progress, .grid-horizontal-line { top: 56px; }
    .brand { gap: 9px; }
    .brand-mark { width: 22px; height: 15px; flex-basis: 22px; }
    .brand-text { font-size: 12.5px; }
    .header-actions { gap: 8px; }
    .contact-btn, .work-btn { padding: 0 12px; font-size: 11.5px; }
    .story-progress { display: none; }
    .slide, #slide-1, #slide-3, #slide-4 { left: 16px; right: 16px; }
    #slide-1, #slide-3 { top: 74px; }
    #slide-4 { bottom: 4%; }
    .slide-title, #slide-1 .slide-title { font-size: clamp(28px, 8.4vw, 36px); margin-bottom: 10px; letter-spacing: -0.03em; }
    #slide-1 .hero-kicker { margin-bottom: 10px; font-size: 9px; }
    .slide-desc, #slide-1 .slide-desc { font-size: 14px; line-height: 1.55; letter-spacing: 0; }
    .hero-actions { margin-top: 16px; gap: 8px; }
    #slide-1 .hero-btn { min-height: 44px; padding: 0 16px; font-size: 12.5px; }
    .hero-proof { margin-top: 16px; }
    .hero-proof-label { margin-bottom: 8px; font-size: 9.5px; }
    .hero-proof a { font-size: 10.5px; gap: 6px; }
    .benefits { gap: 10px 12px; margin-top: 4px; }
    .benefit { gap: 8px; }
    .benefit p { font-size: 12.5px; line-height: 1.4; }
    .services-panel { left: 12px; right: 12px; top: max(320px, 47vh); bottom: 12px; padding: 14px 12px 10px; border-radius: 20px; }
    .sp-head { padding-bottom: 8px; }
    .sp-title { font-size: 17px; }
    .sp-tabs { margin: 10px 0 8px; }
    .sp-grid { gap: 6px; }
    .sp-grid li { min-height: 44px; gap: 8px; padding: 6px 9px; border-radius: 11px; font-size: 12.5px; line-height: 1.25; }
    .sp-ic { width: 18px; height: 18px; }
    .gains { gap: 12px 14px; margin-top: 14px; }
    .gain-name { font-size: 12.5px; }
    .contact { padding: 84px 16px 64px; }
    .contact-inner { gap: 36px; }
    .contact-eyebrow { margin-bottom: 22px; }
    .contact-title { margin-bottom: 18px; font-size: clamp(30px, 8.6vw, 40px); letter-spacing: -0.03em; }
    .contact-lead { margin-bottom: 26px; font-size: 15px; line-height: 1.6; }
    .contact-steps { gap: 10px; margin-bottom: 30px; }
    .contact-steps li { padding-bottom: 10px; font-size: 14px; }
    .contact-mail { gap: 16px; padding-bottom: 12px; font-size: 16px; }
    .contact-person { margin-top: 26px; padding: 16px; gap: 12px; }
    .contact-avatar { width: 44px; height: 44px; }
    .contact-card { padding: 24px 18px 22px; border-radius: 22px; }
    .card-head { margin-bottom: 22px; }
    .site-foot { margin-top: 64px; padding-top: 36px; }
}


/* ---- 20/10/2026 : « Revoir le film d'ouverture », dans la ligne légale du pied de page ---- */
.site-foot-legal .footer-film {
    background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.3s, opacity 0.3s; opacity: 0.85;
}
.site-foot-legal .footer-film:hover, .site-foot-legal .footer-film:focus-visible { opacity: 1; text-decoration-color: currentColor; }
