/* =====================================================================
   Plateforme SaaS — landing, inscription et espace commerçant.
   Les couleurs et les polices viennent des variables --p-* émises par
   App\Support\PlatformUi::themeCss() (Super Admin → Apparence).
   Mobile d'abord. Points de rupture : 560 / 760 / 1000 / 1280 px.
   ===================================================================== */

:root {
  --p-wrap: 1240px;
  --p-gutter: clamp(16px, 4vw, 40px);
  --p-sec: clamp(56px, 8vw, 116px);
  --p-radius: 16px;
  --p-radius-sm: 10px;
  --p-ease: cubic-bezier(.2, .7, .2, 1);
  --p-shadow-sm: 0 1px 2px rgba(15, 20, 17, .05), 0 3px 10px rgba(15, 20, 17, .04);
  --p-shadow-md: 0 10px 34px rgba(15, 20, 17, .09);
  --p-shadow-lg: 0 26px 70px rgba(15, 20, 17, .16);
  --p-ok: #2f7d4f;
  --p-warn: #a86411;
  --p-danger: #b42318;
  --fs-h1: clamp(2.15rem, 1.4rem + 3.1vw, 3.9rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .5vw, 1.35rem);
  --fs-sm: .875rem;
  --fs-xs: .78rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; background: var(--p-bg); color: var(--p-text);
  font-family: var(--p-font-body); font-size: 1rem; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--p-accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }  /* les listes rédactionnelles retrouvent leurs puces dans .rich */
h1, h2, h3, h4 { font-family: var(--p-font-heading); font-weight: 450; line-height: 1.16; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--p-accent-text); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }
::selection { background: var(--p-accent); color: var(--p-on-accent); }

