/* ============ Sitecomm — thème sombre néon ============ */
:root {
  --bg: #07070f;
  --bg-2: #0b0b18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceaf6;
  --muted: #9a96b8;
  --violet: #a855f7;
  --pink: #ec4899;
  --blue: #38bdf8;
  --green: #34d399;
  --grad: linear-gradient(100deg, var(--violet), var(--pink));
  --grad-blue: linear-gradient(100deg, var(--blue), var(--violet));
  --radius: 16px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a45; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-narrow { width: min(860px, 92vw); }

/* ---- fond animé ---- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.aurora-1 { width: 640px; height: 640px; background: #6d28d9; top: -220px; left: -140px; }
.aurora-2 { width: 520px; height: 520px; background: #be185d; top: 30%; right: -180px; animation-delay: -7s; }
.aurora-3 { width: 460px; height: 460px; background: #0369a1; bottom: -180px; left: 30%; animation-delay: -14s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, -50px) scale(1.15); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

/* ---- texte dégradé ---- */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-blue { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(7, 7, 15, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand-mark { font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.3rem; }
.brand-dot { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ---- boutons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 26px rgba(168, 85, 247, .35); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(236, 72, 153, .45); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---- hero ---- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); } 50% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
.hero-title { font-size: clamp(3rem, 7.5vw, 5.4rem); line-height: 1.03; font-weight: 700; letter-spacing: -.02em; }
.hero-title span { display: block; }
.hero-sub { margin: 26px 0 34px; font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 48px; }
.hero-stats b { display: block; font-size: 1.7rem; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* terminal */
.hero-visual { position: relative; }
.terminal { background: rgba(13, 13, 26, .92); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(168,85,247,.12); overflow: hidden; transition: transform .3s ease; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 10px; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: .86rem; line-height: 1.75; color: #c8c4e8; min-height: 300px; white-space: pre-wrap; }
.terminal-body .c-green { color: var(--green); }
.terminal-body .c-violet { color: var(--violet); }
.terminal-body .c-blue { color: var(--blue); }
.terminal-body .cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--green); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-chip { position: absolute; padding: 8px 14px; border-radius: 12px; background: rgba(20,20,38,.9); border: 1px solid var(--border); font-size: .82rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: floaty 5s ease-in-out infinite; }
.chip-1 { top: -18px; right: 8%; color: var(--green); }
.chip-2 { bottom: 14%; left: -26px; color: var(--blue); animation-delay: -1.8s; }
.chip-3 { top: 38%; right: -20px; color: var(--pink); animation-delay: -3.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- marquee ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); padding: 16px 0; }
.marquee-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: scroll 36s linear infinite; font-size: .88rem; color: var(--muted); align-items: center; }
.marquee-track em { color: var(--violet); font-style: normal; font-size: .6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- sections ---- */
.section { padding: 110px 0; }
.page-top { padding-top: 160px; }
.kicker { font-family: var(--mono); color: var(--violet); font-size: .9rem; margin-bottom: 14px; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---- cards services ---- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, border-color .25s, background .25s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.4); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 1.9rem; margin-bottom: 16px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; list-style: none; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num { font-size: 2rem; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.steps h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ---- projets ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.45); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.project-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(190,24,93,.2)); color: rgba(255,255,255,.5); }
.badge-featured { position: absolute; top: 12px; left: 12px; background: rgba(7,7,15,.8); backdrop-filter: blur(6px); border: 1px solid rgba(236,72,153,.5); color: var(--pink); padding: 4px 12px; border-radius: 999px; font-size: .75rem; }
.project-info { padding: 20px 22px 24px; }
.project-cat { color: var(--blue); font-size: .76rem; }
.project-info h3 { font-size: 1.15rem; margin: 6px 0; }
.project-info p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,.03); }

/* filtres */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.filter { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .9rem; transition: .2s; }
.filter:hover { color: var(--text); border-color: rgba(168,85,247,.5); }
.filter.on { background: var(--grad); color: #fff; border-color: transparent; }
.empty-state { padding: 80px 0; text-align: center; color: var(--muted); font-size: 1.05rem; }

/* page projet */
.back-link { display: inline-block; color: var(--muted); margin-bottom: 24px; transition: color .2s; }
.back-link:hover { color: var(--text); }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 24px 0; }
.project-links { display: flex; gap: 12px; }
.project-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 26px 0; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.project-desc { color: #c9c5e2; font-size: 1.06rem; margin: 30px 0; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0; }
.project-gallery figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact-details { margin-top: 30px; display: grid; gap: 10px; color: var(--muted); }
.contact-details a { color: var(--blue); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 38px; backdrop-filter: blur(8px); }
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; color: var(--text); font-family: var(--font); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
.hp { position: absolute; left: -9999px; }
.form-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; padding: 12px 16px; border-radius: 12px; font-size: .92rem; }
.form-success { text-align: center; padding: 40px 10px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.form-success h2 { margin-bottom: 8px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }

/* ---- CTA ---- */
.cta-section { padding-top: 40px; }
.cta-box { text-align: center; background: linear-gradient(140deg, rgba(109,40,217,.18), rgba(190,24,93,.14) 50%, rgba(3,105,161,.16)); border: 1px solid rgba(168,85,247,.3); border-radius: 24px; padding: 70px 30px; margin-top: 30px; }
.cta-box h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin-bottom: 30px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.25); margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-tag { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 26em; }
.footer-muted { color: var(--muted); font-size: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer-bottom .mono { color: #55516e; }

/* ---- 404 ---- */
.center-page { text-align: center; padding: 60px 0; }
.center-page .btn { margin-top: 26px; }
.glitch { font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }

/* ---- legal ---- */
.legal h2 { margin: 30px 0 10px; font-size: 1.2rem; }
.legal p { color: var(--muted); }
.legal a { color: var(--blue); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 0; background: rgba(7,7,15,.97); flex-direction: column; justify-content: center; font-size: 1.3rem; gap: 34px; transform: translateY(-100%); transition: transform .35s; }
  .nav-links.open { transform: none; }
  .nav-burger { display: flex; z-index: 110; }
  .cards-3, .steps, .projects-grid, .project-gallery { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
