/* =========================================================================
   Mamos Crypto — système de design
   Une feuille de style, des variables centralisées, zéro framework CSS.
   ========================================================================= */

/* ---- 1. Jetons de design ------------------------------------------------ */
:root {
  /* Couleurs de surface : ardoise froide, trois niveaux de profondeur. */
  --bg: #07090d;
  --bg-raised: #0b0f15;
  --surface: #0f141c;
  --surface-2: #141b25;
  --surface-3: #1a2330;

  /* Bordures */
  --border: #1d2633;
  --border-strong: #2a3546;
  --border-accent: rgba(56, 189, 248, 0.34);

  /* Texte — contrastes mesurés sur --bg et --surface. */
  --text: #eef2f7;
  --text-2: #b8c2d0;
  --text-3: #949fb0;
  --text-inverse: #06121c;

  /* Accents — le bleu de la marque Mamos, un seul accent de mise en avant. */
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-ink: #06121c;

  /* Couleurs porteuses de sens (états, plateformes), jamais seules. */
  --positive: #34d399;
  --warning: #fbbf24;
  --negative: #f87171;
  --neutral: #94a3b8;
  --positive-soft: rgba(52, 211, 153, 0.14);
  --warning-soft: rgba(251, 191, 36, 0.14);
  --negative-soft: rgba(248, 113, 113, 0.14);

  /* Typographie */
  --font: 'Jakarta', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 0.4vw + 1.04rem, 1.25rem);
  --fs-xl: clamp(1.375rem, 0.7vw + 1.2rem, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.6vw + 1.35rem, 2.375rem);
  --fs-3xl: clamp(2.0625rem, 3.2vw + 1.3rem, 3.5rem);
  --fs-4xl: clamp(2.375rem, 4.4vw + 1.15rem, 4.25rem);
  --lh-tight: 1.08;
  --lh-snug: 1.22;
  --lh-body: 1.65;
  --tracking-caps: 0.14em;

  /* Espacements — échelle en rem, un seul rythme */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --wrap: 1200px;
  --wrap-narrow: 760px;

  /* Rayons */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Ombres — discrètes, jamais sur du texte */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-3: 0 24px 70px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --t-fast: 140ms ease;
  --t-base: 220ms ease;
  --t-slow: 360ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Breakpoints documentés (utilisés en min-width ci-dessous) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* Rangée de mise en avant (indicateurs, produits) et mosaïque outils */
  --bp-row: 560px;
  --bp-tools: 940px;

  color-scheme: dark;
}

/* ---- 2. Base ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h3,
h4 {
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Focus visible commun : jamais retiré. */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 3. Typographie ----------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.h-section {
  font-size: var(--fs-2xl);
}

.h-card {
  font-size: var(--fs-lg);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 62ch;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---- 4. Mise en page ---------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2 * var(--gutter), var(--wrap-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.ambient {
  position: relative;
  isolation: isolate;
}

.ambient::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -1;
  background: radial-gradient(60% 70% at 80% 0%, rgba(56, 189, 248, 0.07), transparent 65%);
  pointer-events: none;
}

.section--raised {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-block: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
  max-width: 72ch;
}

.section-head p {
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.section-head .stack > .eyebrow {
  justify-self: start;
  margin-bottom: var(--sp-2);
}

.section-head .stack {
  gap: 0;
}

.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}

@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--sp-7);
  }

  .section-head--split .stack {
    justify-items: start;
  }

  .section-head--split .stack > .eyebrow,
  .section-head--split p {
    justify-self: start;
  }

  .section-head--split p {
    justify-self: end;
    max-width: 44ch;
  }
}

.grid {
  display: grid;
  gap: var(--sp-4);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid {
    gap: var(--sp-5);
  }
}

.stack {
  display: grid;
  gap: var(--sp-4);
}

.stack--lg {
  gap: var(--sp-5);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* ---- 5. Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}

.site-header[data-scrolled='true'] {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 13, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 68px;
  min-width: 0;
}

.subnav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.94);
}

.subnav[data-visible='true'] {
  display: block;
}

.subnav__scroller {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 6px;
  scroll-padding-inline: var(--gutter);
}

