/* ═══════════════════════════════════════════════════════════════
   MagtechPro — site de présentation
   Direction : "le ticket de caisse & le code-barres"
   Palette brief : turquoise #47b8cd · or #CA8A04 · papier #FAFAF9 · sombre #0C0A09
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* lumière */
  --paper: #FAFAF9;
  --card: #FFFFFF;
  --ink: #1B1714;
  --ink-soft: #5B554E;
  --line: #E7E2DA;
  --line-strong: #D8D1C6;

  /* marque */
  --teal: #47b8cd;
  --teal-deep: #1F6E80;      /* texte turquoise AA sur clair */
  --teal-ink: #06262E;       /* texte sur bouton turquoise */
  --teal-tint: #E4F4F7;      /* fond d'icône turquoise */
  --gold: #CA8A04;
  --gold-deep: #8F6403;      /* texte or AA sur clair */
  --gold-tint: #FBF0DC;

  /* sombre (sections nuit) */
  --night: #0B1A20;
  --night-soft: #10262E;
  --night-line: rgba(231, 238, 240, 0.14);
  --on-night: #EAF1F2;
  --on-night-soft: #9DB2B8;
  --teal-night: #6BC9DC;     /* texte turquoise AA sur nuit */
  --gold-night: #F0B429;     /* texte or AA sur nuit */

  /* surfaces thème sombre (data-theme="dark") */
  --dark-paper: #0D1113;
  --dark-card: #141A1D;
  --dark-ink: #F1EEEA;
  --dark-ink-soft: #A9A29A;
  --dark-line: #262E32;
  --dark-line-strong: #374045;

  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 12, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 16, 12, 0.08);
  --shadow-lg: 0 18px 44px rgba(16, 16, 12, 0.14);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --font-ar: "Noto Kufi Arabic", system-ui, sans-serif;

  --header-h: 72px;
}

html[data-theme="dark"] {
  --paper: var(--dark-paper);
  --card: var(--dark-card);
  --ink: var(--dark-ink);
  --ink-soft: var(--dark-ink-soft);
  --line: var(--dark-line);
  --line-strong: var(--dark-line-strong);
  --teal-tint: rgba(71, 184, 205, 0.14);
  --gold-tint: rgba(202, 138, 4, 0.16);
  --teal-deep: #6BC9DC;      /* texte sur sombre */
  --gold-deep: #E4A92F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55);
}

