/* assetsblox — site public (maquettes design/maquettes/html/site, ordinateur et mobile).
   Valeurs : variables.css uniquement. Sous 800 px : en-tête mobile et menu plein écran ;
   sous 640 px : marges de 16 px et mises en page en une colonne. */

/* ==========================================================================
   Mise en page générale
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.page-top {
  padding-top: var(--page-top);
}

.page-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-intro--narrow {
  max-width: var(--prose-max);
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h1-tracking);
}

.page-lead {
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line);
}

.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--section-space);
}

.section--narrow {
  max-width: var(--compare-max);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.section__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section__intro--narrow {
  max-width: var(--measure);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  font-weight: var(--text-h2-weight);
  letter-spacing: var(--text-h2-tracking);
}

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

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr));
  gap: var(--space-6);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.button-row--center {
  justify-content: center;
}

.is-mono {
  font-family: var(--font-mono);
}

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

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

/* Bouton très haut de la page de téléchargement */
.btn--xl {
  gap: var(--space-3);
  min-height: var(--control-height-xl);
  border-radius: var(--radius-inner);
  font-size: var(--text-button-xl-size);
}

.btn--xl .icon {
  width: var(--icon-menu);
  height: var(--icon-menu);
}

.badge--xs {
  height: var(--badge-height-xs);
  padding: 0 var(--badge-padding-x-xs);
  border-radius: var(--radius-chip);
  font-size: var(--text-label-size);
}

/* Pastille d'icône carrée (catégories, avantages, encarts) */
.icon-tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.icon-tile--sm {
  width: var(--icon-box-sm);
  height: var(--icon-box-sm);
  border-radius: var(--radius-nav-item);
}

.icon-tile--lg {
  width: var(--icon-tile-xl);
  height: var(--icon-tile-xl);
  border-radius: var(--radius-icon-xl);
}

.icon-tile--premium {
  width: var(--icon-box-sm);
  height: var(--icon-box-sm);
  border-radius: var(--radius-nav-item);
  background: var(--premium-soft);
  color: var(--premium-text);
}

.icon-tile--gold {
  background: var(--premium);
  color: var(--premium-ink);
}

/* Ligne de code courte (étape « Appelle le module », FAQ) */
.code-line {
  display: block;
  overflow-x: auto;
  padding: var(--code-line-padding-y) var(--space-3);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-nav-item);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
  white-space: nowrap;
}

.tok-keyword {
  color: var(--accent-text);
}

.tok-string {
  color: var(--success);
}

/* Petite ligne d'information précédée d'une icône */
.info-line {
  display: flex;
  align-items: flex-start;
  gap: var(--notice-gap);
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.info-line .icon {
  margin-top: var(--control-icon-inset);
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  border-bottom: var(--border-width) solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--header-gap-x);
  max-width: var(--page-max-width);
  min-height: var(--header-min-height);
  margin: 0 auto;
  padding: var(--header-padding-y) var(--page-gutter);
}

.site-header__brand {
  display: flex;
}

.site-header__logo {
  width: auto;
  height: var(--logo-height);
}

.site-header__spacer {
  flex: 1 1 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.site-nav__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-nav-item);
  color: var(--text-muted);
  font-size: var(--text-nav-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.site-nav__link:hover {
  color: var(--text);
}

.site-nav__link[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

/* Recherche (en-tête, menu mobile, catalogue, page 404) */
.site-search,
.catalog-filters__search {
  position: relative;
  min-width: 0;
}

.site-header .site-search {
  flex: 0 1 var(--header-search-basis);
  min-width: var(--header-search-min);
}

.site-search__icon {
  position: absolute;
  top: 50%;
  left: var(--control-padding-x);
  color: var(--text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.site-search__input {
  width: 100%;
  height: var(--control-height);
  padding: 0 var(--control-padding-x) 0 var(--search-padding-left);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--text-button-size);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.site-search__input:focus-visible {
  border-color: var(--focus);
  outline: var(--focus-width) solid var(--focus-soft);
  outline-offset: var(--border-width);
}

.site-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.site-premium-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-height);
  padding: 0 var(--control-padding-x);
  border: var(--border-width) solid var(--premium-border);
  border-radius: var(--radius-md);
  color: var(--premium-text);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.site-premium-link:hover,
.site-premium-link[aria-current="page"] {
  background: var(--premium-soft);
  color: var(--premium-text);
}

.site-icon-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: background-color var(--duration-fast) var(--ease-out);
}

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

.site-icon-link--raised {
  background: var(--surface-raised);
}

.site-header__mobile {
  display: none;
}

/* ==========================================================================
   Menu mobile (plein écran ; fonctionne aussi sans JavaScript grâce à :target)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
}

.mobile-menu:target,
.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
  height: var(--site-mobile-bar-height);
  padding: 0 var(--page-gutter-mobile);
  border-bottom: var(--border-width) solid var(--border);
}

.mobile-menu__bar .site-header__logo {
  height: var(--logo-height-mobile);
}

.mobile-menu__body {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: var(--mobile-menu-gap);
  padding: var(--mobile-menu-padding-top) var(--page-gutter-mobile) var(--space-6);
}

.site-search--menu .site-search__input {
  height: var(--control-height-input-lg);
  font-size: var(--text-control-size);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--mobile-nav-item-height);
  border-bottom: var(--border-width) solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--text-mobile-nav-size);
  font-weight: var(--text-h3-weight);
  text-decoration: none;
}

.mobile-menu__nav .icon {
  color: var(--text-muted);
}

.mobile-menu__premium {
  display: flex;
  align-items: center;
  gap: var(--card-gap);
  padding: var(--space-4);
  border: var(--border-width) solid var(--premium-border);
  border-radius: var(--radius-lg);
  background: var(--premium-soft);
  color: var(--text);
  text-decoration: none;
}

.mobile-menu__premium > .icon {
  color: var(--premium-text);
}

.mobile-menu__premium-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--icon-box-sm);
  height: var(--icon-box-sm);
  border-radius: var(--radius-nav-item);
  background: var(--premium);
  color: var(--premium-ink);
}

.mobile-menu__premium-text {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.mobile-menu__premium-text strong {
  color: var(--premium-text);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

.mobile-menu__spacer {
  flex-grow: 1;
}

.mobile-menu__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs-size);
}

.mobile-menu__legal a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Le menu reste fermé pendant que la page défile derrière lui. */
.has-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  margin-top: var(--section-space-sm);
  border-top: var(--border-width) solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--footer-gap);
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--footer-padding-top) var(--page-gutter) var(--space-8);
}

