/* ============================================================
   RyzerMT5 — Design System 2026
   Thème sombre professionnel (cohérent avec l'icône produit)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Fonds */
  --bg: #070b12;
  --bg-soft: #0a0f18;
  --surface: #0e141f;
  --surface-2: #131b29;
  --surface-3: #18212f;

  /* Bordures */
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  /* Texte */
  --text: #e8edf5;
  --text-2: #94a0b4;
  --text-3: #5d6a80;

  /* Couleurs de marque */
  --vert: #22c55e;
  --vert-fonce: #16a34a;
  --vert-clair: #4ade80;
  --bleu: #4c8dff;
  --rouge: #f87171;
  --rouge-fonce: #ef4444;
  --ambre: #fbbf24;

  /* Effets */
  --ombre-carte: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
  --lueur-verte: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 4px 24px rgba(34, 197, 94, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Typographie */
  --police: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(76, 141, 255, 0.07), transparent 60%),
    radial-gradient(900px 480px at 10% -5%, rgba(34, 197, 94, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--vert-clair);
}

::selection { background: rgba(34, 197, 94, 0.3); }

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.container.etroit { width: min(720px, 100% - 2.5rem); }

main { display: block; padding: 3rem 0 4rem; min-height: calc(100vh - 300px); }

.section { margin-bottom: 3.5rem; }
.section-titre { text-align: center; margin-bottom: 0.4em; }
.section-sous { text-align: center; color: var(--text-2); max-width: 560px; margin: 0 auto 2.2rem; }

/* ---------- Header public ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none !important;
}
.logo:hover { color: var(--text); }
.logo .logo-mt5 {
  background: linear-gradient(120deg, var(--vert-clair), var(--bleu));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-mark { flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav > a {
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav > a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.nav form { display: contents; }
.nav .lien-bouton {
  background: none;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav .lien-bouton:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.62rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primaire {
  background: linear-gradient(180deg, var(--vert), var(--vert-fonce));
  color: #04170c;
  box-shadow: var(--lueur-verte);
}
.btn-primaire:hover {
  background: linear-gradient(180deg, var(--vert-clair), var(--vert));
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 6px 28px rgba(34, 197, 94, 0.3);
}

.btn-ligne {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ligne:hover { background: var(--surface-3); border-color: var(--text-3); }

.btn-bleu {
  background: linear-gradient(180deg, #5e98ff, #3672e6);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.3), 0 4px 20px rgba(76, 141, 255, 0.2);
}
.btn-bleu:hover { filter: brightness(1.1); }

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--rouge);
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-grand { padding: 0.85rem 1.7rem; font-size: 1.02rem; border-radius: 12px; }
.btn-plein { width: 100%; }

.btn-xs {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 7px;
}
.btn-xs.vert { background: rgba(34, 197, 94, 0.14); color: var(--vert-clair); border-color: rgba(34, 197, 94, 0.3); }
.btn-xs.vert:hover { background: rgba(34, 197, 94, 0.24); }
.btn-xs.rouge { background: rgba(239, 68, 68, 0.12); color: var(--rouge); border-color: rgba(239, 68, 68, 0.3); }
.btn-xs.rouge:hover { background: rgba(239, 68, 68, 0.2); }
.btn-xs.neutre { background: var(--surface-2); color: var(--text-2); border-color: var(--border-strong); }
.btn-xs.neutre:hover { color: var(--text); background: var(--surface-3); }

/* ---------- Cartes / blocs ---------- */
.carte {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--ombre-carte);
  transition: border-color 0.2s, transform 0.2s;
}

.carte-hover:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-3px);
}

.bloc {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--ombre-carte);
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.grille-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vert-clair);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
.badge .point {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 8px var(--vert);
}

.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }

.degrade-texte {
  background: linear-gradient(120deg, var(--vert-clair) 20%, var(--bleu) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-texte {
  color: var(--text-2);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Mockup terminal du hero */
.hero-mockup {
  max-width: 560px;
  margin: 2.8rem auto 0;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre-carte), 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: left;
  animation: apparition 0.7s 0.5s ease backwards;
}

.mockup-barre {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.mockup-barre span.point-fenetre { width: 10px; height: 10px; border-radius: 50%; }
.mockup-barre .point-fenetre:nth-child(1) { background: #f87171; }
.mockup-barre .point-fenetre:nth-child(2) { background: #fbbf24; }
.mockup-barre .point-fenetre:nth-child(3) { background: #22c55e; }
.mockup-barre .titre-fenetre {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--mono);
}

.mockup-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert-clair);
}
.mockup-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vert);
  animation: pulsation 1.8s ease-in-out infinite;
}

/* Journal : lignes empilees par le bas, hauteur fixe, jamais de superposition */
.mockup-corps {
  height: 305px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 1rem 1.15rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.mockup-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.34rem 0;
  line-height: 1.45;
  animation: ligne-entre 0.4s ease both;
}
.mockup-row .heure { color: var(--text-3); font-size: 0.72rem; flex: none; }
.mockup-row .ok { color: var(--vert); flex: none; }
.mockup-row .cle { color: var(--bleu); flex: none; }

.mockup-signal {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}
.mockup-signal.vente {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.mockup-signal .fleche { color: var(--vert); font-weight: 700; flex: none; }
.mockup-signal.vente .fleche { color: var(--rouge); }
.mockup-signal .paire { color: var(--text); font-weight: 700; }
.mockup-signal .valeur-mock { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mockup-row.attente { min-height: 1.9rem; }

/* ---------- Fonctionnalités ---------- */
.fonctionnalite-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--vert-clair);
  margin-bottom: 1rem;
}
.fonctionnalite-icone.bleu {
  background: rgba(76, 141, 255, 0.1);
  border-color: rgba(76, 141, 255, 0.25);
  color: var(--bleu);
}

.carte-fonction p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ---------- Étapes ---------- */
.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  counter-reset: etape;
}

