/* =========================================================================
   PANELKEO — Maquette de panel SMM
   1. Tokens   2. Base   3. Composants   4. Page d'accueil
   5. Connexion / inscription   6. Espace client
   7. Widgets (support, toasts, modale)   8. Responsive
   ========================================================================= */

/* 1. TOKENS ================================================================ */
:root {
  --font-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: var(--font-body);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Couleur de marque : changer ces valeurs suffit à recolorer tout le site */
  --accent: #2d5bff;
  --accent-hover: #1f4af0;
  --accent-text: #2449e6;
  --accent-soft: rgba(45, 91, 255, 0.08);
  --accent-soft-2: rgba(45, 91, 255, 0.14);
  --accent-ring: rgba(45, 91, 255, 0.25);
  --on-accent: #ffffff;

  /* Boutons principaux : encre noire en thème clair, blanche en thème sombre */
  --ink: #0b0b0f;
  --ink-hover: #2a2a31;
  --on-ink: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ebebef;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --border: #ececf0;
  --border-strong: #dedee4;

  --heading: #0b0b0f;
  --text: #2b2b33;
  --text-muted: #5f5f6b;
  --text-dim: #8d8d98;

  --success: #0f9d58;
  --success-soft: rgba(15, 157, 88, 0.1);
  --warning: #b86e00;
  --warning-soft: rgba(230, 150, 20, 0.13);
  --danger: #dc3545;
  --danger-soft: rgba(220, 53, 69, 0.09);
  --info: #2d5bff;
  --info-soft: rgba(45, 91, 255, 0.09);
  --violet: #7a45e6;
  --violet-soft: rgba(122, 69, 230, 0.1);

  --hero-wash: rgba(45, 91, 255, 0.07);
  --cta-bg: #0b0b0f;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(16, 16, 24, 0.05);
  --shadow: 0 12px 32px -16px rgba(16, 16, 40, 0.18);
  --shadow-lg: 0 32px 80px -32px rgba(16, 24, 64, 0.28);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #4365ff;
  --accent-hover: #5a78ff;
  --accent-text: #8da2ff;
  --accent-soft: rgba(77, 107, 255, 0.12);
  --accent-soft-2: rgba(77, 107, 255, 0.2);
  --accent-ring: rgba(77, 107, 255, 0.35);

  --ink: #f4f4f6;
  --ink-hover: #d9d9df;
  --on-ink: #0b0b0f;

  --bg: #09090b;
  --bg-alt: #0d0d10;
  --surface: #111114;
  --surface-2: #17171b;
  --surface-3: #202026;
  --nav-bg: rgba(9, 9, 11, 0.8);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  --heading: #f8f8fa;
  --text: #dedee4;
  --text-muted: #a0a0ab;
  --text-dim: #6e6e7a;

  --success: #3ccf8e;
  --success-soft: rgba(60, 207, 142, 0.12);
  --warning: #f2b544;
  --warning-soft: rgba(242, 181, 68, 0.13);
  --danger: #f26b6b;
  --danger-soft: rgba(242, 107, 107, 0.13);
  --info: #8da2ff;
  --info-soft: rgba(77, 107, 255, 0.15);
  --violet: #b394ff;
  --violet-soft: rgba(179, 148, 255, 0.14);

  --hero-wash: rgba(77, 107, 255, 0.14);
  --cta-bg: #141419;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 32px 80px -32px rgba(0, 0, 0, 0.9);

  color-scheme: dark;
}

/* 2. BASE ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body[data-app] { background: var(--bg-alt); }
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--heading);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* Apparition douce au défilement (désactivée si l'utilisateur réduit les animations) */
.js .reveal { opacity: 0; }
.js .reveal.in {
  opacity: 1;
  animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) backwards;
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* 3. COMPOSANTS ============================================================ */

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.logo-mark {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(16, 16, 40, 0.2);
}
.logo-mark svg { width: 18px; height: 18px; }

