/* ============================================================
   TECH.AD — Feuille de style
   Site statique, sans build. Compatible hébergement OVH.
   ============================================================ */

:root {
  /* Surfaces */
  --background: #070b18;
  --background-2: #0a1020;
  --card: #0e1526;
  --card-2: #111a30;

  /* Texte */
  --foreground: #eaf0ff;
  --muted: #9aa7c7;
  --muted-2: #6b7795;

  /* Marque (extraite du logo TECH.AD) */
  --navy: #0b1e4d;
  --primary: #2f80ff;
  --primary-bright: #4f9dff;
  --accent: #38bdf8;
  --violet: #7c8cff;

  /* Bordures */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(122, 162, 247, 0.25);

  /* Lueurs */
  --glow-primary: rgba(47, 128, 255, 0.22);
  --glow-accent: rgba(56, 189, 248, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(.165, .84, .44, 1);
  --ease-smooth: cubic-bezier(.65, 0, .35, 1);

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

/* Ambient page background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 80% -5%, var(--glow-primary), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, var(--glow-accent), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Position content above ambient bg */
.nav, main, .footer { position: relative; z-index: 1; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease-out), filter .25s, background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #051024; box-shadow: 0 8px 24px rgba(47, 128, 255, .28);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 32px rgba(47, 128, 255, .42); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border); color: var(--foreground); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--border-strong); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Section label & heads ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section-label::before { content: ''; width: 26px; height: 1px; background: var(--accent); }
.section-label.center { justify-content: center; }
.section-label.center::after { content: ''; width: 26px; height: 1px; background: var(--accent); }

.gradient-text {
  background: linear-gradient(120deg, var(--primary-bright) 0%, var(--accent) 50%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; }

.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--background-2) 12%, var(--background-2) 88%, transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.section-desc { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section-desc.left { text-align: left; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 24, .65);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(7, 11, 24, .92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.brand-text .dot { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--primary); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--foreground); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--foreground); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 28px;
  background: rgba(10,16,32,.98); border-bottom: 1px solid var(--border);
}
.mobile-panel a { padding: 12px 0; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-panel a:last-child { border: 0; margin-top: 12px; }
.mobile-panel.open { display: flex; animation: slideDown .3s var(--ease-out); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; max-width: 120vw;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 65%);
  pointer-events: none; z-index: 0; animation: float 14s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-24px); } }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 700; line-height: 1.04;
  margin-bottom: 22px;
}
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.hero-trust span { color: #ffc745; letter-spacing: 2px; }
.hero-trust strong { color: var(--foreground); }

/* Window mockup */
.hero-visual { position: relative; z-index: 1; }
.window {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02);
  overflow: hidden; animation: floatCard 7s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.window-title { margin-left: 10px; font-size: 12.5px; color: var(--muted-2); }
.window-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }

.match-card {
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.match-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--violet), var(--primary));
  flex-shrink: 0;
}
.match-head strong { display: block; font-size: 15px; }
.match-head small { color: var(--muted-2); font-size: 12.5px; }
.badge {
  margin-left: auto; background: rgba(56,189,248,.14); color: var(--accent);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.match-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.match-tags span { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); }
