/* ============================================================
   HighwareLab — feuille de style principale
   Palette : bleu nuit industriel + ambre technique
   ============================================================ */

:root {
  --bg-dark: #0a0f1c;
  --bg-dark-2: #0e1526;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --ink: #0d1526;
  --muted: #5b6b82;
  --muted-light: #93a1b5;
  --line: #e2e8f2;
  --accent: #f5a524;
  --accent-strong: #d98e0f;
  --accent-soft: #fdf3e0;
  --blue: #3b82f6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 21, 38, 0.08);
  --shadow-hover: 0 16px 40px rgba(13, 21, 38, 0.14);
  --container: 1120px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Titres ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #1a1204;
  box-shadow: 0 6px 18px rgba(245, 165, 36, 0.35);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }

.btn-ghost {
  color: #e8edf5;
  border-color: rgba(232, 237, 245, 0.35);
  background: rgba(232, 237, 245, 0.04);
}
.btn-ghost:hover { border-color: rgba(232, 237, 245, 0.8); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.22), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(245, 165, 36, 0.4);
  color: var(--accent);
}
.brand-mark svg { width: 20px; height: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  color: rgba(232, 237, 245, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a.nav-cta {
  color: #1a1204;
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--accent-strong); color: #1a1204; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  padding: 168px 0 108px;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(245, 165, 36, 0.1), transparent 60%),
    var(--bg-dark);
  overflow: hidden;
}
/* trame « plan technique » en fond */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 { color: #f6f8fc; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: rgba(232, 237, 245, 0.75);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(232, 237, 245, 0.85);
  font-size: 0.93rem;
  font-weight: 500;
}
.hero-points svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section { padding: 96px 0; }
.section-soft { background: var(--surface-soft); }

.section-dark {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--bg-dark-2);
  color: #eef2f8;
}
.section-dark h2 { color: #f6f8fc; }
.section-dark .section-sub { color: rgba(232, 237, 245, 0.68); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.section-dark .section-eyebrow { color: var(--accent); }

.section-head h2 { margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.04rem; }

/* ============================================================
   SERVICES — cartes
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 165, 36, 0.5);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-soft), #eaf1fb);
  border: 1px solid rgba(245, 165, 36, 0.35);
  color: var(--accent-strong);
  margin-bottom: 20px;
}
.card-icon svg { width: 25px; height: 25px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   ATOUTS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature:hover {
  border-color: rgba(245, 165, 36, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.feature h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.feature p { color: rgba(232, 237, 245, 0.72); font-size: 0.94rem; }

/* ============================================================
   PROCESSUS — étapes
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   SECTEURS — chips
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}
.chips li {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.chips li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background:
    radial-gradient(600px 300px at 15% 120%, rgba(245, 165, 36, 0.16), transparent 60%),
    var(--bg-dark);
  color: #f6f8fc;
  padding: 78px 0;
}
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p {
  color: rgba(232, 237, 245, 0.72);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 26px;
  align-items: start;
}

.contact-card {
  background: var(--bg-dark);
  color: #eef2f8;
  border-radius: var(--radius);
  padding: 32px 30px;
}
.contact-card h3 { color: var(--accent); margin-bottom: 20px; font-size: 1.05rem; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.35);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 237, 245, 0.55);
  margin-bottom: 4px;
}

.contact-link {
  display: inline-block;
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.contact-link:hover { color: var(--accent); }

.contact-text {
  display: block;
  font-size: 0.98rem;
  color: rgba(232, 237, 245, 0.85);
  line-height: 1.5;
}

.contact-note { color: rgba(232, 237, 245, 0.68); font-size: 0.93rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 7px; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row .optional { color: var(--muted-light); font-weight: 400; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.18);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row select { appearance: auto; }

.form-note {
  color: var(--muted-light);
  font-size: 0.82rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #070b14;
  color: rgba(232, 237, 245, 0.65);
  padding: 64px 0 0;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 300px; }

.site-footer h3 {
  color: #f6f8fc;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-nav { display: grid; gap: 9px; align-content: start; }
.footer-nav a {
  color: rgba(232, 237, 245, 0.65);
  text-decoration: none;
  width: fit-content;
}
.footer-nav a:hover { color: var(--accent); }

.footer-services { display: grid; gap: 9px; align-content: start; }

.footer-contact { display: grid; gap: 9px; align-content: start; }
.footer-contact a {
  color: rgba(232, 237, 245, 0.65);
  text-decoration: none;
  width: fit-content;
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(232, 237, 245, 0.45); }

/* ============================================================
   PAGE 404
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
  background: var(--bg-dark);
  color: #f6f8fc;
}
.error-code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.error-sub { color: rgba(232, 237, 245, 0.7); margin-bottom: 18px; }

/* ============================================================
   ANIMATIONS (activées via .visible en JS)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .chips li { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }
  .site-nav a.nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
  }

  .hero { padding: 132px 0 84px; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { width: 100%; }
  .contact-form, .contact-card { padding: 26px 22px; }
}