.etape { position: relative; padding-top: 0.5rem; }

.etape-numero {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(76, 141, 255, 0.55);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.etape h3 { margin-bottom: 0.35rem; }
.etape p { color: var(--text-2); font-size: 0.93rem; margin: 0; }

/* ---------- Tarif ---------- */
.carte-prix {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  border-color: rgba(34, 197, 94, 0.3);
  overflow: hidden;
}

.carte-prix::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(300px 120px at 50% -40px, rgba(34, 197, 94, 0.18), transparent 70%);
  pointer-events: none;
}

.prix {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--vert-clair), var(--bleu));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 1rem 0 0.2rem;
}
.prix small { font-size: 1rem; font-weight: 500; color: var(--text-2); -webkit-text-fill-color: var(--text-2); letter-spacing: 0; }

.liste-avantages {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  text-align: left;
}

.liste-avantages li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

.liste-avantages .check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--vert);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.18rem;
}

/* ---------- Formulaires / auth ---------- */
.auth-carte {
  max-width: 420px;
  margin: 2rem auto 0;
  padding: 2.25rem;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-carte h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-sous {
  text-align: center;
  color: var(--text-2);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.champ { margin-bottom: 1.1rem; }

.champ label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.champ label small { font-weight: 400; color: var(--text-3); }

.champ input {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.68rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.champ input::placeholder { color: var(--text-3); }
.champ input:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.15);
}

/* ---------- Alertes ---------- */
.erreur, .message-ok, .avertissement {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.erreur { background: rgba(239, 68, 68, 0.09); border-color: rgba(239, 68, 68, 0.35); color: var(--rouge); }

.message-ok {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--vert-clair);
}

.avertissement {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--ambre);
}

.note {
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Espace client ---------- */
.entete-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.entete-page h1 { margin: 0; font-size: 1.65rem; }

.puce-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.bandeau-statut {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.bandeau-statut.ok {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
  border-color: rgba(34, 197, 94, 0.35);
}
.bandeau-statut.ko {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.03));
  border-color: rgba(239, 68, 68, 0.35);
}
.bandeau-statut strong { display: block; }
.bandeau-statut .detail-statut { color: var(--text-2); font-size: 0.88rem; }

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.5rem;
  margin: 1.25rem 0;
  padding: 0;
}
.details dt { color: var(--text-3); font-size: 0.85rem; font-weight: 500; }
.details dd { margin: 0; font-size: 0.93rem; }

.actions-ligne {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.etat-vide {
  text-align: center;
  padding: 3.5rem 2rem;
}
.etat-vide .icone-etat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-3);
  margin-bottom: 1.1rem;
}
.etat-vide p { color: var(--text-2); max-width: 420px; margin: 0 auto 1.5rem; }

/* ---------- Clé de licence ---------- */
.cle-bloc {
  text-align: center;
  padding: 2.25rem;
}

.cle-affichee {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--vert-clair);
  background: var(--bg-soft);
  border: 1px dashed rgba(34, 197, 94, 0.5);
  border-radius: var(--radius);
  padding: 0.9rem 1.6rem;
  margin: 0.5rem 0 1.25rem;
  user-select: all;
}

.cle-copier { margin-bottom: 1.25rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}

.table th {
  text-align: left;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.95rem;
}

.table td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: rgba(76, 141, 255, 0.04); }
.table td.detail { white-space: normal; min-width: 220px; }

.table .actions-cellule { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.table .actions-cellule form { display: inline-flex; gap: 0.4rem; align-items: center; }
.table input.mini-input {
  width: 64px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 0.28rem 0.5rem;
}

/* ---------- Badges ---------- */
.badge-statut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  border: 1px solid;
}
.badge-statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-statut.ok { color: var(--vert-clair); background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); }
.badge-statut.ko { color: var(--rouge); background: rgba(239, 68, 68, 0.09); border-color: rgba(239, 68, 68, 0.35); }
.badge-statut.att { color: var(--ambre); background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.35); }
.badge-statut.neutre { color: var(--text-2); background: var(--surface-2); border-color: var(--border-strong); }

.pastille { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.5rem; }
.pastille.ok { background: var(--vert); box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
.pastille.ko { background: var(--rouge); box-shadow: 0 0 8px rgba(239, 68, 68, 0.7); }

/* ---------- KPI (admin) ---------- */
.kpi-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--ombre-carte);
}