.wrap { width: 100%; max-width: var(--p-wrap); margin-inline: auto; padding-inline: var(--p-gutter); }
.wrap--narrow { max-width: 860px; }
.wrap--xs { max-width: 480px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--p-muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.r { text-align: right; }
.mt { margin-top: 20px; }
.opt { color: var(--p-muted); font-weight: 400; font-size: var(--fs-sm); }
.icon { flex: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--p-primary); color: var(--p-on-primary); padding: 12px 18px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--p-on-primary); }
.env-banner { margin: 0; padding: 8px 16px; text-align: center; background: var(--p-warn); color: #fff; font-size: var(--fs-xs); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .18s var(--p-ease), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--p-primary); color: var(--p-on-primary); box-shadow: var(--p-shadow-sm); }
.btn--primary:hover { color: var(--p-on-primary); box-shadow: var(--p-shadow-md); }
.btn--accent { background: var(--p-accent); color: var(--p-on-accent); }
.btn--accent:hover { color: var(--p-on-accent); }
.btn--outline { border-color: var(--p-border-strong); background: transparent; color: var(--p-text); }
.btn--outline:hover { border-color: var(--p-text); color: var(--p-text); }
.btn--ghost { background: transparent; color: var(--p-muted); padding-inline: 14px; }
.btn--ghost:hover { color: var(--p-text); }
/* Bouton secondaire posé sur un fond sombre (bande d'appel à l'action) */
.btn--on-dark { border-color: color-mix(in srgb, var(--p-on-dark) 40%, transparent); background: transparent; color: var(--p-on-dark); }
.btn--on-dark:hover { border-color: var(--p-on-dark); background: color-mix(in srgb, var(--p-on-dark) 10%, transparent); color: var(--p-on-dark); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

/* ---------- En-tête ----------
   Liseré dégradé en haut, marque avec pastille, liens dans une capsule claire,
   lien actif souligné d'un point, bouton d'inscription avec flèche.
   Sur téléphone : panneau arrondi, liens avec flèche, boutons pleine largeur. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--p-bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header__ribbon { position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--p-primary), var(--p-accent) 45%, color-mix(in srgb, var(--p-accent) 45%, #e9c46a) 70%, var(--p-primary)); }
.site-header.is-stuck { border-bottom-color: var(--p-border); box-shadow: 0 10px 30px -22px rgba(20, 30, 25, .45); background: color-mix(in srgb, var(--p-bg) 93%, transparent); }
.site-header__in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--p-font-heading); color: var(--p-text); }
.brand:hover { color: var(--p-text); }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--p-primary); color: var(--p-on-primary);
  font-size: 1.05rem; line-height: 1; box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--p-accent) 85%, transparent); transition: transform .3s var(--p-ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { font-size: 1.24rem; letter-spacing: -.02em; }
.brand__logo { max-height: 40px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav__list { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, #fff 62%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p-text) 8%, transparent); }
.site-nav__list a { position: relative; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; text-decoration: none;
  font-size: .93rem; font-weight: 550; color: var(--p-muted); transition: color .2s, background-color .2s; }
.site-nav__list a:hover { color: var(--p-text); background: #fff; }
.site-nav__list a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--p-accent);
  transform: translateX(-50%) scale(0); transition: transform .25s var(--p-ease); }
.site-nav__list a[aria-current]::after, .site-nav__list a:hover::after { transform: translateX(-50%) scale(1); }
.site-nav__list a[aria-current] { color: var(--p-text); background: #fff; box-shadow: 0 2px 8px -4px rgba(20, 30, 25, .25); }
.site-nav__go { display: none; }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.site-nav__cta { gap: 8px; }
.site-nav__cta .icon { transition: transform .22s var(--p-ease); }
.site-nav__cta:hover .icon { transform: translateX(3px); }
.burger { display: none; border: 1px solid var(--p-border); background: #fff; border-radius: 12px; padding: 8px; margin-left: auto; color: var(--p-text); }
/* Six liens depuis l'ajout de « Sur mesure » : le menu passe en burger sous
   1260 px et se resserre jusqu'à 1500 px (avec le bouton FR | EN) ; un libellé ne revient jamais à la ligne. */
.site-nav__list a, .site-nav__actions .btn { white-space: nowrap; }
@media (min-width: 1260px) and (max-width: 1499px) {
  .site-nav { gap: 12px; }
  .site-nav__list a { padding: 8px 11px; font-size: .9rem; }
}

@media (max-width: 1259px) {
  .burger { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 72px 10px auto 10px; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--p-bg); border: 1px solid var(--p-border); border-radius: 22px; padding: 10px 16px 18px;
    box-shadow: 0 30px 60px -30px rgba(20, 30, 25, .5); transform: translateY(-8px); opacity: 0; visibility: hidden; overflow: hidden auto;
    transition: opacity .2s var(--p-ease), transform .2s var(--p-ease), visibility .2s;
    max-height: calc(100dvh - 86px);
    background-image: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--p-accent) 16%, transparent), transparent 45%);
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .site-nav__list a { display: flex; justify-content: space-between; padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--p-border); font-size: 1.06rem; color: var(--p-text); background: none; box-shadow: none; }
  .site-nav__list li:last-child a { border-bottom: 0; }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current] { color: var(--p-accent-text); background: none; box-shadow: none; }
  .site-nav__go { display: inline-flex; color: var(--p-accent-text); }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; }
  .site-nav__actions .btn { width: 100%; }
}
/* Bouton de langue FR | EN (site public seulement) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 3px; border-radius: 999px; border: 1px solid var(--p-border); background: var(--p-surface); flex: none; }
.lang-switch__item { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--p-muted); text-decoration: none; transition: background .18s, color .18s; }
a.lang-switch__item:hover { color: var(--p-text); background: color-mix(in srgb, var(--p-primary) 8%, transparent); }
a.lang-switch__item:focus-visible { outline: 3px solid color-mix(in srgb, var(--p-primary) 45%, transparent); outline-offset: 1px; }
.lang-switch__item.is-on { background: var(--p-primary); color: var(--p-on-primary); }
@media (max-width: 1259px) {
  .site-nav > .lang-switch { align-self: center; margin-top: 16px; }
  .lang-switch__item { min-width: 52px; height: 40px; font-size: .9rem; }
}

/* Sans JavaScript, la navigation reste accessible */
html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
html:not(.js) .burger { display: none; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--p-sec); position: relative; }
.sec--tight { padding-block: clamp(40px, 6vw, 80px); }
.sec--alt { background: var(--p-surface-2); }
/* Filet clair entre deux sections de fond différent : sépare sans trait dur */
.sec--alt::before, .sec--alt::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-border), transparent);
}
.sec--alt::before { top: 0; }
.sec--alt::after { bottom: 0; }
.sec__head { max-width: 46rem; margin-inline: auto; text-align: center; display: grid; gap: 12px; }
.sec__title { font-size: var(--fs-h2); }
.sec__head .sec__title { max-width: 20ch; margin-inline: auto; }
.sec__sub { color: var(--p-muted); max-width: 62ch; font-size: 1.04rem; }
.sec__head .sec__sub { margin-inline: auto; }
.sec__note { margin-top: 24px; font-size: var(--fs-sm); color: var(--p-muted); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em;
  font-size: var(--fs-xs); font-weight: 700; color: var(--p-accent-text); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.sec__head .eyebrow { justify-content: center; margin-bottom: 0; }
.page-head { padding: clamp(40px, 6vw, 80px) 0 0; }
.page-head h1 { font-size: var(--fs-h1); }
.page-head__sub { color: var(--p-muted); max-width: 60ch; margin-top: 14px; font-size: 1.05rem; }
.page-title { font-size: var(--fs-h1); margin-bottom: 12px; }
.head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.crumbs { font-size: var(--fs-sm); color: var(--p-muted); margin-bottom: 16px; }
.crumbs span[aria-hidden] { margin-inline: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(52px, 8vw, 120px) clamp(44px, 6vw, 96px);
  background:
    radial-gradient(70% 55% at 88% 0%, color-mix(in srgb, var(--p-accent) 13%, transparent), transparent 70%),
    radial-gradient(60% 55% at 4% 8%, color-mix(in srgb, var(--p-primary) 11%, transparent), transparent 72%);
}
/* Halo décoratif : purement esthétique, ignoré par les lecteurs d'écran */
.hero__glow {
  position: absolute; z-index: -1; inset-block-start: -28%; inset-inline-end: -14%;
  width: min(62vw, 720px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--p-accent) 22%, transparent), transparent 66%);
  filter: blur(18px);
}
.hero__in { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero--center .hero__in { justify-items: center; text-align: center; }
.hero--center .hero__title, .hero--center .hero__sub { max-width: 22ch; margin-inline: auto; }
.hero--center .hero__sub { max-width: 58ch; }
.hero--center .hero__actions, .hero--center .hero__note { justify-content: center; }
.hero--split .hero__in { grid-template-columns: 1fr; }
.hero__title { font-size: var(--fs-h1); max-width: 16ch; letter-spacing: -.03em; line-height: 1.06; }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, .98rem + .4vw, 1.26rem); color: var(--p-muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__link { margin-top: 14px; font-size: var(--fs-sm); font-weight: 600; }
.hero__link a { display: inline-flex; align-items: center; gap: 4px; color: var(--p-accent-text); text-decoration: none; }
.hero__link a:hover { text-decoration: underline; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: var(--fs-sm); color: var(--p-muted); }
.hero__note .icon { color: var(--p-ok); }
.hero__media { position: relative; min-width: 0; }
.hero__img { width: 100%; border-radius: var(--p-radius); box-shadow: var(--p-shadow-lg); }

/* Repli du visuel : les aperçus des thèmes réellement installés, en éventail */
.hero__media--stack { display: grid; gap: 14px; }
.hero__shot { margin: 0; position: relative; border-radius: var(--p-radius); overflow: hidden; background: var(--p-surface); border: 1px solid var(--p-border); box-shadow: var(--p-shadow-md); }
.hero__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
/* Téléphone et tablette : un seul aperçu, légende sous l'image (aucun
   recouvrement du contenu de la capture) et hauteur réduite. */
@media (max-width: 899px) {
  .hero__shot--2, .hero__shot--3 { display: none; }
  .hero__shot img { aspect-ratio: 16 / 9; }
  .hero__shot figcaption {
    padding: 9px 16px; border-top: 1px solid var(--p-border);
    font-size: var(--fs-xs); font-weight: 700; color: var(--p-muted);
  }
}
@media (min-width: 900px) {
  .hero__shot figcaption {
    position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--p-surface) 90%, transparent); backdrop-filter: blur(6px);
    font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--p-border);
  }
}
@media (min-width: 900px) {
  .hero--split .hero__in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
  .hero__media--stack { display: block; height: clamp(330px, 30vw, 420px); }
  .hero__shot { position: absolute; transition: transform .4s var(--p-ease), box-shadow .4s var(--p-ease); }
  .hero__shot--1 { top: 0; right: 0; width: 78%; z-index: 3; transform: rotate(-1.2deg); box-shadow: var(--p-shadow-lg); }
  .hero__shot--2 { bottom: 4%; left: 0; width: 52%; z-index: 2; transform: rotate(2deg); }
  .hero__shot--3 { bottom: 0; right: 4%; width: 40%; z-index: 1; transform: rotate(-2.6deg); }
  .hero__media--stack:hover .hero__shot--1 { transform: rotate(-1.2deg) translateY(-7px); }
  .hero__media--stack:hover .hero__shot--2 { transform: rotate(2deg) translateY(-5px); }
  .hero__media--stack:hover .hero__shot--3 { transform: rotate(-2.6deg) translateY(-4px); }
}