.match-foot { display: flex; align-items: center; justify-content: space-between; }
.match-foot .stars { color: #ffc745; font-size: 13px; }
.match-foot .stars em { color: var(--muted); font-style: normal; margin-left: 4px; }

.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px;
}
.mini-ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(47,128,255,.18), rgba(56,189,248,.12));
  border: 1px solid var(--border-strong); color: var(--accent);
}
.mini-ico svg { width: 20px; height: 20px; }
.mini-card strong { display: block; font-size: 15px; }
.mini-card small { color: var(--muted-2); font-size: 12px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.stat-suffix { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--accent); }
.stats-grid p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .4s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }
/* connector line */
.steps .step:not(:last-child)::after {
  content: ''; position: absolute; top: 52px; right: -14px; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* ============================================================
   CARDS (services)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(20,26,48,.5); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .4s, background .4s, box-shadow .4s;
}
.card:hover {
  transform: translateY(-5px); border-color: var(--border-strong);
  background: rgba(20,26,48,.72); box-shadow: 0 12px 40px rgba(47,128,255,.12);
}
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,128,255,.18), rgba(56,189,248,.12));
  border: 1px solid var(--border-strong); color: var(--accent); margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   SPLIT (audiences)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
  padding: 40px 36px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 0% 0%, rgba(47,128,255,.1), transparent 50%), var(--card);
  transition: transform .4s var(--ease-out), border-color .4s;
}
.split-card.alt { background: radial-gradient(120% 120% at 100% 0%, rgba(124,140,255,.12), transparent 50%), var(--card); }
.split-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.split-tag {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(56,189,248,.12); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.split-card h3 { font-size: 1.5rem; margin-bottom: 22px; }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 32px; color: var(--muted); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(47,128,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  position: relative; overflow: hidden;
  padding: 38px 26px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20,26,48,.55), rgba(14,21,38,.5));
  border: 1px solid var(--border);
  transition: transform .45s var(--ease-out), border-color .45s, box-shadow .45s;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0; transition: opacity .45s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 18px 48px rgba(47,128,255,.14); }
.feature:hover::before { opacity: 1; }
.feature:hover .feature-ico { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 30px rgba(47,128,255,.4); }
.feature-ico {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(47,128,255,.28);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.feature-ico svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 10px; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .4s var(--ease-out), border-color .4s;
}
.quote:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.quote .stars { color: #ffc745; letter-spacing: 2px; }
.quote blockquote { color: var(--foreground); font-size: 1rem; line-height: 1.65; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted-2); font-size: .88rem; }

/* ============================================================
   CTA + CONTACT
   ============================================================ */
.cta-section { overflow: hidden; }
.cta-glow {
  position: absolute; bottom: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; max-width: 130vw;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 60%); pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.cta-list { margin-top: 26px; }

.contact-form {
  background: rgba(14,21,38,.7); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--foreground);
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: rgba(47,128,255,.05);
  box-shadow: 0 0 0 3px rgba(47,128,255,.15);
}
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa7c7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--background-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { height: 60px; width: auto; display: block; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: .95rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 6px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .88rem; flex-wrap: wrap; gap: 10px 24px; }
.footer-legal a:hover { color: var(--accent); }
.made-by { color: var(--muted); }
.made-by a { color: var(--foreground); font-weight: 600; transition: color .2s; }
.made-by a:hover { color: var(--accent); }
.made-by .heart { color: #ff4d6d; font-style: normal; animation: heartbeat 1.6s var(--ease-out) infinite; display: inline-block; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .quotes, .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 540px) {
  .cards, .quotes, .steps, .features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal-hero { padding: 64px 0 24px; position: relative; }
.legal-hero .container { max-width: 860px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 14px 0 10px; }
.legal-hero p { color: var(--muted); }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: .9rem; font-weight: 500; }
.legal-back:hover { color: var(--primary-bright); }

