/* ==========================================================================
   WeRefund — Gabarits de pages secondaires
   Listing d'intégrations · fiche d'intégration
   Chargé UNIQUEMENT par ces pages : la page d'accueil n'en a pas besoin et
   n'a pas à payer le poids.
   ========================================================================== */

/* --------------------------------------------------------------------------
   En-tête de page
   -------------------------------------------------------------------------- */

.page-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(48px, 6vw, 84px) clamp(40px, 5vw, 72px);
}
.page-hero h1 { margin-top: 24px; max-width: 20ch; }
.page-hero .lede { margin-top: 22px; max-width: 42ch; }

/* --------------------------------------------------------------------------
   Recherche
   -------------------------------------------------------------------------- */

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 720px);
  height: 64px;
  margin-top: 42px;
  padding-inline: 22px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search:focus-within {
  border-color: var(--accent-line);
  box-shadow: var(--sh-md), 0 0 0 4px var(--accent-soft);
}
.search > svg { width: 19px; height: 19px; color: var(--ink-faint); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: var(--fs-md);
  letter-spacing: var(--ls-body);
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-faint); }

.search__keys { display: flex; gap: 6px; flex: none; }
.search__keys kbd {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 7px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-hair);
  color: var(--ink-muted);
  font-family: var(--font-text);
  font-size: var(--fs-2xs);
  font-weight: 500;
}
.search__clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  flex: none;
}
.search__clear svg { width: 12px; height: 12px; }
.search.has-query .search__clear { display: flex; }
.search.has-query .search__keys { display: none; }

/* --------------------------------------------------------------------------
   Listing : colonne de catégories + grille
   -------------------------------------------------------------------------- */

.int-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border-top: 1px solid var(--line-hair);
}

.int-side {
  padding: clamp(28px, 3vw, 44px) 32px clamp(28px, 3vw, 44px) 0;
  border-right: 1px solid var(--line-hair);
}
.int-side__inner { position: sticky; top: calc(var(--nav-h) + 28px); }
.int-side__label {
  display: block;
  padding: 0 16px 14px;
  color: var(--ink-faint);
  font-size: var(--fs-3xs);
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.cat-nav { display: grid; gap: 2px; }
.cat-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -.014em;
  text-align: left;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat-nav button:hover { background: var(--surface-1); color: var(--ink); }
.cat-nav button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.cat-nav button b {
  color: var(--ink-faint);
  font-size: var(--fs-2xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cat-nav button[aria-pressed="true"] b { color: var(--ink-muted); }

.int-main { padding: clamp(28px, 3vw, 44px) 0 clamp(28px, 3vw, 44px) clamp(24px, 3vw, 44px); }

.int-count {
  margin-bottom: 22px;
  color: var(--ink-muted);
  font-size: var(--fs-xs);
}
.int-count b { color: var(--ink); font-weight: 600; }

.int-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Carte d'intégration
   -------------------------------------------------------------------------- */

.int-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.int-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--sh-lg);
}
.int-card[hidden] { display: none; }

.int-card__top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.int-card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line-hair);
  box-shadow: var(--sh-sm);
}
.int-card__icon svg { width: 24px; height: 24px; }
.int-card__top h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: var(--ls-title);
}
.int-card__top span {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: var(--fs-2xs);
}
.int-card__body {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  line-height: 1.6;
}
.int-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.int-card__foot::before {
  content: "";
  position: absolute;
}
.int-card__cat {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--ink-muted);
  font-size: var(--fs-2xs);
}

/* État vide — un écran vide se lit « il n'y a rien », jamais « le filtre est
   trop étroit ». Il faut le dire, et offrir la sortie. */
.int-empty {
  display: none;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.int-empty.is-shown { display: block; }
.int-empty svg { width: 26px; height: 26px; margin-inline: auto; color: var(--ink-faint); }
.int-empty h3 { margin-top: 16px; font-size: var(--fs-lg); }
.int-empty p { margin-top: 8px; color: var(--ink-muted); font-size: var(--fs-xs); }
.int-empty .btn { margin-top: 22px; }

/* --------------------------------------------------------------------------
   Fiche d'intégration
   -------------------------------------------------------------------------- */

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: var(--fs-2xs);
}
.crumb a,
.crumb span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  color: var(--ink-muted);
}
.crumb a:hover { color: var(--ink); }
.crumb a svg { width: 11px; height: 11px; }
.crumb i { color: var(--ink-faint); font-style: normal; }
.crumb span { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: var(--sh-sm); }

.detail-hero { padding-block: clamp(40px, 4vw, 62px) clamp(48px, 6vw, 88px); }
.detail-hero h1 { margin-top: 30px; max-width: 26ch; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); }

.detail-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  border-top: 1px solid var(--line-hair);
}
.detail-side {
  padding: clamp(32px, 4vw, 52px) 40px clamp(32px, 4vw, 52px) 0;
  border-right: 1px solid var(--line-hair);
}
.detail-side__inner { position: sticky; top: calc(var(--nav-h) + 28px); }

.detail-id { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; }
.detail-id__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line-hair);
  box-shadow: var(--sh-sm);
}
.detail-id__icon svg { width: 25px; height: 25px; }
.detail-id h2 { font-size: var(--fs-lg); letter-spacing: var(--ls-title); }
.detail-id span { display: block; margin-top: 2px; color: var(--ink-muted); font-size: var(--fs-2xs); }

.meta-list {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 22px;
}
.meta-list dt {
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: -.014em;
}
.meta-list dd { margin: 5px 0 0; color: var(--ink-muted); font-size: var(--fs-xs); }
.meta-list dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.meta-list dd a:hover { color: var(--ink); }
.detail-side .btn { margin-top: 30px; }
.detail-side__note {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: var(--fs-3xs);
  line-height: 1.55;
  max-width: 34ch;
}