/* ---------- Étapes ---------- */
.steps { display: grid; gap: 22px; margin-top: 44px; counter-reset: step; }
.step {
  position: relative; background: var(--p-surface); border: 1px solid var(--p-border);
  border-radius: var(--p-radius); padding: 26px 24px;
  transition: transform .22s var(--p-ease), box-shadow .22s var(--p-ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--p-primary); color: var(--p-on-primary);
  font-family: var(--p-font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--p-primary) 12%, transparent);
}
/* Trait de liaison entre deux étapes (grands écrans uniquement) */
@media (min-width: 1000px) {
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 45px; right: -22px; width: 22px; height: 1px;
    background: var(--p-border-strong);
  }
}
.step__title { font-size: var(--fs-h3); }
.step__text { margin-top: 8px; color: var(--p-muted); font-size: .95rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes (fonctionnalités / avantages) ---------- */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.card {
  position: relative; overflow: hidden;
  background: var(--p-surface); border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: 28px 26px;
  transition: transform .22s var(--p-ease), box-shadow .22s var(--p-ease), border-color .22s;
}
/* Liseré d'accent qui se déploie au survol */
.card::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--p-accent), var(--p-primary));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--p-ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-md); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--p-accent-soft); color: var(--p-accent-text); margin-bottom: 18px;
  transition: transform .22s var(--p-ease);
}
.card:hover .card__icon { transform: scale(1.06) rotate(-3deg); }
.card__title { font-size: var(--fs-h3); }
.card__text { margin-top: 8px; color: var(--p-muted); font-size: .95rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Captures et thèmes ---------- */
.shots, .themes { display: grid; gap: 24px; margin-top: 44px; }
.shot__img, .theme__preview img { width: 100%; border-radius: var(--p-radius); box-shadow: var(--p-shadow-md); }
.shots figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--p-muted); }
.theme {
  background: var(--p-surface); border: 1px solid var(--p-border); border-radius: var(--p-radius); overflow: hidden;
  transition: transform .25s var(--p-ease), box-shadow .25s var(--p-ease), border-color .25s;
}
.theme:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-md); border-color: transparent; }
.theme__preview { aspect-ratio: 16 / 10; background: var(--p-surface-2); display: grid; place-items: center; overflow: hidden; }
.theme__preview img { border-radius: 0; box-shadow: none; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--p-ease); }
.theme:hover .theme__preview img { transform: scale(1.04); }
.theme__placeholder { font-family: var(--p-font-heading); font-size: 2.4rem; color: var(--p-muted); }
.sec__hint { margin-top: 2px; font-size: var(--fs-sm); color: var(--p-accent-text); font-weight: 600; }

/* Carte de thème cliquable : le lien du titre couvre toute la carte, ce qui
   garde un vrai lien pour le clavier et les lecteurs d'écran. */
.theme--link { position: relative; }
.theme--link .theme__name a { text-decoration: none; }
.theme--link .theme__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.theme--link:hover .theme__name a { color: var(--p-accent-text); }
.theme--link:focus-within { outline: 2px solid var(--p-accent-text); outline-offset: 3px; }
.theme--link .theme__name a:focus-visible { outline: none; }
.theme__preview { position: relative; }
.theme__badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; background: var(--p-primary); color: var(--p-on-primary);
  font-size: var(--fs-xs); font-weight: 700; box-shadow: var(--p-shadow-sm);
  opacity: 0; transform: translateY(6px); transition: opacity .22s var(--p-ease), transform .22s var(--p-ease);
}
.theme--link:hover .theme__badge, .theme--link:focus-within .theme__badge { opacity: 1; transform: none; }
/* Sur écran tactile, il n'y a pas de survol : le repère reste visible */
@media (hover: none) { .theme__badge { opacity: 1; transform: none; } }
.theme__name { font-size: 1.05rem; padding: 16px 18px 0; display: flex; align-items: center; gap: 8px; }
.theme__text { padding: 6px 18px 18px; color: var(--p-muted); font-size: var(--fs-sm); }
@media (min-width: 700px) { .shots, .themes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .themes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Tarifs ---------- */
.period-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 28px auto 0; border: 1px solid var(--p-border); border-radius: 999px; background: var(--p-surface); }
.period-toggle { display: flex; width: fit-content; }
.period-toggle__btn { border: 0; background: transparent; border-radius: 999px; padding: 9px 20px; font-size: var(--fs-sm); font-weight: 600; color: var(--p-muted); }
.period-toggle__btn.is-on { background: var(--p-primary); color: var(--p-on-primary); }
.plans { display: grid; gap: 22px; margin-top: 44px; align-items: start; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plans__currency { margin: 18px auto 0; text-align: center; max-width: 60ch; }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; background: var(--p-surface); border: 1px solid var(--p-border);
  border-radius: var(--p-radius); padding: 28px 24px; display: flex; flex-direction: column;
}
.plan { transition: transform .22s var(--p-ease), box-shadow .22s var(--p-ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }
.plan--featured {
  border-color: transparent; box-shadow: var(--p-shadow-md);
  background:
    linear-gradient(var(--p-surface), var(--p-surface)) padding-box,
    linear-gradient(140deg, var(--p-primary), var(--p-accent)) border-box;
  border: 2px solid transparent;
}
@media (min-width: 1040px) { .plan--featured { transform: translateY(-10px); } .plan--featured:hover { transform: translateY(-13px); } }
.plan--current { border-color: var(--p-accent); }
.plan__badge {
  position: absolute; top: -13px; left: 24px; background: var(--p-accent); color: var(--p-on-accent);
  border-radius: 999px; padding: 5px 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
}
.plan__name { font-size: var(--fs-h3); }
.plan__price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan__amount { font-family: var(--p-font-heading); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem); letter-spacing: -.02em; }
.plan__period { color: var(--p-muted); font-size: var(--fs-sm); }
.plan__desc { margin-top: 10px; color: var(--p-muted); font-size: .94rem; min-height: 2.6em; }
.plan__cta-form { margin-top: 18px; }
.plan > .btn { margin-top: 18px; }
.plan__current { margin-top: 18px; text-align: center; font-weight: 600; color: var(--p-accent-text); border: 1px dashed var(--p-border-strong); border-radius: 999px; padding: 11px; }
.plan__trial { margin-top: 10px; text-align: center; font-size: var(--fs-xs); color: var(--p-muted); }
.plan__list { margin-top: 20px; display: grid; gap: 9px; }
.plan__list li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; }
.plan__list .icon { color: var(--p-ok); margin-top: 3px; }
.plan__limits { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--p-border); display: grid; gap: 6px; }
.plan__limits > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.plan__limits dt { color: var(--p-muted); }
.plan__limits dd { margin: 0; font-weight: 600; }
.plans--compact .plan { padding: 22px 20px; }
.plans--compact .plan__limits { display: none; }