/* Boutons */
.btn {
  --h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 0.85em; }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--heading); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-white { background: #fff; color: #0b0b0f; }
.btn-white:hover { background: #e9e9ee; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { --h: 34px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 13.5px; }
.btn-lg { --h: 50px; padding: 0 24px; border-radius: 12px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-loading { opacity: 0.6; pointer-events: none; }
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.link { color: var(--accent-text); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link i { font-size: 0.8em; }

/* Bouton de thème clair / sombre */
.theme-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 15px;
  transition: background-color 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--heading); }
.theme-toggle .fa-sun,
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--heading);
}
.label small { font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.input, .select, .textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--heading);
  font-size: 14.5px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input[readonly] { background: var(--surface-2); color: var(--text-muted); cursor: default; }
.input[readonly]:hover { border-color: var(--border-strong); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238d8d98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.select option { background: var(--surface); color: var(--text); }
.input[type="number"] { -moz-appearance: textfield; }
.field-hint { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.field-error { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 500; color: var(--danger); }
.field-error .link { color: inherit; text-decoration: underline; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); font-size: 14px; color: var(--text-dim); pointer-events: none; }
.input-icon > .input { padding-left: 41px; }
.input-icon.has-action > .input { padding-right: 46px; }
.input-action {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--text-dim);
  transform: translateY(-50%);
}
.input-action:hover { background: var(--surface-2); color: var(--heading); }

.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; user-select: none; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid var(--on-ink);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.15s;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check.is-invalid input { border-color: var(--danger); }

.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--heading); cursor: pointer; }
.switch small { font-weight: 400; color: var(--text-dim); }
.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--surface-3);
  cursor: pointer;
  transition: background-color 0.2s;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }

.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--text-dim); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Cartes, icônes, pastilles */
.card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.card-title i { font-size: 14px; color: var(--text-dim); }
.card-head .link { font-size: 13.5px; }

.p-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
  color: var(--brand);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--brand) 11%, transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pill i { font-size: 9.5px; }
.pill-accent { background: var(--accent-soft); color: var(--accent-text); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-violet { background: var(--violet-soft); color: var(--violet); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warning-soft); color: var(--warning); }
.status-progress { background: var(--info-soft); color: var(--info); }
.status-progress::before { animation: pulse 1.6s ease-in-out infinite; }
.status-completed, .status-paid { background: var(--success-soft); color: var(--success); }
.status-partial { background: var(--violet-soft); color: var(--violet); }
.status-canceled, .status-failed { background: var(--danger-soft); color: var(--danger); }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--text); }
.checklist i {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 10px;
}

.progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.6s ease; }

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.announce b {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 500;
}
.announce > i { font-size: 11px; transition: transform 0.2s; }
a.announce:hover { border-color: var(--text-dim); color: var(--heading); }
a.announce:hover > i { transform: translateX(2px); }

/* 4. PAGE D'ACCUEIL ======================================================== */

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s; }
.nav.is-scrolled, .nav.menu-open {
  border-bottom-color: var(--border);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav-menu { display: flex; flex: 1; align-items: center; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text-muted); transition: color 0.15s, background-color 0.15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--heading); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-login { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--heading); }
.nav-login:hover { background: var(--surface-2); }
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--heading);
  font-size: 16px;
}