.detail-main { padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 5vw, 72px) clamp(28px, 4vw, 56px); }

/* --------------------------------------------------------------------------
   Corps rédactionnel
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 {
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-title);
}
.prose h2:not(:first-child) { margin-top: 52px; }
.prose p { margin-top: 18px; color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.68; }
.prose ol { margin-top: 20px; display: grid; gap: 12px; counter-reset: step; }
.prose ol li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.6;
  counter-increment: step;
}
.prose ol li::before {
  content: counter(step) ".";
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.prose ul { margin-top: 18px; display: grid; gap: 11px; }
.prose ul li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.prose ul li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--ok); }
.prose code {
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .84em;
}

/* Encadré d'avertissement : ce qu'une intégration NE fait PAS. Une page
   d'intégration qui ne dit que ce qui marche se paie en litige commercial. */
.callout {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
}
.callout svg { width: 20px; height: 20px; color: var(--warn); margin-top: 2px; }
.callout b { display: block; color: var(--ink); font-size: var(--fs-sm); }
.callout p { margin-top: 6px; color: var(--ink-body); font-size: var(--fs-xs); line-height: 1.6; }

/* --------------------------------------------------------------------------
   « More in <catégorie> »
   -------------------------------------------------------------------------- */

.more { padding-block: clamp(40px, 5vw, 68px); border-top: 1px solid var(--line-hair); }
.more h2 { font-size: var(--fs-h3); }
.more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Adaptatif
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .int-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .detail-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .int-layout, .detail-layout { grid-template-columns: 1fr; }
  .int-side, .detail-side {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-hair);
  }
  .int-side__inner, .detail-side__inner { position: static; }
  .int-main, .detail-main { padding-left: 0; }
  .cat-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .cat-nav button b { display: none; }
  .int-side__label { padding-inline: 0; }
}

@media (max-width: 760px) {
  .int-grid, .more__grid { grid-template-columns: 1fr; }
  .search { height: 56px; padding-inline: 16px; }
  .search__keys { display: none; }
}

/* ==========================================================================
   TARIFS
   ========================================================================== */

.billing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; }

.seg {
  position: relative;
  display: flex;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.seg button {
  position: relative;
  z-index: 1;
  padding: 10px 26px;
  border-radius: var(--r-pill);
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: var(--r-pill);
  background: var(--bg);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease);
}
.billing__save {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* Curseur de volume — la grandeur qui décide vraiment du prix. */
.volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(100%, 820px);
  margin: 40px auto 0;
}
.volume__label, .volume__value { color: var(--ink-body); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.volume__value { font-variant-numeric: tabular-nums; color: var(--ink); }
.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  outline: none;
}
.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-line);
  cursor: pointer;
}
.volume input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: var(--r-pill);
  background: var(--accent);
  border: 4px solid var(--bg);
  cursor: pointer;
}
.volume__ticks {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
  align-items: start;
}
/* Trois cartes sous D17 : le marchand (0 $), tout acheteur (gratuit), l'option
   facultative. Posée AVANT les requêtes adaptatives, qui doivent pouvoir la
   ramener à deux colonnes puis à une. */
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}
.plan--popular {
  border-color: var(--accent-line);
  box-shadow: var(--sh-lg), 0 0 0 4px var(--accent-soft);
}
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__head h3 { font-size: var(--fs-h3); }
.plan__who { margin-top: 8px; color: var(--ink-muted); font-size: var(--fs-xs); }
.plan__vol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--ink-body);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.plan__vol svg { width: 15px; height: 15px; color: var(--accent-ink); }
.plan__price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.plan__price small { font-size: .44em; font-weight: 500; color: var(--ink-muted); letter-spacing: -.01em; }
.plan__note { margin-top: 6px; color: var(--ink-faint); font-size: var(--fs-3xs); min-height: 1.4em; }
.plan__list { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-hair); display: grid; gap: 13px; }
.plan__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; color: var(--ink-body); font-size: var(--fs-xs); line-height: 1.5; }
.plan__list li svg { width: 17px; height: 17px; color: var(--ink-faint); margin-top: 2px; }
.plan__list li.is-key svg { color: var(--ok); }
.plan .btn { margin-top: 28px; }

/* Une offre indisponible au volume choisi le DIT — un prix barré ou une case
   vide se lit « erreur d'affichage », pas « prenez l'offre au-dessus ». */
.plan.is-out { opacity: .55; }
.plan.is-out .plan__price { color: var(--ink-faint); font-size: 1.375rem; }

/* --- Grille de l'option (D26) -------------------------------------------- */
/* Un vrai <table> : le lecteur d'écran annonce chaque frais avec sa tranche
   (th scope="row"), et la légende dit ce que le tableau chiffre. */
