/* BARAKA'TECH V11 — Production */
:root {
  --bg: #ffffff;
  --bg2: #f4f7fb;
  --bg3: #eef3f9;
  --panel: #ffffff;
  --line: rgba(10, 37, 64, 0.08);
  --line2: rgba(10, 37, 64, 0.14);
  --text: #0a2540;
  --muted: #4a5d73;
  --subtle: #7a8a9c;
  --blue: #0a2540;
  --blue2: #123a5f;
  --blue3: #1a4a75;
  --gold: #b98a50;
  --gold2: #d2ad7a;
  --gold3: #a07840;
  --gold-soft: rgba(185, 138, 80, 0.12);
  --blue-soft: rgba(10, 37, 64, 0.06);
  --r: 16px;
  --max: 1120px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 8px 30px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv.on { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-journey.anim span { animation: none !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
.w { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
section { padding: 96px 0; }
.section-alt { background: var(--bg2); }
.section-blue {
  background: var(--blue);
  color: #f7f9fc;
}
.section-blue .k { color: var(--gold2); }
.section-blue .gold-line { background: var(--gold); }
.section-blue .p,
.section-blue p { color: rgba(247, 249, 252, 0.78); }
.section-blue h2 { color: #fff; }
.center { text-align: center; }
.k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 22px;
  border-radius: 2px;
}
.center .gold-line { margin-left: auto; margin-right: auto; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.05rem; margin-bottom: 6px; }
.p { color: var(--muted); max-width: 560px; margin-bottom: 12px; font-size: 1.02rem; }
.center .p { margin-left: auto; margin-right: auto; }
.gold { color: var(--gold); }

/* Header */
.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.hd.on {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.04);
}
.hd-in {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo img { width: 34px; height: 34px; object-fit: contain; }
.logo b { font-size: 0.92rem; color: var(--blue); }
.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
}
.nav > a:hover { color: var(--text); background: var(--blue-soft); }
.nav .cta {
  margin-left: 8px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.18);
}
.nav .cta:hover { background: var(--blue2); }
.burg {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
}
.burg span,
.burg span::before,
.burg span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: 0.25s;
}
.burg span::before,
.burg span::after { content: ""; position: absolute; left: 0; }
.burg span::before { top: -6px; }
.burg span::after { top: 6px; }
.burg.open span { background: transparent; }
.burg.open span::before { top: 0; transform: rotate(45deg); }
.burg.open span::after { top: 0; transform: rotate(-45deg); }
.mnav {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mnav.open { display: flex; }
.mnav a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
}
.mnav a:hover { color: var(--text); background: var(--bg2); }
.mnav .cta {
  background: var(--blue);
  color: #fff !important;
  text-align: center;
  margin-top: 12px;
}
.mnav .social-row { margin-top: 20px; justify-content: flex-start; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 25px rgba(10, 37, 64, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.2);
  background: var(--blue2);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-g {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--gold);
  box-shadow: none;
}
.btn-g:hover {
  border-color: var(--gold3);
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: none;
}
.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.82rem;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 25px rgba(185, 138, 80, 0.25);
}
.btn-gold:hover {
  background: var(--gold3);
  box-shadow: 0 12px 28px rgba(185, 138, 80, 0.3);
}