/* Hero */
.hero { position: relative; isolation: isolate; padding: 88px 0 0; }
.hero::before {
  content: "";
  position: absolute;
  inset: -68px 0 auto;
  height: 720px;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, var(--hero-wash), transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
  max-width: 900px;
  margin: 28px 0 22px;
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-title em {
  padding-right: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}
.hero-sub { max-width: 620px; margin: 0 0 36px; font-size: 18.5px; line-height: 1.6; color: var(--text-muted); text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust i { font-size: 12px; color: var(--accent-text); }

/* Aperçu du produit */
.showcase { position: relative; max-width: 1040px; margin: 72px auto 0; }
.showcase::before {
  content: "";
  position: absolute;
  inset: 12% 8% -4%;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
  filter: blur(70px);
}
.window { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-3); }
.window-title { margin: 0 auto; padding-right: 48px; font-size: 12.5px; color: var(--text-dim); }
.window-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); text-align: left; }
.mock-form { display: grid; gap: 16px; padding: 26px; border-right: 1px solid var(--border); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.mock-chip.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.mock-field small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.mock-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13px;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
}
.mock-input span { font-size: 12.5px; color: var(--text-dim); }
.mock-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mock-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.mock-total small { display: block; font-size: 12px; color: var(--text-dim); }
.mock-total strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--heading); }
.mock-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 500;
}
.mock-orders { display: grid; align-content: start; gap: 10px; padding: 26px; background: var(--bg-alt); }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; font-size: 12.5px; font-weight: 500; color: var(--text-dim); }
.mock-head span { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.mock-head span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.mock-order { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.mock-order-main { flex: 1; min-width: 0; }
.mock-order-main strong { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--heading); }
.mock-order-main small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-dim); }
.mock-order .progress { height: 5px; }
.mock-order .status { align-self: flex-start; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; color: var(--text-dim); }
.float-card strong { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
/* À cheval sur les bords de la fenêtre, sans masquer le contenu */
.float-a { top: -30px; right: 56px; }
.float-b { bottom: -52px; left: 44px; animation-delay: -3s; }
.float-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.float-icon.ok { background: var(--success-soft); color: var(--success); }

/* Bandeau des plateformes */
.logos { padding: 72px 0 8px; }
.logos p { margin-bottom: 24px; font-size: 14px; color: var(--text-dim); text-align: center; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.logos-row a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.logos-row i { font-size: 17px; transition: color 0.2s; }
.logos-row a:hover { color: var(--heading); }
.logos-row a:hover i { color: var(--brand); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { border-block: 1px solid var(--border); background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; max-width: none; }
.section-head.split > div { flex: 1 1 460px; max-width: 640px; }
.section-head.split p { flex: 0 1 380px; }
.section-head h2, .api-copy h2, .faq-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.section-head h2 em, .api-copy h2 em, .faq-intro h2 em { font-style: normal; color: var(--text-dim); }
.section-head p { margin: 0; font-size: 17px; color: var(--text-muted); text-wrap: pretty; }
.eyebrow { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 500; color: var(--accent-text); }

/* Grille « bento » des avantages */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.tile h3 { margin-bottom: 6px; font-size: 17px; letter-spacing: -0.015em; }
.tile p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.tile-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
}
.tile-wide { grid-column: span 2; flex-direction: row; gap: 32px; }
.tile-wide .tile-text { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.tile-wide .big { margin-bottom: 20px; font-size: clamp(40px, 4.4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--heading); }
.tile-wide .big small { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--text-dim); }
.price-list { flex: 1; display: grid; align-content: center; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); }
.price-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); font-size: 14px; }
.price-row .p-icon { width: 30px; height: 30px; font-size: 14px; }
.price-row > span:nth-child(2) { flex: 1; color: var(--text); }
.price-row strong { font-weight: 600; color: var(--heading); }
.price-row small { font-size: 12px; color: var(--text-dim); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.bars i { width: 14px; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--surface-3); }
.bars i.hot { background: var(--accent); }
.bars-label {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--heading);
}
.shield-visual { flex-direction: column; gap: 14px; }
.shield-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 26px;
  color: var(--accent-text);
}
.pills-row { display: flex; gap: 6px; }
.chat-visual { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 18px; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.bubble.in { align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; background: var(--surface); color: var(--text); }
.bubble.out { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--accent); color: #fff; }
.code-visual { justify-content: flex-start; padding: 20px; border-color: #1d1d24; background: #0c0c10; }
.code-visual code { font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: #d4d4dc; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--border-strong); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step-num { display: block; margin-bottom: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.step h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 15px; color: var(--text-muted); }

/* Tarifs */
.pricing { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.segmented {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 16px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.seg {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.seg i { color: var(--brand); }
.seg:hover { color: var(--heading); }
.seg.active { background: var(--surface); color: var(--heading); box-shadow: 0 1px 2px rgba(16, 16, 24, 0.08), 0 0 0 1px var(--border); }
.pricing-list { border-top: 1px solid var(--border); }
.price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 130px 120px;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s;
}
.price-item:hover { background: var(--bg-alt); }
.price-item .svc strong { display: block; margin-bottom: 6px; font-weight: 500; color: var(--heading); }
.price-item .meta { font-size: 13.5px; color: var(--text); }
.price-item .meta small, .price-item .amount small { display: block; font-size: 12px; font-weight: 400; color: var(--text-dim); }
.price-item .amount { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--heading); }
.price-item .btn { justify-self: end; }
.pricing-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--bg-alt); font-size: 14px; color: var(--text-muted); }

/* API */
.api-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.api-copy > p { max-width: 460px; font-size: 17px; }
.api-copy .checklist { margin: 28px 0 32px; }
.code-window { overflow: hidden; border: 1px solid #1d1d24; border-radius: 18px; background: #0c0c10; box-shadow: var(--shadow-lg); }
.code-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid #1d1d24; }
.code-path { font-family: var(--font-mono); font-size: 12.5px; color: #8b8b98; }
.code-tabs { display: flex; gap: 2px; margin-left: auto; }
.code-tab { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: #8b8b98; }
.code-tab:hover { color: #e4e4ea; }
.code-tab.active { background: #1d1d24; color: #fff; }
.code-copy { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #8b8b98; font-size: 13px; }
.code-copy:hover { background: #1d1d24; color: #fff; }
.code-window pre { margin: 0; padding: 22px 22px 26px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: #d4d4dc; }
.tok-c { color: #6b6b78; }
.tok-k { color: #8ea2ff; }
.tok-s { color: #9fdcb4; }
.tok-n { color: #f5b371; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 108px; }
.faq-intro p { max-width: 340px; font-size: 17px; }
.faq { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--heading);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-muted);
  transition: transform 0.25s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { margin: -6px 0 24px; padding-right: 40px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* Appel à l'action */
.cta-wrap { padding: 0 0 120px; }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--cta-bg);
  color: #fff;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 50%;
  z-index: -1;
  width: 720px;
  height: 480px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  filter: blur(110px);
  transform: translateX(-50%);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
}
.cta h2 { margin-bottom: 16px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.045em; color: #fff; }
.cta h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: #b9c6ff; }
.cta p { max-width: 520px; margin: 0 auto 34px; font-size: 17px; color: rgba(255, 255, 255, 0.7); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Pied de page */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { max-width: 300px; margin: 16px 0 20px; font-size: 14.5px; color: var(--text-muted); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.15s, border-color 0.15s;
}
.socials a:hover { border-color: var(--border-strong); color: var(--heading); }
.footer h4 { margin-bottom: 14px; font-size: 14px; letter-spacing: 0; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--heading); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* 5. CONNEXION / INSCRIPTION =============================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 56px 48px;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}
.auth-side::before {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -25%;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  filter: blur(90px);
}
.auth-side h1 { max-width: 480px; margin: 22px 0 26px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.045em; }
.auth-side h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent-text); }
.preview-card { max-width: 440px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.preview-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.preview-head strong { display: block; font-size: 14px; font-weight: 500; color: var(--heading); }
.preview-head small { font-size: 12.5px; color: var(--text-dim); }
.preview-head .status { margin-left: auto; }
.preview-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }
.auth-main { display: flex; flex-direction: column; padding: 28px 24px; }
.auth-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.auth-top .logo { display: none; margin-right: auto; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 32px 0; }
.auth-form h2 { margin-bottom: 6px; font-size: 30px; letter-spacing: -0.035em; }
.auth-form .lead { margin-bottom: 28px; color: var(--text-muted); }
.auth-form > .check { margin: 4px 0 22px; line-height: 1.5; }
.form-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 20px; font-size: 13.5px; }
.form-meta .check { align-items: center; }
.form-meta .check input { margin: 0; }
.form-meta .link { font-size: 13.5px; }
.auth-form [data-form-error] { margin: -6px 0 14px; }
.strength { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 999px; background: var(--surface-3); transition: background-color 0.2s; }
.strength[data-score="1"] i:nth-child(-n + 1) { background: var(--danger); }
.strength[data-score="2"] i:nth-child(-n + 2) { background: var(--warning); }
.strength[data-score="3"] i:nth-child(-n + 3) { background: var(--accent); }
.strength[data-score="4"] i:nth-child(-n + 4) { background: var(--success); }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--text-dim); text-align: center; }

/* 6. ESPACE CLIENT ========================================================= */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 12px; }
.sidebar .sidebar-close { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { margin: 16px 12px 6px; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s;
}
.side-link i { width: 18px; font-size: 14px; text-align: center; }
.side-link:hover { background: var(--surface-2); color: var(--heading); }
.side-link.active { background: var(--surface-2); color: var(--heading); box-shadow: inset 0 0 0 1px var(--border); }
.side-link.active i { color: var(--accent-text); }
.side-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.side-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 500;
}
.side-card { margin-top: auto; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-alt); }
.side-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #26a5e4;
  color: #fff;
  font-size: 18px;
}
.side-card strong { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.side-card p { margin: 4px 0 14px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.topbar .burger { display: none; }
.topbar-title { overflow: hidden; font-size: 15px; font-weight: 600; color: var(--heading); white-space: nowrap; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.15s, background-color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--heading); }
.topbar .theme-toggle { width: 38px; height: 38px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.ping {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface);
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 4px 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  transition: background-color 0.15s;
}
.balance-pill > i { font-size: 13px; color: var(--text-dim); }
.balance-pill:hover { background: var(--surface-2); }
.balance-pill .plus {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11px;
}
.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
}
.user-btn:hover { background: var(--surface-2); }
.user-btn > i { font-size: 10px; color: var(--text-dim); transition: transform 0.2s; }
.user-menu.open .user-btn > i { transform: rotate(180deg); }
.avatar {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 248px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.user-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border); }
.dropdown-head .avatar { width: 36px; height: 36px; border-radius: 10px; }
.dropdown-head strong { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.dropdown-head small { font-size: 12.5px; color: var(--text-muted); }
.dropdown-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  text-align: left;
}
.dropdown-item i { width: 16px; font-size: 13px; text-align: center; color: var(--text-dim); }
.dropdown-item:hover { background: var(--surface-2); color: var(--heading); }
.dropdown-item.danger, .dropdown-item.danger i { color: var(--danger); }
.dropdown hr { margin: 6px 0; border: 0; border-top: 1px solid var(--border); }

.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 28px 96px; display: flex; flex-direction: column; gap: 20px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin-bottom: 4px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.035em; }
.page-head p { margin: 0; }

/* Bandeau d'en-tête (tableau de bord, services) */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  z-index: -1;
  width: 480px;
  height: 320px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  filter: blur(70px);
}
.page-hero h1 { margin-bottom: 6px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.035em; }
.page-hero p { max-width: 560px; margin: 0; font-size: 14.5px; color: var(--text-muted); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-stat { min-width: 132px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.mini-stat small { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--text-dim); }
.mini-stat strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--heading); white-space: nowrap; }
.mini-stat strong i { margin-right: 5px; font-size: 14px; }

/* Nouvelle commande */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.order-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip i { font-size: 14px; color: var(--brand, var(--text-dim)); }
.chip:hover { background: var(--surface-2); color: var(--heading); }
.chip.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.chip.active i { color: var(--on-ink); }

.search-field { position: relative; }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.result { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; text-align: left; }
.result:hover, .result:focus-visible { background: var(--surface-2); }
.result strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--heading); }
.result small { font-size: 12.5px; color: var(--text-dim); }
.result-empty { margin: 0; padding: 14px; font-size: 13.5px; color: var(--text-muted); }

