:root {
  --brand-text: #0F1634;
  --brand-accent-start: #8c4bff;
  --brand-accent-end: #2bb0ff;
  --brand-muted: #4b5563;
  --surface: #ffffff;
  --background: #f6f8ff;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(15, 22, 52, 0.08);
  --shadow-soft: 0 25px 50px rgba(15, 22, 52, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

/* Ensure icon font swaps quickly to avoid FOIT on mobile */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 12% 18%, rgba(140, 75, 255, 0.08), transparent 32%), radial-gradient(circle at 85% 10%, rgba(43, 176, 255, 0.08), transparent 32%), #f6f8ff;
  color: var(--brand-text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eef1fb;
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.5px; font-size: 20px; color: var(--brand-text); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
/* Reserve space while header/footer are loaded via include to limit CLS */
[data-include="header"] { display: block; min-height: 82px; }
[data-include="footer"] { display: block; min-height: 260px; }

.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 600; }
.nav-links a { padding: 12px 16px; border-radius: 10px; color: var(--brand-text); transition: color 0.2s, background 0.2s; display: block; text-align: center; }
.nav-links a:hover { color: var(--border); }
.nav-links a.active { color: var(--brand-accent-start); border-bottom: 2px solid var(--brand-accent-start); border-radius: 0; padding-bottom: 8px; }

.btn { display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer; border-radius: 999px; padding: 14px 24px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-accent-start), var(--brand-accent-end)); box-shadow: 0 18px 32px rgba(43, 176, 255, 0.35); transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 40px rgba(15, 22, 52, 0.18); }
.btn-outline { background: transparent; color: var(--brand-text); border: 1px solid #d5d9e6; box-shadow: none; padding: 14px 22px; }
.btn-outline:hover { border-color: var(--brand-accent-start); color: var(--brand-accent-start); }
.btn-soft { background: rgba(15, 22, 52, 0.04); color: var(--brand-text); border: 1px solid var(--border); box-shadow: none; }
.btn-soft:hover { border-color: rgba(108,59,255,0.4); color: var(--brand-accent-start); }

.burger { display: none; background: transparent; border: 1px solid var(--border); width: 44px; height: 44px; border-radius: 12px; justify-content: center; align-items: center; }

.section { padding: 88px 0; }
.section-title { margin: 0 0 16px; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.03em; text-align: center; }
.section-lead { color: var(--brand-muted); max-width: 760px; text-align: center; margin: 0 auto; }
.section-header { text-align: center; display: grid; gap: 12px; }
.section-contrast { position: relative; overflow: hidden; }
.section-contrast::before { content: ""; position: absolute; inset: 12% -20% -5% -20%; background: radial-gradient(circle at 20% 20%, rgba(140,75,255,0.16), transparent 36%), radial-gradient(circle at 80% 30%, rgba(43,176,255,0.18), transparent 40%); filter: blur(6px); opacity: 0.9; }
.section-contrast > .container { position: relative; z-index: 1; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; gap: 50px; padding: 120px 0 100px; position: relative; }
.hero::after { content: \"\"; position: absolute; inset: 10px; background: radial-gradient(circle at 72% 32%, rgba(140, 75, 255, 0.1), transparent 45%), radial-gradient(circle at 90% 70%, rgba(43, 176, 255, 0.08), transparent 40%); z-index: -1; border-radius: 40px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #e9edff; color: #3d63ff; font-weight: 800; border-radius: 999px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); }
.hero h1 { margin: 14px 0; font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.hero h1 .gradient-text { background: linear-gradient(120deg, #8c4bff, #2bb0ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--brand-muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.hero-visual { position: relative; }
.hero-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; gap: 12px; }
.hero-card img { aspect-ratio: 1200 / 787; width: 100%; height: auto; display: block; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(15, 22, 52, 0.05); border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--brand-text); }
.gradient-text { background: linear-gradient(120deg, var(--brand-accent-start), var(--brand-accent-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: #f9fbff; border: 1px solid #edf1ff; border-radius: 24px; padding: 26px; box-shadow: 0 10px 24px rgba(15, 22, 52, 0.06); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 22, 52, 0.12); }
.card h3 { margin: 12px 0 8px; font-size: 20px; color: var(--brand-text); }
.card p { color: var(--brand-muted); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #e8ecff; color: var(--brand-accent-start); border-radius: 999px; font-weight: 700; margin: 0 auto 12px; }
.pill-glow { background: rgba(140,75,255,0.14); color: #0f1634; box-shadow: 0 12px 30px rgba(140,75,255,0.18); border: 1px solid rgba(255,255,255,0.3); }
.icon-box { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #6f3bff; }
.icon-soft-purple { background: #f4ebff; color: #8c4bff; }
.icon-soft-blue { background: #e8f0ff; color: #3d63ff; }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--brand-text); font-weight: 600; }
.icon-list li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; color: var(--brand-muted); font-weight: 600; }
.icon-list i { color: #8c4bff; }

.process-creative { background: #ffffff; position: relative; overflow: hidden; }
.process-creative::before { display: none; }
.process-creative .container { position: relative; z-index: 1; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 62px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(140,75,255,0.2), rgba(43,176,255,0.2)); z-index: 0; }
.process-card { background: #fff; border: 1px solid #edf1ff; border-radius: 26px; padding: 24px 20px; box-shadow: 0 12px 28px rgba(15,22,52,0.08); position: relative; z-index: 1; display: grid; gap: 12px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.process-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 18px 36px rgba(15,22,52,0.14); }
.process-card h3 { margin: 4px 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.process-card p { margin: 0; color: #4b5563; }
.process-number { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #7c3aed; background: rgba(140,75,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.process-number-blue { color: #3d63ff; background: rgba(61,99,255,0.12); }
.process-number-purple { color: #7c3aed; background: rgba(124,58,237,0.12); }
.process-number-green { color: #22c55e; background: rgba(34,197,94,0.12); }
.process-card:hover .process-number { transform: scale(1.06); box-shadow: 0 12px 20px rgba(140,75,255,0.22); }

.testimonials { background: linear-gradient(135deg, rgba(15,22,52,0.02), rgba(140,75,255,0.05)); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
.testimonial-card { background: #f8fbff; border: 1px solid #e9eef9; border-radius: 26px; padding: 26px; box-shadow: 0 12px 28px rgba(15,22,52,0.06); display: grid; gap: 18px; position: relative; }
.testimonial-card .fa-quote-right { position: absolute; top: 22px; right: 22px; color: rgba(140,75,255,0.35); font-size: 28px; }
.testimonial-card .quote-blue { color: rgba(61,99,255,0.35); }
.testimonial-quote p { margin: 0; font-size: 19px; line-height: 1.5; color: #374151; font-style: italic; padding-right: 34px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid #e5e7eb; display: grid; place-items: center; font-weight: 800; color: #0f1634; box-shadow: 0 8px 18px rgba(15,22,52,0.08); }
.testimonial-person strong { display: block; font-size: 16px; color: #0f1634; }
.testimonial-person span { display: block; color: #6b7280; font-size: 14px; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(15,22,52,0.12); transition: transform 0.25s ease, box-shadow 0.25s ease; }

.portfolio-hero { padding: 110px 0 70px; background: #ffffff; }
.portfolio-hero h1 { margin: 0 0 14px; font-size: clamp(36px, 4vw, 52px); color: #0f1634; }
.portfolio-hero p { margin: 0 0 26px; color: #4b5563; font-size: 18px; max-width: 820px; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 14px; }
.filter-pill { padding: 14px 22px; border-radius: 999px; border: 1px solid #dfe3ed; background: #f8faff; color: #0f1634; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; line-height: 1; text-decoration: none; -webkit-appearance: none; appearance: none; }
.filter-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(15, 22, 52, 0.08); }
.filter-pill.is-active { background: #0f1634; color: #fff; border-color: #0f1634; box-shadow: 0 14px 28px rgba(15, 22, 52, 0.18); }
.filter-pill:focus-visible { outline: 2px solid #0f1634; outline-offset: 2px; }
.project-card.is-hidden { display: none; }

.portfolio-grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  justify-content: center;
  gap: 28px;
  padding: 10px 0 60px;
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
}
.project-card { background: #f7f9ff; border: 1px solid #e7ecf5; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 32px rgba(15, 22, 52, 0.08); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(15, 22, 52, 0.12); }
.project-visual { position: relative; background: #eef1f8; border-bottom: 1px solid #e7ecf5; overflow: hidden; --cover: none; aspect-ratio: 16 / 9; min-height: 220px; }
.project-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.35s ease, opacity 0.35s ease; }
.project-visual-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.project-visual-overlay::before { content: ""; position: absolute; inset: -8px; background-image: var(--cover); background-size: cover; background-position: center; filter: blur(14px); transform: scale(1.06); opacity: 0.9; }
.project-visual-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.78), rgba(255,255,255,0.62)); }
.project-logo-badge { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; z-index: 1; }
.project-logo-badge img { max-width: 46%; max-height: 46%; object-fit: contain; background: transparent; padding: 0; border-radius: 0; box-shadow: none; border: none; }
.project-card:hover .project-visual-overlay { opacity: 1; }
.project-card:hover .project-logo-badge { opacity: 1; transform: translateY(0) scale(1); }
.project-card:hover .project-cover { opacity: 0.95; transform: scale(1.02); }
.project-cover.focus-top { object-position: center 26%; }
.project-cover.focus-left { object-position: 32% center; }
.project-cover.focus-center { object-position: center; }
.project-card-body { padding: 18px; display: grid; gap: 8px; }
.project-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #7c3aed; }
.project-title { margin: 0; font-size: 22px; color: #0f1634; }
.project-desc { margin: 0; color: #4b5563; }

.contact-hero { padding: 80px 0 40px; background: #ffffff; }
.contact-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); background: #0f1634; color: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px rgba(15,22,52,0.16); }
.contact-info { padding: 32px; display: grid; gap: 22px; background: #0d1230; }
.contact-info h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.contact-info p { margin: 0; color: #c7cde5; }
.contact-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.contact-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.icon-pin { background: rgba(140,75,255,0.2); }
.icon-mail { background: rgba(59,130,246,0.25); }
.icon-phone { background: rgba(16,185,129,0.22); }
.contact-social { display: flex; gap: 10px; margin-top: 8px; }
.contact-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: grid; place-items: center; transition: background 0.2s; }
.contact-social a:hover { background: rgba(255,255,255,0.2); }

.contact-form { background: #f9fafc; padding: 34px; border-radius: 0 24px 24px 0; display: grid; gap: 18px; }
.contact-form h3 { margin: 0 0 6px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-form label { font-weight: 700; color: #0f1634; margin-bottom: 6px; display: inline-block; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid #e3e7ef; border-radius: 12px; padding: 14px; font-family: inherit; font-size: 15px; background: #fff; color: #0f1634; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-submit { margin-top: 10px; }
.contact-form .form-status { margin-top: 10px; font-size: 14px; color: #4b5563; min-height: 20px; }
.contact-form .form-status.is-success { color: #0b7a3e; }
.contact-form .form-status.is-error { color: #c53030; }
.btn.is-loading { opacity: 0.8; pointer-events: none; }

.footer h3, .footer h4 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: #a5b4fc; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }

.banner { background: linear-gradient(120deg, rgba(108, 59, 255, 0.08), rgba(18, 193, 200, 0.12)); border: 1px solid rgba(108, 59, 255, 0.14); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 12px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 28px rgba(15, 22, 52, 0.08); transition: transform 0.2s, box-shadow 0.2s; }
.project:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(15, 22, 52, 0.12); }
.project img { width: 100%; height: 180px; object-fit: cover; }
.project .project-body { padding: 18px; display: grid; gap: 8px; }

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.process-step { padding: 20px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(15, 22, 52, 0.06); }
.process-step strong { display: inline-block; margin-bottom: 8px; }

.legal-hero { background: linear-gradient(135deg, rgba(140,75,255,0.08), rgba(43,176,255,0.08)); border: 1px solid #e7ecf5; border-radius: 24px; padding: 26px; box-shadow: 0 18px 40px rgba(15,22,52,0.08); display: grid; gap: 16px; margin-bottom: 26px; }
.legal-hero h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; }
.legal-hero p { margin: 0; color: #4b5563; }
.legal-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.legal-chip { background: #fff; border: 1px solid #e7ecf5; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: 0 12px 26px rgba(15,22,52,0.06); }
.legal-chip strong { font-size: 14px; color: #0f1634; }
.legal-chip span { font-size: 13px; color: #4b5563; }
.legal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.legal-meta div { background: #f7f9ff; border: 1px solid #e7ecf5; border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.legal-meta small { color: #6b7280; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; }
.legal-meta strong { color: #0f1634; font-size: 15px; }

.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.legal-card { background: #fff; border: 1px solid #e7ecf5; border-radius: 18px; padding: 18px; box-shadow: 0 12px 26px rgba(15,22,52,0.06); display: grid; gap: 10px; }
.legal-card h2 { margin: 0; font-size: 18px; }
.legal-card p { margin: 0; color: #4b5563; }
.legal-list { margin: 0; padding-left: 18px; color: #4b5563; display: grid; gap: 6px; }
.page-cgv .section { padding: 40px 0 44px; }
.page-cgv .legal-hero { padding: 18px; gap: 10px; margin-bottom: 18px; }
.page-cgv .legal-hero-grid { gap: 10px; }
.page-cgv .legal-meta { gap: 8px; }
.page-cgv .legal-card { padding: 14px; gap: 8px; border-radius: 14px; box-shadow: 0 8px 16px rgba(15,22,52,0.05); height: auto; display: block; break-inside: avoid; margin-bottom: 10px; }
.page-cgv .legal-card h2 { font-size: 17px; margin-bottom: 2px; }
.page-cgv .legal-grid { margin-top: 8px; column-count: 2; column-gap: 10px; display: block; }
.page-cgv .legal-grid > * { width: 100%; }
@media (max-width: 768px) {
  .page-cgv .legal-grid { column-count: 1; }
}
.page-cgv .legal-card ul,
.page-cgv .legal-card ol { margin: 0; padding-left: 16px; }

.form { display: grid; gap: 14px; }
.form label { font-weight: 700; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--brand-text);
}
.form textarea { min-height: 120px; resize: vertical; }

.footer { background: #0b1026; color: #e5e7eb; padding: 40px 0 26px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer h3, .footer h4 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: #a5b4fc; }
.footer p { margin: 0; color: #cbd5e1; }
.footer-bottom { padding-top: 16px; font-size: 14px; color: #9ca3af; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.cookie-banner { position: fixed; inset: auto 16px 16px 16px; background: #0f1634; color: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.18); z-index: 50; max-width: 520px; margin-left: auto; margin-right: auto; }
.cookie-banner__content { display: grid; gap: 12px; align-items: center; }
.cookie-banner__text { margin: 0; font-size: 14px; line-height: 1.5; color: #e5e7eb; }
.cookie-banner__text a { color: #93c5fd; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 16px; font-size: 14px; }
.cookie-banner .btn-soft { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

.hero-services { padding: 120px 0 110px; color: #fff; background: radial-gradient(circle at 20% 30%, rgba(140,75,255,0.12), transparent 35%), radial-gradient(circle at 80% 10%, rgba(43,176,255,0.12), transparent 35%), #0c1230; position: relative; overflow: hidden; }
.hero-services::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(120deg, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(60deg, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(-60deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 42px 36px; opacity: 0.7; pointer-events: none; }
.hero-services .container { position: relative; z-index: 1; text-align: center; }
.hero-services h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 16px; letter-spacing: -0.04em; }
.hero-services p { margin: 0; color: #d9e1ff; font-size: clamp(18px, 2vw, 22px); }

.service-section { background: #f7f9ff; padding: 90px 0; }
.service-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.service-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f4ebff; color: #8c4bff; border-radius: 14px; font-weight: 800; font-size: 13px; margin-bottom: 18px; }
.service-title { font-size: clamp(30px, 3.6vw, 40px); margin: 0 0 12px; letter-spacing: -0.03em; }
.service-text { color: var(--brand-muted); font-size: 18px; margin: 0 0 18px; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--brand-text); font-weight: 700; }
.service-list li { display: flex; gap: 12px; align-items: center; }
.service-list .fa-check { color: #1cc26f; }
.service-media { position: relative; }
.service-media img { width: 100%; box-shadow: 0 30px 60px rgba(12, 18, 48, 0.25); }
.service-media::after { content: ""; position: absolute; inset: 10px; border-radius: 28px; background: radial-gradient(circle at 40% 30%, rgba(140,75,255,0.14), transparent 55%); z-index: -1; filter: blur(18px); }

.stack-section { background: linear-gradient(135deg, rgba(15,22,52,0.02), rgba(140,75,255,0.05)); }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.stat-card { background: #ffffff; border: 1px solid #e6e8f4; }
.stat-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.badge { font-size: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(15,22,52,0.06); color: #0f1634; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-green { background: rgba(16,185,129,0.12); color: #0f9f6e; }
.performance-table { display: grid; gap: 12px; }
.performance-row { padding: 12px; border: 1px solid #eef1fb; border-radius: 14px; background: linear-gradient(120deg, rgba(140,75,255,0.06), rgba(43,176,255,0.06)); box-shadow: 0 10px 20px rgba(15,22,52,0.08); }
.performance-row p { margin: 6px 0 0; color: #4b5563; }
.metric { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #0f1634; letter-spacing: -0.01em; }
.metric i { color: #8c4bff; }

.cta-section { padding: 64px 0 96px; background: #ffffff; }
.cta-card { text-align: center; padding: 46px 32px; border-radius: 28px; background: linear-gradient(120deg, #8c4bff, #2bb0ff); color: #fff; box-shadow: 0 22px 60px rgba(43,176,255,0.28); position: relative; overflow: hidden; }
.cta-card::before, .cta-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.08); filter: blur(6px); }
.cta-card::before { top: -80px; left: -40px; }
.cta-card::after { bottom: -90px; right: -60px; }
.cta-card h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; }
.cta-card p { margin: 0 0 22px; color: rgba(255,255,255,0.88); font-size: 17px; }
.btn-white { background: #fff; color: #0f1634; box-shadow: 0 14px 28px rgba(15,22,52,0.16); padding: 14px 26px; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(15,22,52,0.18); color: #0f1634; }

@media (max-width: 960px) {
  .nav-links { display: none; position: fixed; top: 78px; left: 4%; right: 4%; flex-direction: column; background: #fff; padding: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: 0 18px 40px rgba(15,22,52,0.16); border: none; z-index: 25; gap: 0; overflow: hidden; }
  .nav-links.open { display: flex; }
  .nav-links a { display: flex; align-items: center; justify-content: center; width: 100%; padding: 16px; border-radius: 0; }
  .nav-links a + a { border-top: 1px solid #eef1fb; }
  .nav-links .btn { width: 100%; justify-content: center; text-align: center; border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .nav-links a.active { border-bottom: none; padding-bottom: 16px; color: var(--brand-accent-start); }
  .burger { display: inline-flex; }
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 50px; }
  .process-grid::before { display: none; }
  .process-grid { gap: 20px; }

  /* Service blocks: always text then image on mobile */
  .service-block { gap: 22px; }
  .service-block .service-media { order: 2 !important; }
  .service-block > :not(.service-media) { order: 1; }

  /* Portfolio cards responsive */
  .portfolio-grid.cards { grid-template-columns: 1fr; max-width: 100%; gap: 18px; padding: 10px 0 40px; }
  .project-visual { min-height: 200px; }

  .legal-meta { grid-template-columns: 1fr; }
  .legal-hero { padding: 22px; }
}

@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; }
}

    /* Création de l'effet "Fenêtre de navigateur" */
    .browser-mockup {
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(0,0,0,0.05);
      transition: transform 0.3s ease;
    }
    .browser-mockup:hover {
      transform: translateY(-5px);
    }
    .browser-header {
      background: #f1f3f6;
      height: 28px;
      display: flex;
      align-items: center;
      padding-left: 12px;
      gap: 6px;
      border-bottom: 1px solid #e1e4e8;
    }
    .dot { width: 8px; height: 8px; border-radius: 50%; }
    .dot-red { background: #ff5f56; }
    .dot-yellow { background: #ffbd2e; }
    .dot-green { background: #27c93f; }
    
    .mockup-content img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* Section Maintenance sombre */
    .maintenance-banner {
      background: var(--brand-text); /* Votre couleur sombre #0F1634 */
      color: #fff;
      border-radius: 24px;
      padding: 60px 40px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .maintenance-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
    .maintenance-banner p { color: #cbd5e1; max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
    
    /* Ajustement liste à puces */
    .check-list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 12px; }
    .check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--brand-text); }
    .check-list i { color: #1cc26f; background: rgba(28,194,111,0.1); padding: 6px; border-radius: 50%; font-size: 0.8rem; }

    
