/* ============================================================
   ARCA SUITE — Talentys · Ontology-governed platform
   Pure HTML/CSS/JS — aucun framework, aucun build.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0b;
  --panel: #131316;
  --panel-2: #17171b;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(120deg, #6366f1, #8b5cf6);
  --radius: 18px;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(99, 102, 241, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #26262b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #34343c; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Utilitaires ---------- */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(124, 92, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(124, 92, 246, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand img { width: 176px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}
.nav-cta:hover { background: rgba(99, 102, 241, 0.18); border-color: rgba(139, 92, 246, 0.5); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 0%, rgba(10, 10, 11, 0.55) 60%, var(--ink) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.4) 0%, transparent 30%, transparent 62%, var(--ink) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(19, 19, 22, 0.6);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 1.6rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.25rem;
}
.hero-stats dd { font-size: 1.02rem; color: var(--text); }

/* ---------- Bandeau défilant ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  background: var(--panel);
}
.strip-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.strip-track i { color: var(--violet); font-style: normal; font-size: 0.6rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 110px 24px; }
.section-alt {
  max-width: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.07), transparent 70%),
    var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 760px; margin: 0 auto 3.6rem; text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  font-weight: 600;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; margin-bottom: 1.1rem; }
.lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Manifeste : trois lois ---------- */
.laws {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.law {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.law:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 22px 44px -20px rgba(99, 102, 241, 0.35);
}
.law-num {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 92, 246, 0.45);
  line-height: 1;
}
.law h3 { font-size: 1.25rem; margin-bottom: 0.9rem; padding-right: 3rem; }
.law p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Modules ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.module {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.module:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--panel-2); }
.module h3 { font-size: 1.2rem; margin: 0.85rem 0 0.6rem; }
.module p { color: var(--muted); font-size: 0.9rem; flex: 1; }

.module-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid;
}
.module-tag.arcaq  { color: #a5b4fc; border-color: rgba(99, 102, 241, 0.5);  background: rgba(99, 102, 241, 0.12); }
.module-tag.arcax  { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.5);  background: rgba(139, 92, 246, 0.12); }
.module-tag.room   { color: #93c5fd; border-color: rgba(96, 165, 250, 0.5);  background: rgba(96, 165, 250, 0.1); }
.module-tag.trust  { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.module-tag.cert   { color: #fcd34d; border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); }
.module-tag.bench  { color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); }
.module-tag.hub    { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.1); }
.module-tag.packs  { color: #d8b4fe; border-color: rgba(192, 132, 252, 0.45); background: rgba(192, 132, 252, 0.1); }

.module-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.72rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim) !important;
  flex: none;
}
.module-status .ok {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

/* ---------- Cycle de décision ---------- */
.cycle {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.9rem;
  position: relative;
}
.cycle::before {
  content: "";
  position: absolute;
  top: 26px; left: 4%; right: 4%;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0.05));
  z-index: 0;
}
.cycle-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.2rem;
}
.cycle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #c4b5fd;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 5px var(--panel), 0 0 22px -4px rgba(124, 92, 246, 0.5);
}
.section-alt .cycle-num { box-shadow: 0 0 0 5px var(--panel), 0 0 22px -4px rgba(124, 92, 246, 0.5); }
.cycle-step h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.cycle-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.cycle-step em { color: #c4b5fd; font-style: normal; }

/* ---------- Architecture ---------- */
.arch-grid { display: grid; gap: 1.4rem; }
.arch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.arch-badges span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.arch-badges span:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.55); }

.arch-nist, .arch-live {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
}
.arch-nist h3, .arch-live h3 {
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.nist-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nist-grid p { font-size: 0.88rem; color: var(--muted); }

.arch-live ul { list-style: none; }
.arch-live li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.arch-live li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.arch-live strong { color: var(--text); }

/* ---------- CTA ---------- */
.cta { padding: 120px 24px; }
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 28px;
  padding: 4rem 2.5rem;
}
.cta-mark { margin: 0 auto 1.6rem; filter: drop-shadow(0 8px 24px rgba(124, 92, 246, 0.45)); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 2.2rem; }

/* Carte HubSpot (fond clair pour le rendu natif du formulaire) */
.hs-card {
  max-width: 560px;
  margin: 2.6rem auto 0;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 1.8rem 1.2rem;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hs-card .hs-form-frame { width: 100%; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 24px 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand p { color: var(--dim); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.8rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-base {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.4rem 24px 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--dim);
  font-size: 0.82rem;
}
.footer-note { font-family: var(--font-display); letter-spacing: 0.04em; }

/* ---------- Révélations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: repeat(4, 1fr); row-gap: 2.2rem; }
  .cycle::before { display: none; }
  .nist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 24px 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; margin-top: 0.7rem; text-align: center; }
  .nav-burger { display: flex; }

  .laws { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.4rem; }
  .section { padding: 80px 20px; }
  .footer-inner { flex-direction: column; gap: 1.8rem; }
}
@media (max-width: 520px) {
  .modules-grid { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; }
  .nist-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .law, .module { transition: none; }
}

/* ---------- Outils de navigation (langue + burger) ---------- */
.nav-tools { display: flex; align-items: center; gap: 0.8rem; }
.lang-select {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-select:hover { border-color: rgba(139, 92, 246, 0.5); }
.lang-select option { background: var(--panel); color: var(--text); }

/* ---------- Démos vidéo ---------- */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.demo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.demo-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.4); }
.demo-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.demo-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}
.demo-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Écosystème / backlinks ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.eco-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.eco-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 22px 44px -20px rgba(99, 102, 241, 0.35);
}
.eco-domain {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.eco-card h3 { font-size: 1.35rem; }
.eco-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.eco-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ---------- RTL (arabe, hébreu) ---------- */
[dir="rtl"] .strip-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
[dir="rtl"] .law-num { right: auto; left: 1.6rem; }
[dir="rtl"] .law h3 { padding-right: 0; padding-left: 3rem; }
[dir="rtl"] .arch-live li { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .arch-live li::before { left: auto; right: 0; }
[dir="rtl"] .cycle::before { background: linear-gradient(-90deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0.05)); }

/* ---------- Responsive : nouvelles sections ---------- */
@media (max-width: 1020px) {
  .demos-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-tools { gap: 0.5rem; }
  .lang-select { font-size: 0.78rem; padding: 0.4rem 0.7rem; max-width: 9.5rem; }
}