.kpi-tete { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }

.kpi-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
.kpi-icone.vert { color: var(--vert); background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); }
.kpi-icone.bleu { color: var(--bleu); background: rgba(76, 141, 255, 0.1); border-color: rgba(76, 141, 255, 0.3); }
.kpi-icone.rouge { color: var(--rouge); background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }

.kpi-libelle { font-size: 0.78rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

.kpi-valeur {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.kpi-valeur .unite { font-size: 0.9rem; font-weight: 500; color: var(--text-3); }

/* ---------- Formulaires en ligne (admin) ---------- */
.ligne-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.ligne-form .champ { margin-bottom: 0; flex: 1 1 180px; }

/* ---------- Console admin ---------- */
body.admin { --bg: #060a10; }

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-aside {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.9rem;
  overflow-y: auto;
}

.admin-aside .logo { padding: 0.4rem 0.6rem 1.1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.admin-aside .logo small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 7px;
}

.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.15s;
}
.admin-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.admin-nav a svg { opacity: 0.7; }

.admin-nav .sep { height: 1px; background: var(--border); margin: 0.75rem 0.5rem; }

.admin-pied {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-main {
  padding: 2rem 2.5rem 3rem;
  min-width: 0;
}

.admin-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.admin-entete h1 { margin: 0; font-size: 1.55rem; }

.admin-bloc { margin-bottom: 1.75rem; }
.admin-bloc h2 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.55rem; }
.admin-bloc h2 .compteur {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-marque { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); font-size: 0.88rem; }
.footer-liens { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-liens a { color: var(--text-2); font-size: 0.88rem; }
.footer-liens a:hover { color: var(--text); }

.footer .copyright { color: var(--text-3); font-size: 0.8rem; margin-top: 1.25rem; }

/* ---------- PayPal ---------- */
.paypal-zone { max-width: 320px; margin: 0 auto; }

/* ---------- Animations ---------- */
@keyframes apparition {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulsation {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--vert); }
  50% { opacity: 0.45; box-shadow: 0 0 2px var(--vert); }
}
@keyframes defilement {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes brillance {
  from { background-position: 200% center; }
  to { background-position: -200% center; }
}
@keyframes clignotement {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes ligne-entre {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* Apparition du hero en cascade */
.hero .badge { animation: apparition 0.6s ease backwards; }
.hero h1 { animation: apparition 0.65s 0.12s ease backwards; }
.hero .hero-texte { animation: apparition 0.65s 0.24s ease backwards; }
.hero .cta { animation: apparition 0.65s 0.36s ease backwards; }

.badge .point { animation: pulsation 2.2s ease-in-out infinite; }

/* Prix : degradé qui brille lentement */
.carte-prix .prix {
  background-size: 220% auto;
  animation: brillance 7s linear infinite;
}

/* Curseur "en ligne" du mockup */
.mockup-curseur {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--vert);
  margin-left: 4px;
  vertical-align: -2px;
  animation: clignotement 1s step-end infinite;
}

/* ---------- Ticker de marche ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 0.65rem 0;
  margin-bottom: 3.5rem;
}

.ticker-piste {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: defilement 38s linear infinite;
}

.ticker:hover .ticker-piste { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker-item .paire-ticker { color: var(--text); font-weight: 700; }
.ticker-item .hausse { color: var(--vert); }
.ticker-item .baisse { color: var(--rouge); }
.ticker-item .delta { color: var(--text-3); }

/* ---------- Revelation au scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.r1 { transition-delay: 0.08s; }
.js .reveal.r2 { transition-delay: 0.18s; }
.js .reveal.r3 { transition-delay: 0.28s; }

/* ---------- Survol des icones ---------- */
.fonctionnalite-icone { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.carte-hover:hover .fonctionnalite-icone {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.18);
}
.carte-hover:hover .fonctionnalite-icone.bleu {
  box-shadow: 0 6px 18px rgba(76, 141, 255, 0.18);
}

.etape-numero { transition: -webkit-text-stroke-color 0.25s ease, color 0.25s ease; }
.etape:hover .etape-numero { -webkit-text-stroke-color: var(--bleu); }

/* ---------- Utilitaires ---------- */
.inline { display: inline; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.centre { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-aside {
    position: static;
    height: auto;
    flex-direction: column;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-aside .logo { border-bottom: 0; margin-bottom: 0.5rem; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav .sep { display: none; }
  .admin-pied { border-top: 0; padding-top: 0.5rem; flex-direction: row; }
  .admin-main { padding: 1.5rem 1.25rem 2.5rem; }
}

@media (max-width: 640px) {
  .header-inner { height: auto; padding: 0.75rem 0; flex-direction: column; gap: 0.75rem; }
  main { padding: 2rem 0 3rem; }
  .bloc { padding: 1.25rem; }
  .auth-carte { padding: 1.5rem; }
  .admin-main { padding: 1.25rem 1rem 2rem; }
  .admin-nav { gap: 0.15rem; }
  .admin-nav a { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
}

/* ---------- Accessibilité / mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