/* ---------- Tableau comparatif ---------- */
/* position: relative — les libellés invisibles (.sr-only, en position absolue) des cellules
   « Oui / Non » restent DANS la zone de défilement. Sans cela, ils s'en échappaient et
   élargissaient toute la page sur téléphone (la page glissait sur le côté). */
.table-scroll { position: relative; overflow-x: auto; margin-top: 28px; -webkit-overflow-scrolling: touch; }
.compare, .table { min-width: 620px; background: var(--p-surface); border-radius: var(--p-radius); overflow: hidden; }
.compare th, .compare td, .table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--p-border); font-size: var(--fs-sm); }
.compare thead th { background: var(--p-surface-2); vertical-align: bottom; }
.compare__plan { display: block; font-family: var(--p-font-heading); font-size: 1.05rem; }
.compare__price { display: block; font-size: var(--fs-xs); color: var(--p-muted); }
.compare__group th { background: var(--p-primary-soft); font-weight: 700; }
.compare td { text-align: center; }
.compare td:first-child, .compare th[scope="row"] { text-align: left; }
.compare .is-yes .icon { color: var(--p-ok); margin-inline: auto; }
.compare .is-no .icon { color: var(--p-border-strong); margin-inline: auto; }
.table th[scope="col"] { background: var(--p-surface-2); }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--p-border); }
.faq__item { border-bottom: 1px solid var(--p-border); }
.faq__item summary {
  cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--p-muted); border-bottom: 2px solid var(--p-muted);
  transform: rotate(45deg); transition: transform .2s var(--p-ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__answer { padding-bottom: 20px; color: var(--p-muted); }

/* ---------- Témoignages ---------- */
.quotes { display: grid; gap: 20px; margin-top: 44px; }
.quote {
  position: relative; background: var(--p-surface); border: 1px solid var(--p-border);
  border-radius: var(--p-radius); padding: 30px 26px 26px;
  transition: transform .22s var(--p-ease), box-shadow .22s var(--p-ease);
}
.quote::before {
  content: '“'; position: absolute; top: 4px; right: 20px; font-family: var(--p-font-heading);
  font-size: 4.2rem; line-height: 1; color: var(--p-accent); opacity: .18;
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }
.quote blockquote p { font-size: 1.04rem; }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote__author small { display: block; color: var(--p-muted); font-size: var(--fs-xs); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bande d'appel à l'action ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--p-dark); color: var(--p-on-dark); padding-block: clamp(56px, 7vw, 104px);
}
.cta-band::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 78% at 12% 0%, color-mix(in srgb, var(--p-accent) 30%, transparent), transparent 68%),
    radial-gradient(48% 74% at 92% 100%, color-mix(in srgb, var(--p-primary) 46%, transparent), transparent 70%);
}
.cta-band__in { text-align: center; display: grid; justify-items: center; gap: 16px; }
.cta-band__title { font-size: var(--fs-h2); color: inherit; max-width: 20ch; }
.cta-band__text { color: inherit; opacity: .82; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- Contenu riche ---------- */
.rich { line-height: 1.75; }
.rich > * + * { margin-top: 1em; }
.rich h2 { font-size: 1.45rem; margin-top: 1.6em; }
.rich h3 { font-size: 1.18rem; margin-top: 1.4em; }
.rich ul { list-style: disc; padding-left: 1.3em; }
.rich ol { list-style: decimal; padding-left: 1.3em; }
.rich li + li { margin-top: .4em; }
.rich a { color: var(--p-accent-text); }
.rich table { margin-top: 1em; }
.rich th, .rich td { border: 1px solid var(--p-border); padding: 8px 12px; text-align: left; }

/* ---------- Panneaux, notes, pastilles ---------- */
.panel { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: clamp(20px, 3vw, 30px); margin-top: 22px; }
.panel--accent { background: var(--p-accent-soft); border-color: transparent; }
.panel__title { font-size: 1.1rem; margin-bottom: 14px; }
.note { border-radius: var(--p-radius-sm); padding: 12px 16px; font-size: var(--fs-sm); margin-top: 14px; border: 1px solid var(--p-border); background: var(--p-surface-2); }
.note--info { border-color: color-mix(in srgb, var(--p-primary) 35%, transparent); }
.note--warning { border-color: color-mix(in srgb, var(--p-warn) 45%, transparent); background: color-mix(in srgb, var(--p-warn) 8%, var(--p-surface)); }
.note--danger { border-color: color-mix(in srgb, var(--p-danger) 45%, transparent); background: color-mix(in srgb, var(--p-danger) 8%, var(--p-surface)); }
.pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: var(--fs-xs); font-weight: 600; background: var(--p-surface-2); border: 1px solid var(--p-border); }
.pill--accent { background: var(--p-accent); color: var(--p-on-accent); border-color: transparent; }
.pill--trial { background: color-mix(in srgb, var(--p-primary) 12%, var(--p-surface)); }
.pill--active, .pill--approved { background: color-mix(in srgb, var(--p-ok) 14%, var(--p-surface)); border-color: color-mix(in srgb, var(--p-ok) 40%, transparent); }
.pill--grace, .pill--past_due, .pill--pending, .pill--cancellation_pending { background: color-mix(in srgb, var(--p-warn) 14%, var(--p-surface)); border-color: color-mix(in srgb, var(--p-warn) 40%, transparent); }
.pill--expired, .pill--suspended, .pill--cancelled, .pill--deletion_pending, .pill--declined, .pill--canceled, .pill--failed { background: color-mix(in srgb, var(--p-danger) 12%, var(--p-surface)); border-color: color-mix(in srgb, var(--p-danger) 40%, transparent); }
.big-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--p-surface-2); color: var(--p-muted); }
.big-icon--ok { background: color-mix(in srgb, var(--p-ok) 14%, var(--p-surface)); color: var(--p-ok); }
.big-icon--warn { background: color-mix(in srgb, var(--p-warn) 14%, var(--p-surface)); color: var(--p-warn); }

