/* SOOIZ — Maquette homepage V3 production-ready
   Palette tropicale — inspirée theme_inspiration.jpeg (lagon, azure, sable, ciel)
   Typo : DM Sans / DM Mono (v2) — auto-hébergées
   Espacements blocs : v3 */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-sans-300.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dm-sans-700.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/dm-sans-800.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-mono-500.woff2') format('woff2');
}

:root {
  --bg: #f2f7f6;
  --surface: #ffffff;
  --surface-2: #e5f2ef;
  --surface-3: #cfe8e3;
  --border: rgba(14, 46, 46, .1);
  --text: #0e2e2e;
  --muted: #4a6361;
  --faint: #5a736f;
  /* Vert lagon — entre océan et végétation */
  --primary: #1d9489;
  --primary-d: #0f746b;
  --primary-rgb: 29, 148, 137;
  --teal-l: #9dccc4;
  /* Bleu azure flash — Sécuriser */
  --azure: #10a8e0;
  --azure-d: #085a87;
  --azure-rgb: 16, 168, 224;
  --azure-pale: color-mix(in srgb, var(--azure) 15%, var(--surface));
  /* Bleu ciel */
  --sky: #7ec8e8;
  --sky-pale: #e4f3fa;
  --sky-rgb: 126, 200, 232;
  /* Sable plage — blanc cassé */
  --sand: #b5a68c;
  --sand-d: #5c5348;
  --sand-l: #f6f3ec;
  --sand-mid: rgba(181, 166, 140, .22);
  --sand-rgb: 181, 166, 140;
  --optimise-band: #f2efe6;
  /* Alias rétrocompat */
  --signal: var(--sky);
  --signal-pale: var(--sky-pale);
  --accent: var(--azure);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --sh-sm: 0 2px 8px rgba(14, 46, 46, .06);
  --sh-md: 0 8px 28px rgba(14, 46, 46, .09);
  --sh-lg: 0 22px 60px rgba(14, 46, 46, .12);

  /* Aliases for page components */
  --color-ink: var(--text);
  --color-ink-light: var(--muted);
  --color-ink-muted: var(--faint);
  --color-accent: var(--primary-d);
  --color-border: var(--border);
  --color-surface: var(--surface-2);
  --color-surface-bg: var(--bg);
  --font-mono: 'DM Mono', monospace;
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-14: 56px; --space-16: 64px;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --header-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--r-sm);
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-drawer-close:focus-visible {
  outline-offset: 2px;
}

.wrap {
  max-width: 1140px;
  margin: auto;
  padding-inline: 28px;
}

h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

#hero-title {
  line-height: 1.02;
}

h2 { font-size: clamp(28px, 3.4vw, 44px); }

h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.accent-primary { color: var(--primary-d); }
.accent-sand { color: var(--sand-d); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  border: none;
  transition: all .18s;
}

.btn-p {
  background: var(--primary-d);
  color: #fff;
  box-shadow: var(--sh-sm);
}

.btn-p:hover {
  background: #0a524c;
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

.btn-o {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-o:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  font-size: 15px;
  padding: 14px 26px;
}

/* ── HEADER / NAV ─────────────────────────────────── */

body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 249, 249, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  height: 38px;
  width: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--text);
}

.brand-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Piliers méthode — variantes texte WCAG2AA (COM_POL_001) */
.brand-tag-securise { color: #085a87; }
.brand-tag-organise { color: var(--primary-d); }
.brand-tag-optimise { color: var(--sand-d); }

@media (max-width: 400px) {
  .brand-tagline { display: none; }
}

.logo-svg {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
  /* clippe le panneau hors écran (translateX 100%) — sinon il élargit le
     document et crée une scrollbar horizontale sur tout le site */
  overflow: hidden;
}

.nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 46, 46, .35);
  opacity: 0;
  transition: opacity .2s;
}

.nav-drawer.is-open .nav-drawer-backdrop { opacity: 1; }

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  padding: 20px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(91, 191, 176, .14), transparent 58%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(201, 168, 76, .1), transparent 55%);
}

.nav-drawer-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-brand .logo-svg { height: 38px; }

.nav-drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background .15s, border-color .15s;
}