.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-gap) var(--footer-gap-x);
}

.site-footer__about {
  display: flex;
  flex: 1 1 var(--footer-about-basis);
  flex-direction: column;
  gap: var(--footer-about-gap);
  max-width: var(--footer-about-max);
}

.site-footer__about p {
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.site-footer__logo {
  align-self: flex-start;
  width: auto;
  height: var(--logo-height-footer);
}

.site-footer__telegram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

.site-footer__nav {
  display: flex;
  flex: 1 1 var(--footer-col-basis);
  flex-direction: column;
  gap: var(--footer-nav-gap);
  font-size: var(--text-small-size);
  line-height: var(--text-xs-line);
}

.site-footer__nav .text-label {
  color: var(--text-muted);
}

.site-footer__nav a,
.site-footer__legal a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__legal a:hover {
  color: var(--link-hover);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.site-footer--compact {
  margin-top: 0;
}

.site-footer--compact .site-footer__bottom {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-6) var(--page-gutter);
  border-top: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Bandeau de l'aperçu d'un brouillon (admin) */
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--page-gutter);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: var(--text-small-size);
  font-weight: var(--text-button-weight);
}

.preview-banner a {
  color: var(--text);
}

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hero-gap);
  padding-top: var(--hero-padding-top);
}

.hero__text {
  display: flex;
  flex: 1 1 var(--hero-text-basis);
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.hero__kicker {
  color: var(--accent-text);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line);
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-tracking);
}

.hero__lead {
  max-width: var(--hero-lead-max);
  color: var(--text-muted);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--footer-nav-gap) var(--hero-check-gap-x);
  margin-top: var(--space-2);
  padding: 0;
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.check-list .icon {
  color: var(--success);
}

.hero__visual {
  position: relative;
  display: flex;
  flex: 1 1 var(--hero-visual-basis);
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--hero-visual-min-height);
  overflow: hidden;
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--brand-900);
}

.hero__image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
}

.hero__chip {
  position: absolute;
  top: var(--deco-inset);
  left: var(--deco-inset);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--hero-chip-height);
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--chip-bg);
  color: var(--text);
  font-size: var(--text-xs-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

.hero__chip:hover {
  color: var(--text);
  background: var(--bg);
}

/* Carrés décoratifs (accueil, bandeau Telegram) */
.deco-grid {
  position: absolute;
  top: var(--deco-inset);
  right: var(--deco-inset);
  display: grid;
  grid-template-columns: repeat(3, var(--deco-tile));
  gap: var(--deco-gap);
  pointer-events: none;
}

.deco-grid span {
  height: var(--deco-tile);
  border-radius: var(--radius-sm);
  background: var(--brand-800);
}

.deco-grid .is-mid {
  background: var(--brand-700);
}

.deco-grid .is-light {
  background: var(--brand-400);
}

.deco-grid--banner {
  top: var(--deco-banner-top);
  right: var(--space-8);
  grid-template-columns: repeat(4, var(--deco-tile-lg));
  gap: var(--deco-gap-lg);
}

.deco-grid--banner span {
  height: var(--deco-tile-lg);
  border-radius: var(--radius-nav-item);
}

.deco-block {
  position: absolute;
  bottom: var(--deco-block-offset);
  left: var(--deco-block-offset);
  width: var(--deco-block);
  height: var(--deco-block);
  border-radius: var(--radius-xl);
  background: var(--brand-800);
  pointer-events: none;
}

/* Fenêtre de démonstration (quand le produit mis en avant n'a pas d'aperçu) */
.demo-window {
  position: relative;
  width: var(--demo-width);
  max-width: 100%;
  border: var(--border-width) solid var(--demo-border);
  border-radius: var(--radius-md);
  background: var(--sidebar-bg);
  box-shadow: var(--shadow-pop);
  font-size: var(--text-demo-size);
  line-height: var(--demo-line);
}

.demo-window__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--demo-bar);
  padding: 0 var(--space-3) 0 var(--space-4);
  border-bottom: var(--border-width) solid var(--demo-border);
}

.demo-window__dot,
.demo-toast__dot {
  width: var(--demo-dot);
  height: var(--demo-dot);
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.demo-window__title {
  flex-grow: 1;
  font-size: var(--text-body-size);
  font-weight: var(--text-button-weight);
}

.demo-window__close {
  color: var(--demo-muted);
  font-size: var(--text-demo-close-size);
}

.demo-window__body {
  display: flex;
  flex-direction: column;
  gap: var(--demo-gap);
  padding: var(--demo-padding);
}

.demo-window__label {
  display: flex;
  align-items: flex-end;
  height: var(--demo-label);
  color: var(--demo-muted);
  font-size: var(--text-demo-small-size);
  font-weight: var(--text-button-weight);
}

.demo-window__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--demo-button);
  border: var(--border-width) solid var(--demo-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-weight: var(--text-button-weight);
}