.subnav__scroller::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.subnav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.subnav__link[aria-current='page'] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.cta-short {
  display: none;
}

.cta-full {
  display: inline;
}

.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .brand {
    margin-right: var(--sp-2);
  }

  .header-inner {
    gap: 8px;
  }

  .nav-link {
    padding-inline: 10px;
    font-size: 0.8125rem;
    gap: 4px;
  }

  .header-actions .btn--primary {
    padding-inline: 14px;
    font-size: 0.8125rem;
  }

  .brand-word {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .cta-header {
    margin-left: var(--sp-2);
  }

  .brand {
    margin-right: var(--sp-4);
  }

  .nav-link {
    padding-inline: 14px;
  }
}

@media (max-width: 479px) {
  .hide-xs {
    display: none !important;
  }

  .header-inner {
    gap: 8px;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .menu-toggle {
    width: 44px;
    height: 40px;
    flex-shrink: 0;
  }

  .cta-full {
    display: none;
  }

  .btn.cta-header {
    min-width: 0;
    padding: 0 12px;
    font-size: var(--fs-xs);
    gap: 6px;
  }

  .cta-short {
    display: inline;
  }

  .brand-tag {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand .mark {
  color: var(--accent);
  transition: transform var(--t-base);
}

.brand:hover .mark {
  transform: translateY(-1px);
}

.brand-word {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .brand {
    gap: 7px;
  }

  .brand .mark {
    width: 24px;
    height: 24px;
  }

  .brand-word {
    font-size: 0.875rem;
    letter-spacing: 0.14em;
  }
}

.brand-tag {
  display: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
}

@media (min-width: 1024px) {
  .brand-tag {
    display: inline;
  }
}

.main-nav {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link[aria-current='page'] {
  color: var(--text);
}

.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-link .icon {
  opacity: 0.65;
}

/* Menu déroulant « Nos plateformes » — details/summary, sans JavaScript. */
.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
  cursor: pointer;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu[open] > summary {
  color: var(--text);
  background: var(--surface);
}

.nav-menu[open] > summary .icon {
  transform: rotate(180deg);
}

.nav-menu > summary .icon {
  transition: transform var(--t-base);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: 640px;
  padding: var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.nav-panel__foot {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.nav-panel__foot a {
  color: var(--accent-strong);
  font-weight: 600;
}

.nav-panel__foot a:hover {
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
  min-width: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }
}

/* Panneau de navigation mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__body {
  padding-block: var(--sp-5);
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}

.mobile-nav__links {
  display: grid;
  gap: 2px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__link .icon {
  color: var(--text-3);
}

.mobile-nav__group-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-2);
}

.mobile-nav__list {
  display: grid;
  gap: 6px;
}

.mobile-nav__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.mobile-nav__item strong {
  display: block;
  font-size: var(--fs-sm);
}

.mobile-nav__item span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.mobile-nav__foot {
  padding-block: var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--sp-3);
}

body[data-menu='open'] {
  overflow: hidden;
}

/* ---- 6. Boutons et CTA -------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  transition: transform var(--t-fast);
}

.btn:hover .icon--arrow {
  transform: translateX(2px);
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-border: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 10px 30px rgba(56, 189, 248, 0.16);
}

.btn--primary:hover {
  --btn-bg: var(--accent-strong);
  --btn-border: var(--accent-strong);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.02);
  --btn-fg: var(--text);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-2);
}

.btn--quiet {
  --btn-fg: var(--text-2);
  --btn-border: transparent;
  padding-inline: 10px;
}

.btn--quiet:hover {
  --btn-fg: var(--text);
  --btn-bg: var(--surface);
}

.btn--lg {
  min-height: 52px;
  padding-inline: 24px;
  font-size: var(--fs-base);
  border-radius: var(--r-md);
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled='true'],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn[data-loading='true'] {
  pointer-events: none;
  opacity: 0.75;
}

.btn[data-loading='true']::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent-strong);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(167, 139, 250, 0.12), transparent 60%),
    var(--surface);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-band {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: var(--sp-7);
  }

  .cta-band__actions {
    justify-self: end;
    display: grid;
    gap: var(--sp-3);
    min-width: 260px;
  }
}

.cta-band h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
}

.cta-band p {
  color: var(--text-2);
  max-width: 56ch;
}

@media (max-width: 1023px) {
  .cta-band__actions .btn {
    width: 100%;
  }
}

/* ---- 7. Badges, étiquettes, pastilles ----------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge .icon {
  flex-shrink: 0;
}

.badge--accent {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge--positive {
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--positive-soft);
  color: #6ee7b7;
}

.badge--warning {
  border-color: rgba(251, 191, 36, 0.35);
  background: var(--warning-soft);
  color: #fcd34d;
}

.badge--open::before,
.badge--lock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--open {
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--positive-soft);
  color: #6ee7b7;
}

.badge--lock {
  border-color: var(--border-strong);
  color: var(--text-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat {
  display: grid;
  gap: 4px;
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.stat b {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* ---- 8. Cartes ---------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.card--link {
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base);
}

.card--link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__text {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.card__kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
}

/* Carte de plateforme (page d'accueil et /outils) */
.platform-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.platform-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.platform-card__shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.platform-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-slow);
}

.platform-card:hover .platform-card__shot img {
  transform: scale(1.015);
}

.platform-card__body {
  display: grid;
  gap: var(--sp-3);
  padding: 0 var(--sp-5) var(--sp-5);
}

.platform-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.platform-card h3 {
  font-size: var(--fs-xl);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.platform-card h3 .name-suffix {
  color: var(--accent-strong);
  font-weight: 600;
}

.platform-card__summary {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.platform-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  border-top: 1px solid var(--border);
}

.nav-placeholder { display: none; }

.nav-panel__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.nav-panel__item > .avatar {
  grid-row: span 2;
  width: 32px;
  height: 32px;
}

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

.nav-panel__name {
  display: block;
  grid-column: 2;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
}

.nav-panel__desc {
  display: block;
  grid-column: 2;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.4;
}

.nav-panel__item > span:not(.nav-panel__name):not(.nav-panel__desc) {
  display: contents;
}

.platform-card__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Grille de l'accueil : 1 / 2 colonnes, cartes larges côte à côte */
@media (min-width: 900px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Carte produit */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t-base), background var(--t-base);
}

.product-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.product-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.product-card h3 {
  font-size: var(--fs-xl);
  letter-spacing: 0.02em;
}

.product-card__tagline {
  display: block;
  font-size: var(--fs-sm);
  color: var(--accent-strong);
  font-weight: 600;
  margin-top: 2px;
}

.product-card p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.product-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Carte de fonctionnalité compacte */
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--accent-strong);
}

.feature h3 {
  font-size: var(--fs-base);
  margin-bottom: 4px;
}

.feature p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---- 9. Accueil : hero ------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  z-index: -1;
  background:
    radial-gradient(42% 55% at 22% 42%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(38% 50% at 82% 18%, rgba(167, 139, 250, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 20%, transparent 80%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: var(--sp-8);
  }
}

.hero__copy {
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
}

.hero h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-strong);
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 50ch;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  width: 100%;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__note .icon {
  color: var(--positive);
}

@media (max-width: 479px) {
  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 559px) {
  .platform-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.compare {
  min-width: 0;
}

.compare-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare table {
  min-width: 640px;
}

/* Visuel du hero : la mosaïque des quatre plateformes */
.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 10px;
  aspect-ratio: 1.06;
  max-width: 620px;
  width: 100%;
  justify-self: center;
}

.hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hero-tile__label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: rgba(7, 9, 13, 0.82);
  border: 1px solid var(--border-strong);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(6px);
}

