/* ───────────────────────── Tokens & shared chrome ───────────────────────── */
:root {
  --primary: #5BB7E8;
  --primary-600: #3FA7DD;
  --accent: #5BBD6C;
  --accent-600: #45A957;
  --dark: #4A90D9;
  --ink-900: #0E1B2C;
  --ink-700: #2A3B53;
  --ink-500: #5A6A82;
  --ink-400: #7C8AA0;
  --ink-200: #D5DCE6;
  --ink-100: #EAEEF5;
  --ink-50:  #F5F8FC;
  --bg:      #FFFFFF;
  --bg-soft: #F7FAFD;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(14,27,44,.04), 0 2px 6px rgba(14,27,44,.04);
  --shadow:    0 8px 24px -8px rgba(14,27,44,.10), 0 4px 10px -4px rgba(14,27,44,.06);
  --shadow-lg: 0 30px 60px -20px rgba(74,144,217,.25), 0 12px 30px -12px rgba(14,27,44,.10);

  --container: 1200px;
  --gutter: 24px;

  --fs-display: clamp(2.4rem, 4.6vw + .5rem, 4.25rem);
  --fs-h2:      clamp(1.75rem, 2vw + .8rem, 2.5rem);
  --fs-h3:      1.25rem;

  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(91,183,232,.7), inset 0 -2px 0 rgba(0,0,0,.06); }
.btn--primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(91,183,232,.7); }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--ink-900); border: 1px solid var(--ink-200); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; border-color: var(--primary); color: var(--dark); transform: translateY(-2px); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--dark); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Eyebrow & section heads */
section { padding-block: clamp(72px, 9vw, 120px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(91,183,232,.10); color: var(--dark);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(91,189,108,.18);
}
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--ink-100); background: rgba(255,255,255,.92); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-block: 18px; padding-inline: var(--gutter);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; font-size: 1.2rem; }
.logo-img { height: 88px; width: auto; display: block; object-fit: contain; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 16px -6px rgba(74,144,217,.5);
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; inset: auto -10% -50% -10%;
  height: 60%; background: var(--accent); border-radius: 50%; opacity: .8; filter: blur(6px);
}
.logo-mark span { position: relative; z-index: 1; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--ink-700); font-weight: 500; font-size: .95rem;
  position: relative; padding-block: 4px;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink-900); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: .65rem 1.15rem; font-size: .9rem; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .nav, .header-cta .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; padding: 8px; color: var(--ink-900); }
}

/* Footer */
footer.site-footer {
  background: var(--ink-900); color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
footer.site-footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
footer.site-footer .col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; font-weight: 700; }
footer.site-footer .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
footer.site-footer .col a { transition: color .2s var(--ease); }
footer.site-footer .col a:hover { color: #fff; }
footer.site-footer .brand-col p { font-size: .9rem; line-height: 1.7; margin-top: 16px; max-width: 320px; }
footer.site-footer .logo { color: #fff; }
footer.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; font-size: .85rem; flex-wrap: wrap; gap: 12px;
}
footer.site-footer .socials { display: flex; gap: 12px; }
footer.site-footer .socials a {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
footer.site-footer .socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 820px) {
  footer.site-footer .top { grid-template-columns: 1fr 1fr; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 100;
  transition: width .1s linear;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(91,183,232,.5);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(14,27,44,.5);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: #fff;
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-drawer.is-open .panel { transform: translateX(0); }
.mobile-drawer .head { display: flex; justify-content: space-between; align-items: center; }
.mobile-drawer .close {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ink-50); display: grid; place-items: center;
  color: var(--ink-700);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.mobile-drawer nav a {
  padding: 14px 16px; border-radius: 10px;
  font-weight: 600; color: var(--ink-700);
}
.mobile-drawer nav a:hover, .mobile-drawer nav a.active {
  background: rgba(91,183,232,.10); color: var(--dark);
}
.mobile-drawer .actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--ink-100); }

/* Typewriter caret */
.typewriter::after {
  content: "";
  display: inline-block;
  width: 3px; height: .9em;
  background: currentColor;
  margin-left: 4px;
  vertical-align: -.05em;
  animation: caret 1.05s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Page hero (mini) used by inner pages */
.page-hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  background:
    radial-gradient(700px 380px at 88% -10%, rgba(91,183,232,.20), transparent 60%),
    radial-gradient(600px 360px at 0% 30%,  rgba(91,189,108,.13), transparent 60%),
    linear-gradient(180deg, #FBFDFF 0%, #FFFFFF 90%);
}
.page-hero h1 { font-size: clamp(2rem, 3.5vw + .5rem, 3.4rem); margin: 18px 0 18px; }
.page-hero p.lead { color: var(--ink-500); font-size: 1.1rem; max-width: 620px; }
.page-hero .center { text-align: center; max-width: 760px; margin: 0 auto; }
.page-hero .center p.lead { margin-inline: auto; }


/* Tables HTML dans les articles de blog */

/* Tables HTML dans les sections richtext (text_block, callout, etc.) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 0.95rem;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
table thead th, table th {
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 0;
}
table td {
  padding: 12px 16px;
  border-top: 1px solid var(--ink-100);
  vertical-align: top;
  color: var(--ink-700);
  line-height: 1.5;
}
table tbody tr:nth-child(even) td { background: var(--ink-50); }
table tbody tr:hover td { background: rgba(214,228,245,.35); }
table strong, table b { color: var(--ink-900); }