.flashes { margin-top: 18px; display: grid; gap: 10px; }
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--p-radius-sm); background: var(--p-surface); border: 1px solid var(--p-border); font-size: var(--fs-sm); }
.flash--success { border-color: color-mix(in srgb, var(--p-ok) 45%, transparent); color: var(--p-ok); }
.flash--error { border-color: color-mix(in srgb, var(--p-danger) 45%, transparent); color: var(--p-danger); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form__group legend { font-family: var(--p-font-heading); font-size: 1.1rem; padding: 0; margin-bottom: 4px; }
.form__row { display: grid; gap: 6px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form label { font-size: var(--fs-sm); font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="password"], .form input[type="url"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--p-border-strong); border-radius: var(--p-radius-sm);
  background: var(--p-surface); transition: border-color .18s, box-shadow .18s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--p-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-primary) 18%, transparent); outline: none;
}
.form input[aria-invalid="true"] { border-color: var(--p-danger); }
.form input:disabled { background: var(--p-surface-2); color: var(--p-muted); }
.form textarea { resize: vertical; min-height: 120px; }
.form__help { font-size: var(--fs-xs); color: var(--p-muted); }
.form__help.is-ok { color: var(--p-ok); }
.form__help.is-error { color: var(--p-danger); }
.field-error { font-size: var(--fs-xs); color: var(--p-danger); margin: 0; }
.form__foot { font-size: var(--fs-sm); text-align: center; color: var(--p-muted); }
.form__row--check { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--fs-sm); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--p-primary); }
.inline-form { display: inline-block; }
.input-reveal { position: relative; display: flex; }
.input-reveal input { padding-right: 84px; }
.input-reveal__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: var(--fs-xs); font-weight: 600; color: var(--p-accent-text); padding: 6px 8px; }
.subdomain { display: flex; align-items: stretch; border: 1px solid var(--p-border-strong); border-radius: var(--p-radius-sm); background: var(--p-surface); overflow: hidden; }
.subdomain:focus-within { border-color: var(--p-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-primary) 18%, transparent); }
.subdomain input { border: 0 !important; box-shadow: none !important; border-radius: 0; min-width: 0; }
.subdomain input:focus { box-shadow: none !important; }
.subdomain__suffix { display: flex; align-items: center; padding: 0 14px; background: var(--p-surface-2); color: var(--p-muted); font-size: var(--fs-sm); white-space: nowrap; }
.form--signup { margin-top: 24px; }

/* ---------- Mise en page à deux colonnes ---------- */
.split { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr); } }
.split__side .panel:first-child { margin-top: 0; }
.mini-steps { display: grid; gap: 8px; padding-left: 1.2em; font-size: .95rem; list-style: decimal; }
.mini-list { display: grid; gap: 8px; margin-bottom: 14px; font-size: .95rem; }
.contact-list { display: grid; gap: 12px; font-size: .95rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--p-muted); margin-top: 3px; }

/* ---------- Espace commerçant ---------- */
.account-bar { background: var(--p-surface); border-bottom: 1px solid var(--p-border); }
.account-bar__in { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; min-height: 56px; }
.account-nav ul { display: flex; gap: 6px; flex-wrap: wrap; }
.account-nav a { display: inline-block; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--p-muted); }
.account-nav a:hover { background: var(--p-surface-2); color: var(--p-text); }
.account-nav a.is-on { background: var(--p-primary); color: var(--p-on-primary); }
.account-bar__user { display: flex; align-items: center; gap: 12px; }

.store-list { display: grid; gap: 20px; }
.store-card { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: clamp(20px, 3vw, 28px); }
.store-card__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.store-card__name { font-size: var(--fs-h3); }
.store-card__host { margin-top: 4px; font-size: var(--fs-sm); }
.store-card__host a { display: inline-flex; align-items: center; gap: 6px; color: var(--p-accent-text); }
.store-card__meta { display: grid; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--p-border); }
@media (min-width: 620px) { .store-card__meta { grid-template-columns: repeat(3, 1fr); } }
.store-card__meta dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--p-muted); }
.store-card__meta dd { margin: 4px 0 0; font-weight: 600; }
.store-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.tabs { margin: 20px 0 4px; border-bottom: 1px solid var(--p-border); }
.tabs ul { display: flex; gap: 4px; overflow-x: auto; }
.tabs a { display: inline-block; padding: 11px 16px; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--p-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.is-on { color: var(--p-text); border-bottom-color: var(--p-accent); }

.sub-head { display: grid; gap: 20px; }
@media (min-width: 860px) { .sub-head { grid-template-columns: minmax(0, 1fr) 260px; } }
.sub-head__status { font-size: var(--fs-h3); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sub-facts { display: grid; gap: 8px; margin-top: 14px; font-size: var(--fs-sm); }
.sub-facts li { display: flex; gap: 8px; align-items: center; color: var(--p-muted); }
.sub-head__actions { display: grid; gap: 10px; align-content: start; }

.usage { display: grid; gap: 16px; }
@media (min-width: 620px) { .usage { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .usage { grid-template-columns: repeat(4, 1fr); } }
.usage__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--p-muted); }
.usage__value { margin-top: 2px; font-size: 1.05rem; }
.bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--p-surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--p-primary); border-radius: 999px; }
.bar--full .bar__fill { background: var(--p-danger); }

.pay-result .page-title { margin-top: 6px; }
.pay-result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- Facture ---------- */
.invoice-page { background: var(--p-surface-2); padding: 24px 16px; }
.invoice { max-width: 820px; margin: 0 auto; background: var(--p-surface); border-radius: var(--p-radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--p-shadow-sm); }
.invoice__head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--p-border); }
.invoice__logo { max-height: 48px; width: auto; margin-bottom: 12px; }
.invoice__seller { font-size: var(--fs-sm); line-height: 1.6; }
.invoice__meta { text-align: right; }
.invoice__meta h1 { font-size: 1.6rem; }
.invoice__to { margin-top: 24px; font-size: var(--fs-sm); }
.invoice__to h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--p-muted); margin-bottom: 6px; }
.invoice__table { margin-top: 28px; }
.invoice__table th, .invoice__table td { padding: 12px 10px; border-bottom: 1px solid var(--p-border); text-align: left; font-size: var(--fs-sm); }
.invoice__table thead th { background: var(--p-surface-2); }
.invoice__footer { margin-top: 24px; font-size: var(--fs-xs); color: var(--p-muted); }
.invoice__actions { display: flex; gap: 10px; margin-top: 28px; }
@media print {
  .no-print { display: none !important; }
  .invoice-page { background: #fff; padding: 0; }
  .invoice { box-shadow: none; border: 0; max-width: none; }
}

/* ---------- Page d'erreur ---------- */
.error-page { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 24px; }
.error-box h1 { font-size: var(--fs-h2); margin-bottom: 10px; }
.error-box__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 18px; }

