/* ===================================================================
   Tek4Office — Feuille de styles
   =================================================================== */

:root {
  --bg: #0b0f1a;
  --bg-alt: #0f1424;
  --surface: #151b2e;
  --surface-2: #1b2236;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --muted: #9aa4bd;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #06b6d4;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

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

.grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.85); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); box-shadow: none; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.25rem; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  font-size: 0.85rem; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }

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

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(600px 600px at 60% 90%, rgba(139, 92, 246, 0.16), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 620px; margin: 22px auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 64px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(21, 27, 46, 0.5); backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num { display: block; font-family: "Space Grotesk"; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ===== Trust ===== */
.trust { padding: 40px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-label { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; letter-spacing: 0.04em; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 38px; }
.trust-list li { font-family: "Space Grotesk"; font-weight: 600; font-size: 1.05rem; color: var(--muted); opacity: 0.8; transition: 0.2s; }
.trust-list li:hover { color: var(--text); opacity: 1; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===== Cards (services) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(99,102,241,0.12), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.4); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; position: relative; z-index: 1; }
.card p { color: var(--muted); font-size: 0.95rem; position: relative; z-index: 1; }

/* ===== Steps (process) ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; position: relative;
}
.step-num {
  font-family: "Space Grotesk"; font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(120deg, 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.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ===== Work ===== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.work-item:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.4); }
.work-thumb {
  height: 180px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  position: relative;
}
.work-thumb span {
  font-family: "Space Grotesk"; font-weight: 700; font-size: 1.3rem; color: #fff;
  background: rgba(0,0,0,0.2); padding: 6px 16px; border-radius: 30px; backdrop-filter: blur(4px);
}
.work-body { padding: 24px; }
.work-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: 0.93rem; margin-bottom: 14px; }
.tag { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 0.75rem; display: grid; place-items: center;
}
.about-visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.orb {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary), var(--primary-2) 50%, var(--accent));
  filter: blur(10px); opacity: 0.35; animation: float 6s ease-in-out infinite;
}
.about-card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; max-width: 360px;
  box-shadow: var(--shadow);
}
.about-card strong { display: block; font-family: "Space Grotesk"; font-size: 1.15rem; line-height: 1.4; margin-bottom: 16px; font-weight: 600; }
.about-card span { color: var(--muted); font-size: 0.9rem; }

@keyframes float { 0%,100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }

/* ===== CTA / Contact ===== */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-text p { color: var(--muted); }
.contact-info { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.contact-info span { font-size: 1.2rem; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.field input.invalid, .field textarea.invalid { border-color: #ef4444; }
.form-status { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 20px; }
.form-status.success { color: #34d399; }
.form-status.error { color: #f87171; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-block: 24px; margin-top: 20px;
  color: var(--muted); font-size: 0.88rem; flex-wrap: wrap; gap: 10px;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .steps, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 72px; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--surface); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 24px; gap: 18px; width: min(78vw, 300px);
    transform: translateX(110%); transition: transform 0.35s var(--ease);
    height: calc(100vh - 72px);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .cards, .steps, .work-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
}