/* ── Base ───────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }

a { color: var(--teal-deep); }
a:hover { color: var(--teal); }

strong { font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

/* ── Typographie ────────────────────────────────────────── */
.d1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.d2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.accent-word { color: var(--teal-deep); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ── Eyebrow (ligne de ticket) ──────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.eyebrow-dot { color: var(--gold-deep); }

.eyebrow-night { color: var(--teal-night); }
.eyebrow-night .eyebrow-dot { color: var(--gold-night); }

/* ── Code-barres ────────────────────────────────────────── */
.barcode-inline {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  height: 18px;
  --bc: currentColor;
  flex: none;
}
.barcode-inline i {
  display: block;
  height: 100%;
  background: var(--bc);
  flex: none;
}
.barcode-inline--night { --bc: var(--on-night); }
.barcode-inline--lg { height: 30px; gap: 3px; }

/* bande séparatrice pleine largeur */
.barcode-divider {
  position: relative;
  height: 34px;
  margin-top: clamp(48px, 7vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px dashed var(--line-strong);
}
.barcode-divider::before { content: ""; }
.barcode-divider .divider-bar {
  display: block;
  height: 22px;
  width: var(--w);
  background: var(--ink);
  opacity: 0.16;
  flex: none;
}
/* le balayage « laser » — le moment signature */
.barcode-divider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  pointer-events: none;
}
.barcode-divider.is-scanned::after {
  animation: scan-sweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}
@keyframes scan-sweep {
  0%   { left: -12%; opacity: 0; }
  12%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { left: 112%; opacity: 0; }
}
.barcode-divider--footer { margin-top: 40px; border-top: none; }
.barcode-divider--footer .divider-bar { background: var(--on-night); opacity: 0.25; }
.barcode-divider--footer::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--teal);
  color: var(--teal-ink);
  box-shadow: 0 2px 0 rgba(6, 38, 46, 0.18);
}
.btn-primary:hover {
  background: #3CA9BF;
  color: var(--teal-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 9px; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.logo-img {
  display: block;
  height: 38px;
  width: auto;
  transition: filter 0.3s ease;
}
/* logo noir → blanc sur fond sombre (thème sombre) */
html[data-theme="dark"] .site-header .logo-img { filter: brightness(0) invert(1); }
/* pastille blanche : garde les couleurs du logo sur fond nuit */
.logo-chip {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 7px 12px;
  box-shadow: var(--shadow-md);
}
.logo-chip .logo-img { height: 30px; }

.site-nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--teal); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--teal-deep); border-color: var(--teal); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-switch:hover { color: var(--teal-deep); border-color: var(--teal); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; justify-content: center; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 8vw, 104px) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-tint), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-copy .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 22px 0 30px;
}
.hero-copy .lede strong { color: var(--ink); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-trust {
  color: var(--gold-deep);
  border-top: 1px dashed var(--line-strong);
  padding-top: 16px;
  max-width: 30em;
}

/* scène « comptoir » */
.hero-stage {
  position: relative;
  padding: 18px 18px 0;
}
.counter-glow {
  position: absolute;
  inset: 8% 6% 0;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 80%, var(--teal-tint), transparent 70%);
  pointer-events: none;
}

.device {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.device img { width: 100%; height: auto; object-fit: cover; }

.device-desktop { position: relative; }
.device-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.device-dots { display: inline-flex; gap: 6px; }
.device-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.device-dots i:first-child { background: #E05C4F; }
.device-dots i:nth-child(2) { background: var(--gold); }
.device-dots i:nth-child(3) { background: #4FAE7C; }
.device-url { color: var(--ink-soft); font-size: 0.72rem; }

.device-phone {
  position: absolute;
  right: -6px;
  bottom: -52px;
  width: min(190px, 42%);
  border-radius: 22px;
  border-width: 3px;
  box-shadow: var(--shadow-lg);
}

.ticket-card {
  position: absolute;
  top: -26px;
  right: 6%;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 200px;
  transform: rotate(2.5deg);
}
.ticket-card .ticket-line { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.ticket-card .ticket-line:first-child { color: var(--gold-deep); font-weight: 700; }
.ticket-card .ticket-ok { color: var(--teal-deep); font-weight: 700; }
.ticket-card .barcode-inline { height: 14px; margin-top: 5px; }

/* bandeau stats */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: clamp(56px, 7vw, 96px);
  padding: 30px 0 26px;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
}
.stat dd {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 16em;
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }

.section-white { background: var(--card); border-top: 1px solid var(--line); }
.section-paper { background: var(--paper); }
.section-night {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(71, 184, 205, 0.16), transparent 60%),
    var(--night);
  color: var(--on-night);
  border-top: 1px solid var(--night-line);
}

.section-head { max-width: 46em; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head .d2 { margin-bottom: 16px; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 40em; }
.section-night .section-intro { color: var(--on-night-soft); }

/* ── Comparaison avant / après ──────────────────────────── */
.split-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 44px;
}
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.compare-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.compare-old:hover { border-color: var(--gold); }
.compare-new:hover { border-color: var(--teal); }

.compare-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.compare-old .compare-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 8px;
}
.compare-new .compare-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  margin-top: 8px;
}

.compare-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}
.mark-x { background: var(--gold-tint); color: var(--gold-deep); }
.mark-check { background: var(--teal-tint); color: var(--teal-deep); }

