/* ============================================================
   ARMSYS — Feuille de style globale
   Thème : sombre, moderne, monochrome (blanc / nuances de gris),
   épuré et tech.
   ============================================================ */

/* ---------- 1. Variables ---------- */
:root {
  /* Fonds */
  --bg:            #08080a;
  --bg-elev:       #0e0e11;
  --bg-elev-2:     #141418;
  --bg-glass:      rgba(14, 14, 17, 0.72);

  /* Bordures */
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Texte */
  --text:          #f4f4f6;
  --text-muted:    #a0a0aa;
  --text-dim:      #6a6a74;

  /* Accent (blanc / gris clair) */
  --accent:        #ffffff;
  --accent-soft:   rgba(255, 255, 255, 0.06);

  /* Typo */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Mesures */
  --container: 1180px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::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(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Fond technique : grille + halos */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px circle at 80% -5%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(700px circle at 10% 110%, rgba(255,255,255,0.035), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(255,255,255,0.85); color: #000; }

/* ---------- 3. Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--border-strong);
}

.gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, #8d8d96 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: clamp(70px, 11vw, 130px) 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin: 18px 0 16px; }
.section-head p { font-size: 1.05rem; }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand .logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
}
.brand span.dot { color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.93rem;
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 9px;
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 0.9rem !important;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent) !important; color: #000 !important; }

/* Burger mobile */
.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: transform .3s var(--ease), opacity .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); }

/* ---------- 6. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 18px 40px -18px rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 24px 50px -16px rgba(255,255,255,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-2px); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 20vh, 200px);
  padding-bottom: clamp(70px, 12vw, 130px);
  overflow: hidden;
}
.hero-inner { max-width: 860px; }
.hero h1 { margin: 22px 0 24px; }
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero .btn-row { margin-bottom: 56px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.hero-meta .item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .item b {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.hero-meta .item span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- 8. Grilles & cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.07), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }

.card .icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--text); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.96rem; }
.card .num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--accent-soft);
}

/* Liste à puces custom */
.feature-list { display: grid; gap: 14px; margin-top: 10px; }
.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent),
    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='%23f4f4f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- 9. Bloc « split » (texte + visuel) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split .visual {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.07), transparent 55%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.split .visual .glyph {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--text);
  opacity: 0.9;
}
.split .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- 10. CTA bandeau ---------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  background:
    radial-gradient(700px circle at 50% -40%, rgba(255,255,255,0.08), transparent 60%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid .brand { margin-bottom: 16px; }
.footer-grid p { font-size: 0.94rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a, .footer-col li {
  display: block;
  color: var(--text-muted);
  font-size: 0.94rem;
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---------- 12. Page header (pages internes) ---------- */
.page-hero {
  padding-top: clamp(150px, 20vh, 210px);
  padding-bottom: clamp(40px, 7vw, 80px);
}
.page-hero h1 { margin: 20px 0 20px; }
.page-hero p { max-width: 640px; font-size: 1.1rem; }

/* ---------- 13. Contact ---------- */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  padding: clamp(34px, 5vw, 56px);
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .ic {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
}
.contact-line .ic svg { width: 20px; height: 20px; stroke: var(--text); }
.contact-line .meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}
.contact-line .meta b { font-weight: 500; font-size: 1.05rem; color: var(--text); }

/* ---------- 14. Animations reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .visual { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 22px 26px;
    background: var(--bg-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px 32px; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row .btn, .cta-band .btn { width: auto; }
}
