/* =========================================================
   Shoenhub — style.css (toutes les pages)
   Mobile first · breakpoints 640 / 960 / 1200
   Propriétés logiques (inline-start/end) => compatible RTL (arabe)
   ========================================================= */

/* ---------- Thème ---------- */
:root,
[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #181c25;
  --surface-3: #1f2430;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6ebf2;
  --muted: #a3adbf;
  --accent-1: #ff4fa2;
  --accent-2: #7a5cff;
  --grad: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --grad-btn: linear-gradient(135deg, #e0358a 0%, #6447f0 100%);
  --grad-text: linear-gradient(90deg, #ff4fa2 0%, #a78bff 100%);
  --success: #3ddc97;
  --warning: #ffc24b;
  --danger: #ff6b81;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 79, 162, 0.35), 0 12px 40px rgba(122, 92, 255, 0.35);
  --nav-bg: rgba(11, 13, 18, 0.72);
  --focus: #ffb3d9;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --surface-3: #e3e6ef;
  --border: rgba(12, 16, 28, 0.09);
  --border-strong: rgba(12, 16, 28, 0.18);
  --text: #12151c;
  --muted: #4a5466;
  --grad-text: linear-gradient(90deg, #d0247a 0%, #5a3de6 100%);
  --success: #0f9d63;
  --warning: #a86a00;
  --danger: #d4243f;
  --shadow-sm: 0 2px 8px rgba(20, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 24, 40, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 24, 40, 0.14);
  --glow: 0 0 0 1px rgba(224, 53, 138, 0.3), 0 12px 40px rgba(100, 71, 240, 0.22);
  --nav-bg: rgba(245, 246, 250, 0.8);
  --focus: #6447f0;
  color-scheme: light;
}

:root {
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 14px;
  --container: 1200px;
  --gutter: 16px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Malgun Gothic", Arial, sans-serif;
}

/* Masque la page le temps de charger la traduction (évite le flash en anglais) */
.i18n-pending body { visibility: hidden; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Accessibilité ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { position: relative; padding-block: 80px; }
.section--alt {
  background: radial-gradient(60% 50% at 50% 0%, rgba(122, 92, 255, 0.08), transparent 70%), var(--surface);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 6px 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
  animation: pulse 2.4s infinite;
}
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-1);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 22px;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s;
}
.btn svg { flex-shrink: 0; transition: transform 0.2s var(--ease); }
[dir="rtl"] .btn svg.icon-arrow { transform: scaleX(-1); }
.btn--primary { color: #fff; background: var(--grad-btn); box-shadow: 0 8px 24px rgba(224, 53, 138, 0.28); }
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--glow); }
.btn--secondary { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.btn--secondary:hover { transform: translateY(-2px) scale(1.02); border-color: rgba(255, 79, 162, 0.55); box-shadow: 0 10px 30px rgba(122, 92, 255, 0.18); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 79, 162, 0.55); }
.btn--danger { color: var(--danger); background: transparent; border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.875rem; }
.btn--xs { min-height: 32px; padding: 6px 10px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block, .btn--block-sm { width: 100%; }
.btn.is-disabled, .btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none;
}
.btn.is-loading { opacity: 0.75; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { transform: scale(1.06); border-color: rgba(255, 79, 162, 0.55); box-shadow: 0 6px 20px rgba(122, 92, 255, 0.2); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo__mark { display: block; width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(224, 53, 138, 0.35)); transition: transform 0.35s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo--sm .logo__mark { width: 28px; height: 28px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled, .nav--solid { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu { display: flex; flex-direction: column; gap: 8px; }
.js .nav__menu {
  position: fixed; top: var(--nav-h); inset-inline: 0;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  padding: 16px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.js .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s; }
html:not(.js) .nav { height: auto; }
html:not(.js) .nav__inner { flex-wrap: wrap; padding-block: 12px; }
html:not(.js) .nav__burger { display: none; }
.nav__links { display: flex; flex-direction: column; gap: 2px; }
.nav__link { display: block; padding: 12px 14px; font-weight: 600; color: var(--muted); border-radius: var(--radius-sm); transition: color 0.2s, background-color 0.2s; }
.nav__link:hover, .nav__link.is-active, .nav__link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav__login { margin-top: 8px; }
.nav__burger path { transform-origin: 12px 12px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav__burger[aria-expanded="true"] .burger-top { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .burger-mid { opacity: 0; }
.nav__burger[aria-expanded="true"] .burger-bot { transform: translateY(-5px) rotate(-45deg); }
.nav__back span { display: none; }

#theme-toggle .icon-moon { display: none; }
[data-theme="light"] #theme-toggle .icon-sun { display: none; }
[data-theme="light"] #theme-toggle .icon-moon { display: block; }

/* Sélecteur de langue (menu déroulant) */
.lang-menu { position: relative; }
.lang-menu__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding-inline: 10px;
  font-size: 0.8125rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lang-menu__btn:hover, .lang-menu__btn[aria-expanded="true"] { border-color: rgba(255, 79, 162, 0.55); }
.lang-menu__btn svg { color: var(--muted); }
.lang-menu__btn .chev { transition: transform 0.2s var(--ease); }
.lang-menu__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 200;
  display: grid; gap: 2px; width: 210px; max-height: min(70vh, 460px); overflow-y: auto;
  padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: fade-down 0.2s var(--ease);
}
.lang-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; font-size: 0.9375rem; text-align: start;
  background: none; border: 0; border-radius: 8px;
}
.lang-menu__item:hover { background: var(--surface-2); }
.lang-menu__item[aria-current="true"] { background: var(--surface-2); font-weight: 600; }
.lang-menu__item[aria-current="true"]::after { content: ""; margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.lang-menu__code { min-width: 26px; font-size: 0.75rem; font-weight: 800; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding-block: 56px 72px; overflow: hidden; isolation: isolate;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 80% 30%, rgba(122, 92, 255, 0.22), transparent 70%),
    radial-gradient(35% 45% at 15% 70%, rgba(255, 79, 162, 0.16), transparent 70%);
}
.hero__glow::after {
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 9vw, 5.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.hero__subtitle { max-width: 560px; margin-top: 22px; font-size: clamp(1.0625rem, 2vw, 1.1875rem); color: var(--muted); }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero__cta--center { justify-content: center; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin-top: 40px; }
.hero__stats li { display: flex; flex-direction: column; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.hero__stats strong { font-size: 1.125rem; font-weight: 800; }
.hero__stats span { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.hero__visual { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.hero__visual::before { content: ""; position: absolute; inset: 10% 6%; z-index: -1; background: var(--grad); filter: blur(60px); opacity: 0.35; border-radius: 50%; }

.mockup { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); animation: float 7s ease-in-out infinite; }
[data-theme="light"] .mockup { filter: drop-shadow(0 30px 50px rgba(20, 24, 40, 0.18)); }
.m-window { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.m-bar { fill: var(--surface-2); }
.m-side { fill: var(--surface-2); opacity: 0.6; }
.m-card { fill: var(--surface-2); stroke: var(--border); stroke-width: 1; }
.m-line { fill: var(--surface-3); }
.m-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 6; }
.m-track { stroke: var(--surface-3); }
.m-num { fill: var(--text); font-family: var(--font); font-weight: 800; font-size: 24px; }
.m-num--center { font-size: 20px; }
.m-unit { fill: var(--muted); font-family: var(--font); font-weight: 600; font-size: 12px; }
.m-chart-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.2s var(--ease) 0.4s forwards; }
.m-float { animation: float-sm 5s ease-in-out infinite; }
.m-float--2 { animation-delay: -1.6s; }
.m-float--3 { animation-delay: -3.2s; }
.m-bars rect { transform-box: fill-box; transform-origin: bottom; animation: bar 2.8s ease-in-out infinite; }
.m-bars rect:nth-child(2) { animation-delay: -0.4s; }
.m-bars rect:nth-child(3) { animation-delay: -0.8s; }
.m-bars rect:nth-child(4) { animation-delay: -1.2s; }
.m-bars rect:nth-child(5) { animation-delay: -1.6s; }
.m-bars rect:nth-child(6) { animation-delay: -2s; }
.m-bars rect:nth-child(7) { animation-delay: -2.4s; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.chip--dev { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.chip--bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.chip--accent { color: #fff; background: var(--grad-btn); border-color: transparent; }
.chip--muted { color: var(--muted); }
.chip--ok .chip__dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); animation: pulse-dot 2.4s infinite; }

/* ---------- Produits (accueil) ---------- */
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.product__media { position: relative; display: block; overflow: hidden; aspect-ratio: 800 / 321; background: var(--surface-2); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s; }
.product:hover .product__media img { transform: scale(1.04); }
.product__ribbon {
  position: absolute; bottom: 14px; inset-inline-end: 14px;
  padding: 6px 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--grad-btn); border-radius: 999px; box-shadow: 0 6px 18px rgba(224, 53, 138, 0.45);
}
.product__body { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; padding: 20px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.product__desc { color: var(--muted); font-size: 0.9375rem; flex-grow: 1; }
.product__price { color: var(--muted); font-weight: 600; }
.product__price strong { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.product--featured {
  margin-bottom: 20px;
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: var(--glow);
}
.product--featured:hover { border-color: transparent; }
.product--featured .product__media { aspect-ratio: 1000 / 402; }
.product--featured .product__name { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.product--featured .product__name a:hover { text-decoration: underline; text-decoration-color: var(--accent-1); text-underline-offset: 6px; }
.product--dev .product__media img { filter: grayscale(0.55) brightness(0.72); }
.product--dev:hover .product__media img { filter: grayscale(0.2) brightness(0.85); }
.products-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.product__info { display: flex; flex-direction: column; gap: 10px; }
.product__buy { display: grid; gap: 12px; margin-top: 6px; }
.more-link { display: flex; justify-content: center; margin-top: 28px; }
.section--top { padding-top: 32px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.feature {
  position: relative; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.section--alt .feature { background: var(--bg); }
.feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.feature:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md), 0 0 40px rgba(122, 92, 255, 0.12); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  color: #fff; background: var(--grad-btn); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(224, 53, 138, 0.25);
  transition: transform 0.25s var(--ease);
}
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.08); }
.feature__title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.feature__text { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Étapes ---------- */
.steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.step {
  position: relative; padding: 28px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px;
  font-size: 1.375rem; font-weight: 800; color: #fff; background: var(--grad-btn); border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(122, 92, 255, 0.12), 0 10px 24px rgba(224, 53, 138, 0.3);
}
.step__title { font-size: 1.125rem; font-weight: 600; }
.step__text { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { border-color: rgba(255, 79, 162, 0.45); box-shadow: 0 8px 30px rgba(122, 92, 255, 0.12); }
.faq__item summary {
  position: relative; display: block;
  padding-block: 18px; padding-inline: 20px 56px;
  font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer;
  border-radius: var(--radius); -webkit-user-select: none; user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; inset-inline-end: 22px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; background: var(--accent-1); border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__answer { padding: 0 20px 20px; color: var(--muted); animation: fade-down 0.3s var(--ease); }
.prose a, .faq__answer a, .alert a, .form-help a {
  color: var(--text); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent-1); text-underline-offset: 3px;
}

/* ---------- CTA ---------- */
.cta-box {
  position: relative; padding: 48px 24px; text-align: center; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 79, 162, 0.18), transparent 70%),
    radial-gradient(60% 80% at 50% 100%, rgba(122, 92, 255, 0.2), transparent 70%),
    var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.cta-box__title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.cta-box__text { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Footer ---------- */
.footer { padding-top: 56px; background: var(--surface); border-top: 1px solid var(--border); }
.footer__inner { display: grid; gap: 28px; }
.footer__tagline { max-width: 320px; margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a { padding: 6px 0; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.footer__nav a:hover { color: var(--text); }
.icon-btn--discord:hover { color: #fff; background: #5865f2; border-color: #5865f2; }
.footer__bottom {
  display: grid; gap: 6px; margin-top: 40px;
  padding-block: 24px 80px;
  border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted);
}

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px;
  color: #fff; background: var(--grad-btn); border: 0; border-radius: 50%; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s, box-shadow 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s, box-shadow 0.25s; }
.to-top:hover { box-shadow: var(--glow); transform: translateY(-2px) scale(1.05); }

/* =========================================================
   PAGE PRODUIT
   ========================================================= */
.breadcrumb { padding-block: 20px 0; font-size: 0.875rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

.pp-hero { padding-block: 28px 80px; }
.pp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.showcase { position: relative; isolation: isolate; }
.showcase::before {
  content: ""; position: absolute; inset: 12% 10%; z-index: -1;
  background: var(--grad); filter: blur(70px); opacity: 0.45; border-radius: 50%;
  animation: glow 6s ease-in-out infinite;
}
.showcase__img {
  width: 100%; border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 58%, transparent 100%);
  transition: transform 0.6s var(--ease);
}
.showcase:hover .showcase__img { transform: scale(1.03) rotate(-0.6deg); }
.showcase__banner { margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.pp-info__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pp-info__title { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.pp-info__lead { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
.pp-info__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.picker { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt--wide { grid-column: 1 / -1; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__body {
  position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 14px 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease), background-color 0.2s;
}
.opt:hover .opt__body { transform: translateY(-2px); border-color: rgba(255, 79, 162, 0.55); }
.opt input:checked + .opt__body {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1px solid transparent; box-shadow: var(--glow);
}
.opt input:checked + .opt__body::after {
  content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat, var(--grad-btn);
}
.opt input:focus-visible + .opt__body { outline: 3px solid var(--focus); outline-offset: 3px; }
.opt__name { font-weight: 600; font-size: 0.9375rem; padding-inline-end: 24px; }
.opt__price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.opt__per { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.opt__save { padding: 1px 7px; font-size: 0.6875rem; font-weight: 800; color: #0b0d12; background: #3ddc97; border-radius: 999px; }
.opt__badge {
  position: absolute; top: -10px; inset-inline-start: 12px;
  padding: 2px 9px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--grad-btn); border-radius: 999px;
}
.summary {
  display: grid; gap: 14px; margin-top: 20px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.summary__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.summary__label { color: var(--muted); font-weight: 600; }
.summary__price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.summary__plan { color: var(--muted); font-size: 0.875rem; }
.summary__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); text-align: center; }

.checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.checklist li {
  position: relative; padding: 16px 18px; padding-inline-start: 50px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600;
}
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat, var(--grad-btn);
}
.specs { display: grid; gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 20px; background: var(--surface); }
.specs dt { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.specs dd { font-weight: 600; }

/* =========================================================
   FORMULAIRES / ALERTES / TOAST
   ========================================================= */
.field { display: grid; gap: 8px; }
.field label, .field__label { font-weight: 600; font-size: 0.9375rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.7; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 79, 162, 0.45); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(255, 79, 162, 0.18); }
.input--key { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; direction: ltr; text-align: start; }
.select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3adbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
[dir="rtl"] .select { background-position: left 12px center; }
.select option { color: #12151c; background: #fff; }
.textarea { min-height: 160px; resize: vertical; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.875rem; direction: ltr; }
.form-help { font-size: 0.875rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; font-size: 0.9375rem; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert--error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert--success { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert--info { color: var(--text); background: color-mix(in srgb, var(--accent-2) 12%, transparent); border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); }
.alert code, .code-pill {
  padding: 2px 6px; font-family: ui-monospace, Consolas, monospace; font-size: 0.875em;
  color: var(--text); background: var(--surface-3); border-radius: 6px; direction: ltr; unicode-bidi: isolate;
  white-space: nowrap;
}

.toast {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 300;
  max-width: 420px; margin-inline: auto; padding: 14px 18px;
  font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s; }
.toast--error { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.toast--success { border-color: color-mix(in srgb, var(--success) 55%, transparent); }

/* =========================================================
   PANEL CLIENT / RESET HWID / 404 (pages "app")
   ========================================================= */
.app-main { position: relative; min-height: calc(100vh - var(--nav-h)); padding-block: 40px 80px; isolation: isolate; }
.app-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 85% 10%, rgba(122, 92, 255, 0.16), transparent 70%),
    radial-gradient(35% 35% at 10% 90%, rgba(255, 79, 162, 0.12), transparent 70%);
}
.auth { display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 120px); }
.auth-card {
  width: 100%; max-width: 460px; padding: 28px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.auth-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  color: #fff; background: var(--grad-btn); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(224, 53, 138, 0.3);
}
.auth-card__title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.auth-card__sub { margin-top: 8px; color: var(--muted); }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-card__foot { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.auth-card__foot a { color: var(--text); font-weight: 600; }
.auth-card__foot a:hover { text-decoration: underline; text-decoration-color: var(--accent-1); }

.dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dash__title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.dash__sub { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.dash__section-title { margin-bottom: 14px; font-size: 1.125rem; font-weight: 600; }
.dash__list { display: grid; gap: 16px; }
.dash__aside { display: grid; gap: 16px; }

.card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card__title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: 0.9375rem; margin-bottom: 14px; }
.news { display: grid; gap: 12px; }
.news li { position: relative; padding-inline-start: 18px; font-size: 0.9375rem; color: var(--muted); }
.news li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.lic { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.lic__media { aspect-ratio: 1000 / 402; width: 100%; overflow: hidden; background: var(--surface-2); }
.lic__media img { width: 100%; height: 100%; object-fit: cover; }
.lic__body { display: grid; gap: 16px; padding: 20px; }
.lic__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lic__name { font-size: 1.375rem; font-weight: 800; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.kv dt { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.kv dd { font-weight: 600; overflow-wrap: anywhere; }
.progress { height: 8px; overflow: hidden; background: var(--surface-3); border-radius: 999px; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 0.6s var(--ease); }
.lic__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-banner { margin-bottom: 20px; }

/* 404 */
.nf { text-align: center; }
.nf__code { font-size: clamp(5rem, 22vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.nf__title { margin-top: 8px; font-size: 1.5rem; font-weight: 800; }
.nf__text { max-width: 440px; margin: 10px auto 24px; color: var(--muted); }

/* Pages légales */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.prose h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1.25rem; font-weight: 800; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose ul { display: grid; gap: 6px; margin-top: 10px; padding-inline-start: 20px; list-style: disc; }
.prose .updated { margin-top: 8px; font-size: 0.875rem; }

/* =========================================================
   PANEL ADMIN
   ========================================================= */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--nav-h)); }
.admin__side { padding: 12px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--border); }
.admin__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin__tabs::-webkit-scrollbar { display: none; }
.admin__tab {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 10px 14px; font-weight: 600; color: var(--muted);
  background: none; border: 0; border-radius: var(--radius-sm); white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.admin__tab:hover { color: var(--text); background: var(--surface-2); }
.admin__tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent-1); }
[dir="rtl"] .admin__tab[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--accent-1); }
.admin__side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.footer--compact { padding-top: 0; }
.footer--compact .footer__bottom { margin-top: 0; padding-bottom: 24px; }
.footer--compact .footer__legal a { font-weight: 600; }
.footer--compact .footer__legal a:hover { color: var(--text); }
.admin__main { min-width: 0; padding: 24px var(--gutter) 60px; }
.admin__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.admin__title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat__label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.stat__value { margin-top: 4px; font-size: clamp(1.375rem, 4vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; direction: ltr; }
.chart__bar {
  position: relative; flex: 1 1 0; min-width: 6px; min-height: 4px;
  background: var(--grad); border-radius: 6px 6px 2px 2px; opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s var(--ease); transform-origin: bottom;
}
.chart__bar:hover { opacity: 1; transform: scaleY(1.03); }
.chart__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: var(--muted); direction: ltr; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.activity { display: grid; gap: 10px; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.activity li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity span:last-child { color: var(--muted); white-space: nowrap; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table .table__actions { flex-wrap: nowrap; }
.table th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.table__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.table__empty { padding: 32px; text-align: center; color: var(--muted); }
.gen-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* ---------- Apparition au scroll ---------- */
.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-sm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.7); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0.05); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.55; } }

/* =========================================================
   640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .section { padding-block: 100px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .btn--block-sm { width: auto; }
  .product--featured .product__body { padding: 28px; }
  .cta-box { padding: 64px 40px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__nav { grid-column: 1 / -1; }
  .footer__inner > .icon-btn--discord { grid-column: 2; grid-row: 1; }
  .footer__bottom { grid-template-columns: auto 1fr; gap: 16px; }
  .footer__legal { text-align: end; }
  .nav__back span { display: inline; }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker__grid { gap: 12px; }
  .auth-card { padding: 36px 32px; }
  .stats { gap: 16px; }
  .toolbar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .gen-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .gen-form .form-actions { grid-column: 1 / -1; }
}

/* =========================================================
   960px
   ========================================================= */
@media (min-width: 960px) {
  :root { --nav-h: 72px; }
  .nav__burger { display: none; }
  .nav__menu, .js .nav__menu {
    position: static; flex-direction: row; align-items: center; gap: 16px;
    max-height: none; overflow: visible; padding: 0; margin-inline-start: auto;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__links { flex-direction: row; gap: 2px; }
  .nav__link { padding: 8px 12px; }
  .nav__login { margin-top: 0; }
  html:not(.js) .nav { height: var(--nav-h); }
  html:not(.js) .nav__inner { flex-wrap: nowrap; padding-block: 0; }

  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero__visual { max-width: none; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps::before { content: ""; position: absolute; top: 56px; inset-inline: 16%; height: 2px; background: var(--grad); opacity: 0.35; }
  .step { z-index: 1; }

  /* Bannière entière en haut (ratio d'origine, jamais rognée), texte + achat en dessous */
  .product--featured .product__body {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    align-items: center; gap: 16px 48px; padding: 32px 40px;
  }
  .product--featured .product__buy { margin-top: 0; }

  .footer__inner { grid-template-columns: 1.2fr 2fr auto; align-items: center; }
  .footer__nav { grid-column: auto; justify-content: center; }
  .footer__inner > .icon-btn--discord { grid-column: auto; grid-row: auto; }

  .pp-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .pp-hero__visual { position: sticky; top: calc(var(--nav-h) + 24px); }
  .checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .dash__grid { grid-template-columns: minmax(0, 1fr) 320px; }

  .admin { grid-template-columns: 240px minmax(0, 1fr); }
  .admin__side {
    position: sticky; top: var(--nav-h); align-self: start;
    height: calc(100vh - var(--nav-h));
    display: flex; flex-direction: column; gap: 16px; padding: 24px 14px;
    border-bottom: 0; border-inline-end: 1px solid var(--border);
  }
  .admin__tabs { flex-direction: column; overflow: visible; }
  .admin__side-foot { display: grid; gap: 8px; margin-top: auto; justify-items: start; }
  .admin__main { padding: 32px 32px 80px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* =========================================================
   1200px
   ========================================================= */
@media (min-width: 1200px) {
  :root { --gutter: 32px; }
  .section { padding-block: 120px; }
  .hero__inner { gap: 72px; }
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav__links { gap: 4px; }
  .nav__link { padding: 8px 14px; }
}

/* Très petits écrans (≤ 400px) : on gagne de la place dans la barre */
@media (max-width: 400px) {
  .lang-menu__btn .chev { display: none; }
  .logo { font-size: 1.125rem; gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .nav__actions { gap: 6px; }
}

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .m-chart-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; translate: none; }
  .btn:hover, .feature:hover, .product:hover, .step:hover, .icon-btn:hover, .to-top:hover, .opt:hover .opt__body,
  .product:hover .product__media img, .showcase:hover .showcase__img, .logo:hover .logo__mark { transform: none; }
}

@media print {
  .nav, .to-top, .hero__visual, .toast { display: none; }
  .js .reveal { opacity: 1; translate: none; }
  body { background: #fff; color: #000; }
}

/* ========== Feature list details + trial callout (robrun.html) ========== */
.pp-features {
  margin: 20px 0 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  padding: 14px 18px;
}
.pp-features > summary {
  cursor: pointer;
  list-style: none;
  color: #e7eaf2;
  font-size: 15px;
  padding: 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.pp-features > summary::marker { content: none; }
.pp-features > summary::before {
  content: "+";
  color: #ff4fa2;
  font-weight: 800;
  font-size: 18px;
  width: 16px; text-align: center;
}
.pp-features[open] > summary::before { content: "−"; color: #7a5cff; }
.pp-features__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px 32px;
}
.pp-features__col h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff4fa2;
}
.pp-features__col ul { margin: 0; padding-left: 18px; }
.pp-features__col li {
  margin: 4px 0;
  color: #cfd3df;
  font-size: 14px;
  line-height: 1.45;
}
.pp-trial {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,79,162,.12), rgba(122,92,255,.12));
  border: 1px solid rgba(255,79,162,.35);
  color: #e7eaf2;
  font-size: 14.5px;
  line-height: 1.5;
}
.pp-trial strong { color: #ff8ec1; }
.pp-trial a { color: #ffb4d6; text-decoration: underline; }

/* ========== Social-proof stats widget (robrun.html) ========== */
.pp-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pp-stats__card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.pp-stats__value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff4fa2, #7a5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.pp-stats__label {
  font-size: 12px;
  color: #8a90a2;
  letter-spacing: .03em;
}
@media (max-width: 640px) {
  .pp-stats { grid-template-columns: 1fr; }
}