.hero-tile--terminal {
  grid-area: 1 / 1 / 8 / 9;
}

.hero-tile--options {
  grid-area: 1 / 9 / 6 / 13;
  translate: 0 0;
}

.hero-tile--chart {
  grid-area: 6 / 9 / 11 / 13;
}

.hero-tile--vip {
  grid-area: 8 / 1 / 11 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    var(--surface-2);
}

.hero-tile--vip .badge {
  align-self: flex-start;
}

.hero-tile--vip b {
  font-size: var(--fs-base);
}

.hero-tile--vip .row {
  gap: 6px;
}

.hero-tile--vip .avatar {
  width: 40px;
  height: 40px;
}

@media (max-width: 639px) {
  .hero-art {
    aspect-ratio: auto;
    grid-template-rows: none;
  }

  .hero-tile--terminal {
    grid-area: 1 / 1 / 2 / 13;
    aspect-ratio: 16 / 10;
  }

  .hero-tile--options {
    grid-area: 2 / 1 / 3 / 7;
    aspect-ratio: 3 / 4;
  }

  .hero-tile--chart {
    grid-area: 2 / 7 / 3 / 13;
    aspect-ratio: 3 / 4;
  }

  .hero-tile--vip {
    grid-area: 3 / 1 / 4 / 13;
    aspect-ratio: auto;
  }
}