.fee-tiers-wrap {
  max-width: 620px;
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.fee-tiers { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-tiers caption { padding: 18px 22px 14px; text-align: left; color: var(--ink-muted); font-size: var(--fs-2xs); }
.fee-tiers th, .fee-tiers td { padding: 14px 22px; text-align: left; font-size: var(--fs-xs); }
.fee-tiers thead th { background: var(--surface-1); color: var(--ink); font-weight: 600; }
.fee-tiers thead th:last-child, .fee-tiers td { text-align: right; }
.fee-tiers tbody tr { border-top: 1px solid var(--line-hair); }
.fee-tiers tbody th { color: var(--ink-body); font-weight: 400; }
.fee-tiers td { color: var(--ink); font-weight: 600; }
.fee-tiers td small { margin-left: 6px; color: var(--ink-muted); font-size: var(--fs-3xs); font-weight: 500; }
.fee-tiers-note { max-width: 620px; margin-top: 18px; color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.6; }
.fee-tiers-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* --- Tableau comparatif --------------------------------------------------- */

.compare-wrap { overflow-x: auto; margin-top: 40px; }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; }
.compare th, .compare td { padding: 17px 18px; text-align: center; vertical-align: middle; }
.compare thead th { vertical-align: bottom; padding-bottom: 26px; }
.compare tbody th, .compare th[scope="row"] {
  text-align: left;
  color: var(--ink-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: var(--ls-body);
}
.compare tbody tr { border-top: 1px solid var(--line-hair); }
.compare td { color: var(--ink-body); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.compare .col-hi { background: var(--surface-1); }
.compare__plan { color: var(--ink-muted); font-size: var(--fs-xs); font-weight: 500; }
.compare__price {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}
.compare__price small { font-size: .5em; color: var(--ink-muted); font-weight: 500; }
.compare__group th {
  text-align: left;
  padding-top: 38px;
  padding-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: var(--ls-title);
}
.compare__group + tr { border-top: 0; }
.compare .yes { color: var(--accent-ink); }
.compare .yes svg { width: 17px; height: 17px; margin-inline: auto; }
.compare .no { color: var(--ink-faint); }
.compare__sub th { padding-left: 40px; color: var(--ink-muted); position: relative; }
.compare__sub th::before {
  content: "↳";
  position: absolute;
  left: 20px;
  color: var(--ink-faint);
}

/* ==========================================================================
   CLIENTS
   ========================================================================== */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border-block: 1px solid var(--line-hair);
}
.logo-strip .logo-mark {
  flex: 1;
  justify-content: center;
  padding: 26px 18px;
  border-left: 1px solid var(--line-hair);
}
.logo-strip .logo-mark:first-child { border-left: 0; }

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-hair);
}
.case-feature__logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-soft); font-family: var(--font-display); font-variation-settings: "opsz" 32; font-size: 1.5rem; font-weight: 600; letter-spacing: -.035em; }
.case-feature__logo svg { width: 28px; height: 28px; }
.case-feature h3 { margin-top: 26px; font-size: var(--fs-h3); max-width: 26ch; }
.case-feature__who { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.case-feature__who .avatar { width: 42px; height: 42px; }
.case-feature__who b { display: block; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.case-feature__who span { display: block; color: var(--ink-muted); font-size: var(--fs-2xs); }
.case-feature .link-arrow { margin-top: 24px; }
.case-feature__stats { display: grid; gap: 18px; align-content: start; padding-left: clamp(20px, 3vw, 40px); border-left: 1px dashed var(--line); }

.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-tile {
  padding: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line-hair);
  border-left: 1px solid var(--line-hair);
}
.case-tile:nth-child(2n + 1) { border-left: 0; }
.case-tile[hidden] { display: none; }
.case-tile__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-family: var(--font-display); font-variation-settings: "opsz" 32; font-size: 1.25rem; font-weight: 600; letter-spacing: -.035em; }
.case-tile__logo svg { width: 24px; height: 24px; }
.case-tile h3 { margin-top: 22px; font-size: var(--fs-h3); max-width: 22ch; }
.case-tile__who { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.case-tile__who .avatar { width: 40px; height: 40px; }
.case-tile__who b { display: block; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.case-tile__who span { display: block; color: var(--ink-muted); font-size: var(--fs-2xs); }
.case-tile .link-arrow { margin-top: 20px; }
.case-tile__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.loadmore { display: grid; place-items: center; padding-block: clamp(36px, 4vw, 56px); }

/* ==========================================================================
   ÉTUDE DE CAS
   ========================================================================== */

.study-hero { padding-block: clamp(34px, 4vw, 54px) clamp(34px, 4vw, 50px); }
.study-hero h1 { margin-top: 28px; max-width: 24ch; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); }
.study-hero .lede { margin-top: 22px; max-width: 52ch; }
.study-hero__who { display: flex; align-items: center; gap: 13px; margin-top: 32px; }
.study-hero__who .avatar { width: 46px; height: 46px; }
.study-hero__who b { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.study-hero__who span { display: block; color: var(--ink-muted); font-size: var(--fs-xs); }

.study-media {
  position: relative;
  aspect-ratio: 16 / 8.2;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(155deg, #4A4E57 0%, #2B2E35 55%, #1A1C21 100%);
}
.study-media__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78px; height: 78px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #16181D;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.study-media__play:hover { transform: scale(1.06); background: #FFFFFF; }
.study-media__play svg { width: 26px; height: 26px; margin-left: 3px; }
.study-media figcaption {
  position: absolute;
  left: 22px; bottom: 20px;
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-3xs);
}

.study-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-hair);
}
.study-band__cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: clamp(24px, 3vw, 38px) clamp(20px, 3vw, 38px);
  border-left: 1px solid var(--line-hair);
}
.study-band__cell:first-child { border-left: 0; }
.study-band__cell i {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line-hair);
  color: var(--ok);
}
.study-band__cell i svg { width: 19px; height: 19px; }
.study-band__cell b {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.study-band__cell span { display: block; margin-top: 2px; color: var(--ink-muted); font-size: var(--fs-xs); }

.study-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.study-side {
  padding: clamp(32px, 4vw, 52px) 40px clamp(32px, 4vw, 52px) 0;
  border-right: 1px solid var(--line-hair);
}
.study-side__inner { position: sticky; top: calc(var(--nav-h) + 28px); }
.study-side .case-tile__logo { margin-bottom: 26px; }
.study-side dl { display: grid; gap: 20px; }
.study-side dt { color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.study-side dd { margin: 5px 0 0; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.55; }
.study-side__rule { height: 1px; margin: 26px 0; background: var(--line); }
.study-side__used { display: grid; gap: 10px; margin-top: 14px; }
.study-side__used a { display: flex; align-items: center; gap: 10px; color: var(--ink-body); font-size: var(--fs-xs); }
.study-side__used a:hover { color: var(--ink); }
.study-side__used svg { width: 22px; height: 22px; }

.toc { margin-top: 30px; }
.toc__label { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.toc__label svg { width: 15px; height: 15px; color: var(--ink-faint); }
.toc ul { margin-top: 14px; border-left: 1.5px solid var(--line); }
.toc a {
  display: block;
  padding: 8px 0 8px 16px;
  margin-left: -1.5px;
  border-left: 1.5px solid transparent;
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 500; }
.toc li ul { border-left: 0; margin-top: 0; }
.toc li li a { padding-left: 32px; font-size: var(--fs-2xs); }

.study-main { padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 5vw, 76px) clamp(28px, 4vw, 56px); }

.pullquote {
  margin-top: 34px;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
}
.pullquote p {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.55;
}
.pullquote cite { display: block; margin-top: 14px; color: var(--ink-muted); font-size: var(--fs-xs); font-style: normal; }

.stories { padding-block: clamp(36px, 4vw, 60px) 0; }
.stories h2 { font-size: var(--fs-h3); }
.stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line-hair); }
.story {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  border-left: 1px solid var(--line-hair);
  border-bottom: 1px solid var(--line-hair);
  transition: background-color var(--dur) var(--ease);
}
.story:first-child { border-left: 0; }
.story:hover { background: var(--surface-1); }
.story h3 { margin-top: 34px; font-size: var(--fs-h3); max-width: 16ch; }
.story__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 44px;
  color: var(--ink-body);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.story__go i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.story__go i svg { width: 13px; height: 13px; }