/* ---------- Pied de page « signature » ----------
   Le haut est un zigzag aux pointes arrondies, en deux couches : une couche
   claire décalée derrière, la couche sombre devant. Masque CSS répété : la
   forme ne se déforme jamais, du téléphone au grand écran. */
.site-footer { position: relative; overflow-x: clip; margin-top: 56px; background: var(--p-dark); color: var(--p-on-dark); padding-block: clamp(56px, 7vw, 92px) 26px; }
/* Page qui finit par la bande d'appel sombre : le zigzag mord directement dessus, sans bande crème entre les deux. */
main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; }
.site-footer__edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 46px; pointer-events: none; }
.site-footer__edge span { position: absolute; left: 0; right: 0; bottom: 0;
  --zz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40'%3E%3Cpath d='M0 40 32 13.5a24 24 0 0 1 32 0L96 40Z'/%3E%3C/svg%3E"); }
.site-footer__edge-back { height: 46px; background: color-mix(in srgb, var(--p-accent) 50%, var(--p-dark));
  -webkit-mask: var(--zz) 48px 0 / 96px 46px repeat-x; mask: var(--zz) 48px 0 / 96px 46px repeat-x; }
.site-footer__edge-front { height: 34px; background: var(--p-dark);
  -webkit-mask: var(--zz) 0 0 / 96px 34px repeat-x; mask: var(--zz) 0 0 / 96px 34px repeat-x; }
.site-footer::before { content: ''; position: absolute; right: -120px; top: 40px; width: 360px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  border: 60px solid color-mix(in srgb, var(--p-on-dark) 4%, transparent); }
.site-footer__grid { position: relative; display: grid; gap: 34px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: auto; padding-right: 30px; }
}
.site-footer__logo { text-decoration: none; opacity: 1 !important; }
.site-footer__name { font-family: var(--p-font-heading); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); letter-spacing: -.02em; }
.site-footer__tagline { font-size: .95rem; opacity: .8; max-width: 36ch; line-height: 1.55; }
.site-footer__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.site-footer .site-footer__ctas a { opacity: 1; font-size: .92rem; text-decoration: none; }
.site-footer__title { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--p-accent) 60%, var(--p-on-dark)); margin-bottom: 14px; font-family: var(--p-font-body); font-weight: 700; }
.site-footer ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.site-footer a { text-decoration: none; font-size: var(--fs-sm); opacity: .84; transition: opacity .2s, color .2s; }
.site-footer a:hover { opacity: 1; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.site-footer__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
/* Coordonnées : bien lisibles (pas de transparence cumulée), et jamais coupées.
   Sur téléphone, la colonne « Informations » prend toute la largeur ; une adresse
   e-mail trop longue passe à la ligne au lieu de sortir de l'écran. */
.site-footer__contact { font-size: var(--fs-sm); display: grid; gap: 10px; margin-top: 20px; font-style: normal; }
.site-footer__contact p { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.site-footer__contact p > .icon { flex: none; margin-top: 3px; opacity: .8; }
.site-footer .site-footer__contact a { min-width: 0; opacity: 1; font-weight: 600; color: var(--p-on-dark); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--p-on-dark) 35%, transparent); text-underline-offset: .22em; }
.site-footer .site-footer__contact a:hover { text-decoration-color: currentColor; }
.site-footer__col:last-child { min-width: 0; }
@media (max-width: 1199px) {
  .site-footer__col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 760px) and (max-width: 1199px) {
  .site-footer__col:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .site-footer__col:last-child .site-footer__contact { margin-top: 0; grid-column: span 2; }
}
.site-footer a { overflow-wrap: anywhere; }
/* La pastille WhatsApp flottante ne recouvre pas la dernière ligne. */
.site-footer:has(.fsupport) .site-footer__bottom { padding-right: 76px; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--p-on-dark) 28%, transparent); opacity: .9; transition: background-color .2s, transform .2s; }
.socials a:hover { background: color-mix(in srgb, var(--p-on-dark) 12%, transparent); transform: translateY(-2px); text-decoration: none; }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--p-on-dark) 16%, transparent); font-size: var(--fs-xs); opacity: .72; }

/* =====================================================================
   Packs quantité — démonstration sur la page d'accueil
   La mention « exemple » reste toujours visible : aucun chiffre affiché
   ici ne prétend être une offre réelle.
   ===================================================================== */
.lvo__in { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .lvo__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lvo__text { min-width: 0; }
.lvo__text .sec__title { max-width: 18ch; }
.lvo__text .sec__sub { margin-top: 16px; }
.lvo__points { display: grid; gap: 12px; margin-top: 26px; }
.lvo__points li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.lvo__points .icon { flex: none; margin-top: 3px; color: var(--p-ok); }

.lvo__demo { min-width: 0; }
.lvo__frame {
  background: var(--p-surface); border: 1px solid var(--p-border); border-radius: calc(var(--p-radius) + 6px);
  padding: clamp(18px, 3vw, 26px); box-shadow: var(--p-shadow-lg);
}
.lvo__flag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: var(--p-surface-2); border: 1px solid var(--p-border);
  font-size: var(--fs-xs); font-weight: 700; color: var(--p-muted); margin-bottom: 18px;
}
.lvo__product { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--p-border); }
.lvo__thumb {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 12px;
  background: var(--p-surface-2); color: var(--p-muted);
}
.lvo__names { display: grid; gap: 3px; min-width: 0; }
.lvo__pname { font-family: var(--p-font-heading); font-size: 1.1rem; }
.lvo__pprice { font-size: var(--fs-sm); color: var(--p-muted); }