.legal { padding: 24px 0 80px; }
.legal .container { max-width: 860px; }
.legal section { margin-bottom: 40px; }
.legal h2 {
  font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
}
.legal h2 .num { color: var(--accent); font-size: 1rem; font-family: var(--font-mono, monospace); }
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--foreground); font-weight: 600; }
.legal ul { padding-left: 4px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* Tableau d'identité (dl) */
.legal-id {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 24px; margin: 8px 0 4px;
}
.legal-id div { display: grid; grid-template-columns: 230px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.legal-id div:last-child { border-bottom: 0; }
.legal-id dt { color: var(--muted-2); font-size: .92rem; }
.legal-id dd { color: var(--foreground); margin: 0; }
.legal-id dd .ok { color: #4ade80; font-weight: 600; }
.legal-note { font-size: .88rem; color: var(--muted-2); font-style: italic; }
@media (max-width: 600px) {
  .legal-id div { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   PAGE RÉALISATIONS
   ============================================================ */
.nav-links a.active { color: var(--foreground); }
.nav-links a.active::after { width: 100%; }

/* ---------- Hero réalisations ---------- */
.works-hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.works-hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.works-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; margin-bottom: 22px; }
.works-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }

/* Orbes flottants en fond */
.works-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.works-orbs .orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.orb-1 { width: 120px; height: 120px; top: 18%; right: 12%; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); animation: orbFloat 9s ease-in-out infinite; }
.orb-2 { width: 70px; height: 70px; top: 60%; right: 30%; background: radial-gradient(circle at 30% 30%, var(--violet), transparent 70%); animation: orbFloat 11s ease-in-out infinite reverse; }
.orb-3 { width: 50px; height: 50px; top: 30%; right: 42%; background: radial-gradient(circle at 30% 30%, var(--primary-bright), transparent 70%); animation: orbFloat 7s ease-in-out infinite; }
@keyframes orbFloat { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(12px); } }

/* Pile de panneaux verre 3D */
.works-hero-visual { position: relative; z-index: 1; perspective: 1200px; }
.glass-stack {
  position: relative; height: 380px; transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-16deg); transition: transform .3s var(--ease-out);
  margin: 0 auto; max-width: 420px;
}
.glass-pane {
  position: absolute; border-radius: 18px; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.gp-1 {
  width: 270px; height: 200px; top: 30px; left: 10px; padding: 18px; transform: translateZ(0);
  animation: paneFloat 8s ease-in-out infinite;
}
.gp-1 .gp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); margin-right: 6px; }
.gp-1 .gp-lines { margin: 18px 0 16px; display: flex; flex-direction: column; gap: 9px; }
.gp-1 .gp-lines i { display: block; height: 8px; border-radius: 5px; background: rgba(255,255,255,.18); }
.gp-1 .gp-block { height: 56px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .85; }
.gp-2 {
  width: 180px; height: 130px; top: 0; right: 0; padding: 18px; transform: translateZ(60px);
  animation: paneFloat 8s ease-in-out infinite .6s;
}
.gp-2 .gp-chart { height: 100%; display: flex; align-items: flex-end; gap: 8px; }
.gp-2 .gp-chart span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.gp-3 {
  width: 165px; height: 110px; bottom: 6px; right: 18px; padding: 16px; transform: translateZ(110px);
  display: flex; flex-direction: column; justify-content: center; gap: 2px; color: var(--accent);
  animation: paneFloat 8s ease-in-out infinite 1.1s;
}
.gp-3 strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--foreground); line-height: 1; margin-top: 6px; }
.gp-3 small { color: var(--muted); font-size: .82rem; }
@keyframes paneFloat { 0%,100% { transform: translateZ(var(--z,0)) translateY(0); } 50% { transform: translateZ(var(--z,0)) translateY(-14px); } }
.gp-1 { --z: 0; } .gp-2 { --z: 60px; } .gp-3 { --z: 110px; }