.story:hover .story__go i { background: var(--bg); transform: translate(2px, -2px); box-shadow: var(--sh-sm); }

/* --- Adaptatif des trois nouveaux gabarits -------------------------------- */

@media (max-width: 1120px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .case-feature { grid-template-columns: 1fr; }
  .case-feature__stats { padding-left: 0; border-left: 0; padding-top: 26px; border-top: 1px dashed var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stories__grid { grid-template-columns: 1fr; }
  .story, .story:first-child { border-left: 0; }
}

@media (max-width: 980px) {
  .study-layout { grid-template-columns: 1fr; }
  .study-side { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line-hair); }
  .study-side__inner { position: static; }
  .study-main { padding-left: 0; }
  .study-band { grid-template-columns: 1fr; }
  .study-band__cell { border-left: 0; border-top: 1px solid var(--line-hair); }
  .study-band__cell:first-child { border-top: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .case-tile, .case-tile:nth-child(2n + 1) { border-left: 0; }
}

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .volume { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .volume__ticks { grid-column: 1; }
  .case-feature__stats { grid-template-columns: 1fr; }
  .case-tile__stats { grid-template-columns: 1fr; }
}


/* ==========================================================================
   PAGE VERTICALE (une par secteur : mode, electronique, maison, cross-border)
   ========================================================================== */

.crumb--seg { padding: 4px; }
.crumb--seg a, .crumb--seg span { padding: 7px 16px; font-size: var(--fs-xs); }

.vert-hero { display: grid; justify-items: center; text-align: center; padding-block: clamp(48px, 6vw, 96px) clamp(40px, 5vw, 64px); }
.vert-hero h1 { margin-top: 28px; max-width: 22ch; }
.vert-hero .lede { margin-top: 22px; max-width: 44ch; }
.vert-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.vert-hero__trust { margin-top: clamp(40px, 5vw, 72px); color: var(--ink-soft); font-size: var(--fs-sm); }

.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-hair); }
.logo-grid .logo-mark {
  justify-content: center;
  padding: clamp(26px, 3vw, 42px) 16px;
  border-left: 1px solid var(--line-hair);
  border-bottom: 1px solid var(--line-hair);
}
.logo-grid .logo-mark:nth-child(4n + 1) { border-left: 0; }

.vert-intro { padding-block: clamp(44px, 5vw, 76px) clamp(28px, 3vw, 44px); }
.vert-intro h2 { max-width: 18ch; }
.vert-intro p { margin-top: 20px; color: var(--ink-soft); font-size: var(--fs-md); max-width: 46ch; }

.vert-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-hair); }
.vert-trio__cell { padding: clamp(30px, 3vw, 48px); border-left: 1px solid var(--line-hair); }
.vert-trio__cell:first-child { border-left: 0; }
.vert-trio__cell i {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.vert-trio__cell i svg { width: 21px; height: 21px; }
.vert-trio__cell h3 { margin-top: clamp(44px, 5vw, 84px); font-size: var(--fs-lg); max-width: 20ch; }
.vert-trio__cell p { margin-top: 12px; color: var(--ink-muted); font-size: var(--fs-xs); max-width: 30ch; }

.vert-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  border-bottom: 1px solid var(--line-hair);
}
.vert-split__text { padding: clamp(34px, 4vw, 64px); }
.vert-split__text h3 { font-size: var(--fs-h3); max-width: 20ch; }
.vert-split__text > p { margin-top: 18px; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 38ch; }
.vert-split__art { padding: clamp(28px, 3vw, 56px); border-left: 1px solid var(--line-hair); }
.vert-split--flip .vert-split__art { order: -1; border-left: 0; border-right: 1px solid var(--line-hair); }

.checklist { display: grid; gap: 13px; margin-top: 26px; }
.checklist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; color: var(--ink-body); font-size: var(--fs-sm); }
.checklist li svg { width: 17px; height: 17px; color: var(--accent-ink); margin-top: 3px; }

