/* Nexus Digital — agence marketing (maquette CroisierWeb) */
:root {
    --bg: #0b0b10; --bg2: #121219; --card: #17171f; --line: rgba(255, 255, 255, .09);
    --fg: #f4f4f6; --muted: #9a9aa8; --lime: #c6f432; --violet: #8b7bff; --pink: #ff6b9a;
    --display: "Bricolage", system-ui, sans-serif; --body: "Instrument", system-ui, sans-serif;
    --mk-accent: #c6f432; --mk-accent-fg: #0b0b10; --mk-surface: #17171f; --mk-fg: #f4f4f6; --mk-radius: 16px; --mk-font: "Instrument", system-ui, sans-serif;
    --mk-back: #c6f432; --mk-back-fg: #0b0b10;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.05rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 .98rem var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { background: #d8ff52; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 11, 16, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand em { color: var(--lime); font-style: normal; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 200deg, var(--lime), var(--violet), var(--pink), var(--lime)); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 4px; background: var(--bg); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a:not(.btn) { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s, background .2s; }
.main-nav > a:not(.btn):hover, .main-nav > a[aria-current="page"]:not(.btn) { color: var(--fg); background: rgba(255, 255, 255, .06); }
.nav-cta { margin-left: 10px; min-height: 42px; padding: 0 20px; }
.lang-switcher { display: flex; gap: 2px; margin-left: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switcher a { padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switcher a.active { background: var(--fg); color: var(--bg); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--fg); transition: transform .3s; }
.nav-toggle span:first-child { top: 19px; } .nav-toggle span:last-child { top: 25px; }
.mk-nav-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.mk-nav-open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(50px, 8vw, 100px) 0 0; overflow: hidden; }
.hero-glow { position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle at 60% 40%, rgba(139, 123, 255, .35), transparent 55%), radial-gradient(circle at 30% 70%, rgba(198, 244, 50, .18), transparent 50%); filter: blur(30px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--muted); background: rgba(255, 255, 255, .03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 244, 50, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(198, 244, 50, 0); } }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; margin: 22px 0 22px; }
.hl { color: var(--bg); background: var(--lime); padding: 0 .12em; border-radius: .12em; display: inline-block; transform: rotate(-1.5deg); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }

.dash { background: linear-gradient(180deg, #1b1b25, #121219); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 40px 90px -30px rgba(139, 123, 255, .45); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); }
.dash-top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.dash-top span { width: 10px; height: 10px; border-radius: 50%; background: #2c2c38; }
.dash-top em { margin-left: auto; font: 500 .78rem ui-monospace, monospace; color: var(--muted); font-style: normal; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpis div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.dash-kpis small { display: block; color: var(--muted); font-size: .75rem; }
.dash-kpis b { font: 700 1.35rem var(--display); color: var(--lime); }
.dash-chart { width: 100%; height: 140px; }
.dash-line { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2.4s .4s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 12px; }
.dash-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--violet), rgba(139, 123, 255, .25)); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.dash-bars i:nth-child(n+7) { background: linear-gradient(var(--lime), rgba(198, 244, 50, .25)); }
@keyframes grow { from { transform: scaleY(0); } }

.marquee { margin-top: clamp(50px, 7vw, 90px); border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font: 700 1.35rem var(--display); color: #4b4b58; white-space: nowrap; letter-spacing: -.02em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Stats */
.stats { padding: clamp(50px, 7vw, 80px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding-left: 20px; border-left: 2px solid var(--lime); }
.stat-n { font: 800 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; margin-bottom: 8px; }
.stat-n em { font-style: normal; color: var(--lime); font-size: .55em; margin-left: 2px; }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 14px; }
.eyebrow { font: 500 .82rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }

/* Services */
.srv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.srv-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; min-height: 320px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .35s, border-color .35s, background .35s; overflow: hidden; }
.srv-card::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 244, 50, .22), transparent 70%); opacity: 0; transition: opacity .4s; }
.srv-card:hover { transform: translateY(-6px); border-color: rgba(198, 244, 50, .5); }
.srv-card:hover::before { opacity: 1; }
.srv-num { font: 500 .8rem ui-monospace, monospace; color: var(--muted); }
.srv-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 22px 0 auto; border-radius: 14px; background: rgba(198, 244, 50, .1); color: var(--lime); }
.srv-icon svg { width: 26px; height: 26px; }
.srv-card h3 { font-size: 1.4rem; margin-top: 40px; }
.srv-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.srv-more { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, color .3s, transform .3s; }
.srv-card:hover .srv-more { background: var(--lime); color: var(--bg); transform: rotate(45deg); }

