/* Polices auto-hébergées (plus de requête vers Google Fonts) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

/* =========================================================
   TOKENS
   ========================================================= */
:root {
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --paper: #f8fafc;
    --surface: #ffffff;
    --line: #e2e8f0;
    --accent: #0369a1;
    --accent-hover: #075985;
    --accent-soft: #e6f2fa;
    --noir: #070b0a;
    --vert: #047857;
    --vert-fonce: #064e3b;
    --r-panel: 16px;
    --r-ctl: 10px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scrollbar-gutter: stable; }
body {
    background: var(--paper);
    color: var(--body);
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Typographie */
.t-display {
    color: var(--ink);
    font-weight: 700;
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.t-section {
    color: var(--ink);
    font-weight: 700;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.t-card {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.t-label {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}
.t-lead { font-size: 1.125rem; line-height: 1.6; color: var(--body); max-width: 34rem; }

/* Logo : vague de couleur sur "design" (identité de marque) */
@keyframes brand-wave {
    0%, 100% { color: #38bdf8; }
    50% { color: #14b8a6; }
}
.design-text > span {
    display: inline-block;
    animation: brand-wave 5s ease-in-out infinite;
}
.design-text > span:nth-child(2) { animation-delay: 0.1s; }
.design-text > span:nth-child(3) { animation-delay: 0.2s; }
.design-text > span:nth-child(4) { animation-delay: 0.3s; }
.design-text > span:nth-child(5) { animation-delay: 0.4s; }
.design-text > span:nth-child(6) { animation-delay: 0.5s; }

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.375rem;
    border-radius: var(--r-ctl);
    font-weight: 600;
    font-size: 0.975rem;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
/* Noir profond + reflets verts qui bougent (boutons principaux, cartes du portfolio) */
.dark-sheen {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--noir);
}
.dark-sheen::before {
    content: '';
    position: absolute;
    inset: -60% -110%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(38% 55% at 32% 48%, rgba(4, 120, 87, 0.62), transparent 70%),
        radial-gradient(28% 45% at 68% 58%, rgba(6, 95, 70, 0.7), transparent 70%),
        radial-gradient(22% 40% at 50% 20%, rgba(16, 185, 129, 0.22), transparent 70%);
    animation: sheenDrift 7s ease-in-out infinite alternate;
    animation-delay: var(--sheen-delay, 0s);
    will-change: transform;
}
@keyframes sheenDrift {
    0%   { transform: translate3d(-24%, -4%, 0) rotate(-4deg); }
    100% { transform: translate3d(24%, 4%, 0) rotate(4deg); }
}
.btn-primary { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 20px -10px rgba(4, 120, 87, 0.55); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 14px 28px -12px rgba(4, 120, 87, 0.7); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: #cbd5e1; background: #fbfcfd; }
.btn-sm { height: 40px; padding: 0 1rem; font-size: 0.9rem; }
.btn i { font-size: 1.1em; transition: transform 0.35s var(--ease-out); }
.btn:hover i.ph-arrow-right, .btn:hover i.ph-arrow-up-right { transform: translateX(3px); }

.link-inline {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.link-inline i { transition: transform 0.35s var(--ease-out); }
.link-inline:hover i { transform: translate(2px, -2px); }

/* Panneaux */
.panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--r-panel);
}
@media (min-width: 768px) {
    .panel { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.icon-tile {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-ctl);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 22px;
    flex-shrink: 0;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.35s ease, background-color 0.35s ease;
}
#navbar.nav-scrolled { border-bottom-color: var(--line); background: rgba(248, 250, 252, 0.88); }
#navbar .nav-inner { height: 76px; transition: height 0.4s var(--ease-out); }
#navbar.nav-scrolled .nav-inner { height: 64px; }

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--body);
    padding: 6px 0;
    transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left center; }

/* Menu mobile */
#mobile-menu {
    transition: transform 0.45s var(--ease-out);
}
#mobile-menu .m-item {
    opacity: 0;
    translate: 0 12px;
    transition: opacity 0.35s ease, translate 0.5s var(--ease-out);
}
#mobile-menu.is-open .m-item { opacity: 1; translate: 0 0; }
#mobile-menu.is-open .m-item:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu.is-open .m-item:nth-child(2) { transition-delay: 0.12s; }
#mobile-menu.is-open .m-item:nth-child(3) { transition-delay: 0.16s; }
#mobile-menu.is-open .m-item:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu.is-open .m-item:nth-child(5) { transition-delay: 0.24s; }
#mobile-menu.is-open .m-item:nth-child(6) { transition-delay: 0.28s; }

/* =========================================================
   HERO
   ========================================================= */
.hero-in {
    animation: heroIn 1s var(--ease-out) both;
    animation-delay: var(--d, 0ms);
}
@keyframes heroIn {
    from { opacity: 0; translate: 0 18px; }
    to   { opacity: 1; translate: 0 0; }
}
.hero-frame-in {
    animation: frameIn 1.2s var(--ease-out) both;
    animation-delay: 380ms;
}
@keyframes frameIn {
    from { opacity: 0; translate: 0 32px; scale: 0.98; }
    to   { opacity: 1; translate: 0 0; scale: 1; }
}

/* ===== Animation du hero : site web -> app -> logiciel ===== */
.morph { --cycle: 4150ms; }
.morph-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    --ar: 0.6875;
    container-type: inline-size;
}
@media (max-width: 639px) {
    .morph-stage { aspect-ratio: 1 / 1.02; --ar: 1.02; }
}
@media (min-width: 1024px) {
    .morph-stage { aspect-ratio: 16 / 10; --ar: 0.625; }
}
.morph-glow {
    position: absolute; inset: 8% 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(56, 189, 248, 0.45), transparent);
    filter: blur(10px);
    transition: background 1s ease;
}
.morph[data-state="app"]  .morph-glow { background: radial-gradient(closest-side, rgba(45, 212, 191, 0.5), transparent); }
.morph[data-state="soft"] .morph-glow { background: radial-gradient(closest-side, rgba(16, 185, 129, 0.42), transparent); }

.morph-device {
    --bw: 1px; --r: 14px; --bar: clamp(20px, 4.4cqw, 32px);
    position: absolute;
    left: 50%; top: 50%;
    width: 100%; height: 86%;
    transform: translate(-50%, -50%);
    border: var(--bw) solid #e2e8f0;
    border-radius: var(--r);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 30px 60px -28px rgba(15, 23, 42, 0.35);
    transition:
        width 0.85s cubic-bezier(0.7, 0, 0.2, 1),
        height 0.85s cubic-bezier(0.7, 0, 0.2, 1),
        top 0.85s cubic-bezier(0.7, 0, 0.2, 1),
        border-radius 0.85s cubic-bezier(0.7, 0, 0.2, 1),
        border-width 0.6s ease,
        border-color 0.6s ease;
}
.morph[data-state="app"] .morph-device {
    --bw: clamp(5px, 1.5cqw, 9px); --r: clamp(24px, 6.5cqw, 46px); --bar: 0px;
    width: calc(45.5% * var(--ar) * 0.97);
    height: 96%;
    border-color: #0b1210;
}
.morph[data-state="soft"] .morph-device {
    --bw: clamp(6px, 1.4cqw, 11px); --r: 12px; --bar: 0px;
    width: 88%; height: 72%; top: 42%;
    border-color: #0b1210;
    border-bottom-width: calc(var(--bw) * 2.2);
}
.md-bar {
    position: absolute; left: 0; right: 0; top: 0;
    height: var(--bar);
    display: flex; align-items: center; gap: 1.1cqw;
    padding: 0 2.2cqw;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    transition: height 0.85s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}