.nav-drawer-close:hover {
  background: var(--surface-2);
  border-color: rgba(15, 123, 123, .2);
}

.nav-drawer-links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.nav-drawer-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
  border-color: rgba(15, 123, 123, .18);
}

.nav-drawer-link-ic {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--primary);
}

.nav-drawer-link-ic.organise { color: var(--primary); background: rgba(var(--primary-rgb), .1); }
.nav-drawer-link-ic.optimise { color: var(--sand-d); background: rgba(var(--sand-rgb), .14); }
.nav-drawer-link-ic.securise { color: var(--azure); background: rgba(var(--azure-rgb), .12); }

.nav-drawer-link-ic svg { width: 20px; height: 20px; }

.nav-drawer-link-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-drawer-link-tx strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.nav-drawer-link-tx span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.nav-drawer-link-arr {
  width: 16px;
  height: 16px;
  color: var(--faint);
  flex-shrink: 0;
}

.nav-drawer-foot {
  position: relative;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-drawer-foot .btn {
  width: 100%;
  justify-content: center;
}

.nav-drawer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--faint);
}

.nav-drawer.is-open .nav-drawer-link {
  animation: navLinkIn .38s cubic-bezier(.22, 1, .36, 1) both;
}

.nav-drawer.is-open .nav-drawer-link:nth-child(1) { animation-delay: .06s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(2) { animation-delay: .1s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(3) { animation-delay: .14s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(4) { animation-delay: .18s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(5) { animation-delay: .22s; }

@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.nav-open { overflow: hidden; }

/* Nav dropdowns (desktop) */
.nav-item { position: relative; }

.nav-item-trigger,
.nav-top-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.nav-item-trigger:hover,
.nav-item-trigger[aria-expanded="true"],
.nav-top-link:hover { color: var(--text); }

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  /* aligné à droite du déclencheur : un sous-menu masqué (visibility) près du bord
     droit ne déborde plus du viewport (scrollbar horizontale) */
  left: auto;
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 50;
}

.nav-dropdown.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
}

.nav-submenu a:hover { background: var(--surface-2); }

.nav-submenu-label { font-size: 14px; font-weight: 600; }
.nav-submenu-sub { font-size: 12px; color: var(--muted); }

/* Drawer groups (mobile) */
.nav-drawer-nav {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}

/* hauteur contrainte + overflow-y : les items doivent défiler, pas se compresser */
.nav-drawer-nav > * { flex-shrink: 0; }

.nav-drawer-group {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.nav-drawer-group summary {
  padding: 11px 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-drawer-group summary::-webkit-details-marker { display: none; }

.nav-drawer-group summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
}

.nav-drawer-group[open] summary::after { content: "−"; }

.nav-drawer-group-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.nav-drawer-sublink {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-sublink:last-child { border-bottom: none; }
.nav-drawer-sublink small { font-size: 12px; color: var(--muted); }

.nav-drawer-toplink {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* Breadcrumb — barre fine rattachée au header, même fond que la barre de navigation */
.breadcrumb {
  padding: 7px 0;
  background: rgba(245, 249, 249, .92);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--faint);
}

.breadcrumb-item a { color: var(--primary-d); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-answer {
  padding: 0 18px 16px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer p { margin-bottom: 12px; }
.faq-answer ul { margin: 0 0 12px 1.2rem; }
.faq-answer a { color: var(--primary-d); }

/* Blog */
.blog-index { padding: 48px 0 64px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, border-color .18s;
}

.blog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blog-card-theme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--primary-d);
}

.blog-card-theme.organise { background: rgba(var(--primary-rgb), .1); color: var(--primary-d); }
.blog-card-theme.optimise { background: rgba(var(--sand-rgb), .14); color: var(--sand-d); }
.blog-card-theme.securise { background: rgba(var(--azure-rgb), .12); color: var(--azure-d); }
.blog-card-theme.teal { background: rgba(var(--primary-rgb), .12); color: var(--primary-d); }

.blog-card-theme svg { width: 14px; height: 14px; flex-shrink: 0; }

.blog-card:hover {
  box-shadow: var(--sh-md);
  border-color: rgba(15, 123, 123, .2);
}

.blog-card h2 { font-size: 1.15rem; margin: 0; color: var(--text); }
.blog-card time { font-size: 12px; color: var(--faint); }
.blog-card p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }

/* En-tête article — sticky opaque compactable, même format que le hero de /qui-suis-je/ */
.blog-article-hero {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  padding: 28px 0 24px;
  background: rgba(245, 249, 249, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding .22s ease, box-shadow .22s ease;
}

.blog-article-hero--compact {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(18, 70, 70, .08);
}

.blog-article-hero--compact .blog-article-header-top { display: none; }

.blog-article-hero--compact .blog-h1 {
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-article-hero-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.blog-article { padding: 24px 0 56px; }

.blog-article-wrap {
  width: 100%;
}

.blog-article-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.blog-article-header-extra {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--text);
  margin: 0;
  transition: font-size .22s ease;
}

.blog-meta { color: var(--muted); font-size: 14px; margin: 0; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.blog-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(var(--primary-rgb), .1);
  color: var(--primary-d);
}

.blog-article-body {
  width: 100%;
  max-width: none;
  padding-top: 28px;
}

.blog-article-body.lp-prose {
  font-size: 16px;
}

.lp-prose h2 {
  margin: 2.2rem 0 .75rem;
  font-size: 1.35rem;
  color: var(--text);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.lp-prose h3 {
  margin: 1.4rem 0 .5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.lp-prose p { margin-bottom: 1rem; line-height: 1.75; color: var(--muted); }

.lp-prose ul,
.lp-prose ol {
  margin: 0 0 1.1rem 1.3rem;
  color: var(--muted);
  line-height: 1.7;
}

.lp-prose li { margin-bottom: .35rem; }

.lp-prose a {
  color: var(--primary-d);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-prose > figure {
  margin: 1.75rem 0;
  max-width: 640px;
}

.lp-prose > figure.blog-figure-wide { max-width: 720px; }

.lp-prose > figure.blog-figure-md { max-width: 480px; }

.lp-prose > figure.blog-figure-sm { max-width: 280px; }

.lp-prose > figure.blog-figure-float-right {
  float: right;
  margin: 0 0 1.25rem 2rem;
  clear: right;
}
@media (max-width: 640px) {
  .lp-prose > figure.blog-figure-float-right {
    float: none;
    margin: 1.5rem 0;
  }
}

.blog-media-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 36px;
  align-items: center;
  margin: 1.75rem 0;
}
.blog-media-split figure {
  margin: 0;
  max-width: 300px;
}
.blog-media-split figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.blog-media-split figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}
.blog-media-split .blog-media-text > *:first-child { margin-top: 0; }
.blog-media-split .blog-media-text > *:last-child  { margin-bottom: 0; }
@media (max-width: 640px) {
  .blog-media-split {
    grid-template-columns: 1fr;
  }
  .blog-media-split figure { max-width: 260px; }
}

.blog-logos-pair {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.blog-logos-pair .blog-rdv-ref--logo-only { margin: 0; }
.blog-logos-pair > figure { margin: 0; }

.lp-prose > figure.blog-figure-logo {
  max-width: 96px;
  margin: 1rem 0;
}

.lp-prose figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.lp-prose > figure.blog-figure-logo img { border: none; }

.blog-figure-grid figure:not(.blog-figure-logo) img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.blog-figure-grid figure.blog-figure-logo img {
  max-height: 72px;
  width: auto;
}

.blog-rdv-logo-inline {
  display: inline-block;
  text-decoration: none;
  margin: 1rem 0 1.5rem;
}
.blog-rdv-logo-inline img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.blog-logos-pair .blog-rdv-logo-inline { margin: 0; }

.lp-prose figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

.blog-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 1.75rem 0;
}

.blog-lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.blog-iso-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 1.75rem 0;
}

.blog-iso-panel {
  padding: 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  height: 100%;
}

.blog-iso-panel.accent {
  background: rgba(var(--primary-rgb), .06);
  border-color: rgba(var(--primary-rgb), .18);
}

.blog-iso-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--text);
}

.blog-iso-panel ul {
  margin: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 14px;
}

.blog-iso-panel li { margin-bottom: 4px; }

.blog-rdv-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 1.75rem 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.blog-rdv-ref-logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.blog-rdv-ref-logo img {
  display: block;
  max-height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.blog-rdv-ref-text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
}

.blog-rdv-ref-text a { color: var(--primary-d); font-weight: 600; }

@media (min-width: 1024px) {
  .blog-article { padding: 32px 0 64px; }

  .blog-article-body.lp-prose { font-size: 17px; }

  .blog-figure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .blog-iso-panels { grid-template-columns: 1fr; }

  .blog-lead { padding: 16px 18px; }
}

/* External refs */
.external-refs-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.external-refs-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary-d);
}