.compare-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--gold-deep);
  font-size: 0.72rem;
}
.compare-new .compare-foot { color: var(--teal-deep); }

.impact {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 34em;
  color: var(--ink-soft);
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}
.impact strong { color: var(--ink); }
.impact-night {
  color: var(--on-night-soft);
  border-left-color: var(--gold-night);
  margin-top: 48px;
}
.impact-night strong { color: var(--on-night); }

/* ── Modules ────────────────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.module-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.module-icon svg { width: 24px; height: 24px; }
.module-code { color: var(--gold-deep); font-size: 0.68rem; font-weight: 700; }

.module-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.module-desc { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.module-card .barcode-inline { height: 14px; opacity: 0.55; margin-top: 4px; }
.module-card:hover .barcode-inline { opacity: 1; }

.module-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.module-foot strong { color: var(--teal-deep); }

/* ── Bandeau défilant des captures ──────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  cursor: grab;
  margin-top: clamp(36px, 5vw, 56px);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.marquee.is-dragging { cursor: grabbing; }
/* dégradés de bord : signalent une boucle continue */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  flex: 0 0 auto;
  width: min(420px, 74vw);
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.marquee-item img { width: 100%; height: auto; display: block; }

.marquee-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.marquee-hint {
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0;
}
.marquee-arrows { display: flex; gap: 8px; }

.marquee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.marquee-btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  transform: translateY(-1px);
}
.marquee-btn svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; cursor: default; scrollbar-width: thin; }
  .marquee-arrows { display: none; }
}

/* ── Blocs de captures (desktop / mobile) ──────────────── */
.shots-block { margin-top: clamp(26px, 3.4vw, 44px); }
.shots-block + .shots-block { margin-top: clamp(44px, 6vw, 72px); }