.quote-big { display: grid; justify-items: center; text-align: center; padding-block: clamp(56px, 7vw, 110px); border-bottom: 1px solid var(--line-hair); }
.quote-big .avatar { width: 62px; height: 62px; }
.quote-big blockquote {
  margin: 34px 0 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(1.375rem, .9rem + 1.7vw, 2.125rem);
  line-height: 1.38;
  letter-spacing: -.028em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.quote-big__who { margin-top: 30px; color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.quote-big__who span { color: var(--ink-muted); font-weight: 400; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

/* Deux cartes depuis le retrait du chat : l'e-mail et le centre d'aide. */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; }
/* Les equerres d'angle sont un cadre, pas une bordure : elles marquent le bloc
   sans enfermer chaque carte, ce qui garderait trois objets separes. */
.contact-cards::before,
.contact-cards::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  pointer-events: none;
}
.contact-cards::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.contact-cards::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.contact-card { padding: clamp(28px, 3vw, 44px); border-left: 1px solid var(--line-hair); }
.contact-card:first-child { border-left: 0; }
.contact-card > svg { width: 22px; height: 22px; color: var(--accent-ink); }
.contact-card h3 { margin-top: clamp(48px, 6vw, 92px); font-size: var(--fs-lg); }
.contact-card__value { margin-top: 6px; color: var(--ink); font-size: var(--fs-lg); font-weight: 500; letter-spacing: var(--ls-title); }
.contact-card p { margin-top: 14px; color: var(--ink-muted); font-size: var(--fs-xs); max-width: 32ch; }
.contact-card .link-arrow { margin-top: 14px; }

.contact-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); border-block: 1px solid var(--line-hair); }
.contact-intro { padding: clamp(34px, 4vw, 60px) clamp(32px, 4vw, 56px) clamp(34px, 4vw, 60px) 0; display: flex; flex-direction: column; }
.contact-intro h2 { margin-top: 26px; max-width: 16ch; }
.contact-intro > p { margin-top: 20px; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 34ch; }
.contact-intro__foot { margin-top: auto; padding-top: clamp(40px, 6vw, 96px); }
.contact-intro__foot p { color: var(--ink-muted); font-size: var(--fs-xs); max-width: 30ch; }

.contact-form { padding: clamp(34px, 4vw, 60px) 0 clamp(34px, 4vw, 60px) clamp(32px, 4vw, 56px); border-left: 1px solid var(--line-hair); }

.field + .field { margin-top: 22px; }
.field > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.field > label em { color: var(--ink-faint); font-style: normal; font-weight: 400; }
.field__box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 52px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__box:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__box > svg { width: 17px; height: 17px; color: var(--ink-faint); }
.field__box input,
.field__box select,
.field__box textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-body);
}
.field__box textarea { padding-block: 15px; min-height: 132px; resize: vertical; line-height: 1.6; }
.field__box--area { align-items: start; }
.field__box--area > svg { margin-top: 17px; }
.field__box input::placeholder, .field__box textarea::placeholder { color: var(--ink-faint); }
.field__box select { appearance: none; cursor: pointer; }
.field__box .chev { width: 13px; height: 13px; color: var(--ink-faint); }
.field__hint { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--ink-muted); font-size: var(--fs-2xs); }
.field__hint svg { width: 13px; height: 13px; color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-row .field + .field { margin-top: 0; }
/* Un rang de deux champs prend le même souffle qu'un champ seul : sans ces
   deux règles, il collait à 0 px au champ d'avant et à celui d'après. */
.field + .field-row,
.field-row + .field { margin-top: 22px; }

.form__submit { margin-top: 30px; }
.form__legal { margin-top: 14px; color: var(--ink-muted); font-size: var(--fs-2xs); }

@media (max-width: 1120px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid .logo-mark:nth-child(4n + 1) { border-left: 1px solid var(--line-hair); }
  .logo-grid .logo-mark:nth-child(2n + 1) { border-left: 0; }
}

@media (max-width: 980px) {
  .vert-trio { grid-template-columns: 1fr; }
  .vert-trio__cell { border-left: 0; border-top: 1px solid var(--line-hair); }
  .vert-trio__cell:first-child { border-top: 0; }
  .vert-trio__cell h3 { margin-top: 24px; }
  .vert-split { grid-template-columns: 1fr; }
  .vert-split__art, .vert-split--flip .vert-split__art { order: 0; border-left: 0; border-right: 0; border-top: 1px solid var(--line-hair); }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { border-left: 0; border-top: 1px solid var(--line-hair); }
  .contact-card:first-child { border-top: 0; }
  .contact-card h3 { margin-top: 26px; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-intro { padding-right: 0; padding-bottom: 0; }
  .contact-form { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-hair); margin-top: 34px; }
}

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .field-row .field + .field { margin-top: 22px; }
}

/* ==========================================================================
   PAGES PAR RÔLE (marchands · développeurs · acheteurs) ET FICHE SHOPIFY
   Quatre gabarits distincts, générés par build-pages.py (section 16bis). Ils
   réutilisent les briques existantes (.sec-head, .faq, .final, .fee-tiers,
   .int-card, .checklist) et n'ajoutent que ce que leur contenu demande.
   ========================================================================== */

/* --- En-têtes ------------------------------------------------------------- */

.role-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(44px, 5.5vw, 88px) clamp(40px, 5vw, 68px);
}
.role-hero h1 { margin-top: 26px; max-width: 22ch; }
.role-hero .lede { margin-top: 22px; max-width: 50ch; text-wrap: balance; }
.role-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.role-hero__note { margin-top: 18px; max-width: 56ch; color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.55; }

.role-hero--split {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  justify-items: stretch;
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  text-align: left;
}
.role-hero--split h1 { max-width: 17ch; font-size: clamp(2.125rem, 1.35rem + 2.7vw, 3.375rem); }
.role-hero--split .role-hero__cta { justify-content: flex-start; }