.external-refs-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}


.hero {
  padding: 72px 0 52px;
  position: relative;
  overflow: hidden;
  width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b' x='-8%25' y='-8%25' width='116%25' height='116%25'%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M0,0 L0,100 L100,100 L100,66 C58,84 30,46 0,0 Z' fill='%23faf8f4' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat,
    linear-gradient(to top right, #faf8f4 0%, #faf8f4 48%, rgba(var(--primary-rgb), .05) 68%, rgba(var(--azure-rgb), .04) 86%, rgba(var(--azure-rgb), .06) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 23%;
  width: 340px;
  height: 135%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 500'%3E%3Cpath d='M100 490C98 400 104 310 110 225C114 160 112 95 104 45' stroke='%23085a87' stroke-width='18' fill='none' stroke-linecap='round'/%3E%3Cpath d='M104 45C68 15 15 2 0 30C30 46 68 52 104 58' fill='%23085a87'/%3E%3Cpath d='M104 45C140 12 186 8 200 35C172 48 138 54 104 58' fill='%23085a87'/%3E%3Cpath d='M104 58C72 38 28 47 8 76C40 78 73 68 104 64' fill='%230f746b'/%3E%3Cpath d='M104 58C136 40 176 52 194 80C163 79 133 68 104 64' fill='%230f746b'/%3E%3Cpath d='M104 64C68 59 25 78 8 112C44 106 74 88 104 74' fill='%231d9489'/%3E%3Cpath d='M104 64C140 61 182 80 198 115C164 106 135 88 104 74' fill='%231d9489'/%3E%3C/svg%3E") no-repeat center top / 100% auto;
  transform: rotate(15deg);
  transform-origin: 50% 100%;
  filter: blur(14px);
  opacity: 0.07;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(var(--sand-rgb), .28);
  border: 1px solid rgba(var(--sand-rgb), .45);
  font-size: 13px;
  font-weight: 600;
  color: var(--sand-d);
  margin-bottom: 18px;
}

.e-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--faint);
}