.shots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.shots-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.shots-pill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-tint);
  flex: none;
}
.shots-pill--phone { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.shots-count {
  color: var(--gold-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* légende sous chaque capture */
.marquee-item .shot-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 13px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.shot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.shot-code {
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* bandeau téléphone : cadres étroits façon appareil */
.marquee--phone .marquee-item {
  width: min(220px, 56vw);
  border-radius: 22px;
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.marquee--phone .marquee-item img { aspect-ratio: 412 / 915; object-fit: cover; object-position: top; }
.marquee--phone .marquee-item .shot-cap { padding: 10px 12px 11px; }
.marquee--phone .shot-title { font-size: 0.82rem; }
.marquee--phone .shot-code { font-size: 0.58rem; }

/* ── Agrandissement des captures (lightbox) ─────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 12, 16, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox[open] { opacity: 1; pointer-events: auto; }
/* l'image occupe tout l'écran (plein cadre, sans carte blanche) */
.lightbox-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox[open] .lightbox-figure { transform: scale(1); }
.lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
/* légende en surimpression sur l'image (jamais de fond blanc) */
.lightbox-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 44px 52px 18px;
  background: linear-gradient(0deg, rgba(9, 12, 16, 0.92) 12%, rgba(9, 12, 16, 0.55) 55%, transparent);
  border: none;
}
.lightbox-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #F2EFE9;
}
.lightbox-count { color: rgba(242, 239, 233, 0.62); font-size: 0.68rem; letter-spacing: 0.14em; }
.lightbox-code { color: #E9B45B; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; }

/* boutons sombres translucides (lisibles sur l'image claire ou sombre) */
.lightbox-close,
.lightbox-arrow {
  z-index: 3;
  background: rgba(12, 16, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #EDEAE3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-close:hover,
.lightbox-arrow:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.lightbox-close {
  position: absolute;
  inset-inline-end: clamp(14px, 3vw, 32px);
  inset-block-start: clamp(14px, 3vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { transform: translateY(-1px); }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-arrow {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lightbox-arrow:hover { transform: translateY(-50%); }
.lightbox-arrow svg { width: 22px; height: 22px; }
.lightbox-arrow--prev { inset-inline-start: clamp(8px, 2vw, 24px); }
.lightbox-arrow--next { inset-inline-end: clamp(8px, 2vw, 24px); }

/* miroir des flèches en RTL (sens de lecture arabe) */
html[dir="rtl"] .lightbox-arrow svg { transform: scaleX(-1); }

@media (max-width: 560px) {
  .lightbox-cap { padding: 34px 18px 14px; }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-arrow svg { width: 18px; height: 18px; }
}

/* ── Plateformes ────────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 54px;
}
.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.platform-icon svg { width: 25px; height: 25px; }
.platform-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.platform-desc { color: var(--ink-soft); font-size: 0.93rem; }

.offline-note {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}
.offline-shot {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.offline-copy h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.offline-copy p { color: var(--ink-soft); font-size: 0.97rem; }
.offline-copy .impact-line {
  margin-top: 16px;
  color: var(--teal-deep);
  font-weight: 600;
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
}

/* ── Équipe ─────────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 54px;
}
.role {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.role:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.role-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.role-perm { color: var(--ink-soft); font-size: 0.9rem; }

.audit {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--night);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  color: var(--on-night);
}
.audit-screen {
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: var(--night-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-line { color: var(--on-night-soft); font-size: 0.72rem; line-height: 1.5; }
.audit-line:first-child { color: var(--teal-night); }
.audit-copy h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.audit-copy p { color: var(--on-night-soft); font-size: 0.97rem; }

/* ── Algérie (nuit) ─────────────────────────────────────── */
.dz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dz-item {
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.dz-item:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 180, 41, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.dz-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(240, 180, 41, 0.12);
  color: var(--gold-night);
  margin-bottom: 14px;
}
.dz-icon svg { width: 24px; height: 24px; }
.dz-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--on-night);
}
.dz-item p { color: var(--on-night-soft); font-size: 0.92rem; }

.carriers {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px dashed var(--night-line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
}
.carriers-label { color: var(--gold-night); font-size: 0.7rem; font-weight: 700; }
.carriers-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.carriers-list li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--on-night-soft);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.carriers-list li:hover { color: var(--teal-night); border-color: var(--teal); }

.dz-carriers {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px dashed var(--night-line);
}
.dz-carriers-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--on-night);
  margin-bottom: 10px;
}
.dz-carriers-text {
  color: var(--on-night-soft);
  font-size: 0.95rem;
  max-width: 46em;
  margin-bottom: 18px;
}
.dz-carriers .carriers-list { margin-top: 4px; }
.carriers-list li.carriers-more {
  border-style: dashed;
  color: var(--gold-night);
  border-color: rgba(240, 180, 41, 0.45);
}
.carriers-list li.carriers-more:hover { color: var(--teal-night); border-color: var(--teal); }

.rtl-demo {
  margin-top: 40px;
  border: 1px dashed rgba(240, 180, 41, 0.55);
  border-radius: var(--radius-lg);
  background: rgba(240, 180, 41, 0.05);
  padding: clamp(22px, 3vw, 34px);
}
.rtl-text {
  font-family: var(--font-ar);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--gold-night);
  line-height: 1.9;
}
.rtl-caption { color: var(--on-night-soft); font-size: 0.9rem; margin-top: 14px; }

/* ── Ticket tarif ───────────────────────────────────────── */
.ticket {
  max-width: 600px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--ticket-pad);
  --ticket-pad: clamp(30px, 5vw, 46px);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-strong);
}
.ticket-store {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: auto;
}
.ticket-store .ticket-divider { color: var(--gold-deep); margin: 0 8px; }
.ticket-no { color: var(--gold-deep); font-size: 0.7rem; }

.ticket-price { text-align: center; padding: 34px 0 10px; }
.ticket-amount {
  font-size: clamp(3rem, 8vw, 4.2rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ticket-period { color: var(--ink-soft); font-size: 1.02rem; margin-top: 12px; }

.ticket-items {
  list-style: none;
  padding: 24px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed var(--line-strong);
}
.ticket-items li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 0.97rem; }

.ticket-perf {
  border-top: 1px dashed var(--line-strong);
  position: relative;
}
/* micro-perforation : trous aux bords du ticket */
.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket-perf::before { left: calc(-1 * var(--ticket-pad)); }
.ticket-perf::after { right: calc(-1 * var(--ticket-pad)); }

.ticket-conversion {
  padding-top: 22px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  text-align: center;
}

.ticket-foot {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.ticket-foot .barcode-inline { align-self: center; }
.ticket-scan { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.22em; }

/* ── Option complémentaire : site web relié au stock ────── */
.ticket-option {
  margin: 26px 0 0;
  background: var(--card);
  border: 1px dashed var(--teal);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ticket-option:hover { transform: translateY(-3px); border-color: var(--teal); }
.ticket-option-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.ticket-option-text { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ── CTA final / formulaire ─────────────────────────────── */
.section-cta {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(71, 184, 205, 0.14), transparent 60%),
    var(--night);
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cta-grid > * { min-width: 0; }
.cta-copy h2 { margin-bottom: 18px; }
.cta-copy > p { color: var(--on-night-soft); font-size: 1.02rem; max-width: 34em; }

.cta-promises {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-promises li { display: flex; align-items: center; gap: 12px; color: var(--on-night); font-size: 0.95rem; }
.cta-promises .mark-check { background: rgba(71, 184, 205, 0.16); color: var(--teal-night); }

.demo-form {
  background: var(--night-soft);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-form[hidden],
.demo-success[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-night);
}
.label-opt { color: var(--on-night-soft); text-transform: none; letter-spacing: 0.02em; }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--on-night);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--night-line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(157, 178, 184, 0.55); }
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-night-soft) 50%), linear-gradient(135deg, var(--on-night-soft) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.form-field select option { background: var(--night-soft); color: var(--on-night); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(71, 184, 205, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.form-field textarea { resize: vertical; min-height: 84px; }

.form-alt { color: var(--on-night-soft); text-align: center; font-size: 0.75rem; }
.form-alt a { color: var(--teal-night); }

.demo-success {
  background: var(--night-soft);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
  align-self: start;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(71, 184, 205, 0.16);
  color: var(--teal-night);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.demo-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.demo-success p { color: var(--on-night-soft); max-width: 26em; margin-inline: auto; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #061014;
  color: var(--on-night);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: var(--on-night); }
.footer-tagline { color: var(--on-night-soft); font-size: 0.92rem; margin-top: 14px; max-width: 26em; }
.footer-ar {
  font-family: var(--font-ar);
  color: var(--gold-night);
  font-size: 0.95rem;
  margin-top: 12px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--on-night-soft); text-decoration: none; font-size: 0.94rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--teal-night); }
.footer-meta { color: var(--on-night-soft); display: flex; flex-direction: column; gap: 8px; font-size: 0.74rem; text-align: right; }

/* ── Apparition au scroll ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* stagger du hero */
.hero-copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.28s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.36s; }
.hero-stage.reveal { transition-delay: 0.2s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .dz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 640px; margin-inline: auto; width: 100%; }
  .ticket-card { top: -20px; right: 2%; }
  .split-compare { grid-template-columns: 1fr; }
  .offline-note { grid-template-columns: 1fr; }
  .audit { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .module-grid, .platform-grid, .roles-grid, .dz-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .header-actions .btn-sm { display: none; }
  .device-phone { bottom: -34px; right: 0; }
  .ticket-card { min-width: 168px; padding: 10px 12px 9px; }
  .ticket-card .ticket-line { font-size: 0.64rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Réduction de mouvement ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .barcode-divider::after { display: none; }
}