/* ---- 10. Bandeau « comment nous lisons un marché » -------------------- */
.ritual {
  display: grid;
  gap: var(--sp-5);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

@media (min-width: 1024px) {
  .ritual {
    grid-template-columns: 220px 1fr;
    gap: var(--sp-7);
    align-items: start;
  }
}

.ritual__steps {
  display: grid;
  gap: 0;
}

@media (min-width: 1024px) {
  .ritual__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
    align-items: start;
  }
}

.ritual-step {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-5);
  border-left: 1px solid var(--border-strong);
}

.ritual-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-raised);
}

.ritual-step b {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

.ritual-step h3 {
  font-size: var(--fs-base);
  text-wrap: balance;
}

.ritual-step p {
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.ritual-step a {
  color: var(--accent-strong);
  font-weight: 600;
}

.ritual-step a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 11. Plateforme : page dédiée ------------------------------------ */
.page-hero {
  padding-block: calc(clamp(2rem, 4vw, 3.5rem) + env(safe-area-inset-top)) var(--sp-7);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--border-strong);
}

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

.page-hero__grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.page-hero h1 {
  font-size: var(--fs-3xl);
}

.page-hero h1 .name-suffix {
  color: var(--accent-strong);
}

.page-hero p.lead {
  margin-top: var(--sp-2);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

@media (max-width: 479px) {
  .page-hero__actions .btn {
    width: 100%;
  }
}

.shot-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow-3);
}

.shot-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.shot-frame__bar span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.shot-frame img {
  width: 100%;
  display: block;
}

.platform-layout {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 1024px) {
  .platform-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: var(--sp-8);
  }

  .platform-layout__aside {
    position: sticky;
    top: 96px;
  }
}

.speech {
  display: grid;
  gap: var(--sp-4);
}

.speech h2 {
  font-size: var(--fs-xl);
}

.speech p {
  color: var(--text-2);
  line-height: 1.7;
  max-width: 68ch;
}

.speech p strong {
  color: var(--text);
  font-weight: 600;
}