.srv-list { display: grid; gap: 0; }
.srv-row { display: grid; grid-template-columns: 60px 64px 1fr minmax(220px, .6fr); gap: 28px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.srv-row:last-child { border-bottom: 1px solid var(--line); }
.srv-row .srv-icon { margin: 0; }
.srv-row h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.srv-row p { color: var(--muted); max-width: 520px; margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; }

/* Cas clients */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .35s; }
.case-card:hover { transform: translateY(-6px); }
.case-card[hidden] { display: none; }
.case-visual { position: relative; height: 200px; overflow: hidden; color: rgba(255, 255, 255, .85); }
.case-visual svg { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 90px; }
.case-shape { position: absolute; width: 180px; height: 180px; right: -30px; top: -40px; border-radius: 40% 60% 55% 45%; background: rgba(255, 255, 255, .16); animation: morph 12s ease-in-out infinite alternate; }
@keyframes morph { to { border-radius: 60% 40% 45% 55%; transform: rotate(40deg); } }
.c0 .case-visual { background: linear-gradient(135deg, #8b7bff, #4a3bd6); }
.c1 .case-visual { background: linear-gradient(135deg, #2dd4bf, #0e7490); }
.c2 .case-visual { background: linear-gradient(135deg, #c6f432, #6b8f0d); color: rgba(11, 11, 16, .8); }
.c3 .case-visual { background: linear-gradient(135deg, #ff6b9a, #b02a5b); }
.c4 .case-visual { background: linear-gradient(135deg, #fbbf24, #c2410c); }
.c5 .case-visual { background: linear-gradient(135deg, #38bdf8, #1e3a8a); }
.case-body { padding: 24px; }
.case-tag { font: 500 .78rem ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.case-body h3 { font-size: 1.4rem; }
.case-metric { margin: 0; color: var(--muted); }
.case-metric strong { display: block; font: 800 2.6rem/1 var(--display); color: var(--lime); letter-spacing: -.04em; margin-bottom: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 .92rem var(--body); cursor: pointer; transition: background .2s, color .2s; }
.filter.active { background: var(--lime); color: var(--bg); border-color: var(--lime); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.process li { position: relative; padding: 28px 24px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.process li span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); font: 700 .9rem var(--display); margin-bottom: 30px; }
.process li:last-child span { background: var(--lime); }
.process h3 { font-size: 1.3rem; }
.process p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; display: flex; flex-direction: column; padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.stars { color: var(--lime); letter-spacing: 3px; margin-bottom: 16px; }
.quote blockquote { margin: 0 0 26px; font-size: 1.1rem; line-height: 1.55; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; }
.quote figcaption small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 700 .9rem var(--display); color: var(--bg); flex: none; }
.a0 { background: var(--lime); } .a1 { background: var(--violet); } .a2 { background: var(--pink); } .a3 { background: #2dd4bf; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.posts.two { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.post { display: block; text-decoration: none; }
.post-visual { display: block; aspect-ratio: 16 / 10; border-radius: 18px; margin-bottom: 18px; position: relative; overflow: hidden; transition: transform .4s; }
.post:hover .post-visual { transform: scale(.98); }
.post-visual::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 40px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 40px); }
.p0 { background: radial-gradient(circle at 30% 30%, #c6f432, transparent 45%), linear-gradient(135deg, #2b2b3a, #121219); }
.p1 { background: radial-gradient(circle at 70% 40%, #8b7bff, transparent 50%), linear-gradient(135deg, #1e1b4b, #0b0b10); }
.p2 { background: radial-gradient(circle at 40% 70%, #ff6b9a, transparent 50%), linear-gradient(135deg, #3b0a24, #0b0b10); }
.post-meta { font: 500 .78rem ui-monospace, monospace; color: var(--lime); text-transform: uppercase; letter-spacing: .05em; }
.post h3 { font-size: 1.35rem; margin-top: 8px; }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.post-feature .post-visual { margin: 0; aspect-ratio: 16 / 11; }
.post-feature h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-top: 10px; }
.link { color: var(--lime); font-weight: 600; }
.fictif { margin-top: 40px; font-size: .86rem; color: var(--muted); }

/* Page hero */
.page-hero { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(30px, 5vw, 60px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -200px; top: -300px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(139, 123, 255, .28), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; max-width: 900px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.plan.featured { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.plan.featured .muted { color: rgba(11, 11, 16, .7); }
.plan.featured .btn-lime { background: var(--bg); color: var(--lime); }
.plan h3 { font-size: 1.5rem; }
.plan-price { font: 700 1.2rem var(--display); }
.plan .btn { margin-top: auto; }
.plan .muted { margin-bottom: 28px; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.about-text { font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--display); letter-spacing: -.02em; margin: 0; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value h2 { font-size: 1.7rem; margin-top: 14px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member-ph { position: relative; display: grid; place-items: end start; aspect-ratio: 4 / 5; border-radius: 20px; padding: 18px; margin-bottom: 16px; overflow: hidden; }
.member-ph::before { content: ""; position: absolute; left: 50%; top: 22%; width: 42%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(11, 11, 16, .22); box-shadow: 0 120px 0 40px rgba(11, 11, 16, .22); }
.member-ph span { position: relative; font: 800 2rem var(--display); color: var(--bg); }
.member h3 { font-size: 1.2rem; margin-bottom: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: block; margin-bottom: 18px; }
.f > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.f input, .f select, .f textarea, .nl-row input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 1rem; transition: border-color .2s; }
.f input:focus, .f select:focus, .f textarea:focus, .nl-row input:focus { outline: none; border-color: var(--lime); }
.f textarea { resize: vertical; }
.need { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.need legend { font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.need label { cursor: pointer; }
.need input { position: absolute; opacity: 0; }
.need span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; transition: background .2s, color .2s, border-color .2s; }
.need input:checked + span { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.need input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.contact-side { display: grid; gap: 16px; }
.side-card { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.side-card.lime { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.side-card.lime .stat-n em { color: var(--bg); }
.side-card a { text-decoration: none; }
.side-card p:last-child { margin: 0; }
.mk-err { color: #ff8a8a; }
.mk-has-err input, .mk-has-err textarea { border-color: #ff8a8a !important; }
.mk-ok { background: rgba(198, 244, 50, .12); color: var(--lime); border-color: rgba(198, 244, 50, .4); }
.mk-ko { background: rgba(255, 107, 107, .12); color: #ff9b9b; border-color: rgba(255, 107, 107, .35); }

/* Pied de page */
.site-footer { padding: clamp(70px, 9vw, 110px) 0 30px; border-top: 1px solid var(--line); }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-big { font: 800 clamp(2.2rem, 6vw, 4.8rem)/1 var(--display); letter-spacing: -.04em; max-width: 800px; margin: 0; }
.newsletter { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 50px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.nl-row { display: flex; gap: 10px; }
.nl-row .btn { flex: none; }
.newsletter .mk-consent { margin: 12px 0 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 50px 0; }
.footer-grid .brand { margin-bottom: 16px; }
.footer-grid nav { display: grid; gap: 6px; align-content: start; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--lime); }
.footer-h { font: 500 .78rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Page légale */
.mk-legal a { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
    .marquee-track, .case-shape, .dot, .dash-bars i { animation: none; }
    .dash-line { animation: none; stroke-dashoffset: 0; }
}