/* Reveal */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rv.on { opacity: 1; transform: none; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(185, 138, 80, 0.07), transparent 42%),
    radial-gradient(ellipse at 80% 80%, rgba(10, 37, 64, 0.04), transparent 40%),
    var(--bg);
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-logo {
  width: min(260px, 70vw);
  margin: 0 auto 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--blue);
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.hero .sublead {
  font-size: 0.95rem;
  color: var(--subtle);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-journey {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 6px;
  margin: 24px auto 0;
  max-width: 520px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.hero-journey span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.hero-journey .arr {
  border: none;
  background: none;
  padding: 0 2px;
  color: var(--gold);
}
.hero-journey.anim span:nth-child(1) { animation: pulseStep 4s ease infinite; }
.hero-journey.anim span:nth-child(3) { animation: pulseStep 4s ease infinite 0.5s; }
.hero-journey.anim span:nth-child(5) { animation: pulseStep 4s ease infinite 1s; }
.hero-journey.anim span:nth-child(7) { animation: pulseStep 4s ease infinite 1.5s; }
.hero-journey.anim span:nth-child(9) { animation: pulseStep 4s ease infinite 2s; }
@keyframes pulseStep {
  0%, 100% { border-color: var(--line); color: var(--subtle); }
  20%, 40% { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
}
.meta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* Pass */
.pass-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 36px;
}
.pass-card-ui {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 28px 24px;
  background: linear-gradient(165deg, #0a2540 0%, #061828 100%);
  color: #f7f9fc;
  box-shadow: 0 24px 60px rgba(10, 37, 64, 0.25);
  border: 1px solid rgba(185, 138, 80, 0.4);
  min-height: 280px;
}
.pass-card-ui .pc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.pass-card-ui .pc-top img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}
.pass-card-ui .pc-top strong { font-size: 0.95rem; letter-spacing: 0.04em; }
.pass-card-ui .pc-top small {
  display: block;
  font-size: 0.7rem;
  color: #a8b4c4;
  font-weight: 500;
}
.pass-score { margin: 16px 0; }
.pass-score small {
  font-size: 0.7rem;
  color: #a8b4c4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pass-score strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold2);
  line-height: 1.1;
}
.pass-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.pass-stats div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pass-stats small {
  font-size: 0.65rem;
  color: #a8b4c4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pass-stats b { display: block; font-size: 1.2rem; margin-top: 2px; }
.pass-demo-tag {
  margin-top: 16px;
  font-size: 0.68rem;
  color: #8899aa;
  text-align: center;
  letter-spacing: 0.04em;
}
.pass-steps { display: flex; flex-direction: column; gap: 14px; }
.pass-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.pass-step .n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(185, 138, 80, 0.3);
}
.pass-step strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.pass-step span { font-size: 0.82rem; color: var(--muted); }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(185, 138, 80, 0.4);
  color: var(--gold);
  background: var(--gold-soft);
}

/* Categories partenaires */
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: flex-start;
}
.cat {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cat:hover {
  border-color: var(--gold);
  color: var(--gold3);
  background: var(--gold-soft);
}

/* Solutions grid */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.sol-item {
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sol-item:hover {
  border-color: rgba(185, 138, 80, 0.35);
  box-shadow: var(--shadow-lg);
}
.sol-item .num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.sol-item h3 { font-size: 0.95rem; margin-bottom: 6px; }
.sol-item p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Construction path */
.pub-path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pub-path span { color: var(--gold); }
.pub-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.pub-step {
  padding: 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
}
.pub-step .n {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.pub-step h3 { font-size: 0.95rem; margin-bottom: 6px; }
.pub-step p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Ecosystem */
.eco {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.eco .card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-align: left;
  box-shadow: var(--shadow);
}
.eco .card.hl {
  border-color: rgba(185, 138, 80, 0.4);
  background: linear-gradient(180deg, var(--gold-soft), var(--panel));
}
.eco .role {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.eco h3 { font-size: 1rem; margin-bottom: 6px; }
.eco p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Support section */
.support-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.support-box .note {
  font-size: 0.88rem;
  color: var(--subtle);
  margin-top: 16px;
}

/* Contact */
.contact-clean {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.contact-clean h2 { margin-bottom: 12px; }
.contact-clean .p { margin: 0 auto 24px; }
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.contact-alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-alt p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Trust */
.trust-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* Social */
.social-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--panel);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.social-link:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.hd-social {
  display: none;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.hd-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s;
}
.hd-social a:hover {
  color: var(--gold);
  border-color: rgba(185, 138, 80, 0.35);
  background: var(--gold-soft);
}
.hd-social svg { width: 16px; height: 16px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-switch .lang {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.2s;
}
.lang-switch .lang:hover {
  color: var(--text);
  border-color: var(--gold);
  background: var(--gold-soft);
}
.lang-switch .lang.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.mnav-lang {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}
.ft-social { display: flex; gap: 8px; margin-top: 16px; }
.ft-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  color: var(--muted);
  transition: 0.2s;
}
.ft-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-soft);
}
.ft-social svg { width: 18px; height: 18px; }

/* Footer */
.ft {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.ft h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}
.ft ul { list-style: none; }
.ft li { margin-bottom: 8px; }
.ft a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.ft a:hover { color: var(--gold); }
.ft-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.5;
}
.ft-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--subtle);
}
.ft-bot a { color: var(--subtle); }
.ft-bot a:hover { color: var(--gold); }
.mvp {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(185, 138, 80, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Cookie */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
  max-width: 520px;
  margin: 0 auto;
}
.cookie-banner.show { display: block; }
.cookie-in {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.12);
}
.cookie-in p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.cookie-in a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }

/* Legal pages */
.legal-page { padding: 120px 0 80px; }
.legal-in { max-width: 720px; }
.legal-in h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-in .updated {
  font-size: 0.85rem;
  color: var(--subtle);
  margin-bottom: 32px;
}
.legal-in h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-in p, .legal-in li {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.legal-in ul { padding-left: 1.2em; margin-bottom: 12px; }
.legal-in a { color: var(--gold); text-decoration: underline; }
.legal-in .note {
  margin-top: 32px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* Flow loop (Pass) */
.flow-loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 6px;
  margin: 36px auto 0;
  max-width: 640px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.flow-loop span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.flow-loop .arr {
  border: none;
  background: none;
  padding: 0 2px;
  color: var(--gold);
}

/* Baraka OS prototype */
.os-proto {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg2), var(--panel));
  box-shadow: var(--shadow);
  max-width: 720px;
}
.os-proto-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
}
.os-proto-head strong { font-size: 1rem; }
.os-muted {
  font-size: 0.78rem;
  color: var(--subtle);
}
.os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.os-grid div {
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
}
.os-grid small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  margin-bottom: 4px;
}
.os-grid b {
  font-size: 1.25rem;
  color: var(--blue);
}
.os-grid .os-wide {
  grid-column: 1 / -1;
  background: var(--gold-soft);
  border-color: rgba(185, 138, 80, 0.35);
}
.os-grid .os-wide b { color: var(--gold3); }