.svc-info { margin-bottom: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); }
.svc-info-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.svc-info-head strong { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--heading); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.svc-meta > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.svc-meta small { display: block; margin-bottom: 2px; font-size: 12px; color: var(--text-dim); }
.svc-meta strong { display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 13.5px; font-weight: 500; color: var(--heading); white-space: nowrap; text-overflow: ellipsis; }
.svc-meta strong i { font-size: 11px; color: var(--text-dim); }
.svc-desc { display: grid; gap: 5px; font-size: 13.5px; color: var(--text-muted); }
.svc-desc li { position: relative; padding-left: 16px; }
.svc-desc li::before { content: ""; position: absolute; top: 0.65em; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); }

.drip { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; }
.drip .field-row { margin-top: 14px; }
.drip .field { margin-bottom: 0; }

.order-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
}
.order-total small { display: block; font-size: 12.5px; color: var(--text-dim); }
.order-total strong { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; color: var(--heading); }
.order-total .dim { font-size: 12.5px; }
#form-error { margin-top: 12px; }

.news { display: grid; gap: 14px; margin-top: 16px; }
.news li { display: flex; gap: 12px; }
.news-date {
  flex: none;
  width: 48px;
  height: 50px;
  display: grid;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  color: var(--text-dim);
}
.news-date b { display: block; font-size: 16px; font-weight: 600; color: var(--heading); }
.news strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--heading); }
.news p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.tip-list { display: grid; gap: 12px; margin-top: 16px; }
.tip-list li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.tip-list li i {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 12px;
}
.tip-list b { font-weight: 600; color: var(--heading); }