/* En-tête de section plus large que les 34 ch du gabarit commun : sur ces
   pages le titre est seul sur sa ligne, sans lien à droite. */
.sec-head--wide .sec-head__text { max-width: 760px; }
.sec-head--wide h2 { max-width: 24ch; }

/* Texte courant des sections sans .sec-head */
.role-h2 { margin-top: 20px; max-width: 20ch; }
.role-p { margin-top: 18px; max-width: 46ch; color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.62; }
.role-small { margin-top: 20px; max-width: 52ch; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.6; }

/* Nom technique en ligne : scope, route, champ */
.tok {
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--ink-body);
  font-family: var(--font-mono);
  font-size: .86em;
  white-space: nowrap;
}

/* --- Deux colonnes : titre collant à gauche, contenu à droite -------------- */

.role-split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.role-split__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.role-split__head h2 { margin-top: 20px; max-width: 18ch; }
.role-split__head > p { margin-top: 18px; max-width: 42ch; color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.62; }
.role-split__head > p + p { margin-top: 12px; }
.role-split--center { align-items: center; }
.role-split--center .role-split__head { position: static; }
.role-split .checklist { margin-top: 24px; }

/* ==========================================================================
   Fiche Shopify
   ========================================================================== */

/* Tuile Shopify, fil en lecture seule, visage WeRefund */
.lockup { display: flex; align-items: center; margin-top: 30px; }
.lockup__tile,
.lockup__hub {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sh-pop);
  flex: none;
}
.lockup__tile { background: var(--bg); }
.lockup__hub { background: var(--checkout-wr); color: var(--accent-on); }
.lockup__tile svg,
.lockup__hub svg { display: block; width: 100%; height: 100%; }
.lockup__wire {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(92px, 13vw, 150px);
  height: 2px;
  background-image: linear-gradient(90deg, var(--line) 55%, transparent 0);
  background-size: 9px 2px;
}
.lockup__tag {
  position: absolute;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.shop-hero .crumb { margin-bottom: 4px; }

/* Bandeau de fiche technique */
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line-hair); }
.spec-strip__cell { padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 30px); border-left: 1px solid var(--line-hair); }
.spec-strip__cell:first-child { border-left: 0; }
.spec-strip dt { color: var(--ink-faint); font-size: var(--fs-3xs); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.spec-strip dd { margin: 10px 0 0; }
.spec-strip dd b { display: block; color: var(--ink); font-size: var(--fs-lg); font-weight: 600; letter-spacing: var(--ls-title); }
.spec-strip dd span { display: block; margin-top: 8px; color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.7; }

/* Scopes demandés */
.scope-card { margin-top: 28px; padding: 4px 20px 18px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line-hair); }
.scope-card__row { display: grid; gap: 5px; padding-block: 14px; }
.scope-card__row + .scope-card__row { border-top: 1px dashed var(--line); }
.scope-card__row code { color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-2xs); }
.scope-card__row code em { margin-left: 6px; color: var(--ink-faint); font-family: var(--font-text); font-style: normal; }
.scope-card__row span { color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.55; }
.scope-card__foot { padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-2xs); line-height: 1.6; }

/* Déroulé numéroté */
.flow { display: grid; }
.flow__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 36px; }
.flow__step:last-child { padding-bottom: 0; }
.flow__step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 6px;
  width: 1.5px;
  background: var(--line);
}
.flow__step:last-child::before { display: none; }
.flow__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  font-size: var(--fs-2xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.flow__step h3 { margin-top: 9px; font-size: var(--fs-lg); }
.flow__step p { margin-top: 8px; max-width: 58ch; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.65; }

/* Tableau : ce qui est lu, et comment il reste à jour */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg); }
.spec-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.spec-table th,
.spec-table td { padding: 17px 20px; text-align: left; vertical-align: top; font-size: var(--fs-xs); line-height: 1.6; }
.spec-table thead th { background: var(--surface-1); color: var(--ink); font-weight: 600; }
.spec-table tbody tr { border-top: 1px solid var(--line-hair); }
.spec-table tbody th { width: 30%; color: var(--ink); font-weight: 500; }
.spec-table td { color: var(--ink-soft); }
.spec-table td:nth-child(2) { width: 30%; }
.spec-table-note { max-width: 82ch; margin-top: 18px; color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.65; }

/* Emplacements du badge dans un thème */
.place { border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-md); overflow: hidden; }
.place__head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--surface-1); color: var(--ink-muted); font-size: var(--fs-2xs); font-weight: 500; }
.place__head svg { width: 14px; height: 14px; color: var(--ink-faint); }
.place__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 17px 20px; border-top: 1px solid var(--line-hair); }
.place__row b { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.place__row b small { margin-left: 8px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.place__row p { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.55; }

/* Ce que WeRefund ne fait jamais */
.never-head { padding-block: clamp(56px, 6vw, 96px) clamp(24px, 3vw, 36px); }
.never-head h2 { max-width: 20ch; }
.never { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-hair); }
.never__cell { padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-hair); }
.never__cell:first-child { border-left: 0; }
.never__cell i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-soft); }
.never__cell i svg { width: 14px; height: 14px; }
.never__cell h3 { margin-top: 26px; font-size: var(--fs-lg); }
.never__cell p { margin-top: 10px; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.6; }

/* Trois étapes en cartes */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps3__card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line-soft); }
.steps3__num { color: var(--accent-ink); font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; }
.steps3__card h3 { margin-top: clamp(28px, 3vw, 44px); font-size: var(--fs-lg); }
.steps3__card p { margin-top: 10px; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.6; }

/* ==========================================================================
   For merchants
   ========================================================================== */