.lvo__tiers { border: 0; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.lvo__legend { padding: 0; margin-bottom: 14px; font-family: var(--p-font-heading); font-size: 1.12rem; }
.lvo__tier { position: relative; }
.lvo__tier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lvo__tier label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--p-border); border-radius: var(--p-radius); padding: 14px 16px;
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}
/* Libellé et prix sur la même ligne, détail dessous : tient jusqu'en 320 px */
.lvo__grid { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: baseline; }
.lvo__tier label:hover { border-color: var(--p-border-strong); }
.lvo__dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--p-border-strong);
  display: grid; place-items: center; transition: border-color .18s;
}
.lvo__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--p-primary); transform: scale(0); transition: transform .18s var(--p-ease); }
.lvo__label { grid-column: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: .98rem; }
.lvo__badge {
  background: var(--p-accent); color: var(--p-on-accent); border-radius: 999px; padding: 2px 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
}
.lvo__unit { grid-column: 1; font-size: var(--fs-xs); color: var(--p-muted); }
.lvo__total { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; font-family: var(--p-font-heading); font-size: 1.12rem; }
.lvo__compare { grid-column: 2; grid-row: 2; justify-self: end; white-space: nowrap; font-size: var(--fs-xs); color: var(--p-muted); }
/* Très petits écrans : on empile plutôt que d'écraser le texte en colonne
   étroite. Les montants peuvent aller à sept chiffres (FCFA) : on les laisse
   donc revenir à la ligne plutôt que de pousser la page en largeur. */
@media (max-width: 459px) {
  .lvo__tier label { padding: 13px 14px; gap: 10px; }
  .lvo__grid { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .lvo__label { grid-column: 1 / -1; grid-row: 1; }
  .lvo__total { grid-column: 1; grid-row: 2; justify-self: start; white-space: normal; }
  .lvo__compare { grid-column: 2; grid-row: 2; justify-self: start; white-space: normal; }
  .lvo__unit { grid-column: 1 / -1; grid-row: 3; }
}
.lvo__tier input:checked + label {
  border-color: var(--p-primary); background: color-mix(in srgb, var(--p-primary) 6%, var(--p-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-primary) 12%, transparent);
}
.lvo__tier input:checked + label .lvo__dot { border-color: var(--p-primary); }
.lvo__tier input:checked + label .lvo__dot::after { transform: scale(1); }
.lvo__tier input:focus-visible + label { outline: 2px solid var(--p-accent-text); outline-offset: 3px; }
.lvo__cta {
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px;
  background: var(--p-primary); color: var(--p-on-primary); border-radius: 999px;
  padding: 14px 22px; font-weight: 700; font-size: .96rem;
}
.lvo__note { margin-top: 14px; font-size: var(--fs-xs); color: var(--p-muted); text-align: center; }

/* ---------- Apparition au défilement ---------- */
/* La classe « js-reveal » est posée par platform.js LUI-MÊME, au tout début.
   Si le script ne s'exécute pas (erreur, blocage, extension), la classe n'existe
   pas et tout le contenu reste visible : une animation ratée ne doit jamais
   vider la page d'accueil. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--p-ease), transform .6s var(--p-ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
/* Visuel du hero : arrivée un peu plus ample */
.js-reveal .hero__media.reveal { transform: translateY(24px) scale(.985); }
.js-reveal .hero__media.reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js-reveal .reveal, .js-reveal .hero__media.reveal { opacity: 1; transform: none; }
  .hero__glow { display: none; }
}

/* Assistance WhatsApp (Super Admin → Plateforme) : pastille ronde flottante,
   sans aucun texte à côté. Même dessin que côté boutique. */
.fsupport {
  position: fixed; z-index: 95;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  /* Forme verrouillée : voir le commentaire de la même règle dans app.css.
     Un bouton rond qui contiendrait du texte deviendrait une gélule. */
  /* UNE SEULE mesure pour la largeur et la hauteur. Les écrire séparément
     laissait une règle mobile changer l'une sans l'autre : le bouton faisait
     alors 56 de large pour 52 de haut, c'est-à-dire un ovale. */
  --fs-size: 56px;
  width: var(--fs-size); height: var(--fs-size); min-width: var(--fs-size);
  aspect-ratio: 1; flex: none;
  padding: 0; border-radius: 50%; overflow: hidden;
  font-size: 0; line-height: 0; white-space: nowrap;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .14);
  transition: transform .2s var(--p-ease), box-shadow .2s var(--p-ease);
}
.fsupport:hover, .fsupport:focus-visible { color: #fff; transform: scale(1.07); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .16); }
.fsupport:focus-visible { outline: 3px solid #0b3d1a; outline-offset: 3px; }
.fsupport svg { display: block; width: 30px; height: 30px; }
@media (max-width: 560px) {
  .fsupport { --fs-size: 52px; right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .fsupport svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .fsupport { transition: none; }
  .fsupport:hover, .fsupport:focus-visible { transform: none; }
}

/* --- Choix du moyen de paiement d'un abonnement --------------------------- */
.pay-choice { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 640px) { .pay-choice { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.pay-choice__item { border: 1px solid var(--p-border); border-radius: var(--p-radius); padding: 18px; background: var(--p-surface); }
.pay-choice__item .btn { width: 100%; }
.pay-choice__item p { margin: 10px 0 0; }

/* =====================================================================
   PAGE /demos — les filtres par niche et par mise en page
   ---------------------------------------------------------------------
   Les filtres sont des LIENS, pas des boutons de formulaire : la page
   fonctionne sans JavaScript, chaque sélection a son adresse, et le retour
   arrière du navigateur fait ce qu'on attend.
   ===================================================================== */
.demos__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.demos__filter-label {
  flex: none; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--p-muted); margin-right: 4px;
}
/* Un filtre est un lien : on retire le soulignement et on garde une cible
   tactile d'au moins 36 px de haut. */
a.pill { text-decoration: none; color: inherit; min-height: 36px; display: inline-flex; align-items: center; transition: background .2s, border-color .2s; }
a.pill:hover { border-color: color-mix(in srgb, var(--p-primary) 45%, transparent); }
/* Le filtre actif : fond plein et contraste garanti par la paire
   primaire / sur-primaire, pas par une teinte approximative. */
a.pill--on, a.pill--on:hover { background: var(--p-primary); color: var(--p-on-primary); border-color: transparent; }
a.pill--on:focus-visible { outline: 2px solid var(--p-primary); outline-offset: 2px; }

/* =========================================================================
   DÉMONSTRATIONS — page /demos et section d'accueil « Boutiques de démo »
   Chaque démo est montrée dans un faux navigateur (barre + adresse) : on voit
   tout de suite que c'est une vraie boutique en ligne, pas une image.
   ========================================================================= */
.demos-hero { padding-bottom: 8px; }
.demos-hero__count { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 14px; border-radius: 999px;
  background: var(--p-surface); box-shadow: var(--p-shadow-sm); font-size: var(--fs-sm); color: var(--p-muted); }
.demos-hero__count strong { color: var(--p-text); font-size: 1rem; }
.demos-list .demos__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.demo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); }
.demo-card { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); min-width: 0; border-radius: var(--p-radius); background: var(--p-surface); box-shadow: var(--p-shadow-sm);
  overflow: hidden; transition: box-shadow .4s var(--p-ease), transform .4s var(--p-ease); }
.demo-card:hover { box-shadow: var(--p-shadow-lg); transform: translateY(-4px); }
.demo-card__shot { display: block; padding: 14px 14px 0; background: var(--p-surface-2); color: inherit; text-decoration: none; }
.demo-card__bar, .home-demos__shot .demo-card__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px 10px 0 0;
  background: var(--p-surface); border-bottom: 1px solid var(--p-border); }