/* Tableaux */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.card-table { margin: 0 -24px -24px; width: calc(100% + 48px); overflow-x: auto; border-top: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  color: var(--text-dim);
  white-space: nowrap;
}
.table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:not(.cat-row):hover td { background: var(--bg-alt); }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table td small { display: block; font-size: 12px; color: var(--text-dim); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: 6px; }
.cell-svc { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.cell-svc strong { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--heading); }
.cell-svc small { font-size: 12px; color: var(--text-dim); }
.cell-svc.compact { min-width: 0; }
.cell-link { display: block; max-width: 220px; overflow: hidden; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; text-overflow: ellipsis; }
.cell-link:hover { color: var(--accent-text); }
.cat-row td { padding: 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.cat-title { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--heading); }
.cat-title .p-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.cat-count { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.svc-name { min-width: 280px; }
.svc-name strong { display: block; margin-bottom: 6px; font-weight: 500; color: var(--heading); }
.price { font-weight: 600; color: var(--heading); white-space: nowrap; }
.mini-progress { width: 72px; height: 5px; margin-bottom: 4px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--info); }
.empty { padding: 48px 24px; text-align: center; color: var(--text-muted); }
.empty > i { display: block; margin-bottom: 12px; font-size: 26px; color: var(--text-dim); }
.empty strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--heading); }