.meta-item .icon-teal { color: var(--primary); }
.meta-item .icon-signal { color: var(--signal); }
.meta-item .icon-sand { color: var(--sand); }
.meta-item .icon-accent { color: var(--accent); }

@keyframes hue-shift {
  0%, 100% { color: var(--primary); }
  33% { color: var(--signal); }
  66% { color: var(--sand); }
}

.animated-accent { animation: hue-shift 8s ease-in-out infinite; }

/* ── HERO PANEL ───────────────────────────────────── */

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.panel-head {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, var(--surface-2), rgba(168, 216, 212, .25));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(91, 191, 176, .15);
  border: 1px solid rgba(91, 191, 176, .3);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.panel-svg-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 20px 8px;
}

.panel-svg-wrap svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.panel-body { padding: 0 22px 22px; }

.node-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.node-ic {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}

.node-tx strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 1px;
}

.node-tx span {
  font-size: 12px;
  color: var(--muted);
}

.node-arr { margin-left: auto; color: var(--faint); }

/* ── SECTIONS ─────────────────────────────────────── */

section { padding: 32px 0 60px; }

/* Sous-pages — annule le padding section homepage (légal, profil, etc.) */
.legal-page section,
.about-page section {
  padding: 0;
}

.about-page .qs-section {
  padding: 44px 0;
}

#services {
  padding-top: 64px;
  padding-bottom: 20px;
}

.chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--sand-l);
  color: var(--sand-d);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--sand-mid);
  margin-bottom: 14px;
}

