/* ============================================================
   MONDR.IO — Design System Officiel v1.0
   Précision, alignement, flat design, angles nets (0-2px)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --blue:      #0A449E;
  --blue-l:    #EBF1FB;
  --blue-d:    #083880;
  --ink:       #1A1D20;
  --cloud:     #F9FAFB;
  --fog:       #FFFFFF;
  --mist:      #F3F4F6;
  --ash:       #E5E7EB;
  --slate:     #6B7280;
  --line:      #E5E7EB;
  --line-l:    #F3F4F6;
  --jade:      #059669;
  --crimson:   #DC2626;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius:    2px;
  --radius-sm: 0px;
  --radius-lg: 2px;
  --nav-h:     68px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 20px rgba(0,0,0,.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,.08);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Mondrian accent lines — très subtils, juste une touche ── */
/* Remplacé par un simple accent horizontal en haut de hero */
.mondrian-bg { display: none; } /* désactivé — trop chargé */

/* Accent Mondrian : fine ligne bleue en haut de certaines sections */
.mondrian-accent {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 60px, transparent 60px);
  height: 3px;
  width: 100%;
}

/* ── Layout ─────────────────────────────────────────────────── */
.site { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  align-items: center;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 40px;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding: 0 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { align-items: center; display: flex; flex-shrink: 0; gap: 10px; }
.logo-sq {
  background: var(--blue);
  border-radius: 4px; /* légère douceur sur le carré — reste carré */
  display: block;
  flex-shrink: 0;
  height: 24px;
  width: 24px;
}
.logo-name { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.site-nav { align-items: center; display: flex; gap: 32px; }
.site-nav a { color: var(--slate); font-size: 13px; font-weight: 500; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.header-cta {
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 9px 18px;
  transition: background .15s, box-shadow .15s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--blue-d); box-shadow: 0 4px 12px rgba(10,68,158,.25); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; padding: 8px 10px; }
.nav-toggle-bar { background: var(--ink); display: block; height: 1.5px; width: 20px; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #0F1215; color: #9CA3AF; margin-top: auto; }
.footer-inner {
  display: grid; gap: 48px; grid-template-columns: 1.4fr repeat(3, 1fr);
  padding: 56px 56px 40px;
}
.footer-brand .logo-sq { border-radius: 4px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p { color: #9CA3AF; font-size: 13px; line-height: 1.6; margin-top: 14px; max-width: 240px; }
.footer-col h4 { color: #E5E7EB; font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-bottom: 16px; text-transform: uppercase; }
.footer-col a { color: #9CA3AF; display: block; font-size: 13px; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1E2328; display: flex; align-items: center;
  justify-content: space-between; padding: 20px 56px;
}
.footer-bottom p { color: #6B7280; font-size: 12px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #6B7280; font-size: 12px; transition: color .15s; }
.footer-bottom-links a:hover { color: #9CA3AF; }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before {
  background: var(--blue);
  border-radius: 50%;
  content: '';
  display: inline-block;
  flex-shrink: 0;
  height: 6px;
  width: 6px;
}

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.08; }
.display-xl { font-size: clamp(44px,6vw,80px); font-weight: 800; letter-spacing: -0.04em; line-height: .97; }
.display-lg { font-size: clamp(32px,4vw,52px); font-weight: 800; letter-spacing: -0.035em; }
.display-md { font-size: clamp(24px,3vw,36px); font-weight: 700; }
.text-accent { color: var(--blue); }
.text-muted  { color: var(--slate); }
.text-mono   { font-family: var(--font-mono); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  align-items: center; border-radius: var(--radius); cursor: pointer; display: inline-flex;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  gap: 8px; letter-spacing: .01em; padding: 12px 22px;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); border: 1px solid var(--blue); color: #fff;
  box-shadow: 0 2px 8px rgba(10,68,158,.2);
}
.btn-primary:hover {
  background: var(--blue-d); border-color: var(--blue-d);
  box-shadow: 0 4px 16px rgba(10,68,158,.3);
}
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: #9CA3AF; background: var(--fog); }
.btn-lg { font-size: 15px; padding: 14px 28px; }
.btn-sm { font-size: 12px; padding: 7px 14px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ── Sections ────────────────────────────────────────────────── */
.section    { padding: 88px 56px; }
.section-sm { padding: 56px 56px; }
.section-lg { padding: 112px 56px; }
.section-white { background: var(--cloud); }
.section-fog   { background: var(--fog); }

.section-header { margin-bottom: 56px; max-width: 640px; }
.section-header .eyebrow { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--slate); font-size: 18px; line-height: 1.65; }

/* ── Grid helpers (avec gap, pas jointifs) ───────────────────── */
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2,1fr); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4,1fr); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider { background: var(--line); height: 1px; }

/* ── Badges / Pills ──────────────────────────────────────────── */
.pill { background: var(--blue-l); border-radius: 100px; color: var(--blue); display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; text-transform: uppercase; }
.pill-dark { background: var(--ink); color: #fff; }
.data-tag { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--slate); display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; }

/* ── Focus / a11y ────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip-link { background: var(--blue); border-radius: 0 0 var(--radius) var(--radius); color: #fff; font-size: 14px; font-weight: 600; left: 16px; padding: 8px 16px; position: absolute; top: -100px; transition: top .15s; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-header { padding: 0 24px; gap: 24px; }
  .section, .section-sm, .section-lg { padding-left: 24px; padding-right: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 40px 24px 32px; }
  .footer-bottom { padding: 16px 24px; }
}
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; gap: 0; }
  .site-nav.is-open { background: var(--cloud); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; left: 0; padding: 8px 24px; position: absolute; right: 0; top: var(--nav-h); }
  .site-nav.is-open a { font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--line-l); }
  .nav-toggle { display: flex; flex-direction: column; }
  .header-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-sm { padding-top: 40px; padding-bottom: 40px; }
}