.md-bar i { width: 1.3cqw; height: 1.3cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #cbd5e1; }
.md-url { margin: 0 auto; width: 32%; height: 52%; border-radius: 99px; background: #eef2f6; }
.morph:not([data-state="web"]) .md-bar { opacity: 0; }
.md-notch {
    position: absolute; z-index: 5;
    top: 2.2%; left: 50%;
    width: 32%; height: 3.4%;
    transform: translateX(-50%) scale(0.6);
    border-radius: 99px;
    background: #0b1210;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}
.morph[data-state="app"] .md-notch { opacity: 1; transform: translateX(-50%) scale(1); transition-delay: 0.6s; }
.md-stand, .md-base {
    position: absolute; left: 50%;
    background: linear-gradient(180deg, #1e293b, #0b1210);
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.md-stand { top: 77.5%; width: 12%; height: 11%; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.md-base  { top: 88.2%; width: 30%; height: 2.6%; border-radius: 99px; }
.morph[data-state="soft"] .md-stand,
.morph[data-state="soft"] .md-base { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.55s; }

.md-screen {
    position: absolute; left: 0; right: 0; bottom: 0;
    top: var(--bar);
    overflow: hidden;
    container-type: size;
    transition: top 0.85s cubic-bezier(0.7, 0, 0.2, 1);
}
.scene {
    position: absolute; inset: 0;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.45s ease;
    pointer-events: none;
}
.scene.is-active { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.6s var(--ease-out); }

/* -- Scène 1 : site web -- */
.scene-web { padding: 0 5cqw; display: flex; flex-direction: column; gap: 4cqh; }
.w-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 11cqh; padding-top: 4cqh; margin: 0 -5cqw; padding-left: 5cqw; padding-right: 5cqw; flex-shrink: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid transparent; }
.scene-web.is-active .w-nav { animation: wNavLine 3.1s both; }
@keyframes wNavLine { 0%, 64% { border-bottom-color: transparent; } 72%, 100% { border-bottom-color: #e2e8f0; } }
.w-logo { width: 13cqw; height: 3.2cqh; border-radius: 99px; background: #0f172a; }
.w-links { display: flex; gap: 3cqw; }
.w-links i { width: 7cqw; height: 1.8cqh; border-radius: 99px; background: #cbd5e1; }
.w-cta { width: 12cqw; height: 5cqh; border-radius: 1.2cqw; background: #070b0a; }
.w-page { display: flex; flex-direction: column; gap: 5cqh; }
.w-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 5cqw; align-items: center; height: 48cqh; }
.w-copy { display: flex; flex-direction: column; gap: 2.4cqh; }
.w-h1 { height: 5.5cqh; width: 95%; border-radius: 1cqh; background: #0f172a; transform-origin: left center; }
.w-h1.b { width: 70%; }
.w-p { height: 1.9cqh; width: 88%; border-radius: 99px; background: #cbd5e1; }
.w-p.s { width: 62%; }
.w-btn { position: relative; margin-top: 1.6cqh; width: 42%; height: 7cqh; border-radius: 1.4cqw; background: #070b0a; }
.w-ripple { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.w-ripple::after {
    content: ''; position: absolute; left: 55%; top: 50%;
    width: 10cqw; height: 10cqw; margin: -5cqw 0 0 -5cqw;
    border-radius: 50%; background: rgba(110, 231, 183, 0.55);
    transform: scale(0); opacity: 0;
}
.w-cursor { position: absolute; left: 52%; top: 40%; width: 4.2cqw; height: 4.2cqw; min-width: 14px; min-height: 14px; opacity: 0; z-index: 3; }
.w-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.w-img { position: relative; height: 100%; border-radius: 2cqw; overflow: hidden; background: linear-gradient(135deg, #bae6fd, #99f6e4); }
.w-img svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; }
.w-sun { position: absolute; right: 18%; top: 16%; width: 9cqw; height: 9cqw; border-radius: 50%; background: rgba(255,255,255,.9); }
.w-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; height: 30cqh; }
.w-cards span { position: relative; border-radius: 2cqw; background: #f1f5f9; border: 1px solid #e2e8f0; }
.w-cards span::before { content: ''; position: absolute; left: 12%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 1cqw; background: linear-gradient(135deg, #38bdf8, #14b8a6); }
.w-cards span::after { content: ''; position: absolute; left: 12%; top: 58%; width: 70%; height: 6%; border-radius: 99px; background: #cbd5e1; box-shadow: 0 2.4cqh 0 -0.2cqh #e2e8f0; }

.scene-web.is-active .w-h1      { animation: mTypeIn 0.55s cubic-bezier(0.6, 0, 0.2, 1) both; animation-delay: 0.15s; }
.scene-web.is-active .w-h1.b    { animation-delay: 0.4s; }
.scene-web.is-active .w-p       { animation: mRise 0.5s var(--ease-out) both; animation-delay: 0.65s; }
.scene-web.is-active .w-p.s     { animation-delay: 0.75s; }
.scene-web.is-active .w-btn     { animation: mPop 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) both, wPress 3.1s linear both; animation-delay: 0.85s, 0s; }
.scene-web.is-active .w-img     { animation: mWipe 0.8s cubic-bezier(0.6, 0, 0.2, 1) both; animation-delay: 0.3s; }
.scene-web.is-active .w-sun     { animation: mPop 0.6s cubic-bezier(0.34, 1.5, 0.64, 1) both; animation-delay: 0.9s; }
.scene-web.is-active .w-cards span { animation: mRise 0.55s var(--ease-out) both; }
.scene-web.is-active .w-cards span:nth-child(1) { animation-delay: 1.0s; }
.scene-web.is-active .w-cards span:nth-child(2) { animation-delay: 1.1s; }
.scene-web.is-active .w-cards span:nth-child(3) { animation-delay: 1.2s; }
.scene-web.is-active .w-cursor  { animation: wCursor 3.1s cubic-bezier(0.45, 0, 0.2, 1) both; }
.scene-web.is-active .w-ripple::after { animation: wRipple 3.1s ease-out both; }
.scene-web.is-active .w-page    { animation: wScroll 3.1s cubic-bezier(0.6, 0, 0.2, 1) both; }
@keyframes wCursor {
    0%, 30%  { opacity: 0; transform: translate(14cqw, 26cqh); }
    36%      { opacity: 1; transform: translate(14cqw, 26cqh); }
    50%      { opacity: 1; transform: translate(0, 0); }
    53%      { transform: translate(0, 0) scale(0.82); }
    56%, 70% { opacity: 1; transform: translate(0, 0) scale(1); }
    78%, 100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes wPress { 0%, 52% { background: #070b0a; } 54%, 64% { background: #064e3b; } 72%, 100% { background: #070b0a; } }
@keyframes wRipple { 0%, 52% { transform: scale(0); opacity: 0; } 53% { transform: scale(0.2); opacity: 1; } 66%, 100% { transform: scale(3); opacity: 0; } }
@keyframes wScroll { 0%, 62% { transform: translateY(0); } 76%, 100% { transform: translateY(-22cqh); } }

/* -- Scène 2 : application mobile -- */
.scene-app { padding: 9cqh 7cqw 0; display: flex; flex-direction: column; gap: 2.6cqh; }
.a-head { display: flex; align-items: center; justify-content: space-between; }
.a-title { width: 46cqw; height: 2.8cqh; border-radius: 99px; background: #0f172a; }
.a-avatar { width: 10cqw; height: 10cqw; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #14b8a6); }
.a-carousel { height: 25cqh; border-radius: 5cqw; overflow: hidden; flex-shrink: 0; }
.a-track { display: flex; width: 300%; height: 100%; }
.a-slide { position: relative; flex: 1; }
.a-slide.s1 { background: linear-gradient(135deg, #38bdf8, #14b8a6); }
.a-slide.s2 { background: linear-gradient(135deg, #34d399, #059669); }
.a-slide.s3 { background: linear-gradient(135deg, #0f172a, #065f46); }
.a-slide::before { content: ''; position: absolute; left: 9%; bottom: 16%; width: 52%; height: 9%; border-radius: 99px; background: rgba(255,255,255,.9); box-shadow: 0 -3cqh 0 -0.3cqh rgba(255,255,255,.6); }
.a-slide::after { content: ''; position: absolute; right: 10%; top: 14%; width: 16cqw; height: 16cqw; border-radius: 50%; background: rgba(255,255,255,.35); }
.a-dots { display: flex; justify-content: center; gap: 1.6cqw; }
.a-dots i { width: 1.8cqw; height: 1.8cqw; min-width: 5px; min-height: 5px; border-radius: 99px; background: #cbd5e1; transition: width 0.3s; }
.a-list { display: flex; flex-direction: column; gap: 1.6cqh; }
.a-row { display: flex; align-items: center; gap: 4cqw; height: 9cqh; padding: 0 4cqw; border-radius: 4cqw; background: #f8fafc; border: 1px solid #e2e8f0; }
.a-ic { width: 10cqw; height: 10cqw; border-radius: 3cqw; background: #bae6fd; flex-shrink: 0; }
.a-row:nth-child(2) .a-ic { background: #a7f3d0; }
.a-row:nth-child(3) .a-ic { background: #c7d2fe; }
.a-l { display: flex; flex-direction: column; gap: 1cqh; flex: 1; }
.a-l i { height: 1.4cqh; width: 80%; border-radius: 99px; background: #94a3b8; }
.a-l i + i { width: 52%; background: #cbd5e1; }
.a-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 10cqh; border-top: 1px solid #e2e8f0; background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; }
.a-tabbar i { width: 6cqw; height: 6cqw; border-radius: 2cqw; background: #cbd5e1; }
.a-ind { position: absolute; top: 0; left: 0; width: 25%; height: 3px; background: #047857; border-radius: 0 0 3px 3px; }
.a-toast { position: absolute; left: 5cqw; right: 5cqw; top: 6cqh; height: 9cqh; display: flex; align-items: center; gap: 4cqw; padding: 0 4cqw; border-radius: 4cqw; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 24px -10px rgba(15,23,42,.35); transform: translateY(-160%); z-index: 4; }
.a-check { width: 8cqw; height: 8cqw; border-radius: 50%; background: #10b981; position: relative; flex-shrink: 0; }
.a-check::after { content: ''; position: absolute; left: 32%; top: 22%; width: 24%; height: 42%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.a-tl { display: flex; flex-direction: column; gap: 1cqh; flex: 1; }
.a-tl i { height: 1.4cqh; width: 70%; border-radius: 99px; background: #0f172a; }
.a-tl i + i { width: 90%; background: #cbd5e1; }
.a-finger { position: absolute; left: 60%; top: 32cqh; width: 13cqw; height: 13cqw; margin: -6.5cqw 0 0 -6.5cqw; border-radius: 50%; background: rgba(15, 23, 42, 0.2); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.2); opacity: 0; z-index: 5; }

.scene-app.is-active .a-head     { animation: mRise 0.5s var(--ease-out) both; animation-delay: 0.1s; }
.scene-app.is-active .a-carousel { animation: mPop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both; animation-delay: 0.2s; }
.scene-app.is-active .a-row      { animation: mSlideL 0.55s var(--ease-out) both; }
.scene-app.is-active .a-row:nth-child(1) { animation-delay: 0.4s; }
.scene-app.is-active .a-row:nth-child(2) { animation-delay: 0.5s; }
.scene-app.is-active .a-row:nth-child(3) { animation-delay: 0.6s; }
.scene-app.is-active .a-track    { animation: aSwipe 3.1s cubic-bezier(0.6, 0, 0.2, 1) both; }
.scene-app.is-active .a-finger   { animation: aFinger 3.1s cubic-bezier(0.45, 0, 0.2, 1) both; }
.scene-app.is-active .a-dots i:nth-child(1) { animation: aDot1 3.1s both; }
.scene-app.is-active .a-dots i:nth-child(2) { animation: aDot2 3.1s both; }
.scene-app.is-active .a-dots i:nth-child(3) { animation: aDot3 3.1s both; }
.scene-app.is-active .a-ind      { animation: aInd 3.1s cubic-bezier(0.6, 0, 0.2, 1) both; }
.scene-app.is-active .a-toast    { animation: aToast 3.1s both; }
@keyframes aSwipe { 0%, 24% { transform: translateX(0); } 32%, 44% { transform: translateX(-33.333%); } 52%, 100% { transform: translateX(-66.666%); } }
@keyframes aFinger {
    0%, 18%  { opacity: 0; transform: translate(0, 0) scale(1.2); }
    21%      { opacity: 1; transform: translate(0, 0) scale(0.9); }
    31%      { opacity: 1; transform: translate(-30cqw, 0) scale(0.9); }
    34%      { opacity: 0; transform: translate(-30cqw, 0); }
    38%      { opacity: 0; transform: translate(0, 0); }
    41%      { opacity: 1; transform: translate(0, 0) scale(0.9); }
    51%      { opacity: 1; transform: translate(-30cqw, 0) scale(0.9); }
    56%      { opacity: 1; transform: translate(3cqw, 63cqh) scale(1); }
    60%      { transform: translate(3cqw, 63cqh) scale(0.75); }
    63%      { opacity: 1; transform: translate(3cqw, 63cqh) scale(1); }
    70%, 100% { opacity: 0; transform: translate(3cqw, 63cqh); }
}
@keyframes aDot1 { 0%, 26% { width: 5cqw; background: #047857; } 30%, 100% { width: 1.8cqw; background: #cbd5e1; } }
@keyframes aDot2 { 0%, 26% { width: 1.8cqw; background: #cbd5e1; } 30%, 48% { width: 5cqw; background: #047857; } 52%, 100% { width: 1.8cqw; background: #cbd5e1; } }
@keyframes aDot3 { 0%, 48% { width: 1.8cqw; background: #cbd5e1; } 52%, 100% { width: 5cqw; background: #047857; } }
@keyframes aInd { 0%, 59% { transform: translateX(0); } 64%, 100% { transform: translateX(200%); } }
@keyframes aToast { 0%, 66% { transform: translateY(-160%); } 72%, 92% { transform: translateY(0); } 100% { transform: translateY(0); } }

/* -- Scène 3 : logiciel métier -- */
.scene-soft { display: grid; grid-template-columns: 17cqw 1fr; background: #f8fafc; }
.s-side { position: relative; background: #0b1210; padding: 4cqh 2.4cqw; display: flex; flex-direction: column; gap: 4cqh; }
.s-logo { width: 5cqw; height: 5cqw; border-radius: 1.2cqw; background: linear-gradient(135deg, #34d399, #047857); margin-bottom: 2cqh; }
.s-side i { position: relative; z-index: 1; height: 1.8cqh; width: 85%; border-radius: 99px; background: rgba(255, 255, 255, 0.28); }
.s-sel { display: none; }
.s-side i { box-shadow: 0 0 0 1.4cqh transparent; }
.s-main { padding: 3.5cqh 3cqw; display: flex; flex-direction: column; gap: 3cqh; min-width: 0; }
.s-top { display: flex; justify-content: space-between; align-items: center; height: 5.5cqh; flex-shrink: 0; }
.s-search { width: 38%; height: 100%; border-radius: 99px; background: #fff; border: 1px solid #e2e8f0; }
.s-user { width: 5.5cqh; height: 5.5cqh; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #14b8a6); }
.s-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; height: 15cqh; flex-shrink: 0; }
.s-kpi { position: relative; border-radius: 1.6cqw; background: #fff; border: 1px solid #e2e8f0; padding: 2.4cqh 2cqw; display: flex; flex-direction: column; gap: 1.8cqh; }
.s-kpi i { height: 1.4cqh; width: 50%; border-radius: 99px; background: #cbd5e1; }
.s-kpi b { height: 3.4cqh; width: 64%; border-radius: 0.8cqh; background: #0f172a; transform-origin: left center; }
.s-kpi em { position: absolute; right: 8%; top: 22%; width: 22%; height: 3cqh; border-radius: 99px; background: #d1fae5; }
.s-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2cqw; flex: 1; min-height: 0; }
.s-chart, .s-bars { border-radius: 1.6cqw; background: #fff; border: 1px solid #e2e8f0; padding: 3cqh 2cqw; min-height: 0; }
.s-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.s-area { fill: rgba(16, 185, 129, 0.14); opacity: 0; }
.s-line { fill: none; stroke: #047857; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.s-bars { display: flex; align-items: flex-end; gap: 6%; }
.s-bars i { flex: 1; height: var(--h); border-radius: 0.8cqw 0.8cqw 0.3cqw 0.3cqw; background: linear-gradient(180deg, #38bdf8, #0ea5e9); transform-origin: bottom; }
.s-bars i:nth-child(6) { background: linear-gradient(180deg, #34d399, #047857); }
.s-table { display: flex; flex-direction: column; gap: 1.4cqh; flex-shrink: 0; }
.s-tr { display: grid; grid-template-columns: 1.4fr 1fr 0.6fr; gap: 3cqw; align-items: center; height: 5.2cqh; padding: 0 2cqw; border-radius: 1.2cqw; background: #fff; border: 1px solid #e2e8f0; }
.s-tr span { height: 1.4cqh; border-radius: 99px; background: #cbd5e1; }
.s-tr span:first-child { background: #94a3b8; }
.s-pill { height: 2.8cqh; border-radius: 99px; background: #fde68a; }
.s-pill.ok { background: #a7f3d0; }

.scene-soft.is-active .s-side    { animation: mSlideR 0.6s var(--ease-out) both; animation-delay: 0.05s; }
.scene-soft.is-active .s-side i:nth-of-type(1) { animation: sItemA 3.1s both; }
.scene-soft.is-active .s-side i:nth-of-type(2) { animation: sItemB 3.1s both; }
.scene-soft.is-active .s-kpi     { animation: mRise 0.5s var(--ease-out) both; }
.scene-soft.is-active .s-kpi:nth-child(1) { animation-delay: 0.15s; }
.scene-soft.is-active .s-kpi:nth-child(2) { animation-delay: 0.25s; }
.scene-soft.is-active .s-kpi:nth-child(3) { animation-delay: 0.35s; }
.scene-soft.is-active .s-kpi b   { animation: mTypeIn 0.7s cubic-bezier(0.6, 0, 0.2, 1) both; animation-delay: 0.5s; }
.scene-soft.is-active .s-kpi em  { animation: mPop 0.45s cubic-bezier(0.34, 1.6, 0.64, 1) both; animation-delay: 0.9s; }
.scene-soft.is-active .s-chart, .scene-soft.is-active .s-bars { animation: mRise 0.55s var(--ease-out) both; animation-delay: 0.35s; }
.scene-soft.is-active .s-line    { animation: sDraw 1.3s cubic-bezier(0.6, 0, 0.2, 1) forwards; animation-delay: 0.7s; }
.scene-soft.is-active .s-area    { animation: sFade 0.8s ease forwards; animation-delay: 1.5s; }
.scene-soft.is-active .s-bars i  { animation: sGrow 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) both; }
.scene-soft.is-active .s-bars i:nth-child(1) { animation-delay: 0.75s; }
.scene-soft.is-active .s-bars i:nth-child(2) { animation-delay: 0.83s; }
.scene-soft.is-active .s-bars i:nth-child(3) { animation-delay: 0.91s; }
.scene-soft.is-active .s-bars i:nth-child(4) { animation-delay: 0.99s; }
.scene-soft.is-active .s-bars i:nth-child(5) { animation-delay: 1.07s; }
.scene-soft.is-active .s-bars i:nth-child(6) { animation-delay: 1.15s; }
.scene-soft.is-active .s-tr      { animation: mSlideL 0.5s var(--ease-out) both; }
.scene-soft.is-active .s-tr:nth-child(1) { animation-delay: 1.1s; }
.scene-soft.is-active .s-tr:nth-child(2) { animation-delay: 1.2s; }
.scene-soft.is-active .s-tr:nth-child(3) { animation-delay: 1.3s; }
.scene-soft.is-active .s-pill:not(.ok) { animation: sPill 3.1s both; }
@keyframes sItemA { 0%, 50% { background: #34d399; box-shadow: 0 0 0 1.2cqh rgba(16, 185, 129, 0.22); } 56%, 100% { background: rgba(255,255,255,.28); box-shadow: 0 0 0 1.2cqh transparent; } }
@keyframes sItemB { 0%, 50% { background: rgba(255,255,255,.28); box-shadow: 0 0 0 1.2cqh transparent; } 56%, 100% { background: #34d399; box-shadow: 0 0 0 1.2cqh rgba(16, 185, 129, 0.22); } }
@keyframes sDraw { to { stroke-dashoffset: 0; } }
@keyframes sFade { to { opacity: 1; } }
@keyframes sGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sPill { 0%, 62% { background: #fde68a; transform: scale(1); } 65% { transform: scale(1.25); } 68%, 100% { background: #a7f3d0; transform: scale(1); } }

/* Mouvements partagés */
@keyframes mTypeIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mRise   { from { opacity: 0; transform: translateY(3cqh); } to { opacity: 1; transform: none; } }
@keyframes mPop    { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes mWipe   { from { clip-path: inset(0 0 0 100% round 2cqw); } to { clip-path: inset(0 0 0 0 round 2cqw); } }
@keyframes mSlideL { from { opacity: 0; transform: translateX(8cqw); } to { opacity: 1; transform: none; } }
@keyframes mSlideR { from { opacity: 0; transform: translateX(-8cqw); } to { opacity: 1; transform: none; } }

/* Onglets sous l'animation */
.morph-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mt { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; text-align: left; color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: color 0.3s ease; min-width: 0; }
.mt:hover, .mt.is-current { color: var(--ink); }
.mt-label { display: inline-flex; align-items: center; gap: 6px; line-height: 1.25; }
.mt-label i { font-size: 1.1rem; flex-shrink: 0; }
.mt-bar { display: block; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.35); overflow: hidden; }
.mt-bar span { display: block; height: 100%; background: #047857; transform: scaleX(0); transform-origin: left; }
.mt.is-current .mt-bar span { animation: mtFill var(--cycle) linear forwards; }
.morph.is-static .mt.is-current .mt-bar span { animation: none; transform: scaleX(1); }
@keyframes mtFill { to { transform: scaleX(1); } }
@media (max-width: 479px) {
    .mt { font-size: 0.78rem; }
    .mt-label { flex-direction: column; align-items: flex-start; gap: 3px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
section, header { scroll-margin-top: 72px; }

.reveal { opacity: 0; }
.reveal.active {
    animation: revealIn 0.9s var(--ease-out) both;
    animation-delay: var(--reveal-delay, 0ms);
}
@keyframes revealIn {
    from { opacity: 0; translate: 0 16px; }
    to   { opacity: 1; translate: 0 0; }
}

/* ===== Comparateur avant / après ===== */
.ba {
    --pos: 50%;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    container-type: inline-size;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.35);
}
@media (min-width: 640px)  { .ba { aspect-ratio: 16 / 10; } }
@media (min-width: 1280px) { .ba { aspect-ratio: 4 / 3; } }
.ba-layer { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
    position: absolute; top: 0; bottom: 0;
    left: var(--pos);
    width: 44px; margin-left: -22px;
    z-index: 3;
    outline: none;
}
.ba-handle::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 0 14px rgba(15, 23, 42, 0.25);
}
.ba-knob {
    position: absolute; top: 50%; left: 50%;
    width: 40px; height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--noir);
    color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 0;
    font-size: 13px;
    box-shadow: 0 0 0 3px #fff, 0 8px 18px -6px rgba(7, 11, 10, 0.55);
    transition: transform 0.3s var(--ease-out), background-color 0.3s ease;
}
.ba:hover .ba-knob, .ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.08); background: var(--vert-fonce); }
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--vert); }
.ba-tag {
    position: absolute; top: 10px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px; font-weight: 700;
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    letter-spacing: 0.01em;
    z-index: 2;
}
.ba-tag-before { left: 10px; background: rgba(15, 23, 42, 0.72); color: #fff; }
.ba-tag-after  { right: 10px; background: var(--noir); color: #6ee7b7; }

/* Côté "avant" : un site des années 2000 */
.old {
    height: 100%;
    display: flex; flex-direction: column; gap: 2cqw;
    padding: 2.4cqw;
    background: #d4d0c8 repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 6px);
    font-family: "Times New Roman", Times, serif;
    color: #000;
    line-height: 1.15;
}
.old-head {
    text-align: center;
    font-weight: 700;
    font-size: 5.2cqw;
    color: #ffff00;
    text-shadow: 0.35cqw 0.35cqw 0 #ff0000;
    padding: 2.2cqw 1cqw;
    background: linear-gradient(180deg, #000080, #1084d0);
    border: 0.6cqw outset #c0c0c0;
    white-space: nowrap; overflow: hidden;
}
.old-nav { text-align: center; font-size: 3.2cqw; color: #000; }
.old-nav u { color: #0000ee; }
.old-nav u:nth-child(2) { color: #551a8b; }
.old-body {
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.4cqw;
    padding: 2.4cqw;
    background: #fff;
    border: 0.45cqw inset #c0c0c0;
}
.old-img {
    position: relative;
    border: 0.45cqw ridge #808080;
    background: #f0f0f0;
    display: flex; align-items: flex-start; gap: 1cqw;
    padding: 1.2cqw;
}
.old-broken { width: 3.4cqw; height: 3.8cqw; border: 1px solid #808080; background: linear-gradient(135deg, #fff 45%, #c00 45% 55%, #fff 55%); flex-shrink: 0; }
.old-file { font-size: 2.5cqw; color: #333; }
.old-text { display: flex; flex-direction: column; gap: 1.5cqw; min-width: 0; }
.old-text i { height: 1.4cqw; background: #222; opacity: 0.75; width: 100%; }
.old-text i.s { width: 60%; }
.old-new { font-size: 3.2cqw; font-weight: 700; color: #ff0000; animation: oldBlink 1s steps(1) infinite; }
@keyframes oldBlink { 50% { visibility: hidden; } }
.old-btn {
    align-self: flex-start;
    margin-top: auto;
    font-size: 3cqw;
    padding: 1cqw 2.2cqw;
    background: #c0c0c0;
    border: 0.5cqw outset #fff;
    font-family: Arial, sans-serif;
}
.old-foot { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font-size: 2.6cqw; }
.old-foot b { font-family: "Courier New", monospace; background: #000; color: #39ff14; padding: 0.3cqw 1cqw; letter-spacing: 0.1em; }
.old-foot em { color: #555; }

/* Côté "après" : le même site, refait */
.nw {
    height: 100%;
    display: flex; flex-direction: column; gap: 3.4cqw;
    padding: 3.4cqw 4cqw;
    background: linear-gradient(160deg, #ffffff 40%, #ecfdf5);
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
}
.nw-nav { display: flex; align-items: center; justify-content: space-between; padding-right: 15cqw; min-height: 6cqw; }
.nw-logo { font-weight: 700; font-size: 3.2cqw; color: #0f172a; letter-spacing: -0.02em; }
.nw-links { display: flex; gap: 2.6cqw; }
.nw-links i { width: 6.5cqw; height: 1.3cqw; border-radius: 99px; background: #cbd5e1; }
.nw-cta { width: 11cqw; height: 4.6cqw; border-radius: 1.2cqw; background: var(--noir); }
.nw-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; align-items: center; }
.nw-copy { display: flex; flex-direction: column; gap: 1.8cqw; }
.nw-h { font-size: 5.4cqw; font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; color: #0f172a; }
.nw-copy i { height: 1.3cqw; width: 90%; border-radius: 99px; background: #cbd5e1; }
.nw-copy i.s { width: 62%; }
.nw-btn {
    align-self: flex-start; margin-top: 1cqw;
    font-size: 2.6cqw; font-weight: 600; color: #fff;
    padding: 1.5cqw 3cqw; border-radius: 1.4cqw;
    background: radial-gradient(60% 120% at 30% 50%, rgba(4,120,87,.7), transparent), var(--noir);
}
.nw-img { position: relative; height: 100%; min-height: 0; border-radius: 2.4cqw; overflow: hidden; background: linear-gradient(135deg, #bae6fd, #99f6e4); }
.nw-img svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; }
.nw-sun { position: absolute; right: 16%; top: 14%; width: 8cqw; height: 8cqw; border-radius: 50%; background: rgba(255,255,255,.92); }
.nw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; height: 15cqw; flex-shrink: 0; }
.nw-cards span { position: relative; border-radius: 1.8cqw; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 6px 14px -10px rgba(15,23,42,.3); }
.nw-cards span::before { content: ''; position: absolute; left: 12%; top: 18%; width: 18%; aspect-ratio: 1; border-radius: 1cqw; background: linear-gradient(135deg, #38bdf8, #14b8a6); }
.nw-cards span::after { content: ''; position: absolute; left: 12%; top: 62%; width: 68%; height: 9%; border-radius: 99px; background: #cbd5e1; }

/* Bento sites web */

/* ===== Fond coloré (dégradés radiaux : léger pour le GPU, fluide sur mobile) ===== */
.bg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.orb {
    position: absolute;
    width: var(--s, 70vw); height: var(--s, 70vw);
    max-width: 900px; max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--c), transparent);
    animation: orbDrift 22s ease-in-out infinite;
    will-change: transform;
}
.o-blue    { --c: rgba(147, 197, 253, 0.75); }
.o-emerald { --c: rgba(110, 231, 183, 0.6); }
.o-teal    { --c: rgba(94, 234, 212, 0.58); }
.o-cyan    { --c: rgba(103, 232, 249, 0.55); }
.o-sky     { --c: rgba(125, 211, 252, 0.6); }
.o-tl { top: -25%; left: -20%; --s: 85vw; }
.o-br { bottom: -30%; right: -20%; --s: 85vw; animation-duration: 26s; animation-direction: reverse; }
.o-mr { top: 15%; right: -10%; --s: 60vw; animation-duration: 18s; }
.o-bl { bottom: -15%; left: 5%; --s: 55vw; animation-duration: 24s; animation-direction: reverse; }
.o-l  { top: 0; left: -30%; --s: 80vw; }
.o-r  { top: -10%; right: -30%; --s: 75vw; animation-duration: 25s; animation-direction: reverse; }
.o-l2 { bottom: -40%; left: -15%; --s: 70vw; }
.o-r2 { top: -40%; right: -10%; --s: 75vw; animation-direction: reverse; }
.o-m  { top: 20%; left: 30%; --s: 60vw; animation-duration: 20s; }
@media (max-width: 767px) {
    .orb { --s: 120vw !important; }
}
@keyframes orbDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(6%, -5%, 0) scale(1.08); }
    66%      { transform: translate3d(-4%, 4%, 0) scale(0.95); }
}

/* ===== Icônes qui se dessinent ===== */
.draw-icon {
    width: 1em; height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}
.draw-icon path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.active .draw-icon path {
    animation: iconDraw 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: calc(250ms + var(--d, 0ms) + var(--n, 0) * 140ms);
}
@keyframes iconDraw { to { stroke-dashoffset: 0; } }
.icon-tile .draw-icon { font-size: 22px; }
.soft-icon { display: inline-flex; color: var(--accent); font-size: 26px; }
.list-icon { display: inline-flex; color: var(--accent); font-size: 21px; margin-top: 2px; flex-shrink: 0; }
/* Petite relance au survol des lignes de contact */
.reveal.active.icons-drawn .draw-icon path { animation: none; stroke-dashoffset: 0; }
.reveal.active .contact-row:hover .draw-icon path { animation: iconRedraw 0.9s cubic-bezier(0.65, 0, 0.35, 1) both; animation-delay: calc(var(--n, 0) * 90ms); }
@keyframes iconRedraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ===== Téléphone animé (boucle de 10 s, comme si quelqu'un l'utilisait) ===== */
.phone-stage { background: linear-gradient(160deg, rgba(255,255,255,0.75), rgba(230,242,250,0.6)); }
@media (min-width: 768px) { .phone-stage { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.wf-float { animation: wfFloat 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.18)); }
@keyframes wfFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.wf-anim * { transform-box: fill-box; transform-origin: center; }
.wf-anim .wf-scroll, .wf-anim .wf-touch, .wf-anim .wf-toast { transform-box: view-box; transform-origin: 0 0; }
.wf-scroll    { animation: wfScroll 10s infinite; }
.wf-touch     { animation: wfTouch 10s infinite; opacity: 0; }
.wf-finger    { animation: wfPress 10s infinite; }
.wf-ripple    { animation: wfRipple 10s infinite; }
.wf-hl        { animation: wfHl 10s infinite; opacity: 0; }
.wf-cta-press { animation: wfPressCta 10s infinite; opacity: 0; }
.wf-cta-label { animation: wfLabel 10s infinite; }
.wf-spin-wrap { animation: wfSpinShow 10s infinite; opacity: 0; }
.wf-spin      { animation: wfSpin 0.8s linear infinite; }
.wf-cta-check { stroke-dasharray: 1; animation: wfCheck 10s infinite; stroke-dashoffset: 1; }
.wf-toast     { animation: wfToast 10s infinite; transform: translateY(-100px); }
.wf-toast-check { stroke-dasharray: 1; animation: wfToastCheck 10s infinite; stroke-dashoffset: 1; }

@keyframes wfScroll {
    0%, 8%   { transform: translateY(0); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
    20%, 82% { transform: translateY(-170px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
    93%, 100% { transform: translateY(0); }
}
@keyframes wfTouch {
    0%, 5%  { transform: translate(150px, 330px); opacity: 0; }
    7%      { transform: translate(150px, 330px); opacity: 1; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
    20%     { transform: translate(150px, 168px); opacity: 1; }
    23%     { transform: translate(150px, 168px); opacity: 0; }
    27%     { transform: translate(80px, 141px); opacity: 0; }
    29%, 36% { transform: translate(80px, 141px); opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
    41%, 50% { transform: translate(130px, 416px); opacity: 1; }
    53%, 100% { transform: translate(130px, 416px); opacity: 0; }
}
@keyframes wfPress {
    0%, 6%   { transform: scale(1.15); }
    8%, 19%  { transform: scale(0.9); }
    22%, 30% { transform: scale(1); }
    32%      { transform: scale(0.78); }
    34%, 43% { transform: scale(1); }
    45%      { transform: scale(0.78); }
    47%, 100% { transform: scale(1); }
}
@keyframes wfRipple {
    0%, 31%  { transform: scale(0.5); opacity: 0; }
    32%      { transform: scale(0.7); opacity: 0.45; }
    38%      { transform: scale(2.3); opacity: 0; }
    44%      { transform: scale(0.5); opacity: 0; }
    45%      { transform: scale(0.7); opacity: 0.45; }
    51%, 100% { transform: scale(2.3); opacity: 0; }
}
@keyframes wfHl       { 0%, 31% { opacity: 0; } 34%, 80% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes wfPressCta { 0%, 43% { opacity: 0; } 45%, 55% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes wfLabel    { 0%, 45% { opacity: 1; } 46%, 82% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes wfSpinShow { 0%, 46% { opacity: 0; } 47%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes wfSpin     { to { transform: rotate(360deg); } }
@keyframes wfCheck    { 0%, 56% { stroke-dashoffset: 1; opacity: 1; } 61%, 80% { stroke-dashoffset: 0; opacity: 1; } 84%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes wfToast {
    0%, 57%  { transform: translateY(-100px); animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
    62%, 77% { transform: translateY(0); animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0); }
    82%, 100% { transform: translateY(-100px); }
}
@keyframes wfToastCheck { 0%, 60% { stroke-dashoffset: 1; } 65%, 100% { stroke-dashoffset: 0; } }

/* ===== Objets 3D décoratifs (comblent les espaces vides, desktop uniquement) ===== */
.obj3d-scene { perspective: 800px; pointer-events: none; }
.obj-float     { transform-style: preserve-3d; animation: float3d 8s ease-in-out infinite; }
.obj-float-alt { transform-style: preserve-3d; animation: float3dAlt 9s ease-in-out infinite; }
@keyframes float3d {
    0%, 100% { transform: rotateX(-15deg) rotateY(25deg) translateY(0); }
    25%      { transform: rotateX(-10deg) rotateY(35deg) translateY(-14px); }
    50%      { transform: rotateX(-20deg) rotateY(20deg) translateY(-6px); }
    75%      { transform: rotateX(-12deg) rotateY(30deg) translateY(-18px); }
}
@keyframes float3dAlt {
    0%, 100% { transform: rotateX(10deg) rotateY(-20deg) translateY(0); }
    25%      { transform: rotateX(15deg) rotateY(-30deg) translateY(-12px); }
    50%      { transform: rotateX(5deg) rotateY(-15deg) translateY(-20px); }
    75%      { transform: rotateX(12deg) rotateY(-25deg) translateY(-8px); }
}

/* Écran */
.monitor-3d { width: 130px; height: 95px; position: relative; transform-style: preserve-3d; }
.monitor-face { position: absolute; backface-visibility: hidden; }
.monitor-front {
    width: 130px; height: 90px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 2px solid #334155; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.25);
}
.monitor-screen {
    width: 112px; height: 72px; border-radius: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 50%, #0ea5e9 100%);
    background-size: 200% 200%;
    animation: screenGlow 4s ease-in-out infinite;
    position: relative; overflow: hidden;
}
.monitor-screen::before {
    content: '</>';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 20px; font-weight: 800; color: rgba(255, 255, 255, 0.6);
}
.monitor-screen::after {
    content: ''; position: absolute; inset: 4px; border-radius: 2px;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.07) 3px, rgba(255,255,255,0.07) 4px);
}
@keyframes screenGlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.monitor-side {
    width: 18px; height: 90px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid #334155; border-radius: 0 6px 6px 0;
    transform: rotateY(90deg) translateZ(65px) translateX(-9px);
}
.monitor-stand {
    width: 28px; height: 22px; margin: 0 auto; position: relative; top: -2px;
    background: linear-gradient(180deg, #334155, #1e293b);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.monitor-base { width: 52px; height: 6px; margin: 0 auto; border-radius: 3px; background: linear-gradient(90deg, #334155, #475569, #334155); }

/* Téléphone */
.phone-3d { width: 76px; height: 148px; position: relative; transform-style: preserve-3d; }
.p-front {
    position: absolute; inset: 0; padding: 5px;
    border-radius: 16px; border: 2px solid #334155;
    background: linear-gradient(160deg, #1e293b, #0f172a);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.45);
}
.p-side {
    position: absolute; top: 6px; bottom: 6px; right: 0; width: 10px;
    background: #0f172a; border-radius: 3px;
    transform-origin: right center; transform: rotateY(90deg);
}
.p-screen {
    position: relative; width: 100%; height: 100%; overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(160deg, #38bdf8, #14b8a6);
    display: flex; flex-direction: column; gap: 6px; padding: 16px 8px 8px;
}
.p-notch { position: absolute; top: 5px; left: 50%; width: 22px; height: 5px; margin-left: -11px; border-radius: 3px; background: #0f172a; }
.p-card { height: 40px; border-radius: 7px; background: rgba(255, 255, 255, 0.85); animation: pPulse 3.2s ease-in-out infinite; }
.p-line { height: 6px; width: 80%; border-radius: 3px; background: rgba(255, 255, 255, 0.75); }
.p-line.short { width: 55%; }
.p-btn { margin-top: auto; height: 14px; border-radius: 5px; background: #0f172a; opacity: 0.85; }
@keyframes pPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.55; } }

/* Couches (logiciels) */
.stack-3d {
    width: 120px; height: 120px; position: relative;
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(-40deg);
}
.ly { position: absolute; inset: 0; border-radius: 18px; transition: transform 0.6s; }
.ly1 { background: rgba(14, 165, 233, 0.25); border: 1px solid rgba(14, 165, 233, 0.45); animation: lyBreath1 5s ease-in-out infinite; }
.ly2 { background: rgba(20, 184, 166, 0.35); border: 1px solid rgba(20, 184, 166, 0.55); animation: lyBreath2 5s ease-in-out infinite; }
.ly3 {
    background: linear-gradient(135deg, #38bdf8, #14b8a6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
    display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px;
    animation: lyBreath3 5s ease-in-out infinite;
}
.ly3 span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.8); }
.ly3 span:nth-child(2) { width: 70%; }
.ly3 span:nth-child(3) { width: 45%; }
@keyframes lyBreath1 { 0%, 100% { transform: translateZ(0); } 50% { transform: translateZ(-6px); } }
@keyframes lyBreath2 { 0%, 100% { transform: translateZ(24px); } 50% { transform: translateZ(30px); } }
@keyframes lyBreath3 { 0%, 100% { transform: translateZ(48px); } 50% { transform: translateZ(64px); } }

/* Enveloppe (contact) */
.env-3d { width: 130px; height: 88px; position: relative; transform-style: preserve-3d; }
.env-body {
    position: absolute; inset: 0; border-radius: 10px;
    transform: translateZ(2px);
    background: linear-gradient(160deg, #ffffff, #e0f2fe);
    border: 1px solid #bae6fd;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.35);
}
.env-body::after {
    content: ''; position: absolute; inset: 0; border-radius: 10px;
    background: linear-gradient(to top right, transparent 49.5%, rgba(14,165,233,0.25) 50%, transparent 51%),
                linear-gradient(to top left, transparent 49.5%, rgba(14,165,233,0.25) 50%, transparent 51%);
}
.env-flap {
    position: absolute; left: 0; right: 0; top: 0; height: 56px;
    background: linear-gradient(180deg, #38bdf8, #14b8a6);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-radius: 10px 10px 0 0;
    transform-origin: top center;
    transform: translateZ(3px);
    animation: envFlap 6s ease-in-out infinite;
}
.env-letter {
    position: absolute; left: 12px; right: 12px; top: 6px; height: 70px;
    border-radius: 6px; background: #fff; border: 1px solid #e2e8f0;
    display: flex; flex-direction: column; gap: 6px; padding: 10px;
    transform: translateZ(1px);
    animation: envLetter 6s ease-in-out infinite;
}
.env-letter span { height: 5px; border-radius: 3px; background: #cbd5e1; }
.env-letter span:nth-child(1) { width: 60%; background: #047857; opacity: 0.75; }
.env-letter span:nth-child(3) { width: 75%; }
@keyframes envFlap   { 0%, 20%, 85%, 100% { transform: translateZ(3px) rotateX(0deg); } 35%, 72% { transform: translateZ(-2px) rotateX(-165deg); } }
@keyframes envLetter { 0%, 32%, 82%, 100% { transform: translateZ(1px) translateY(0); } 46%, 70% { transform: translateZ(1px) translateY(-40px); } }

/* Liste logiciels */
.soft-grid > div { border-color: var(--line); }

/* Méthode */
/* Mobile / tablette : frise verticale qui suit le scroll */
.steps { position: relative; display: grid; gap: 6px; }
.steps::before, .steps::after {
    content: '';
    position: absolute;
    left: 19px; top: 34px;
    width: 2px;
    border-radius: 2px;
}
.steps::before { bottom: 34px; background: var(--line); }
.steps::after {
    height: var(--progress, 0px);
    background: linear-gradient(180deg, var(--vert), var(--noir));
    transition: height 0.45s var(--ease-out);
}
.step {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 10px 0;
    opacity: 0.45;
    transition: opacity 0.45s ease;
}
.step.is-current, .step.is-done { opacity: 1; }
.step.is-done:not(.is-current) .step-body { opacity: 0.7; }
.step-body {
    padding: 8px 14px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: background-color 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease, transform 0.6s var(--ease-out), opacity 0.45s ease;
}
.step.is-current .step-body {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 34px -22px rgba(7, 11, 10, 0.45);
    transform: translateX(4px);
}
.step-num {
    position: relative; z-index: 1;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.5s ease, transform 0.5s var(--ease-out);
}
.step.is-done .step-num { background: var(--noir); border-color: var(--noir); color: #fff; }
.step.is-current .step-num {
    background: var(--noir); border-color: var(--vert); color: #6ee7b7;
    box-shadow: 0 0 0 6px rgba(4, 120, 87, 0.16);
    transform: scale(1.08);
}
.step-link { display: none; }

/* Desktop : pointillés éphémères qui relient les étapes, l'une après l'autre */
@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .steps::before, .steps::after { display: none; }
    .step { display: block; padding: 0; opacity: 1; }
    .step-body { padding: 0; margin-top: 16px; padding-right: 16px; background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; }
    .step-num, .step.is-current .step-num, .step.is-done .step-num {
        background: var(--noir); border-color: var(--noir); color: #fff;
        box-shadow: none; transform: none;
        animation: stepPulse 6s infinite;
        animation-delay: var(--pd, 0s);
    }
    .step-link {
        display: block;
        position: absolute;
        top: 19px; left: 52px; right: -12px;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--vert) 0 6px, transparent 6px 12px);
        background-size: 12px 2px;
        clip-path: inset(0 100% 0 0);
        opacity: 0;
        animation: stepLink 6s infinite, dotsMarch 0.7s linear infinite;
        animation-delay: var(--ld, 0s), 0s;
    }
}
@keyframes stepLink {
    0%       { clip-path: inset(0 100% 0 0); opacity: 1; }
    20%      { clip-path: inset(0 0 0 0); opacity: 1; }
    32%      { clip-path: inset(0 0 0 0); opacity: 1; }
    44%      { clip-path: inset(0 0 0 0); opacity: 0; }
    45%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}
@keyframes dotsMarch { to { background-position: 12px 0; } }
@keyframes stepPulse {
    0%        { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.55); transform: scale(1); background: var(--noir); color: #fff; }
    4%        { transform: scale(1.12); background: var(--vert-fonce); color: #6ee7b7; }
    14%       { box-shadow: 0 0 0 14px rgba(4, 120, 87, 0); transform: scale(1); background: var(--noir); color: #fff; }
    100%      { box-shadow: 0 0 0 14px rgba(4, 120, 87, 0); transform: scale(1); background: var(--noir); color: #fff; }
}

/* Portfolio */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
    #portfolio-scroll { cursor: grab; }
    #portfolio-scroll.is-dragging { cursor: grabbing; }
    #portfolio-scroll.is-dragging a { pointer-events: none; }
}
#portfolio-scroll {
    --gutter: 20px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scroll-padding-left: var(--gutter);
}
@media (min-width: 768px) {
    #portfolio-scroll { --gutter: max(32px, calc((100% - 1200px) / 2 + 32px)); padding-right: 32px; }
}
#portfolio-scroll.no-snap { scroll-snap-type: none; }
.portfolio-card {
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: 0 18px 40px -24px rgba(7, 11, 10, 0.55);
    transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.5s var(--ease-out);
}
.portfolio-card:hover {
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 26px 50px -24px rgba(4, 120, 87, 0.45);
    transform: translateY(-4px);
}
.portfolio-card .link-inline { color: #6ee7b7; }
.portfolio-card img { -webkit-user-drag: none; user-select: none; transition: transform 1s var(--ease-out), opacity 0.6s ease; }
.portfolio-card:hover img { transform: scale(1.03); }
.img-fade { opacity: 0; }
.img-fade.loaded { opacity: 1; }
#portfolio-progress {
    height: 100%;
    border-radius: 3px;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(0.2);
    transition: transform 0.15s linear;
}

/* Contact */
.contact-row {
    transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.45s var(--ease-out), background-color 0.3s ease;
}
.contact-row:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 14px 30px -22px rgba(15, 23, 42, 0.3);
}
.contact-row .chev { transition: transform 0.4s var(--ease-out), color 0.25s ease; }
.contact-row:hover .chev { transform: translateX(4px); color: var(--accent); }
.contact-row.featured { border-color: var(--vert); box-shadow: 0 0 0 1px var(--vert); }

/* Modales */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0s linear 0s;
}
.modal-content {
    transform: scale(0.97) translateY(12px);
    transition: transform 0.5s var(--ease-out);
}
.modal-overlay.open .modal-content { transform: none; }
@media (max-width: 639px) {
    #contact-modal .modal-content { transform: translateY(100%); }
    #contact-modal.open .modal-content { transform: none; }
}
.close-btn i { display: inline-block; transition: transform 0.4s var(--ease-out); }
.close-btn:hover i { transform: rotate(90deg); }

.field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--r-ctl);
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.field::placeholder { color: #94a3b8; }
.field:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.12); }

.choice {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--r-ctl);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 500;
    color: var(--ink);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.choice:hover { border-color: #cbd5e1; }
.peer:checked + .choice { border-color: var(--vert); background: rgba(4, 120, 87, 0.07); box-shadow: 0 0 0 1px var(--vert); }
.peer:focus-visible + .choice { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice i { color: var(--accent); font-size: 1.2rem; }

.honeypot-field { display: none; }
.grecaptcha-badge { visibility: hidden; }

/* Smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
html.scroll-locked { overflow: hidden; }

.footer-link { position: relative; transition: color 0.25s ease; }
.footer-link:hover { color: var(--ink); }

/* Pause des animations continues hors écran */
.anim-paused .old-new, .anim-paused .wf-float, .anim-paused .morph *, .anim-paused .morph *::after,
.anim-paused .orb, .anim-paused .wf-anim *, .anim-paused .obj-float, .anim-paused .obj-float-alt,
.anim-paused .obj-float *, .anim-paused .obj-float-alt *,
.anim-paused .dark-sheen::before, .anim-paused .step-num, .anim-paused .step-link { animation-play-state: paused; }

/* Hero : boutons qui passent à la ligne au lieu de déborder */
.hero-ctas > * { flex: 0 0 auto; }
@media (max-width: 479px) { .hero-ctas > * { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; }
    .draw-icon path { stroke-dashoffset: 0 !important; }
    .step-link { display: none !important; }
    .wf-touch, .wf-hl, .wf-spin-wrap, .wf-cta-press { opacity: 0 !important; }
}