/* ---------- Cartes "types de projet" ---------- */
.type-cards { grid-template-columns: repeat(4, 1fr); }
.type-cards .card { display: flex; flex-direction: column; }
.type-points { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.type-points li { position: relative; padding-left: 24px; color: var(--muted); font-size: .92rem; }
.type-points li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(47,128,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  transition: color .25s, background .25s, border-color .25s, transform .2s;
}
.filter-btn:hover { color: var(--foreground); border-color: var(--border-strong); transform: translateY(-2px); }
.filter-btn.active {
  color: #051024; background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent; box-shadow: 0 8px 22px rgba(47,128,255,.32);
}

/* ---------- Grille de projets ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1100px; }
.works-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.work-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: transform .3s var(--ease-out), border-color .35s, box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.work-card:hover { border-color: var(--border-strong); box-shadow: 0 26px 60px rgba(0,0,0,.45), 0 0 0 1px var(--border-strong); }

/* Zone visuelle (mockup généré en CSS) */
.work-visual {
  position: relative; height: 210px; padding: 26px 26px 0; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  transform: translateZ(30px);
}
.work-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.wv-amber  { background: linear-gradient(150deg, #b4530f, #5c2306); }
.wv-blue   { background: linear-gradient(150deg, #1e4fb8, #0b1e4d); }
.wv-green  { background: linear-gradient(150deg, #0f9b6c, #054734); }
.wv-violet { background: linear-gradient(150deg, #6b46e5, #2a1b66); }
.wv-cyan   { background: linear-gradient(150deg, #0e8ba8, #073a52); }
.wv-rose   { background: linear-gradient(150deg, #c1306b, #5c1233); }
.wv-teal   { background: linear-gradient(150deg, #0d8f8f, #05403f); }
.wv-orange { background: linear-gradient(150deg, #c2701a, #5c3208); }

.work-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
}

/* Mockups CSS */
.wv-mock { width: 100%; border-radius: 12px 12px 0 0; transition: transform .4s var(--ease-out); }
.work-card:hover .wv-mock { transform: translateY(-6px); }
.wv-mock.browser {
  background: #0c1322; border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.4); overflow: hidden;
}
.wv-bar { display: flex; gap: 5px; padding: 9px 12px; background: rgba(255,255,255,.05); }
.wv-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }

/* Mockup boutique */
.wv-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.wv-shop .wv-prod { height: 36px; border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.07)); }

/* Mockup document */
.wv-doc { padding: 14px; }
.wv-hero { height: 46px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); margin-bottom: 12px; }
.wv-hero.alt { background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05)); }
.wv-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); margin-bottom: 8px; }
.wv-line.w80 { width: 80%; } .wv-line.w90 { width: 90%; } .wv-line.w70 { width: 70%; } .wv-line.w60 { width: 60%; } .wv-line.w50 { width: 50%; }
.wv-tile-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.wv-tile-row span { height: 34px; border-radius: 6px; background: rgba(255,255,255,.14); }

/* Mockup galerie */
.wv-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 30px; gap: 8px; padding: 12px; }
.wv-tile { border-radius: 6px; background: rgba(255,255,255,.16); }
.wv-tile.big { grid-row: span 2; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); }

/* Mockup dashboard */
.wv-dash { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 12px; height: 130px; }
.wv-side { border-radius: 6px; background: rgba(255,255,255,.1); }
.wv-main { display: flex; flex-direction: column; gap: 8px; }
.wv-kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.wv-kpi-row span { height: 22px; border-radius: 5px; background: rgba(255,255,255,.16); }
.wv-graph { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.wv-graph span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.12)); }

/* Mockup téléphone */
.wv-mock.phone {
  width: 130px; height: 180px; border-radius: 22px 22px 0 0;
  background: #0c1322; border: 5px solid rgba(255,255,255,.14); border-bottom: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.45); position: relative; padding: 14px 10px 0;
}
.wv-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.wv-app { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.wv-app-top { height: 30px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); }
.wv-app-card { height: 40px; border-radius: 8px; background: rgba(255,255,255,.16); }
.wv-app-card.sm { height: 22px; }

/* Corps de la carte projet */
.work-body { padding: 24px 24px 26px; transform: translateZ(20px); }
.work-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.work-meta span:last-child { color: var(--muted-2); }
.work-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.work-body > p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.work-tags span { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); }
.work-kpi {
  display: flex; align-items: baseline; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border);
}
.work-kpi strong {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.work-kpi small { color: var(--muted); font-size: .85rem; }

/* Sortie/entrée au filtrage */
.work-card.is-hidden { display: none; }
.work-card.filtering { animation: cardIn .5s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Process : 4 colonnes */
.process-steps { grid-template-columns: repeat(4, 1fr); }
.process-steps .step:not(:last-child)::after { top: 46px; }

/* CTA centré */
.works-cta { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.works-cta-actions { justify-content: center; margin-top: 30px; }

/* ---------- Responsive réalisations ---------- */
@media (max-width: 980px) {
  .works-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .works-hero-visual { max-width: 460px; margin: 0 auto; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .type-cards { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps .step::after { display: none; }
}
@media (max-width: 760px) {
  .glass-stack { transform: rotateX(6deg) rotateY(-12deg) scale(.9); }
}
@media (max-width: 540px) {
  .works-grid, .type-cards, .process-steps { grid-template-columns: 1fr; }
  .glass-stack { height: 320px; }
}