.stat-card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--stage-border); }
.stat-card__kicker { color: var(--ink-muted); font-size: var(--fs-2xs); font-weight: 500; }
.stat-card__num {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(3.25rem, 2.2rem + 4vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-card__num sup { margin-left: 4px; font-size: .24em; line-height: 0; letter-spacing: 0; vertical-align: super; }
.stat-card__num sup a { color: var(--ink-muted); }
.stat-card__num sup a:hover { color: var(--ink); }
.stat-card__text { margin-top: 16px; max-width: 24ch; color: var(--ink-body); font-size: var(--fs-lg); line-height: 1.45; letter-spacing: var(--ls-title); }
.stat-card__foot { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: var(--fs-xs); }
.stat-card__source { margin-top: 12px; color: var(--ink-faint); font-size: 10.5px; line-height: 1.5; }
.stat-card__source sup { font-size: .62em; line-height: 0; vertical-align: super; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-hair); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3vw, 46px); border-left: 1px solid var(--line-hair); }
.pillar:first-child { border-left: 0; }
/* Double classe : `.pillar p` (0,1,1) l'emporterait sur une classe seule. */
.pillar .pillar__verb {
  margin-top: 0;
  max-width: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.625rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.pillar h3 { margin-top: clamp(24px, 3vw, 40px); font-size: var(--fs-lg); }
.pillar p { margin-top: 10px; max-width: 36ch; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.6; }
.pillar .link-arrow { margin-top: auto; padding-top: 22px; font-size: var(--fs-xs); }

.zero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.zero__text h2 { margin-top: 20px; }
.zero__text > p { margin-top: 16px; max-width: 42ch; color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.62; }
.zero__text .link-arrow { margin-top: 18px; }
.zero__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--sh-md); }
.zero__cell { padding: clamp(22px, 2.6vw, 36px); border-left: 1px solid var(--line-hair); }
.zero__cell:first-child { border-left: 0; }
.zero__cell b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.125rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.zero__cell span { display: block; margin-top: 12px; color: var(--ink-muted); font-size: var(--fs-xs); }

/* Intégrations en pastilles de marque */
.works { display: grid; gap: 22px; }
.works__group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line-hair); }
.works__label { padding-top: 11px; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.works__label span { display: block; margin-top: 4px; color: var(--ink-muted); font-size: var(--fs-2xs); font-weight: 400; }
.works__list { display: flex; flex-wrap: wrap; gap: 8px; }
.works__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.works__item:hover { border-color: var(--line); box-shadow: var(--sh-md); }
.works__icon { display: block; width: 32px; height: 32px; flex: none; }
.works__icon svg { display: block; width: 100%; height: 100%; }
.works__item.is-soon { background: var(--surface-1); box-shadow: none; }
.works__item.is-soon .works__icon { opacity: .5; filter: grayscale(1); }

/* ==========================================================================
   For developers
   ========================================================================== */

.dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(44px, 5vw, 84px) clamp(40px, 5vw, 68px);
}
.dev-hero h1 { margin-top: 24px; max-width: 16ch; font-size: clamp(2.125rem, 1.35rem + 2.6vw, 3.25rem); }
.dev-hero .lede { margin-top: 22px; }
.dev-hero .role-hero__cta { justify-content: flex-start; }
.dev-hero .note { margin-top: 28px; max-width: 56ch; }
.dev-hero__code { display: grid; gap: 14px; min-width: 0; }
.dev-hero__code .endpoint,
.dev-hero__code .code { margin-top: 0; }

.res-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.res-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line-soft); }
.res-card h3 { font-size: var(--fs-md); }
.res-card ul { display: grid; gap: 2px; margin-top: 14px; }
.res-card li a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-inline: -8px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  color: var(--ink-body);
  font-size: var(--fs-xs);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.res-card li a:hover { background: var(--surface-1); color: var(--ink); }
.res-card .method { justify-self: start; }
.res-card--wide { box-shadow: var(--sh-md); }
.res-base { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; color: var(--ink-muted); font-size: var(--fs-2xs); }
.res-base a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.res-base a svg { width: 11px; height: 11px; }

.field-list { margin-top: 22px; }
.field-list__label + .field-list { margin-top: 10px; }
.field-list__label { margin-top: 26px; color: var(--ink-faint); font-size: var(--fs-3xs); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.field-list__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 16px; border-top: 1px solid var(--line-hair); }
.field-list__row .tok { color: var(--ink); }
.field-list__type { color: var(--ink-muted); font-size: var(--fs-2xs); }
.field-list__row p { flex-basis: 100%; color: var(--ink-soft); font-size: var(--fs-xs); line-height: 1.6; }

.versions { padding: 20px; border-radius: var(--r-xl); background: var(--surface-1); border: 1px solid var(--line-hair); }
.versions__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.versions__col { padding: 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-soft); }
.versions__col.is-current { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.versions__label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.versions__order { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-body); font-family: var(--font-mono); font-size: 11.5px; }
.versions__hint { margin-top: 10px; color: var(--ink-muted); font-size: var(--fs-2xs); line-height: 1.5; }
.versions .illus { margin-top: 12px; }