.demo-window__button--primary {
  border-color: transparent;
  background: var(--brand-500);
  color: var(--on-accent);
}

.demo-window__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--demo-row);
  padding: 0 var(--space-3);
  border: var(--border-width) solid var(--demo-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.demo-window__toggle {
  position: relative;
  width: var(--demo-toggle-width);
  height: var(--demo-toggle-height);
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.demo-window__toggle::after {
  content: "";
  position: absolute;
  top: var(--demo-knob-inset);
  right: var(--demo-knob-inset);
  width: var(--demo-knob);
  height: var(--demo-knob);
  border-radius: var(--radius-full);
  background: var(--on-accent);
}

.demo-window__slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--footer-nav-gap) var(--space-3) var(--demo-padding);
  border: var(--border-width) solid var(--demo-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.demo-window__slider-head {
  display: flex;
  justify-content: space-between;
}

.demo-window__slider-head strong {
  color: var(--brand-500);
}

.demo-window__track {
  position: relative;
  height: var(--demo-track);
  border-radius: var(--radius-full);
  background: var(--demo-border);
}

.demo-window__track span {
  position: absolute;
  inset: 0 30% 0 0;
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.demo-window__track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--demo-thumb) / 2);
  width: var(--demo-thumb);
  height: var(--demo-thumb);
  border: var(--border-width-strong) solid var(--brand-500);
  border-radius: var(--radius-full);
  background: var(--on-accent);
  transform: translateY(-50%);
}

.demo-window__themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.demo-window__themes span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--demo-theme);
  border: var(--border-width) solid var(--demo-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: var(--text-xs-size);
  font-weight: var(--text-button-weight);
}

.demo-toast {
  position: absolute;
  right: var(--demo-toast-inset);
  bottom: var(--demo-toast-inset);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: var(--demo-toast-width);
  padding: var(--space-3) var(--demo-padding);
  border: var(--border-width) solid var(--demo-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
  font-size: var(--text-demo-size);
  line-height: var(--demo-line);
}

.demo-toast__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--text-button-weight);
}

.demo-toast__dot {
  background: var(--demo-success);
}

.demo-toast__text {
  color: var(--demo-muted);
  font-size: var(--text-xs-size);
}

.demo-toast__bar {
  position: relative;
  height: var(--demo-toast-bar);
  margin-top: var(--badge-gap);
  border-radius: var(--radius-full);
  background: var(--demo-border);
}

.demo-toast__bar span {
  position: absolute;
  inset: 0 40% 0 0;
  border-radius: var(--radius-full);
  background: var(--demo-success);
}

/* Cartes de catégorie */
.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding: var(--card-padding-lg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.category-card:hover {
  background: var(--surface-raised);
  color: var(--text);
  transform: translateY(var(--card-lift));
}

.category-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
}

.category-card__name .icon {
  color: var(--text-muted);
}

.category-card__text {
  color: var(--text-muted);
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

/* Gratuit ou Premium ? */
.access-panels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.access-panel {
  display: flex;
  flex: 1 1 var(--panel-basis);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--panel-gap);
  min-width: 0;
  padding: var(--space-8);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.access-panel--premium {
  border-color: var(--premium-border);
}

.access-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-tracking);
}

.access-panel__action {
  margin-top: auto;
}

.tick-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
  list-style: none;
}

.tick-list li {
  display: flex;
  gap: var(--footer-nav-gap);
}

.tick-list .icon {
  color: var(--accent-text);
}

.tick-list--premium .icon {
  color: var(--premium-text);
}

/* Étapes en cartes (accueil, Accès Premium) */
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr));
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--card-padding-lg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-card__number {
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  font-weight: var(--text-h2-weight);
}

.step-card__number--premium {
  color: var(--premium-text);
}

.step-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
}

.step-card__text {
  color: var(--text-muted);
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

.step-card__text code {
  color: var(--text);
}

/* Bandeau Telegram */
.telegram-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) var(--banner-gap-x);
  overflow: hidden;
  padding: var(--banner-padding);
  border-radius: var(--radius-xl);
  background: var(--brand-900);
}

.telegram-banner__text {
  position: relative;
  display: flex;
  flex: 1 1 var(--hero-text-basis);
  flex-direction: column;
  gap: var(--footer-nav-gap);
  min-width: 0;
}

.telegram-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-banner-size);
  line-height: var(--text-banner-line);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h2-tracking);
}

.telegram-banner__text p {
  max-width: var(--banner-text-max);
  color: var(--brand-200);
}

.telegram-banner__button {
  position: relative;
  background: var(--banner-button-bg);
  color: var(--banner-button-ink);
}

.telegram-banner__button:hover {
  background: var(--brand-100);
  color: var(--banner-button-ink);
}