/* Barre d'outils, onglets, pagination */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar .chips { flex: 1; margin-bottom: 0; }
.toolbar-search { width: 300px; max-width: 100%; }
.toolbar-search.grow { flex: 1; min-width: 220px; }
.select-auto { width: auto; min-width: 120px; }
.tabs {
  display: flex;
  gap: 4px;
  max-width: 100%;
  margin-right: auto;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.tab span {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 11.5px;
  color: var(--text-muted);
}
.tab:hover { color: var(--heading); }
.tab.active { background: var(--surface); color: var(--heading); box-shadow: 0 1px 2px rgba(16, 16, 24, 0.08), 0 0 0 1px var(--border); }
.tab.active span { background: var(--ink); color: var(--on-ink); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-muted); }
.pages { display: flex; gap: 6px; }
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 500;
  color: var(--text-muted);
}
.page-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--heading); }
.page-btn.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Ajouter des fonds */
.funds-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.funds-side { display: flex; flex-direction: column; gap: 20px; }
.step-label { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; font-size: 14px; font-weight: 500; color: var(--heading); }
.step-label span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.method:hover { border-color: var(--text-dim); }
.method.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.method.active::after {
  content: "\f00c";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
}
.method-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--heading);
  font-size: 17px;
}
.method-icon.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
.method strong { display: block; font-size: 14px; font-weight: 500; color: var(--heading); }
.method small { display: block; font-size: 12.5px; color: var(--text-muted); }
.method .pill { margin-top: 6px; }
.amount-input { position: relative; }
.amount-input .input { height: 60px; padding-right: 48px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.amount-input > span { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); font-size: 20px; font-weight: 500; color: var(--text-dim); }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick {
  position: relative;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.quick:hover { background: var(--surface-2); }
.quick.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.quick sup {
  position: absolute;
  top: -8px;
  right: -6px;
  height: 17px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
}
#amount-error { margin-top: 10px; }
.summary { display: grid; gap: 10px; margin: 22px 0 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); font-size: 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); }
.summary .bonus-line span:last-child { font-weight: 500; color: var(--success); }
.summary .total-line { align-items: center; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-weight: 500; color: var(--heading); }
.summary .total-line strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.balance-card { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.balance-card small { font-size: 13px; opacity: 0.65; }
.balance-card .big { display: block; margin: 2px 0 18px; font-size: 36px; font-weight: 600; letter-spacing: -0.04em; }
.balance-card .progress { background: rgba(128, 128, 140, 0.3); }
.balance-card p { margin: 10px 0 0; font-size: 13px; opacity: 0.75; }
.balance-card p b { font-weight: 600; }
.tiers { display: grid; gap: 8px; margin-top: 16px; }
.tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tier.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tier-medal {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--tier);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--tier) 16%, transparent);
}
.tier strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--heading); }
.tier small { font-size: 12.5px; color: var(--text-muted); }
.tier-discount { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--heading); }