.demo-card__bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--p-text) 18%, transparent); }
.demo-card__url { flex: 1; min-width: 0; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--p-surface-2);
  font-size: .72rem; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--p-surface); }
.demo-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--p-ease); }
.demo-card:hover .demo-card__img img { transform: scale(1.04); }
.demo-card__ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--p-font-heading); font-size: 3rem; color: var(--p-muted); }
.demo-card__hover { position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(17, 17, 17, .78); color: #fff; font-size: var(--fs-sm); font-weight: 600; backdrop-filter: blur(6px);
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .35s var(--p-ease), transform .35s var(--p-ease); }
.demo-card:hover .demo-card__hover { opacity: 1; transform: translate(-50%, 0); }
.demo-card__body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; align-content: start; gap: 10px; padding: clamp(18px, 2.4vw, 26px); }
.demo-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: var(--fs-xs); color: var(--p-muted); }
.demo-card__chip { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--p-accent) 14%, var(--p-surface)); color: var(--p-accent-text, var(--p-text));
  font-weight: 700; letter-spacing: .02em; }
.demo-card__name { font-size: var(--fs-h3); }
.demo-card__text { margin: 0; color: var(--p-muted); }
.demo-card__facts { margin: 0; font-size: var(--fs-xs); color: var(--p-muted); }
.demo-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.demo-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.demo-steps li { display: grid; gap: 6px; padding: 22px; border-radius: var(--p-radius); background: var(--p-surface); box-shadow: var(--p-shadow-sm); }
.demo-steps li span:last-child { color: var(--p-muted); font-size: var(--fs-sm); }
.demo-steps__n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 50%; background: var(--p-primary); color: var(--p-on-primary); font-weight: 700; }
@media (max-width: 860px) {
  .demo-grid, .demo-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .demo-card__shot { padding: 10px 10px 0; }
  .demo-card__actions .btn { flex: 1 1 100%; justify-content: center; }
}
/* Quatre aperçus par ligne sur grand écran (demande du 18 nov.) ; deux sur
   tablette, un sur téléphone. Les cartes deviennent plus étroites : texte
   resserré, boutons l'un sous l'autre. */
@media (min-width: 1100px) {
  .demo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .demo-card__shot { padding: 10px 10px 0; }
  .demo-card__bar { height: 24px; padding: 0 9px; }
  .demo-card__bar i { width: 7px; height: 7px; }
  .demo-card__url { font-size: .66rem; }
  .demo-card__body { padding: 16px 16px 18px; gap: 8px; }
  .demo-card__name { font-size: 1.15rem; }
  .demo-card__text { font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .demo-card__actions { margin-top: 4px; gap: 8px; }
  .demo-card__actions .btn { flex: 1 1 100%; justify-content: center; min-width: 0; padding: 11px 14px; font-size: .92rem; }
  .demo-card__hover { bottom: 12px; padding: 8px 12px; font-size: var(--fs-xs); }
}

/* Section d'accueil : texte à gauche, photos des démos en éventail à droite. */
.home-demos__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-demos__head { display: grid; gap: 14px; justify-items: start; }
.home-demos__head .sec__title { max-width: 16ch; }
.home-demos__names { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.home-demos__names li { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 18px; position: relative; }
.home-demos__names li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); }
.home-demos__names a { font-weight: 600; color: var(--p-text); text-decoration: none; }
.home-demos__names a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-demos__names span { color: var(--p-muted); }
.home-demos__shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-demos__shot a { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--p-surface); box-shadow: var(--p-shadow-md);
  color: inherit; text-decoration: none; transition: transform .45s var(--p-ease), box-shadow .45s var(--p-ease); }
.home-demos__shot:nth-child(even) { transform: translateY(28px); }
.home-demos__shot a:hover { transform: translateY(-6px); box-shadow: var(--p-shadow-lg); }
.home-demos__shot img, .home-demos__shot .demo-card__ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.home-demos__shot .demo-card__bar { height: 24px; border-radius: 0; }
.home-demos__shot .demo-card__bar i { width: 7px; height: 7px; }
.home-demos__shot .demo-card__url { font-size: .64rem; padding: 2px 8px; }
.home-demos__label { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(17, 17, 17, .72); color: #fff;
  font-size: var(--fs-xs); font-weight: 600; backdrop-filter: blur(6px); }
.home-demos__shots[data-count="3"] .home-demos__shot:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .home-demos__grid { grid-template-columns: 1fr; }
  .home-demos__shot:nth-child(even) { transform: none; }
}
@media (max-width: 480px) {
  .home-demos__shots { gap: 10px; }
  .home-demos__label { font-size: .68rem; padding: 4px 9px; }
}

/* ---------- Bandeau cookies (nov 2026) ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 12px; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; max-width: 980px; margin: 0 auto; background: var(--p-bg); color: var(--p-text); border: 1px solid var(--p-border); border-radius: 18px; box-shadow: 0 18px 50px -20px rgba(20, 30, 25, .45); padding: 16px 18px; display: grid; gap: 12px; }
.consent__text { margin: 0; font-size: .94rem; line-height: 1.5; }
.consent__text a { color: inherit; text-decoration: underline; }
.consent__prefs { display: grid; gap: 8px; }
.consent__prefs[hidden] { display: none; }
.consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.consent__opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--p-primary); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent__actions .btn { min-height: 42px; }
.consent__actions [hidden] { display: none; }
@media (max-width: 560px) { .consent__actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.store-ready { padding-block: clamp(48px, 10vw, 120px); }
.store-ready__card { max-width: 520px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.store-ready__card h1 { margin: 0; }
.site-footer .linklike { font-size: var(--fs-sm); opacity: .84; text-align: left; transition: opacity .2s; }
.site-footer .linklike:hover { opacity: 1; text-underline-offset: .2em; }