/* ==========================================================================
   Catalogue
   ========================================================================== */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--filters-gap-x);
  margin-top: var(--space-8);
  padding: var(--space-4);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.catalog-filters__search {
  flex: 1 1 var(--header-search-basis);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: var(--filter-height);
  padding: 0 var(--control-padding-x);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--text-small-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.pill[aria-current="page"] {
  border-color: var(--brand-300);
  background: var(--accent-soft);
}

.segmented {
  display: flex;
  gap: var(--space-1);
  padding: var(--tabs-padding);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.segmented__item {
  display: inline-flex;
  align-items: center;
  gap: var(--badge-gap);
  height: var(--segment-height);
  padding: 0 var(--space-3);
  border-radius: var(--radius-tab);
  color: var(--text);
  font-size: var(--text-small-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

.segmented__item--free {
  color: var(--accent-text);
}

.segmented__item--premium {
  color: var(--premium-text);
}

.segmented__item:hover {
  background: var(--surface-hover);
}

.segmented__item[aria-current="page"] {
  background: var(--surface-raised);
}

.catalog-filters__sort {
  flex: 0 0 var(--sort-basis);
}

/* Le tri s'applique tout seul avec JavaScript ; sans, le bouton « Filtrer » le valide. */
.js .catalog-filters__submit {
  display: none;
}

.filter-note {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

.catalog-filters + .card-grid,
.catalog-filters ~ .visually-hidden + .card-grid,
.filter-note + .card-grid {
  margin-top: var(--space-8);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-12) var(--space-8);
  border: var(--border-width) dashed var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.empty-state__art {
  width: var(--empty-art-width);
  height: auto;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-banner-size);
  line-height: var(--text-banner-line);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h2-tracking);
}

.empty-state__text {
  max-width: var(--empty-text-max);
  color: var(--text-muted);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-1);
}

.empty-state__hint {
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

/* Pagination du catalogue (cases de 44 px) */
.site-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pagination-gap);
  margin-top: var(--space-12);
}

.site-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

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

.site-pagination__item[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

.site-pagination__item--arrow {
  border: var(--border-width) solid var(--border-strong);
}

.site-pagination__item--disabled {
  border: var(--border-width) solid var(--border);
  color: var(--border-strong);
}

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

/* Carte produit sans aperçu : le symbole de la marque */
.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--sidebar-bg);
}

.product-card__symbol {
  width: var(--icon-tile);
  height: var(--icon-tile);
}

.product-card__badges {
  margin-top: auto;
  padding-top: var(--badge-gap);
}

/* ==========================================================================
   Fiche produit
   ========================================================================== */
.product-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-12);
  margin-top: var(--space-6);
}

.gallery {
  display: flex;
  flex: 1 1 var(--gallery-basis);
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.gallery__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  background: var(--brand-900);
}

.gallery__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__chip {
  position: absolute;
  top: var(--gallery-chip-inset);
  left: var(--gallery-chip-inset);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--hero-chip-height);
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--chip-bg);
  font-size: var(--text-xs-size);
  font-weight: var(--text-button-weight);
  pointer-events: none;
}

.gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__symbol {
  width: var(--icon-tile-xl);
  height: var(--icon-tile-xl);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.gallery__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--brand-900);
  color: var(--text);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb[aria-pressed="true"] {
  border: var(--border-width-strong) solid var(--brand-300);
}

.gallery__thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--surface-raised);
}

.product-info {
  display: flex;
  flex: 1 1 var(--info-basis);
  flex-direction: column;
  gap: var(--panel-gap);
  min-width: 0;
  max-width: var(--info-max);
}

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

.product-info__title {
  margin-top: calc(-1 * var(--space-2));
  font-family: var(--font-display);
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h1-tracking);
}

.product-info__tagline {
  color: var(--text-muted);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line);
}

/* Bloc du bouton de téléchargement (un seul bouton selon l'accès) */
.download-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--card-padding-x);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.download-box--premium {
  border-color: var(--premium-border);
}

.download-box__check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
  text-align: center;
}

.download-box__check .icon {
  color: var(--success);
}

.download-box__note {
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.download-box__alt {
  display: flex;
  flex-direction: column;
  gap: var(--footer-nav-gap);
  padding: var(--notice-padding);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.download-box__alt-title {
  font-size: var(--text-small-size);
  font-weight: var(--text-button-weight);
}

.download-box__alt-text {
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.download-box__alt-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-small-size);
  text-decoration: none;
}

/* Encart vers la version Pro */
.pro-card {
  display: flex;
  align-items: center;
  gap: var(--card-gap);
  padding: var(--space-4);
  border: var(--border-width) solid var(--premium-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.pro-card:hover {
  box-shadow: var(--shadow-premium);
  color: var(--text);
}

.pro-card > .icon {
  color: var(--premium-text);
}

.pro-card__icon,
.pro-banner__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--icon-box-sm);
  height: var(--icon-box-sm);
  border-radius: var(--radius-nav-item);
  background: var(--premium-soft);
  color: var(--premium-text);
}

.pro-card__text {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: var(--space-1);
}

.pro-card__title {
  font-size: var(--text-lead-sm-size);
  font-weight: var(--text-button-weight);
}

.pro-card__help {
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

/* Caractéristiques (version, compatibilité…) */
.spec-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.spec-list__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: var(--border-width) solid var(--border);
}

.spec-list__row:last-child {
  border-bottom: var(--border-width) solid var(--border);
}

.spec-list dt {
  color: var(--text-muted);
}

.spec-list dd {
  margin: 0;
  text-align: right;
}

/* Onglets de navigation dans la fiche */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: var(--space-1);
  width: fit-content;
  max-width: 100%;
  margin-top: var(--space-16);
  padding: var(--tabs-padding);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.section-tabs__tab {
  display: inline-flex;
  align-items: center;
  height: var(--section-tab-height);
  padding: 0 var(--tab-padding-x);
  border-radius: var(--radius-tab);
  color: var(--text-muted);
  font-size: var(--text-small-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

.section-tabs__tab:hover {
  color: var(--text);
}

.section-tabs__tab[aria-current="true"] {
  background: var(--surface-raised);
  color: var(--text);
}

.product-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-12);
  margin-top: var(--product-layout-top);
}

.product-main {
  display: flex;
  flex: 1 1 var(--product-main-basis);
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.product-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  scroll-margin-top: var(--space-6);
}

.product-section__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-section__title {
  font-family: var(--font-display);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  font-weight: var(--text-h2-weight);
  letter-spacing: var(--text-h2-tracking);
}

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

/* Texte Markdown rendu (description, changelog, pages légales saisies) */
.prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--prose-max);
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-6);
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
}