.chip.teal {
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary-d);
  border-color: rgba(var(--primary-rgb), .18);
}

.chip.azure {
  background: var(--azure-pale);
  color: var(--azure-d);
  border-color: rgba(var(--azure-rgb), .28);
}

.sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 54ch;
  margin-top: 10px;
  line-height: 1.7;
}

.sub-tight { margin-top: 14px; }

/* ── SERVICES ─────────────────────────────────────── */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.svc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .18s;
}

.svc:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.svc-ic {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--primary);
}

.svc p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
}

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-d);
}

/* ── MÉTHODE / INFINI ─────────────────────────────── */

.infinity-section { padding: 40px 0 68px; }

.infinity-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 42px;
  box-shadow: var(--sh-sm);
}

.infinity-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pillar-card {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.pillar-card.organise {
  background: var(--surface-3);
  border-color: rgba(var(--primary-rgb), .14);
}

.pillar-card.optimise {
  background: var(--optimise-band);
  border-color: rgba(var(--sand-rgb), .3);
}

.pillar-card.securise {
  background: var(--azure-pale);
  border-color: rgba(var(--azure-rgb), .32);
}

.pillar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.pillar-label.organise { color: #0a524c; }
.pillar-label.optimise { color: var(--sand-d); }
.pillar-label.securise { color: #085a87; }

.pillar-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.infinity-diagram {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px 0 12px;
}

.inf-svg-container {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.inf-svg-container svg {
  width: 100%;
  height: auto;
}

.infinity-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.legend-swatch {
  width: 22px;
  height: 3px;
  display: block;
  border-radius: 2px;
}

.legend-swatch.primary { background: var(--primary); }
.legend-swatch.sand { background: var(--sand); }
.legend-swatch.signal { background: var(--signal); }

/* ── IA × PROCESS ─────────────────────────────────── */

.ia-section {
  padding-top: 20px;
  padding-bottom: 60px;
}

.evo-band {
  background: linear-gradient(130deg, #0b3838, #0f5e5e);
  border-radius: var(--r-xl);
  padding: 48px;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.evo-band::before { display: none; }

.evo-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  display: inline-block;
  margin-bottom: 18px;
}

.evo-band h2 {
  color: white;
  margin-bottom: 14px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.03em;
  line-height: 1.08;
}

.evo-band > div:first-child p {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.75;
}

.evo-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(201, 168, 76, .12);
  border: 1px solid rgba(201, 168, 76, .25);
}

.evo-note p {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin: 0;
}

.evo-timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 20px 0 4px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.evo-tl-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.evo-tl-n {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--signal);
  color: #0e2e2e;
  font-size: 10px;
  font-weight: 800;
}

.evo-tl-gate {
  color: var(--signal);
  font-size: 11px;
  font-weight: 700;
  opacity: .85;
}

.evo-tl-arr {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  font-weight: 700;
}

.evo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.evo-cta {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.evo-cta:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.evo-cta-alt {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .88);
}

.evo-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.evo-card {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.evo-card-ic {
  flex-shrink: 0;
  color: var(--teal-l);
  margin-top: 2px;
}

.evo-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.evo-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin: 0;
  line-height: 1.55;
}

/* ── CTA + FOOTER ─────────────────────────────────── */

.fcta {
  text-align: center;
  padding: 64px 0 80px;
}

.fcta h2 { margin-bottom: 12px; }

.fcta p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
  margin-inline: auto;
  max-width: 42ch;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--primary); }

.footer-zone {
  font-size: 12px;
  color: var(--muted);
}

/* ── SCROLL REVEAL ────────────────────────────────── */

.fr { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fr {
    animation: rev linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 72%;
  }

  @keyframes rev {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 1023px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .wrap { padding-inline: 20px; }

  .nav-desktop { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav-drawer-panel {
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    border-left: none;
    box-shadow: none;
    padding: 24px 22px 32px;
  }

  .nav-drawer-backdrop {
    background: rgba(14, 46, 46, .45);
  }

  .nav-drawer-link {
    padding: 16px 18px;
  }

  .nav-drawer-link-tx strong { font-size: 16px; }

  /* Espacement vertical entre blocs — ~⅓ des valeurs précédentes */
  main > section {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  main > section + section {
    margin-top: 16px;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .hero::before { content: none; }

  #services {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-grid,
  .svc-grid,
  .evo-band,
  .infinity-head { grid-template-columns: 1fr; }

  .hero-grid { gap: 48px; }

  .hero-meta { margin-top: 28px; gap: 16px; }

  .svc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
  }

  .infinity-section {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .infinity-head {
    gap: 32px;
    margin-bottom: 24px;
  }

  .infinity-wrap {
    padding: 36px 20px 32px;
  }

  .infinity-legend {
    margin-top: 12px;
    padding-top: 4px;
  }

  .pillar-grid { gap: 18px; }

  .ia-section {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .evo-band {
    gap: 36px;
    padding: 36px 24px;
  }

  .evo-cards { gap: 18px; }

  .fcta {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ── STICKY PAGE HERO (réduction fluide au scroll) ─ */

.ab-hero,
.qs-hero {
  --hero-shrink: 0;
  padding-top: calc(28px - 18px * var(--hero-shrink));
  padding-bottom: calc(24px - 14px * var(--hero-shrink));
  box-shadow: 0 calc(4px * var(--hero-shrink)) calc(20px * var(--hero-shrink))
    rgba(18, 70, 70, calc(0.08 * var(--hero-shrink)));
}

.ab-hero-inner,
.qs-hero-inner {
  gap: calc(14px + (1 - var(--hero-shrink)) * 10px);
}

.ab-logo,
.qs-photo {
  width: calc(56px + (1 - var(--hero-shrink)) * 74px);
  height: calc(56px + (1 - var(--hero-shrink)) * 74px);
  border-width: calc(2px + (1 - var(--hero-shrink)) * 1px);
}

.ab-h1,
.qs-h1 {
  font-size: calc(17px + (1 - var(--hero-shrink)) * clamp(9px, 2.8vw, 23px));
  margin-bottom: calc(2px + (1 - var(--hero-shrink)) * 6px);
}

.ab-identity .chip,
.qs-identity .chip {
  opacity: calc(1 - min(1, var(--hero-shrink) * 1.25));
  max-height: calc(36px * max(0, 1 - var(--hero-shrink) * 1.1));
  margin-bottom: calc((1 - var(--hero-shrink)) * 18px);
  overflow: hidden;
}

.ab-sub,
.qs-sub {
  font-size: calc(13px + (1 - var(--hero-shrink)) * 3px);
  margin-bottom: calc(2px + (1 - var(--hero-shrink)) * 4px);
}

.ab-location,
.qs-location {
  font-size: calc(12px + (1 - var(--hero-shrink)) * 1px);
  margin-bottom: calc((1 - var(--hero-shrink)) * 14px);
}

.ab-actions .btn,
.ab-actions .btn-linkedin,
.qs-actions .btn,
.qs-actions .btn-linkedin {
  padding: calc(7px + (1 - var(--hero-shrink)) * 5px) calc(14px + (1 - var(--hero-shrink)) * 8px);
  font-size: calc(13px + (1 - var(--hero-shrink)) * 1px);
}

@media (max-width: 640px) {
  .ab-logo,
  .qs-photo {
    width: calc(48px + (1 - var(--hero-shrink)) * 62px);
    height: calc(48px + (1 - var(--hero-shrink)) * 62px);
  }

  .ab-sub,
  .qs-sub {
    opacity: calc(1 - min(1, var(--hero-shrink) * 1.15));
    max-height: calc(72px * max(0, 1 - var(--hero-shrink) * 0.95));
    overflow: hidden;
  }
}

/* ── REDUCED MOTION ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ab-hero:not(.ab-hero--compact),
  .qs-hero:not(.qs-hero--compact) { --hero-shrink: 0; }

  .ab-hero.ab-hero--compact,
  .qs-hero.qs-hero--compact { --hero-shrink: 1; }

  .animated-accent,
  .e-dot { animation: none !important; }

  .fr { opacity: 1 !important; animation: none !important; }

  .nav-drawer.is-open .nav-drawer-link { animation: none !important; }

  svg animate,
  svg animateMotion,
  svg animateTransform { display: none; }
}