/* Timeline construction */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
  pointer-events: none;
}
.tl-step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(185, 138, 80, 0.35);
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}
.tl-label {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.tl-step p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.team-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(185, 138, 80, 0.35);
}
.team-meta .role {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.team-meta h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.team-meta blockquote {
  font-size: 0.92rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.team-role {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* Trust strong */
.trust-strong {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 28px;
}
.trust-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 16px;
  line-height: 1.25;
}

/* Social coulisses */
.social-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.social-card:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.social-card strong { font-size: 0.95rem; }
.social-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Responsive */
@media (min-width: 961px) {
  .hd-social { display: flex; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .burg { display: grid; }
  .hd-in { gap: 10px; }
  .lang-switch { margin-left: auto; margin-right: 4px; }
  .lang-switch .lang { padding: 6px 8px; font-size: 0.7rem; }
  .pass-showcase,
  .sol-grid,
  .pub-steps,
  .eco,
  .ft-grid,
  .team-grid,
  .social-roles,
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .os-grid { grid-template-columns: 1fr 1fr; }
  .os-grid .os-wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .w { width: calc(100% - 32px); }
  section { padding: 72px 0; }
  .hero { padding: 110px 0 64px; }
  .pass-showcase,
  .sol-grid,
  .pub-steps,
  .eco,
  .ft-grid,
  .team-grid,
  .social-roles,
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .tl-step {
    text-align: left;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0 12px;
    align-items: start;
  }
  .tl-dot { margin: 4px 0 0; grid-row: 1 / 3; }
  .tl-label { grid-column: 2; }
  .tl-step p { grid-column: 2; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .cats { justify-content: center; }
  .contact-ctas { flex-direction: column; }
  .team-card { grid-template-columns: 52px 1fr; }
  .team-avatar { width: 52px; height: 52px; font-size: 1rem; }
  .os-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.9rem; }
}

/* Focus visible for a11y */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .flow-loop span,
  .hero-journey.anim span,
  .social-card,
  .team-card,
  .profil-card,
  .video-placeholder { transition: none !important; animation: none !important; }
}

/* ── V11 : Section « Vous êtes… » ── */
.profils-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.profil-card {
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.profil-card:hover {
  border-color: rgba(185, 138, 80, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.profil-card h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}
.profil-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}
.profil-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
  transition: color 0.2s;
}
.profil-cta:hover {
  color: var(--gold3);
}
.profil-cta::after {
  content: " →";
  transition: transform 0.2s;
}
.profil-card:hover .profil-cta::after {
  transform: translateX(3px);
}

/* ── V11.1 : Baraka OS clean ── */
.os-clean {
  margin-top: 32px;
  max-width: 640px;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.os-clean .badge { margin-bottom: 12px; }
.os-clean h3 { font-size: 1.1rem; margin-bottom: 8px; }
.os-clean p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── V11 : Placeholder vidéo ── */
.video-placeholder {
  margin: 32px auto 0;
  max-width: 480px;
  padding: 48px 28px;
  border-radius: 20px;
  border: 1px dashed rgba(185, 138, 80, 0.45);
  background: linear-gradient(180deg, var(--gold-soft), var(--panel));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.3s, background 0.3s;
}
.video-placeholder:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.video-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.2);
}

/* Responsive profils + vidéo */
@media (max-width: 960px) {
  .profils-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .profils-grid { grid-template-columns: 1fr; }
  .video-placeholder { padding: 36px 20px; }
}

/* ── V11.1 : RTL support (Arabic) ── */
[dir="rtl"] .hd-in,
[dir="rtl"] .nav,
[dir="rtl"] .hero-cta,
[dir="rtl"] .profils-grid,
[dir="rtl"] .pass-showcase,
[dir="rtl"] .sol-grid,
[dir="rtl"] .team-grid,
[dir="rtl"] .eco,
[dir="rtl"] .ft-grid,
[dir="rtl"] .social-roles,
[dir="rtl"] .timeline,
[dir="rtl"] .pass-steps,
[dir="rtl"] .cats {
  direction: rtl;
}
[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: 8px;
}
@media (max-width: 960px) {
  [dir="rtl"] .lang-switch {
    margin-right: auto;
    margin-left: 4px;
  }
}
[dir="rtl"] .gold-line {
  margin-right: 0;
}
[dir="rtl"] .center .gold-line {
  margin-left: auto;
  margin-right: auto;
}
[dir="rtl"] .pass-step {
  grid-template-columns: 1fr 40px;
}
[dir="rtl"] .pass-step .n {
  order: 2;
}
[dir="rtl"] .team-card {
  grid-template-columns: 1fr 64px;
}
[dir="rtl"] .team-avatar {
  order: 2;
}
[dir="rtl"] .profil-cta::after {
  content: " ←";
}
[dir="rtl"] .hero-journey .arr,
[dir="rtl"] .flow-loop .arr {
  transform: scaleX(-1);
}
[dir="rtl"] .ft-bot {
  flex-direction: row-reverse;
}
@media (max-width: 640px) {
  [dir="rtl"] .team-card {
    grid-template-columns: 1fr 52px;
  }
  [dir="rtl"] .tl-step {
    grid-template-columns: 1fr 20px;
  }
  [dir="rtl"] .tl-dot {
    grid-column: 2;
  }
  [dir="rtl"] .tl-label,
  [dir="rtl"] .tl-step p {
    grid-column: 1;
  }
}


/* ── V13 : Application BARAKA ── */
.app-spaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.app-space {
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.app-space:hover {
  border-color: rgba(185, 138, 80, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.app-space h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.app-space p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .app-spaces { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .app-spaces { grid-template-columns: 1fr; }
}