.prose code {
  padding: 0 var(--space-1);
  border-radius: var(--radius-chip);
  background: var(--surface-raised);
}

.prose pre {
  margin: 0;
  overflow-x: auto;
  padding: var(--space-4);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.prose pre code {
  padding: 0;
  background: none;
}

/* Bloc de code mis en forme par site.js (en-tête, bouton Copier) */
.prose .code-block pre {
  border: 0;
  border-radius: 0;
  background: none;
}

.code-block .tok-number {
  color: var(--accent-text);
}

.prose blockquote {
  padding-left: var(--space-4);
  border-left: var(--border-width-strong) solid var(--border-strong);
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.tag-cloud__tag {
  display: inline-flex;
  align-items: center;
  height: var(--badge-height-sm);
  padding: 0 var(--badge-padding-x);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  text-decoration: none;
}

a.tag-cloud__tag:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* Fonctionnalités en cartes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--feature-min)), 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--footer-nav-gap);
  padding: var(--card-padding-x);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-card__title {
  font-size: var(--text-body-size);
  font-weight: var(--text-button-weight);
}

.feature-card__text {
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

/* Tableau comparatif (Gratuit / Pro, Accès Premium) */
.compare-table {
  overflow-x: auto;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
}

.compare-table--narrow {
  max-width: var(--compare-max);
}

.compare-table table {
  width: 100%;
  min-width: var(--compare-min);
  border-collapse: collapse;
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

.compare-table--narrow table {
  min-width: var(--compare-min-wide);
}

.compare-table thead tr {
  background: var(--surface);
}

.compare-table thead th {
  padding: var(--table-cell-y) var(--table-cell-x);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-tracking);
  text-align: left;
  text-transform: uppercase;
}

.compare-table thead .compare-table__free,
.compare-table thead .compare-table__pro {
  width: var(--compare-col);
  padding: var(--table-cell-y) var(--space-3);
  text-align: center;
}

.compare-table--narrow thead .compare-table__free,
.compare-table--narrow thead .compare-table__pro {
  width: var(--compare-col-wide);
}

.compare-table thead .compare-table__free {
  color: var(--accent-text);
}

.compare-table thead .compare-table__pro {
  color: var(--premium-text);
}

.compare-table tbody tr {
  border-top: var(--border-width) solid var(--border);
}

.compare-table tbody th {
  padding: var(--table-row-y) var(--table-cell-x);
  font-weight: var(--text-body-weight);
  text-align: left;
}

.compare-table tbody td {
  padding: var(--table-row-y) var(--space-3);
  text-align: center;
}

.compare-table td .icon {
  display: inline-block;
  vertical-align: middle;
}

.compare-table__free .icon {
  color: var(--accent-text);
}

.compare-table .compare-table__pro {
  background: var(--premium-faint);
}

.compare-table__pro .icon {
  color: var(--premium-text);
}

.compare-table .icon.is-off {
  color: var(--border-strong);
}

.compare-table__access {
  background: var(--surface);
}

.compare-table__access th {
  font-weight: var(--text-button-weight);
}

.compare-table__access td {
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.compare-table__access .compare-table__free {
  color: var(--accent-text);
  font-weight: var(--text-button-weight);
}

.compare-table__access .compare-table__pro {
  color: var(--premium-text);
}

/* Étapes d'installation numérotées */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.install-steps__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.install-steps__number {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--step-badge);
  height: var(--step-badge);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: var(--text-small-size);
  font-weight: var(--text-h1-weight);
}

.install-steps code {
  font-size: var(--text-small-size);
}

.install-steps--compact {
  gap: var(--card-gap);
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

.install-steps--compact .install-steps__number {
  width: var(--step-size);
  height: var(--step-size);
  font-size: var(--text-xs-size);
}

/* Contenu du téléchargement */
.contents-list {
  overflow: hidden;
  padding: 0;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  list-style: none;
}

.contents-list__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--card-padding-x);
  background: var(--surface);
}

.contents-list__row + .contents-list__row {
  border-top: var(--border-width) solid var(--border);
}

.contents-list__row > .icon {
  color: var(--accent-text);
}

.contents-list__path {
  flex: 0 0 var(--path-basis);
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
}

.contents-list__text {
  flex-grow: 1;
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

.contents-list__size {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs-size);
  white-space: nowrap;
}

/* Changelog en frise */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}

.timeline__item {
  display: flex;
  gap: var(--panel-gap);
}

.timeline__dot {
  flex-shrink: 0;
  width: var(--timeline-dot);
  height: var(--timeline-dot);
  margin-top: var(--timeline-dot-offset);
  border-radius: var(--radius-full);
  background: var(--border-strong);
}

.timeline__item.is-current .timeline__dot {
  background: var(--brand-500);
}

.timeline__body {
  display: flex;
  flex-direction: column;
  gap: var(--badge-gap);
}

.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
}

.timeline__version {
  font-family: var(--font-display);
  font-size: var(--text-aside-size);
  line-height: var(--text-aside-line);
  font-weight: var(--text-h3-weight);
}