/* 7. WIDGETS =============================================================== */
.support { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.support-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 19px;
  box-shadow: 0 12px 28px -10px rgba(16, 16, 40, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}
.support-btn:hover { transform: translateY(-2px); }
.support-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 300px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transform-origin: bottom right;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.support.open .support-pop { opacity: 1; visibility: visible; transform: none; }
.support-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 2px 4px 14px; border-bottom: 1px solid var(--border); }
.support-head strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--heading); }
.support-head small { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.support-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 11px; color: var(--text); transition: background-color 0.15s; }
.support-link:hover { background: var(--surface-2); }
.support-link > i:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--c);
  color: #fff;
  font-size: 16px;
}
.support-link span { flex: 1; font-size: 14px; font-weight: 500; color: var(--heading); }
.support-link small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.support-link > i:last-child { font-size: 11px; color: var(--text-dim); }

.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-ink);
  animation: toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: opacity 0.25s, transform 0.25s;
}
.toast i { font-size: 15px; color: var(--success); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }

.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(9, 9, 14, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 0; }
.modal-head h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 18px 22px; }
.modal-body .svc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }

/* 8. RESPONSIVE ============================================================ */
@media (max-width: 1180px) {
  .order-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .funds-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .float-a { left: -12px; }
  .float-b { right: -12px; }
}