.panel {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel h2,
.panel h3 {
  font-size: var(--fs-base);
}

.panel__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.panel__row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.panel__row dt {
  color: var(--text-3);
}

.panel__row dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.checklist {
  display: grid;
  gap: var(--sp-3);
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.checklist .icon {
  color: var(--positive);
  margin-top: 3px;
}

/* ---- 12. FAQ ----------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-md);
  list-style: none;
}

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

.faq summary .icon {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--t-base);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details > div {
  padding: 0 0 22px;
  color: var(--text-2);
  max-width: 72ch;
}

/* ---- 13. Comparateur / tableau --------------------------------------- */
.compare {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.compare caption {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-raised);
  border-top: 0;
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.compare td {
  color: var(--text-2);
}

.compare td a {
  color: var(--accent-strong);
  font-weight: 600;
}

.compare td a:hover {
  text-decoration: underline;
}

.compare-scroll {
  overflow-x: auto;
}

/* ---- 14. Formules / paliers ------------------------------------------ */
.tiers {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tier {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.tier--hi {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), var(--surface) 60%);
}

.tier h3 {
  font-size: var(--fs-base);
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier__price b {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tier__price span {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.tier__scope {
  font-size: var(--fs-sm);
  color: var(--accent-strong);
  font-weight: 600;
}

.tier ul {
  display: grid;
  gap: 10px;
}

.tier li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.tier li .icon {
  color: var(--positive);
  margin-top: 3px;
}

.tier .btn {
  margin-top: auto;
}

/* ---- 15. Footer ------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding-block: var(--sp-8) var(--sp-5);
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: var(--sp-7);
  }
}

.footer-brand p {
  color: var(--text-3);
  font-size: var(--fs-sm);
  margin-top: var(--sp-3);
  max-width: 34ch;
}

.footer-col h2 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  display: grid;
  gap: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col .icon {
  opacity: 0.6;
}

.footer-legal {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--sp-4);
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.footer-legal p {
  max-width: 88ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 16. Pages légales et contenu long ------------------------------- */
.prose {
  display: grid;
  gap: var(--sp-5);
  max-width: 74ch;
}

.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-4);
}

.prose h3 {
  font-size: var(--fs-md);
  margin-top: var(--sp-3);
}

.prose p,
.prose li {
  color: var(--text-2);
  line-height: 1.75;
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 1.15rem;
  list-style: disc;
}

.prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: var(--warning-soft);
  color: var(--text);
  font-size: var(--fs-sm);
}

.notice .icon {
  color: var(--warning);
  margin-top: 2px;
}

.notice p {
  color: var(--text-2);
}

.notice strong {
  color: var(--text);
}

/* ---- 17. Page 404 ----------------------------------------------------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: var(--sp-4);
  padding-block: var(--section);
}

.error-code {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

/* ---- 18. Animations légères, désactivables --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: var(--d, 0ms);
  }

  .hero-tile {
    animation: rise 640ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: var(--d, 0ms);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- 19. Impression et petits écrans --------------------------------- */
@media (max-width: 375px) {
  :root {
    --gutter: 1rem;
    --sp-5: 1.25rem;
  }

  .brand-word {
    letter-spacing: 0.16em;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }
}

/* ---- 20. Utilitaires --------------------------------------------------- */
.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

.mt-5 {
  margin-top: var(--sp-5);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.mb-6 {
  margin-bottom: var(--sp-6);
}

.center {
  text-align: center;
}

.center .lead,
.center p {
  margin-inline: auto;
}

.fs-sm {
  font-size: var(--fs-sm);
}

.u-nowrap {
  white-space: nowrap;
}

.color-accent {
  color: var(--accent-strong);
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---- 21. Rangée de mise en avant et catalogue ------------------------- */
.feat-row {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 560px) {
  .feat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cat-card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  align-content: start;
  transition: border-color var(--t-base), background var(--t-base);
}

.cat-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.cat-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.cat-card h3 {
  font-size: var(--fs-md);
}

.cat-card__head span {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.cat-card p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.cat-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Rayon de produits */
.product-row {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fiche produit : titre + visuel + composition */
.product-hero {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-7) var(--sp-6);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}

@media (min-width: 1024px) {
  .product-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

.product-hero h1 {
  font-size: var(--fs-3xl);
  letter-spacing: 0.01em;
}

.product-hero h1 small {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
}

.avatar-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.avatar-showcase .avatar {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}

.avatar-showcase--row .avatar {
  width: 64px;
  height: 64px;
}

.part-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .part-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-7);
  }
}

.part {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.part h3 {
  font-size: var(--fs-base);
  margin-bottom: 4px;
}

.part p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---- 22. Encart « où le produit est utilisable » --------------------- */
.usage {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-accent);
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
    var(--surface);
}

.usage h2 {
  font-size: var(--fs-xl);
}

.usage p {
  color: var(--text-2);
}

.usage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Encart « à valider » : jamais présenté comme un produit fini */
.needs {
  border-color: rgba(251, 191, 36, 0.3);
  background: var(--warning-soft);
  border-radius: var(--r-md);
  border-width: 1px;
  border-style: solid;
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.needs .icon {
  color: var(--warning);
  margin-top: 2px;
}

.needs p {
  color: var(--text-2);
}

.needs strong {
  color: var(--text);
}

/* ---- 23. Les étapes de la méthode (à propos) -------------------------- */
.method {
  display: grid;
  gap: var(--sp-4);
  counter-reset: method;
}

@media (min-width: 768px) {
  .method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.method li {
  counter-increment: method;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.method li::before {
  content: counter(method, decimal-leading-zero);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.method h3 {
  font-size: var(--fs-md);
  margin-bottom: 6px;
}

.method p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* ---- 24. Divers ------------------------------------------------------ */
.stack-gap-3 {
  display: grid;
  gap: var(--sp-3);
}

.row--end {
  justify-content: flex-end;
}

.kicker-list {
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.kicker-list li::before {
  content: '—';
  margin-right: 8px;
  color: var(--border-strong);
}

/* ---- 25. Polices auto-hébergées --------------------------------------- */
@font-face {
  font-family: 'Jakarta';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jakarta-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jakarta';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jakarta-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jakarta';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/jakarta-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- 26. Recherche simple (page 404) --------------------------------- */
.search-form {
  display: flex;
  gap: var(--sp-2);
  max-width: 520px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
}

.search-form input::placeholder {
  color: var(--text-3);
}

.search-form input:focus-visible {
  border-color: var(--accent);
}

.kicker-list a,
.compare td a {
  color: var(--text-2);
}

.kicker-list a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 27. Blocs « ce qu'elle ne fait pas » --------------------------- */
.limits {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.limits h2 {
  font-size: var(--fs-base);
}

.limits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.limits .icon {
  color: var(--text-3);
  margin-top: 3px;
}

/* ---- 28. Cartes de guide, méthode à propos ------------------------ */
.quote {
  border-left: 2px solid var(--accent);
  padding-left: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--text);
  max-width: 60ch;
}

.quote cite {
  display: block;
  margin-top: var(--sp-2);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.split-media {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .split-media {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--sp-8);
  }

  .split-media--reverse > :first-child {
    order: 2;
  }
}

/* ---- 29. Points de rupture (documentation) ---------------------------
   375 / 390 px : mobile portrait — menu plein écran, CTA sur toute la largeur,
                  en-tête resserré (logo réduit, CTA « Explorer »).
   480-767 px   : grands téléphones — cartes pleine largeur, tableaux scrollables.
   768-1023 px  : tablettes — deux colonnes, en-tête allégé (sous-navigation).
   1024-1439 px : ordinateurs portables — navigation complète et menus déroulants.
   >= 1440 px   : grands écrans — conteneur plafonné à 1200 px.
   ---------------------------------------------------------------------- */

/* Ancres internes : la hauteur du header (et de la sous-navigation) est réservée. */
:target {
  scroll-margin-top: 110px;
}

/* ---- 30. Cibles tactiles : zone agrandie sans changer le rendu ---------
   Les liens texte gardent leur apparence, mais leur zone tapable couvre au
   moins 44 px de haut (WCAG 2.2, critère 2.5.8 et bonne pratique iOS/Android). */
.link-arrow,
.breadcrumb a,
.compare td a,
.kicker-list a,
.product-card h3 a,
.platform-card h3 a,
.ritual-step a,
.prose a {
  position: relative;
}

.link-arrow::after,
.breadcrumb a::after,
.compare td a::after,
.kicker-list a::after,
.ritual-step a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

@media (pointer: coarse) {
  .breadcrumb li {
    min-height: 44px;
  }

  .kicker-list a {
    display: inline-block;
    padding-block: 10px;
    margin-block: -10px;
  }

  .compare td a {
    display: inline-block;
    padding-block: 12px;
  }

  .footer-col a {
    min-height: 44px;
    padding-block: 10px;
  }

  .product-card h3 a,
  .platform-card h3 a {
    display: inline-block;
    padding-block: 8px;
  }

  .link-arrow {
    padding-block: 12px;
    margin-block: -12px;
  }

  .link-arrow::after {
    height: 100%;
  }

  .platform-card__foot .btn,
  .btn--quiet {
    min-height: 44px;
  }

  .ritual-step a {
    padding-block: 10px;
    margin-block: -10px;
  }

  .ritual-step a::after {
    height: 100%;
  }
}