.timeline__date {
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

.timeline__text {
  color: var(--text-muted);
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

/* Colonne de raccourcis */
.product-aside {
  display: flex;
  flex: 1 1 var(--aside-basis);
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  max-width: var(--aside-max);
}

.aside-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--card-padding-x);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.aside-box > .text-label {
  color: var(--text-muted);
}

.aside-box__product {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.aside-box__symbol {
  width: var(--avatar-size);
  height: var(--avatar-size);
}

.aside-box__name {
  display: flex;
  flex-direction: column;
}

.aside-box__name strong {
  font-family: var(--font-display);
  font-size: var(--text-body-size);
  font-weight: var(--text-h3-weight);
}

.aside-box__name span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-label-size);
}

.aside-box__note {
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.aside-box__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-lead-sm-size);
  text-decoration: none;
}

.aside-box--brand {
  border-color: transparent;
  background: var(--brand-900);
}

.aside-box__title {
  font-family: var(--font-display);
  font-size: var(--text-body-size);
  line-height: var(--text-aside-line);
  font-weight: var(--text-h3-weight);
}

.aside-box__text {
  color: var(--brand-200);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.aside-box__button {
  align-self: flex-start;
  height: var(--control-height-input-sm);
  padding: 0 var(--control-padding-x);
  border-radius: var(--radius-nav-item);
  background: var(--banner-button-bg);
  color: var(--banner-button-ink);
  font-size: var(--text-small-size);
}

.aside-box__button:hover {
  background: var(--brand-100);
  color: var(--banner-button-ink);
}

/* ==========================================================================
   Téléchargement, page cible Premium et pages d'état
   ========================================================================== */
.download-page {
  display: flex;
  flex-direction: column;
  gap: var(--download-gap);
  width: 100%;
  max-width: var(--prose-max);
  margin: 0 auto;
  padding-top: var(--download-top);
}

.download-page__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--download-head-gap);
  text-align: center;
}

.download-page__head .page-lead {
  max-width: var(--hero-lead-max);
}

.download-page__art {
  width: var(--download-art);
  height: auto;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--badge-height);
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-badge-size);
  font-weight: var(--text-button-weight);
}

.pill-status--success {
  background: var(--surface-raised);
  color: var(--success);
}

.pill-status--premium {
  background: var(--premium-soft);
  color: var(--premium-text);
}

.file-card {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap);
  padding: var(--space-6);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.file-card--premium {
  border-color: var(--premium-border);
}

.file-card__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.file-card__thumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: var(--file-thumb-width);
  height: var(--file-thumb-height);
  border-radius: var(--radius-md);
  background: var(--brand-900);
}

.file-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-card__symbol {
  width: var(--icon-box-sm);
  height: var(--icon-box-sm);
}

.file-card__info {
  display: flex;
  flex: 1 1 var(--field-min-narrow);
  flex-direction: column;
  gap: var(--badge-gap);
}

.file-card__name {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
}

.file-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

.file-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.file-card__expiry {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.file-card__type {
  font-family: var(--font-mono);
}

.pro-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  padding: var(--card-padding-x) var(--space-6);
  border: var(--border-width) solid var(--premium-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pro-banner__icon {
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-md);
}

.pro-banner__text {
  display: flex;
  flex: 1 1 var(--card-min);
  flex-direction: column;
  gap: var(--space-1);
}

.pro-banner__title {
  font-weight: var(--text-button-weight);
}

.pro-banner__help {
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap-sm);
  padding: var(--space-6);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel__title {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
}

.panel .arrow-link {
  align-self: flex-start;
}

.help-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

.help-line__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.download-page + .section,
.download-page ~ .section {
  padding-top: var(--section-space-md);
}

/* Lien expiré, produit retiré, page 404 */
.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--premium-hero-gap);
  padding: var(--status-padding) 0;
  text-align: center;
}

.status-page .page-lead {
  max-width: var(--empty-text-max);
}

.status-page__art {
  width: var(--icon-tile-xl);
  height: auto;
}

.status-page__art--lg {
  width: var(--status-art);
}

.status-page__title {
  max-width: var(--measure);
  font-family: var(--font-display);
  font-size: var(--status-title-size);
  line-height: var(--status-title-line);
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-tracking);
}

.status-page .text-label {
  color: var(--text-muted);
}

.status-page .button-row {
  padding-top: var(--space-2);
}

/* Détail technique d'une erreur 500 (mode debug uniquement) */
.error-details {
  width: 100%;
  max-width: var(--prose-max);
  max-height: var(--hero-visual-min-height);
  margin: 0;
  overflow: auto;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
  text-align: left;
  white-space: pre-wrap;
}

.site-search--wide {
  width: 100%;
  max-width: var(--status-search-max);
  margin-top: var(--space-3);
}

/* ==========================================================================
   Accès Premium via Linkvertise
   ========================================================================== */
.premium-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--premium-hero-gap);
  padding-top: var(--hero-padding-top);
  text-align: center;
}

.premium-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-tile-xl);
  height: var(--icon-tile-xl);
  border-radius: var(--radius-icon-xl);
  background: var(--premium-soft);
  box-shadow: var(--shadow-premium);
  color: var(--premium-text);
}

.premium-hero__title {
  max-width: var(--premium-title-max);
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line);
  font-weight: var(--text-display-weight);
  letter-spacing: var(--text-display-tracking);
}

.premium-hero .button-row {
  padding-top: var(--space-2);
}

.premium-hero__note {
  color: var(--text-muted);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
}

