:root {
  --ink: #0b1220;
  --ink-2: #1b2536;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --brand: #1ba3dc;
  --brand-2: #0e7fb4;
  --accent: #5eead4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; flex: none; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 650; border: 0;
  cursor: pointer; font: inherit; font-weight: 650; box-shadow: 0 8px 24px -10px rgba(27, 163, 220, .8);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(27, 163, 220, .9); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-light { background: #fff; color: var(--ink); box-shadow: none; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: conic-gradient(from 210deg, var(--brand), var(--accent), var(--brand-2), var(--brand)); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2.5px solid #fff; border-left-color: transparent; transform: rotate(-30deg); }
.brand-text { font-weight: 800; letter-spacing: .14em; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text .e { color: var(--brand); }
.brand-text small { font-size: .62rem; letter-spacing: .5em; color: var(--brand); font-weight: 700; margin-top: 3px; }
.brand-light { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink-2); font-weight: 550; padding: .5em .85em; border-radius: 10px; font-size: .97rem; }
.nav a:not(.btn):hover, .nav a[aria-current] { background: var(--bg-alt); color: var(--brand-2); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .35); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .8em .9em; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #cbd5e1; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; color: #cbd5e1; }
.grad { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-inner { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: #1ba3dc; right: -120px; top: -160px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: #0f766e; right: 22%; bottom: -220px; opacity: .45; animation: float 18s ease-in-out infinite reverse; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
@keyframes float { 50% { transform: translate(-40px, 30px) scale(1.06); } }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 1em; }
.hero .eyebrow { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0 2.6em; }
.engines { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.engines li { padding: .4em 1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #e2e8f0; font-size: .9rem; font-weight: 550; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #cbd5e1; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--muted); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 26px; color: var(--brand-2); background: linear-gradient(135deg, rgba(27, 163, 220, .14), rgba(94, 234, 212, .18)); margin-bottom: 18px; }
.card-cta { background: linear-gradient(140deg, var(--ink), #12304a); color: #cbd5e1; display: flex; flex-direction: column; justify-content: center; }
.card-cta h3 { color: #fff; }
.card-cta .link { color: var(--accent); margin-top: 14px; }
.card-cta:hover { text-decoration: none; }
.card-cta p { color: #cbd5e1; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mission { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.mission p:last-child { margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value p { margin: 0; color: var(--muted); }
.num { display: block; font-weight: 800; font-size: 2rem; line-height: 1; margin-bottom: 14px; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos li { display: grid; place-items: center; height: 104px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.logos img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { padding: 34px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.stat-value { display: block; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-value::after { content: "+"; color: var(--accent); margin-left: 2px; }
.stat-label { display: block; margin-top: 10px; color: #94a3b8; font-weight: 550; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card h3 a { color: var(--ink); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { color: var(--muted); flex: 1; }
.post-card time { font-size: .875rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); background: rgba(27, 163, 220, .1); padding: .3em .7em; border-radius: 999px; }

.cta-band { background: linear-gradient(120deg, var(--brand-2), var(--brand) 55%, #2dd4bf); color: #e0f2fe; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }

/* ---------- Pages internes ---------- */
.page-hero { background: var(--ink); color: #cbd5e1; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; background: var(--brand); filter: blur(100px); opacity: .45; border-radius: 50%; }
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero .lead { max-width: 56ch; font-size: 1.15rem; margin: 0; }
.page-hero.tall { padding: 140px 0; }
.page-hero .tags span { color: var(--accent); background: rgba(94, 234, 212, .1); }
.crumbs { display: flex; gap: 8px; font-size: .9rem; margin-bottom: 18px; color: #94a3b8; }
.crumbs a { color: #cbd5e1; }
.meta { color: #94a3b8; margin: 0; }

.prose { padding: 56px 0 24px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; color: var(--ink-2); }
.prose pre { background: #0b1220; color: #e2e8f0; padding: 20px 22px; border-radius: 14px; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 0 0 1.4em; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .75em 1em; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.ok { color: #0f766e; font-weight: 650; }
.callout { border-left: 4px solid #f59e0b; background: #fffbeb; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 1.4em; color: #78350f; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0 72px; border-top: 1px solid var(--line); margin-top: 24px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 650; }
.post-nav a:hover { border-color: var(--brand); text-decoration: none; }
.post-nav small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: 6px; }
.field b { color: var(--brand-2); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: .75em .9em; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27, 163, 220, .15); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 550; }
.form-status.ok { background: #ecfdf5; color: #065f46; }
.form-status.err { background: #fef2f2; color: #991b1b; }
.form button[disabled] { opacity: .6; cursor: progress; }
.contact-aside { display: grid; gap: 18px; }
.office { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); }
.office h3, .site-footer h3 { display: flex; align-items: center; gap: 8px; }
.office h3 svg { color: var(--brand); font-size: 1.2rem; }
address { font-style: normal; }
.social { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.social svg { font-size: 1.3rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: #070c16; color: #94a3b8; padding: 64px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer h3 svg { color: var(--brand); }
.site-footer a { color: #cbd5e1; }
.site-footer .brand { margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .35em 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding: 22px 0; font-size: .85rem; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cards, .posts, .values, .stats, .split, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .stat { padding: 26px 22px; }
}
