/* MikAdmin STORE : vitrine. Mobile d'abord, marges de 16 px, polices du téléphone (page légère sur réseau lent).
   Interface sobre (bleu-vert, gris, or) ; les couleurs vives sont réservées aux visuels des produits. */
:root {
  --teal: #055a6d; --teal-d: #04161b; --teal-2: #043f4d; --gold: #ffd700; --gold-d: #f2b705;
  --bg: #f4f6f7; --card: #ffffff; --ink: #10262c; --muted: #5d6e73; --soft: #eef2f3;
  --line: #dce3e5; --pill: #5f6f74; --link: #055a6d; --wa: #128c4a; --wa-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 38, 44, .06), 0 4px 14px -6px rgba(16, 38, 44, .12);
  --gap: 10px; --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04161b; --card: #0b232a; --ink: #e5f0f2; --muted: #93a9ae; --soft: #0f2c34;
    --line: rgba(255, 255, 255, .11); --pill: #9fb2b7; --link: #5cc6dc; --wa: #35d07f; --wa-ink: #04161b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---- barre du haut ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand acts" "search search"; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 8px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--teal); font-size: 20px; flex-shrink: 0; }
.logo svg.i { stroke-width: 2; }
.bn { font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--muted); }
.bn b { font-weight: 800; color: var(--ink); }
.search { grid-area: search; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; padding: 0 16px 0 40px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--teal); background: var(--card); box-shadow: 0 0 0 3px rgba(5, 90, 109, .18); }
.search-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.acts { grid-area: acts; display: flex; align-items: center; gap: 4px; }
.ctry { height: 34px; max-width: 128px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); font: inherit; font-size: 13px; padding: 0 10px; text-overflow: ellipsis; cursor: pointer; }
.ctry:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(5, 90, 109, .18); }
.act { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--ink); text-decoration: none; }
.act:hover { background: var(--soft); }
.count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---- pilules de catégories : icône fine grise, seule la pilule active en bleu-vert ---- */
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin-inline: -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--pill); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill [data-icon] { font-size: 18px; }
.pill:hover { border-color: var(--pill); }
.pill[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---- accueil ---- */
.view { padding-bottom: 28px; }
.hero { margin-top: 16px; border-radius: 16px; padding: 18px 18px 16px; color: #fff; background: linear-gradient(150deg, #087891 0%, var(--teal) 45%, var(--teal-d) 100%); }
.hero h1 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.hero p { margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: .95rem; max-width: 60ch; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem !important; background: rgba(0, 0, 0, .18); border-radius: 10px; padding: 9px 11px; margin-top: 12px !important; }
.hero-note [data-icon] { font-size: 17px; color: var(--gold); margin-top: 2px; }
.loading { color: var(--muted); padding: 24px 0; font-size: .95rem; }

.row { margin-top: 24px; }
.row-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-t { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; flex: 1; min-width: 0; }
.row-all { font-size: .88rem; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.row-all:hover { text-decoration: underline; }
.arrows { display: none; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 18px; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--pill); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* carrousel : environ 3,5 cartes visibles sur téléphone, 5 sur ordinateur */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.5); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track > .card { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 14px; }

/* carte produit */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.card-a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.card-a:hover .card-n { text-decoration: underline; }
.card-b { padding: 7px 6px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.card-n { font-size: 12.5px; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.5em; }
.card-s { display: none; font-size: 12.5px; color: var(--muted); line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-p { font-size: 11.5px; letter-spacing: -.015em; font-weight: 800; margin-top: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-btn { margin: 0 8px 8px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink); }
.demo-btn [data-icon] { font-size: 14px; }
.demo-btn:hover { border-color: var(--teal); color: var(--link); }
.badge { position: absolute; top: 5px; left: 5px; z-index: 2; background: rgba(4, 22, 27, .78); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .02em; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; }

/* ---- visuels produits (les seules couleurs vives de la page) ---- */
.vis { position: relative; overflow: hidden; container-type: inline-size; background: var(--soft); }
.vis.tpl { aspect-ratio: 3 / 4; }
.vis.ant { aspect-ratio: 1 / 1; }
.vis img { width: 100%; height: 100%; object-fit: cover; }
.vis svg.art { width: 100%; height: 100%; display: block; }
/* miniature de page de connexion hotspot, à l'échelle de la carte (unités cqw) */
.scr { position: absolute; inset: 17% 13% 0; border-radius: 6cqw 6cqw 0 0; background: rgba(255, 255, 255, .13); border: .8cqw solid rgba(255, 255, 255, .28); border-bottom: 0; padding: 8cqw 7cqw 0; display: flex; flex-direction: column; gap: 3.6cqw; color: #fff; }
.scr-top { display: flex; align-items: center; gap: 2.5cqw; font-size: 6.4cqw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.scr-top [data-icon], .scr-top svg.i { font-size: 8cqw; flex-shrink: 0; }
.scr-top span:last-child { overflow: hidden; text-overflow: ellipsis; }
.scr-h { font-size: 9cqw; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.chip { display: flex; justify-content: space-between; gap: 2cqw; font-size: 6cqw; padding: 3.2cqw 4cqw; border-radius: 3.5cqw; background: rgba(255, 255, 255, .16); white-space: nowrap; }
.chip b { font-weight: 800; }
.chip.on { background: rgba(255, 255, 255, .92); color: #10262c; }
.scr-btn { margin-top: 1cqw; text-align: center; font-size: 6.4cqw; font-weight: 800; padding: 3.6cqw 0; border-radius: 3.5cqw; color: #10262c; }
.prod-vis .scr { inset: 7% 16% 0; }

/* ---- catégorie, fiche produit ---- */
.page-t { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 18px; }
.page-s { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.empty, .panel { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; display: grid; justify-items: start; gap: 10px; }
.empty-i { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--pill); font-size: 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--link); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back [data-icon] { font-size: 18px; }
.prod { display: grid; gap: 18px; margin-top: 12px; }
.prod-vis { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 270px; width: 100%; justify-self: center; }
.prod-vis .badge { font-size: 12px; padding: 4px 9px; top: 10px; left: 10px; }
.prod-k { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prod-n { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; overflow-wrap: anywhere; }
.prod-s { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.prod-p { font-size: 1.5rem; font-weight: 800; margin-top: 12px; }
.prod-stock { font-size: .92rem; color: var(--muted); }
.prod-sample, .draft { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: .92rem; }
.prod-sample [data-icon], .draft [data-icon] { font-size: 18px; color: var(--link); margin-top: 2px; }
.prod-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.prod-h { font-size: 1.05rem; font-weight: 800; margin-top: 22px; }
.prod-d { margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; max-width: 65ch; }
.prod-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.prod-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.prod-list [data-icon], .prod-list svg.i { font-size: 18px; color: var(--link); margin-top: 3px; }

/* ---- boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 0; cursor: pointer; background: var(--soft); color: var(--ink); border: 1px solid var(--line); transition: transform .15s; }
.btn [data-icon] { font-size: 19px; }
.btn:active { transform: scale(.97); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #0b2a31; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---- tuiles « Aussi chez MikAdmin » ---- */
.more { margin-top: 28px; }
.tiles { display: grid; gap: 10px; margin-top: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.tile > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tile b { font-size: 1rem; }
.tile > span:nth-child(2) > span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.tile-i { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--link); font-size: 22px; flex-shrink: 0; }
.tile-go { color: var(--muted); font-size: 18px; }

/* ---- rubrique Application ---- */
.app-hero { background: linear-gradient(160deg, #087891 0%, var(--teal) 46%, var(--teal-2) 100%); color: #fff; overflow: hidden; }
.app-in { display: grid; gap: 8px; padding-top: 28px; padding-bottom: 36px; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.app-hero h1, .vpn h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-top: 6px; text-wrap: balance; }
.app-hero .lead { margin-top: 12px; color: rgba(255, 255, 255, .9); max-width: 50ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cta .btn { flex: 1 1 100%; }
.note { margin-top: 10px; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.note a { color: #fff; }
.tickets { position: relative; height: 280px; }
.tk { position: absolute; left: 50%; top: 50%; width: 230px; margin: -140px 0 0 -115px; border-radius: 16px; color: #0b2a31; background: var(--gold); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6);
  -webkit-mask: radial-gradient(circle 11px at 0 182px, #0000 98%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 182px, #0000 98%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 182px, #0000 98%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 182px, #0000 98%, #000) 100% 0 / 51% 100% no-repeat; }
.tk.back { background: #eaf6f8; transform: rotate(8deg) translate(30px, -6px); }
.tk.front { transform: rotate(-5deg); }
.tk-a { padding: 18px 20px 0; height: 182px; }
.tk-z { font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.tk-z [data-icon] { font-size: 16px; }
.tk-p { font-size: 2.3rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; margin-top: 24px; }
.tk-f { font-size: 1rem; font-weight: 700; margin-top: 6px; }
.tk-b { border-top: 2px dashed rgba(11, 42, 49, .35); padding: 14px 20px 18px; height: 98px; }
.tk-c { font: 800 1.35rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.tk-h { font-size: .72rem; margin-top: 8px; opacity: .8; line-height: 1.3; }
.sec { padding-top: 30px; }
.sec h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.feat { display: grid; grid-template-columns: 1fr; margin-top: 14px; }
.feat > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.feat-i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--link); font-size: 21px; }
.feat dt { font-weight: 800; }
.feat dd { color: var(--muted); font-size: .95rem; }
.after { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.after p { flex: 1 1 280px; color: var(--muted); }

/* ---- VPN (repris de l'ancien site) ---- */
.vpn { background: var(--teal-2); color: #fff; }
.vpn-in { display: grid; gap: 26px; padding-top: 30px; padding-bottom: 36px; }
.vpn p { color: rgba(255, 255, 255, .86); margin-top: 10px; max-width: 58ch; }
.vpn ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.vpn li { display: flex; gap: 10px; align-items: flex-start; }
.vpn li > [data-icon] { font-size: 20px; color: var(--gold); margin-top: 2px; }
.plans { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .07); border-radius: 14px; overflow: hidden; }
.plans caption { text-align: left; font-weight: 800; padding-bottom: 10px; }
.plans th, .plans td { text-align: left; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.plans thead th { border-top: 0; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .72); }
.plans td:last-child, .plans th:last-child { text-align: right; white-space: nowrap; }
.plans td:last-child { font-weight: 800; color: var(--gold); }
.plans-note { font-size: .9rem; margin-bottom: 14px; }

/* ---- pages légales ---- */
.legal h2 { font-size: 1.05rem; font-weight: 800; margin-top: 20px; }
.legal p { margin-top: 6px; max-width: 70ch; }
.legal a { color: var(--link); }

/* ---- contact, pied de page ---- */
.contact { background: var(--card); border-top: 1px solid var(--line); margin-top: 16px; }
.contact-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 24px; padding-bottom: 24px; }
.contact h2 { font-size: 1.2rem; font-weight: 800; }
.contact p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.foot { border-top: 1px solid var(--line); padding-block: 22px 30px; font-size: .9rem; color: var(--muted); }
.foot-in { display: grid; gap: 14px; }
.foot-id { display: grid; gap: 4px; }
.foot-id b { color: var(--ink); }
.foot-id > span { display: inline-flex; align-items: center; gap: 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; color: var(--ink); }

/* ---- fenêtre de démo ---- */
.demo { margin: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 18px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.demo::backdrop { background: rgba(4, 22, 27, .6); }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.demo-head h2 { flex: 1; font-size: 1.05rem; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.demo-stage { min-height: 360px; display: grid; place-items: center; padding: 18px; }
.demo-wait { color: var(--muted); text-align: center; }

/* ---- lecteur de démo (demo.js) : cadre de téléphone aux couleurs du template (--dm-*, posées par JS, couleurs hexadécimales seulement) ---- */
.demo.dm-on .demo-stage { display: block; min-height: 0; padding: 14px 16px 16px; }
.dm { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dm-sim { align-self: stretch; display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff7cc; color: #5a4500; border: 1px solid #f2d76b; font-size: 13px; line-height: 1.35; }
.dm-sim svg.i { font-size: 16px; margin-top: 1px; }
.dm-sim b { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.dm-phone { position: relative; flex-shrink: 0; width: 206px; height: min(384px, 46vh); min-height: 320px; padding: 9px; border-radius: 32px; background: #0d1416; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 14px 30px -14px rgba(0, 0, 0, .55); }
.dm-notch { position: absolute; z-index: 2; top: 13px; left: 50%; width: 62px; height: 15px; margin-left: -31px; border-radius: 10px; background: #0d1416; }
.dm-screen { --dm-bg: #055a6d; --dm-accent: #ffd700; --dm-text: #ffffff; --dm-on-accent: #10262c;
  position: relative; height: 100%; overflow: hidden; border-radius: 24px; color: var(--dm-text);
  background: radial-gradient(120% 60% at 85% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .14)), var(--dm-bg); }
.dm-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 0 18px; height: 26px; font-size: 10.5px; font-weight: 700; opacity: .85; }
.dm-bar-i svg.i { font-size: 12px; stroke-width: 2.2; }
.dm-view { position: absolute; inset: 30px 0 0; display: flex; flex-direction: column; gap: 9px; padding: 8px 14px 16px; }
.dm-in { animation: dm-in .32s ease-out both; }
@keyframes dm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 800; }
.dm-logo { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--dm-accent); color: var(--dm-on-accent); font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.dm-place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-toast { display: flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 5px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(255, 255, 255, .16); background: color-mix(in srgb, var(--dm-text) 14%, transparent); }
.dm-toast svg.i { font-size: 12px; stroke-width: 2.2; }
.dm-h { font-size: 19px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; margin-top: 6px; }
.dm-h.sm { font-size: 15.5px; margin-top: 2px; }
.dm-sub { font-size: 11.5px; line-height: 1.4; opacity: .85; overflow-wrap: anywhere; }
.dm-center { text-align: center; }
.dm-cta { margin-top: auto; display: block; text-align: center; padding: 10px 8px; border-radius: 12px; background: var(--dm-accent); color: var(--dm-on-accent); font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-plans { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dm-plan { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 11.5px; background: rgba(255, 255, 255, .14); background: color-mix(in srgb, var(--dm-text) 13%, transparent); border: 1.5px solid transparent; }
.dm-pl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pp { font-weight: 800; white-space: nowrap; }
.dm-plan.on { border-color: var(--dm-accent); background: rgba(255, 255, 255, .24); background: color-mix(in srgb, var(--dm-accent) 26%, transparent); }
.dm-in .dm-plan.on { animation: dm-pick .5s .45s ease-out both; }
@keyframes dm-pick { 0% { transform: scale(1); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
.dm-tick { font-size: 13px; stroke-width: 2.6; color: var(--dm-accent); }
.dm-pay { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.dm-spin, .dm-ok { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; font-size: 24px; }
.dm-spin { background: rgba(255, 255, 255, .12); background: color-mix(in srgb, var(--dm-text) 12%, transparent); }
.dm-spin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--dm-accent); border-right-color: var(--dm-accent); animation: dm-rot .9s linear infinite; }
@keyframes dm-rot { to { transform: rotate(360deg); } }
.dm-ok { background: var(--dm-accent); color: var(--dm-on-accent); }
.dm-ok svg.i { stroke-width: 2.6; }
.dm-in .dm-ok, .dm-pay.confirmation .dm-ok { animation: dm-pop .4s ease-out both; }
@keyframes dm-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.dm-ok.big { width: 72px; height: 72px; font-size: 32px; margin: 18px auto 6px; }
.dm-amt { margin-top: 10px; display: flex; gap: 10px; justify-content: space-between; align-self: stretch; padding: 8px 10px; border-radius: 10px; font-size: 11.5px; background: rgba(255, 255, 255, .14); background: color-mix(in srgb, var(--dm-text) 13%, transparent); }
.dm-amt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-meter { height: 6px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: rgba(255, 255, 255, .18); background: color-mix(in srgb, var(--dm-text) 18%, transparent); }
.dm-meter span { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--dm-accent); transform-origin: left; }
.dm-in .dm-meter span { animation: dm-fill 1.2s .2s ease-out both; }
@keyframes dm-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dm-side { align-self: stretch; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dm-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dm-step { position: relative; width: 100%; height: 100%; min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; }
.dm-step:hover { border-color: var(--pill); }
.dm-num { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--soft); color: var(--muted); }
.dm-step.done .dm-num { background: var(--soft); color: var(--link); }
.dm-step[aria-current] { border-color: var(--teal); color: var(--ink); }
.dm-step[aria-current] .dm-num { background: var(--teal); color: #fff; }
.dm-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold-d); transform: scaleX(0); transform-origin: left; }
.dm-step[aria-current] .dm-prog { transform: scaleX(1); }
.dm-step.run .dm-prog { animation: dm-fill var(--dm-dur, 4.5s) linear both; }
.dm-count { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dm-cap { font-size: 14.5px; line-height: 1.45; min-height: 4.35em; overflow-wrap: anywhere; }
.dm-ctrl { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; }
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dm-btn svg.i { font-size: 17px; }
.dm-btn:hover:not(:disabled) { border-color: var(--pill); }
.dm-btn:disabled { opacity: .45; cursor: default; }
.dm-btn.main { background: var(--teal); border-color: var(--teal); color: #fff; }
.dm-btn.main svg.i { fill: currentColor; stroke-width: 1.2; }
.dm-foot { font-size: 12px; color: var(--muted); }
@media (min-width: 720px) {
  .demo.dm-on { width: min(720px, calc(100vw - 48px)); }
  .demo.dm-on .demo-stage { padding: 20px 24px 22px; }
  .dm { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "sim sim" "phone side"; gap: 16px 28px; align-items: center; }
  .dm-sim { grid-area: sim; }
  .dm-phone { grid-area: phone; width: 236px; height: min(460px, 62vh); }
  .dm-side { grid-area: side; gap: 12px; justify-content: center; }
  .dm-steps { grid-template-columns: 1fr; gap: 6px; }
  .dm-step { flex-direction: row; min-height: 44px; padding: 8px 12px; gap: 10px; font-size: 14px; text-align: left; }
  .dm-num { width: 24px; height: 24px; font-size: 12px; flex-shrink: 0; }
  .dm-cap { font-size: 15px; }
}
@media (prefers-color-scheme: dark) {
  .dm-sim { background: #3a3000; color: #ffe98a; border-color: #6b5a10; }
}

/* ---- compte client ---- */
.auth, .acct { justify-items: stretch; max-width: 460px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.auth-tab { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--pill); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.auth-tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.auth-f { display: grid; gap: 12px; margin-top: 4px; }
.field { display: grid; gap: 5px; }
.field label { font-size: .9rem; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.field input:focus, .field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-h { font-size: .84rem; color: var(--muted); }
.form-err { padding: 10px 12px; border-radius: 12px; background: #fdecec; color: #8a1c1c; border: 1px solid #f3c4c4; font-size: .92rem; overflow-wrap: anywhere; }
.auth-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { width: 100%; }
.g-mark { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--card); }
.soon { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.acct-h { display: flex; gap: 12px; align-items: center; }
.acct-h > [data-icon] { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--link); font-size: 22px; display: inline-grid; place-items: center; flex-shrink: 0; }
.acct-n { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.acct .muted { overflow-wrap: anywhere; }
.seller { margin-top: 22px; display: grid; justify-items: start; gap: 8px; }
/* correctifs finaux : mention de confidentialité, mot de passe oublié */
.auth-note { font-size: .84rem; color: var(--muted); }
.auth-note a { color: var(--link); }
.auth-link { justify-self: start; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--link); font: inherit; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.form-ok { padding: 10px 12px; border-radius: 12px; background: #e3f4ea; color: #14632f; border: 1px solid #b9e2c8; font-size: .92rem; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  .form-err { background: #3a1214; color: #ffb4b4; border-color: #6b2226; }
  .form-ok { background: #0f2e1c; color: #a6e3bd; border-color: #1f5a37; }
}

/* ---- panier, paiement et statut de commande (tâche 7) ---- */
.strong { font-weight: 800; }
.small { font-size: .85rem; }
.sub-t { font-size: 1.02rem; font-weight: 800; margin-top: 6px; }
.auth-why { font-size: .92rem; padding: 10px 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.cart { justify-items: stretch; gap: 0; padding-top: 6px; padding-bottom: 14px; }
.cart-l { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-i { display: grid; gap: 2px; min-width: 0; }
.cart-n { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cart-n:hover { color: var(--link); }
.cart-i .muted { font-size: .88rem; }
.cart-why { font-size: .85rem; font-weight: 700; color: #a3361a; }
.cart-l.off .cart-n { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.qty-b { width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; border-radius: 50%; }
.qty-b:disabled { opacity: .3; cursor: default; }
.qty-b:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.qty-v { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-rm { width: 32px; height: 32px; font-size: 16px; color: var(--muted); }
.cart-tot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 1.05rem; }
.cart-tot b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 8px; width: 100%; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.opt.on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.opt input { margin-top: 3px; accent-color: var(--teal); width: 18px; height: 18px; flex-shrink: 0; }
.opt-t { display: grid; gap: 2px; }
.opt-t .muted { font-size: .88rem; }
.panel .auth-f { width: 100%; }
.ord { justify-items: stretch; }
.ord-t { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.ord-st { justify-self: start; display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); white-space: nowrap; }
.ord-st.st-ok { background: #e3f4ea; border-color: #b9e2c8; color: #14632f; }
.ord-st.st-wait { background: #fff6d6; border-color: #f0dc8c; color: #6b5200; }
.ord-st.st-bad { background: #fdecec; border-color: #f3c4c4; color: #8a1c1c; }
.ord-d { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 4px 0 0; font-size: .93rem; }
.ord-d dt { color: var(--muted); }
.ord-d dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.ord-list { display: grid; gap: 8px; width: 100%; }
.ord-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; }
.ord-row:hover { border-color: var(--pill); }
.ord-row-l, .ord-row-r { display: grid; gap: 3px; min-width: 0; }
.ord-row-r { justify-items: end; text-align: right; flex-shrink: 0; }
.ord-row .muted { font-size: .85rem; overflow-wrap: anywhere; }
.ord-ref { font-weight: 700; font-size: .92rem; }
/* Téléchargements des templates (tâche 8) */
.ord-g { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.ord-g > .ord-row { border: 0; border-radius: 0; }
.dl-box { display: grid; gap: 6px; padding: 10px 12px 12px; border-top: 1px dashed var(--line); background: var(--card); min-width: 0; }
.dl-n { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.dl-n [data-icon] { color: var(--teal); font-size: 18px; flex-shrink: 0; }
.dl-box .muted { font-size: .86rem; }
.dl-url { width: 100%; min-width: 0; font: inherit; font-size: .8rem; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
.dl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-acts .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; flex: 1 1 auto; }
.dl-err { color: #8a1c1c; font-size: .86rem; }
.ord-dl { display: grid; gap: 8px; }
.ord-dl .dl-box { border: 1px solid var(--line); border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  .dl-n [data-icon] { color: var(--link); }
  .dl-err { color: #ffb4b4; }
}
@media (prefers-color-scheme: dark) {
  .cart-why { color: #ffb08f; }
  .ord-st.st-ok { background: #0f3320; border-color: #1f5a37; color: #8ee0ad; }
  .ord-st.st-wait { background: #3a3000; border-color: #6b5a10; color: #ffe98a; }
  .ord-st.st-bad { background: #3a1214; border-color: #6b2226; color: #ffb4b4; }
}

/* ---- écrans plus larges ---- */
@media (min-width: 600px) {
  .track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta .btn { flex: 0 0 auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .feat { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 900px) {
  :root { --gap: 16px; }
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search acts"; gap: 24px; padding-top: 12px; padding-bottom: 10px; }
  .search { max-width: 620px; width: 100%; justify-self: center; }
  .pills { margin-inline: 0; padding-inline: 0; }
  .track { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .arrows { display: flex; }
  .card-b { padding: 10px 12px 12px; gap: 4px; }
  .card-n { font-size: 14.5px; }
  .card-s { display: -webkit-box; }
  .card-p { font-size: 15px; }
  .demo-btn { margin: 0 12px 12px; height: 32px; font-size: 13px; }
  .badge { font-size: 11px; top: 8px; left: 8px; }
  .hero { padding: 26px 28px; }
  .hero h1 { font-size: 2rem; }
  .row { margin-top: 32px; }
  .row-t { font-size: 1.3rem; }
  .prod { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
  .prod-vis { max-width: none; }
  .app-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
  .tickets { height: 320px; }
  .vpn-in { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 44px; padding-top: 48px; padding-bottom: 56px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
  .foot-by { grid-column: 1 / -1; }
}
@media (pointer: fine) and (min-width: 900px) {
  .track { scrollbar-width: thin; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---- boutique en maintenance (MikDash › Maintenance › Boutique) ---- */
.maint { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); overflow: auto; }
.maint-card { max-width: 440px; width: 100%; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px; box-shadow: var(--shadow); }
.maint-card img { max-width: 100%; max-height: 180px; border-radius: 12px; margin-bottom: 14px; }
.maint-card h1 { font-size: 1.25rem; margin: 0 0 10px; color: var(--ink); }
.maint-card p { margin: 0 0 16px; color: var(--muted); white-space: pre-line; }
.maint-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; }