.notice-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--section-space-md);
  padding: var(--space-8);
  border: var(--border-width) solid var(--premium-border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.notice-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-tracking);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--info-min)), 1fr));
  gap: var(--space-6);
  padding: 0;
  list-style: none;
}

.info-grid__item {
  display: flex;
  gap: var(--card-gap);
}

.info-grid__item > span:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-grid__item strong {
  font-weight: var(--text-button-weight);
}

.info-grid__item strong + span {
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.premium-hero + .notice-panel ~ .section {
  padding-top: var(--section-space-md);
}

/* Accordéons (FAQ, questions sur le Premium) */
.accordion {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
}

.accordion__item {
  background: var(--surface);
}

.accordion__item + .accordion__item {
  border-top: var(--border-width) solid var(--border);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--accordion-padding-y) var(--accordion-padding-x);
  font-size: var(--text-body-size);
  font-weight: var(--text-button-weight);
  list-style: none;
  cursor: pointer;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary .icon {
  color: var(--text-muted);
  transition: transform var(--duration-base) var(--ease-out);
}

.accordion__item[open] .accordion__summary .icon {
  transform: rotate(180deg);
}

.accordion__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0 var(--accordion-padding-x) var(--accordion-padding-x);
  color: var(--text-muted);
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

.accordion__body code {
  color: var(--text);
}

.premium-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--banner-gap-x);
  padding: var(--banner-padding);
  border: var(--border-width) solid var(--premium-border);
  border-radius: var(--radius-xl);
  background: var(--premium-soft);
}

.premium-cta__text {
  display: flex;
  flex: 1 1 var(--panel-basis);
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.premium-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-banner-size);
  line-height: var(--text-banner-line);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h2-tracking);
}

/* ==========================================================================
   FAQ et pages légales (navigation à gauche, contenu à droite)
   ========================================================================== */
.side-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.side-layout--legal {
  gap: var(--space-12) var(--space-16);
  margin-top: 0;
}

.side-nav {
  position: sticky;
  top: var(--space-6);
  display: flex;
  flex: 0 1 var(--side-nav-basis);
  flex-direction: column;
  gap: var(--space-1);
}

.side-layout--legal .side-nav {
  flex-basis: var(--side-nav-basis-lg);
}

.side-nav__label {
  padding: 0 var(--tab-padding-x) var(--space-2);
  color: var(--text-muted);
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: var(--footer-nav-gap);
  height: var(--touch-target);
  padding: 0 var(--tab-padding-x);
  border-radius: var(--radius-nav-item);
  color: var(--text-muted);
  font-size: var(--text-nav-size);
  font-weight: var(--text-button-weight);
  text-decoration: none;
}

.side-nav__link:hover {
  color: var(--text);
}

.side-nav__link[aria-current="page"],
.side-nav__link[aria-current="true"] {
  background: var(--surface-raised);
  color: var(--text);
}

.side-layout__main {
  display: flex;
  flex: 999 1 var(--admin-content-min);
  flex-direction: column;
  gap: var(--footer-gap);
  min-width: 0;
  max-width: var(--faq-max);
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  scroll-margin-top: var(--space-6);
}

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

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  padding: var(--space-6);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.contact-card__title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--text-aside-size);
  line-height: var(--text-aside-line);
  font-weight: var(--text-h3-weight);
}

.legal {
  display: flex;
  flex: 999 1 var(--admin-content-min);
  flex-direction: column;
  gap: var(--footer-gap);
  min-width: 0;
  max-width: var(--prose-max);
}

.legal__head {
  display: flex;
  flex-direction: column;
  gap: var(--footer-nav-gap);
}

.legal__updated {
  color: var(--text-muted);
  font-size: var(--text-small-size);
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  line-height: var(--text-legal-line);
}

.legal__title {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--text-h3-weight);
}

.legal__facts {
  display: grid;
  grid-template-columns: var(--legal-term-width) minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  margin: 0;
  font-size: var(--text-lead-sm-size);
  line-height: var(--text-lead-sm-line);
}

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

.legal__facts dd {
  margin: 0;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-6);
}

.legal__model {
  display: flex;
  align-items: flex-start;
  gap: var(--notice-gap);
  padding: var(--notice-padding);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line);
}

.legal__prose {
  line-height: var(--text-legal-line);
}

/* Information légale manquante : repère pointillé « à compléter » */
.placeholder-field {
  padding: var(--border-width) var(--placeholder-padding-x);
  border: var(--border-width) dashed var(--border-strong);
  border-radius: var(--radius-chip);
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
}

/* ==========================================================================
   Tablette et mobile
   ========================================================================== */
