/* =========================================================
   AGENTIC AGENCY — Système de design
   Corporate · sobre · bleu · expert
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* --- Couleurs --- */
  --bg:           oklch(0.992 0.004 250);   /* blanc cassé bleuté */
  --bg-2:         oklch(0.972 0.007 250);   /* gris-bleu très clair */
  --bg-3:         oklch(0.948 0.010 250);
  --paper:        oklch(1 0 0);

  --ink:          oklch(0.255 0.035 258);   /* texte principal navy */
  --ink-soft:     oklch(0.46 0.030 258);    /* texte secondaire */
  --ink-faint:    oklch(0.62 0.022 258);    /* libellés / méta */

  --navy:         oklch(0.255 0.055 258);   /* fond sombre */
  --navy-2:       oklch(0.205 0.050 260);
  --navy-3:       oklch(0.165 0.045 262);

  --blue:         oklch(0.55 0.155 252);    /* bleu corporate accent */
  --blue-deep:    oklch(0.46 0.150 256);
  --blue-bright:  oklch(0.62 0.150 248);
  --blue-tint:    oklch(0.93 0.035 250);

  --line:         oklch(0.89 0.012 255);    /* bordures claires */
  --line-soft:    oklch(0.93 0.010 255);
  --line-dark:    oklch(0.40 0.030 260);    /* bordures sur navy */

  /* --- Type --- */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* --- Layout --- */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-inline: var(--gut); }

section { position: relative; }

.section-pad { padding-block: clamp(64px, 9vw, 128px); }
.section-pad-sm { padding-block: clamp(48px, 6vw, 88px); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }

.h-display { font-size: clamp(40px, 6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.022em; }
.h1 { font-size: clamp(34px, 4.6vw, 56px); }
.h2 { font-size: clamp(28px, 3.4vw, 42px); }
.h3 { font-size: clamp(21px, 2vw, 26px); }

p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* Eyebrow / kicker (mono, méthode-de-conseil flavour) */
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
  display: inline-block;
}
.kicker.no-rule::before { display: none; }
.kicker.on-dark { color: var(--blue-bright); }
.kicker.on-dark::before { background: var(--blue-bright); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  line-height: 1;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--paper); color: var(--navy); }
.btn-dark:hover { background: var(--blue-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn-outline-light:hover { border-color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Text link with arrow */
.link-arrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.link-arrow .arrow { transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--navy);
  display: grid; place-items: center;
  position: relative; flex: none;
}
.brand .glyph::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--blue-bright);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue) 30%, transparent);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card.hover:hover { border-color: color-mix(in oklab, var(--blue) 45%, var(--line)); box-shadow: 0 18px 40px -28px oklch(0.4 0.08 258 / 0.5); transform: translateY(-3px); }

/* ---------- Placeholder imagery ---------- */
.ph {
  --s: oklch(0.86 0.02 255);
  background-color: var(--bg-3);
  background-image: repeating-linear-gradient(135deg, var(--s) 0 1px, transparent 1px 11px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}
.ph.on-dark {
  --s: oklch(0.34 0.04 260);
  background-color: var(--navy-2);
  border-color: var(--line-dark);
  color: oklch(0.66 0.03 258);
}

/* ---------- Dark section ---------- */
.dark {
  background: var(--navy);
  color: oklch(0.90 0.012 255);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .muted { color: oklch(0.74 0.02 255); }
.dark .lead { color: oklch(0.80 0.015 255); }

/* ---------- Divider rule ---------- */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: oklch(0.78 0.02 255); }
.site-footer a { color: oklch(0.78 0.02 255); transition: color .15s; }
.site-footer a:hover { color: #fff; }

/* ---------- Utility grids ---------- */
.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