@media (max-width: 1080px) {
  .api-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .faq-intro { position: static; }
  .order-grid, .funds-grid { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funds-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: 284px;
    height: auto;
    box-shadow: var(--shadow-lg);
    transform: translateX(-102%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sidebar.open { transform: none; }
  .sidebar .sidebar-close, .topbar .burger { display: grid; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(9, 9, 14, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .sidebar-backdrop.show { opacity: 1; visibility: visible; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-top .logo { display: inline-flex; }
}

@media (max-width: 900px) {
  .nav-burger { display: grid; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .nav.menu-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
  .nav-links a:hover { background: none; }
  .nav-actions { margin-top: 18px; }
  .nav-actions .btn { flex: 1; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .mock-form { border-right: 0; }
  .mock-orders { border-top: 1px solid var(--border); }
  .float-card { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .hero-sub { font-size: 17px; }
  .showcase { margin-top: 48px; }
  .mock-orders { display: none; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .tile-wide { flex-direction: column; }
  .price-item { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .price-item .meta { display: none; }
  .price-item .amount { text-align: right; }
  .price-item .btn { grid-column: 1 / -1; justify-self: stretch; }
  .pricing-foot { padding: 16px; }
  .cta { padding: 72px 20px; border-radius: 22px; }
  .cta-wrap { padding-bottom: 88px; }
  .card { padding: 20px; }
  .card-table { margin: 0 -20px -20px; width: calc(100% + 40px); }
  .content { padding: 20px 16px 104px; }
  .topbar { gap: 8px; padding: 0 16px; }
  .user-btn { padding: 0 4px; }
  .user-name, .user-btn > i { display: none; }
  .page-hero { padding: 22px 20px; }
  .mini-stats { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stat { min-width: 0; }
  .order-side, .funds-side { grid-template-columns: minmax(0, 1fr); }
  .svc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-total { flex-direction: column; align-items: stretch; }
  .order-total .btn { width: 100%; }
  .methods { grid-template-columns: minmax(0, 1fr); }
  .method { flex-direction: row; align-items: center; }
  .method .pill { margin-top: 4px; }
  .toolbar-search { width: 100%; }
  .support { right: 16px; bottom: 16px; }
  .support-pop { width: min(300px, calc(100vw - 32px)); }
  .toasts { bottom: 84px; }

  /* Tableau des services en cartes sur mobile */
  .svc-table thead { display: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table td { display: block; width: 100%; }
  .svc-table tr:not(.cat-row) { padding: 14px 18px; border-bottom: 1px solid var(--border); }
  .svc-table td, .svc-table td:first-child, .svc-table td:last-child { padding: 3px 0; border: 0; }
  .svc-table .cat-row td { padding: 12px 18px; }
  .svc-table td[data-label] { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
  .svc-table td[data-label]::before { content: attr(data-label); font-family: var(--font-body); color: var(--text-dim); }
  .svc-table td.svc-name { display: block; min-width: 0; padding-bottom: 8px; }
  .svc-table .actions { display: flex; gap: 8px; padding-top: 10px; }
  .svc-table .actions .btn { flex: 1; }
  .svc-table .actions .btn + .btn { margin-left: 0; }
  .svc-table tbody tr:not(.cat-row):hover td { background: none; }
}

@media (max-width: 560px) {
  .hero-title { letter-spacing: -0.04em; }
  .hero-ctas { flex-direction: column; align-self: stretch; }
  .hero-ctas .btn { width: 100%; }
  .mock-form { padding: 18px; }
  .mock-total strong { font-size: 19px; }
  .logos-row { gap: 12px 20px; }
  .logos-row a { font-size: 14px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .code-path { display: none; }
  .code-window pre { padding: 18px; font-size: 12px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .topbar-title, .topbar .icon-btn[aria-label="Notifications"] { display: none; }
  .balance-pill { padding-right: 12px; }
  .balance-pill .plus { display: none; }
  .order-side { display: flex; }
  .auth-form h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