@media (max-width: 800px) {
  .site-nav,
  .site-header .site-search,
  .site-premium-link,
  .site-header__inner > .site-icon-link:not(.site-header__mobile) {
    display: none;
  }

  .site-header__mobile {
    display: inline-flex;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: var(--space-2);
    min-height: var(--site-mobile-bar-height);
    padding: 0 var(--page-gutter-mobile);
  }

  .site-header__logo {
    height: var(--logo-height-mobile);
  }

  .side-nav {
    position: static;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-layout--legal .side-nav {
    flex-basis: 100%;
  }

  .side-nav__label {
    flex-basis: 100%;
  }

  .product-info {
    max-width: none;
  }

  .product-aside {
    max-width: none;
  }
}

@media (min-width: 801px) {
  .mobile-menu {
    display: none !important;
  }

  /* Le résumé et son bouton de téléchargement suivent la lecture de la fiche. */
  .product-aside {
    position: sticky;
    top: var(--space-6);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--page-gutter-mobile);
  }

  .page-top {
    padding-top: var(--space-4);
  }

  .section {
    gap: var(--space-6);
    padding-top: var(--section-space-mobile);
  }

  .hero {
    gap: var(--space-8);
    padding-top: var(--hero-padding-top-mobile);
  }

  .hero__text {
    gap: var(--space-4);
  }

  .hero__title {
    font-size: var(--hero-title-mobile-size);
    line-height: var(--hero-title-mobile-line);
  }

  .hero__lead {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .check-list {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero__visual {
    min-height: var(--hero-visual-height-mobile);
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-auth-card-mobile);
  }

  .deco-grid--hero {
    top: var(--space-4);
    right: var(--space-4);
    grid-template-columns: repeat(3, var(--deco-tile-mobile));
    gap: var(--deco-gap-mobile);
  }

  .deco-grid--hero span {
    height: var(--deco-tile-mobile);
  }

  .demo-toast {
    display: none;
  }

  .access-panel,
  .notice-panel,
  .telegram-banner,
  .premium-cta {
    padding: var(--space-6);
  }

  .catalog-filters {
    gap: var(--space-3);
  }

  .catalog-filters__search,
  .catalog-filters__sort {
    flex-basis: 100%;
  }

  .pill-group {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .pill {
    flex-shrink: 0;
  }

  .product-hero {
    gap: var(--space-6);
    margin-top: var(--space-4);
  }

  .gallery__frame {
    border-radius: var(--radius-lg);
  }

  .product-info__title {
    font-size: var(--text-product-title-mobile-size);
    line-height: var(--text-product-title-mobile-line);
  }

  .product-info__tagline {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line);
  }

  .section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: var(--space-12);
  }

  .section-tabs__tab {
    flex-shrink: 0;
  }

  .product-main {
    gap: var(--space-12);
  }

  /* Fonctionnalités : icône à gauche, cartes compactes (maquette mobile 03). */
  .feature-grid {
    gap: var(--space-3);
  }

  .feature-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-1) var(--space-4);
    padding: var(--space-4);
  }

  .feature-card .icon-tile {
    grid-row: span 2;
  }

  /* Comparatif de la fiche : les trois colonnes tiennent dans l'écran. */
  .compare-table:not(.compare-table--narrow) table {
    min-width: 0;
    font-size: var(--text-small-size);
    line-height: var(--text-small-line);
  }

  .compare-table:not(.compare-table--narrow) thead th:first-child,
  .compare-table:not(.compare-table--narrow) tbody th {
    padding-left: var(--space-4);
    padding-right: var(--space-2);
  }

  .compare-table:not(.compare-table--narrow) thead .compare-table__free,
  .compare-table:not(.compare-table--narrow) thead .compare-table__pro {
    width: var(--compare-col-mobile);
    padding: var(--table-cell-y) var(--space-2);
    overflow-wrap: anywhere;
  }

  .compare-table:not(.compare-table--narrow) tbody td {
    padding: var(--table-row-y) var(--space-2);
  }

  /* L'accès est déjà dit au-dessus du tableau et sur les boutons qui le suivent. */
  .compare-table:not(.compare-table--narrow) .compare-table__access {
    display: none;
  }

  .product-section .button-row > .btn {
    flex: 1 1 100%;
  }

  /* Étapes et avantages : numéro ou icône à gauche (maquettes mobiles 01 et 04). */
  .step-cards {
    gap: var(--space-3);
  }

  .step-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-1) var(--space-4);
    padding: var(--space-4);
  }

  .step-card > .icon-tile,
  .step-card__number {
    grid-row: span 2;
  }

  .step-card__number {
    font-size: var(--text-h3-size);
    line-height: var(--text-h3-line);
  }

  .step-card__title {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line);
  }

  .step-card__text {
    font-size: var(--text-small-size);
    line-height: var(--text-small-line);
  }

  /* Résumé Gratuit / Premium : les trois colonnes tiennent dans l'écran. */
  .compare-table--narrow table {
    min-width: 0;
    font-size: var(--text-small-size);
    line-height: var(--text-small-line);
  }

  .compare-table--narrow thead .compare-table__free,
  .compare-table--narrow thead .compare-table__pro {
    width: var(--compare-col-mobile-wide);
    padding: var(--table-cell-y) var(--space-2);
  }

  .compare-table--narrow tbody th {
    padding-left: var(--space-4);
    padding-right: var(--space-2);
  }

  .compare-table--narrow tbody td {
    padding: var(--table-row-y) var(--space-2);
  }

  .contents-list__row {
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-3) var(--space-4);
  }

  .contents-list__path {
    flex-basis: auto;
  }

  .contents-list__text {
    flex-basis: 100%;
    order: 3;
  }

  .download-page {
    padding-top: var(--space-8);
  }

  .file-card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .status-page {
    padding: var(--space-12) 0;
  }

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

  .legal__facts dd {
    margin-bottom: var(--space-2);
  }

  .site-footer {
    margin-top: var(--section-space-mobile);
  }

  /* Liens du pied de page sur deux colonnes (maquette mobile 01). */
  .site-footer__columns {
    column-gap: var(--space-6);
  }

  .site-footer__nav {
    flex: 0 0 calc((100% - var(--space-6)) / 2);
  }

  .site-footer__inner {
    padding: var(--space-12) var(--page-gutter-mobile) var(--space-6);
  }

  .site-footer--compact .site-footer__bottom {
    padding: var(--space-6) var(--page-gutter-mobile);
  }

  .preview-banner {
    padding: var(--space-3) var(--page-gutter-mobile);
  }
}