.life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-hair); }
.life__cell { padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-hair); }
.life__cell:first-child { border-left: 0; }
.life__when { color: var(--accent-ink); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.life__cell h3 { margin-top: 18px; font-size: var(--fs-lg); }
.life__cell p { margin-top: 10px; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.65; }

/* ==========================================================================
   For shoppers
   ========================================================================== */

.bmock { padding: clamp(18px, 2.4vw, 30px); border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--stage-border); }
.bmock__card { max-width: 340px; margin-inline: auto; padding: 14px 14px 16px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line-soft); box-shadow: var(--sh-lg); }
.bmock__img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: linear-gradient(155deg, var(--surface-2), var(--surface-3)); }
/* Lampe du produit d'exemple (même produit que l'animation de l'accueil), couleurs par jetons */
.bmock__lamp { width: 72%; height: auto; }
.bmock__s1 { stop-color: var(--bg); }
.bmock__s2 { stop-color: var(--surface-2); }
.bmock__s3 { stop-color: var(--surface-3); }
.bmock__part { stroke: var(--stage-border); stroke-width: 1; }
.bmock__rim { fill: var(--surface-3); }
.bmock__neck { fill: var(--ink-faint); opacity: .45; }
.bmock__cord { fill: none; stroke: var(--ink-faint); stroke-width: 1.2; opacity: .55; }
.bmock__shadow { fill: var(--ink); opacity: .07; }
.bmock__row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--ink); font-size: var(--fs-sm); }
.bmock__row b { font-weight: 600; }
.bmock__row span { color: var(--ink-body); font-variant-numeric: tabular-nums; }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-top: 12px;
  padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink);
  font-size: var(--fs-2xs);
  font-weight: 600;
}
.verified i { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); }
.bmock__btn { display: grid; place-items: center; height: 42px; margin-top: 14px; border-radius: var(--r-pill); background: var(--solid); color: var(--solid-ink); font-size: var(--fs-xs); font-weight: 500; }

.mean { margin-top: 28px; border-top: 1px solid var(--line-hair); }
.mean__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line-hair); }
.mean__item i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.mean__item i svg { width: 18px; height: 18px; }
.mean__item b { display: block; color: var(--ink); font-size: var(--fs-md); font-weight: 600; letter-spacing: var(--ls-body); }
.mean__item p { margin-top: 5px; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.6; }

.rmock { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line-soft); box-shadow: var(--sh-lg); }
.rmock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.rmock__head b { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.rmock__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line-hair); font-size: var(--fs-xs); }
.rmock__row span { color: var(--ink-muted); }
.rmock__row b { color: var(--ink); font-weight: 600; text-align: right; }
.checklist li b { color: var(--ink); font-weight: 600; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel-card { padding: clamp(26px, 3vw, 42px); border-radius: var(--r-xl); background: var(--surface-1); border: 1px solid var(--line-hair); }
.panel-card h2 { font-size: var(--fs-h3); }
.panel-card > p { margin-top: 12px; max-width: 44ch; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.6; }
.not-list { display: grid; gap: 18px; margin-top: 26px; }
.not-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.not-list li > svg { width: 28px; height: 28px; padding: 7px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink-soft); box-shadow: var(--sh-sm); }
.not-list b,
.ret-steps b { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.not-list span,
.ret-steps span { display: block; margin-top: 3px; color: var(--ink-muted); font-size: var(--fs-xs); line-height: 1.55; }
.ret-steps { display: grid; margin-top: 26px; counter-reset: ret; }
.ret-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 20px; counter-increment: ret; }
.ret-steps li:last-child { padding-bottom: 0; }
.ret-steps li::before {
  content: counter(ret);
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-3xs);
  font-weight: 600;
}
.ret-steps li::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.ret-steps li:last-child::after { display: none; }

/* --- Adaptatif ------------------------------------------------------------- */

@media (max-width: 1120px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip, .never { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip__cell:nth-child(2n + 1), .never__cell:nth-child(2n + 1) { border-left: 0; }
  .spec-strip__cell:nth-child(n + 3), .never__cell:nth-child(n + 3) { border-top: 1px solid var(--line-hair); }
}

@media (max-width: 980px) {
  .role-hero--split, .dev-hero, .role-split, .zero, .two-col { grid-template-columns: 1fr; }
  .role-split__head { position: static; }
  .pillars, .life, .steps3 { grid-template-columns: 1fr; }
  .pillar, .life__cell { border-left: 0; border-top: 1px solid var(--line-hair); }
  .pillar:first-child, .life__cell:first-child { border-top: 0; }
  .works__group { grid-template-columns: 1fr; gap: 12px; }
  .works__label { padding-top: 0; }
}

@media (max-width: 760px) {
  .spec-strip, .never { grid-template-columns: 1fr; }
  .spec-strip__cell, .never__cell { border-left: 0; }
  .spec-strip__cell:nth-child(n + 2), .never__cell:nth-child(n + 2) { border-top: 1px solid var(--line-hair); }
  .res-grid { grid-template-columns: 1fr; }
  .versions__track { grid-template-columns: 1fr; }
  /* Le tableau Shopify passe en fiches : chaque cellule reprend son en-tête
     (data-label), au lieu d'un défilement horizontal qui cache la dernière colonne. */
  .spec-table { min-width: 0; }
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .spec-table tr { display: block; padding: 18px; }
  .spec-table th, .spec-table td,
  .spec-table tbody th, .spec-table td:nth-child(2) { display: block; width: auto; padding: 0; }
  .spec-table td { margin-top: 12px; }
  .spec-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--ink-faint);
    font-size: var(--fs-3xs);
    font-weight: 600;
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
  }
  .spec-table .tok { white-space: normal; overflow-wrap: anywhere; }
  .lockup__tile, .lockup__hub { width: 62px; height: 62px; border-radius: 18px; }
  .lockup__wire { width: 86px; }
}

@media (max-width: 520px) {
  .zero__cells { grid-template-columns: 1fr; }
  .zero__cell { border-left: 0; }
  .zero__cell + .zero__cell { border-top: 1px solid var(--line-hair); }
  .zero__cell b { display: inline; font-size: 2rem; }
  .zero__cell span { display: inline; margin: 0 0 0 10px; }
  .place__row { grid-template-columns: 1fr; }
  .place__row .pill, .place__row .badge { justify-self: start; }
}
