/* Taroua · تروى — portail principal
   Palette : Forest #142C28 · Ivory #F4F1E8 · Sage #B8C7B0 · Sand #D4A96A · Knowledge Blue #263C53 · Paper #E9E5D5 */

:root {
  --forest: #142c28;
  --forest-2: #1d3a35;
  --ivory: #f4f1e8;
  --sage: #b8c7b0;
  --sand: #d4a96a;
  --sand-deep: #9a6f2e;
  --blue: #263c53;
  --paper: #e9e5d5;
  --ink: #142c28;
  --ink-2: #3f514c;
  --line: rgba(20, 44, 40, 0.14);
  --line-strong: rgba(20, 44, 40, 0.28);

  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-ar-display: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --wrap: 1200px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20, 44, 40, 0.06), 0 8px 30px -12px rgba(20, 44, 40, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--f-ar); font-size: 18px; line-height: 1.75; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 36px); } }

.ar-display { font-family: var(--f-ar-display); font-weight: 700; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ico.arr { transform: scaleX(-1); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--ivory); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--sand-deep); outline-offset: 3px; border-radius: 4px; }

/* ── Typo commune ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12.5px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand-deep);
}
[dir="rtl"] .eyebrow { font-family: var(--f-ar); letter-spacing: 0; font-size: 15px; }
.eyebrow .num {
  font-family: var(--f-display); font-size: 15px; letter-spacing: 0; color: var(--ink);
  padding-inline-end: 12px; border-inline-end: 1px solid var(--line-strong);
}
[dir="rtl"] .eyebrow .num { font-family: var(--f-ar); font-weight: 600; }

h1, h2 { font-family: var(--f-display); letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-family: var(--f-ar-display); font-weight: 700; letter-spacing: 0; }
h3 { font: 600 19px/1.3 var(--f-body); letter-spacing: -0.005em; }
[dir="rtl"] h3 { font-family: var(--f-ar); font-size: 20px; }

.lead { color: var(--ink-2); font-size: 18.5px; max-width: 60ch; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 12px/1 var(--f-body); padding: 6px 10px; border-radius: 99px;
  background: rgba(20, 44, 40, 0.06); color: var(--ink-2); white-space: nowrap;
}
[dir="rtl"] .badge { font-family: var(--f-ar); font-size: 13px; }
.badge .ico { width: 13px; height: 13px; }
.badge-live { background: #dfe8da; color: #24493c; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3d7a5f; box-shadow: 0 0 0 3px rgba(61, 122, 95, 0.2); }
.sheet .badge-live::before { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 99px; text-decoration: none;
  font: 500 15.5px/1 var(--f-body); border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
[dir="rtl"] .btn { font-family: var(--f-ar); font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--forest); }
.btn-sand { background: var(--sand); color: var(--forest); }
.btn-sand:hover { background: #dfb87c; }

/* ── En-tête ── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 232, 0.86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand-ar { font-size: 28px; line-height: 1; transform: translateY(-2px); }
.brand-sep { width: 1px; height: 20px; background: var(--line-strong); }
.brand-lat { font: 600 14px/1 var(--f-body); letter-spacing: 0.28em; }

.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 99px; font-size: 15px; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(20, 44, 40, 0.06); color: var(--ink); }
.main-nav a.active { color: var(--ink); background: rgba(20, 44, 40, 0.07); }

.head-tools { display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2);
}
[dir="rtl"] .lang { padding: 4px 10px 4px 4px; }
.lang .ico { width: 15px; height: 15px; margin-inline-end: 4px; }
.lang a {
  text-decoration: none; font: 600 12.5px/1 var(--f-body); letter-spacing: 0.06em;
  padding: 7px 9px; border-radius: 99px; min-width: 32px; text-align: center;
}
.lang a[lang="ar"] { font-family: var(--f-ar); font-size: 14px; letter-spacing: 0; padding-block: 5px 6px; }
.lang a[aria-current] { background: var(--forest); color: var(--ivory); }
.lang a:not([aria-current]):hover { background: rgba(20, 44, 40, 0.07); color: var(--ink); }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 99px; width: 42px; height: 42px; place-items: center; cursor: pointer; }
.menu-btn .ico { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .head-tools { margin-inline-start: auto; }
  .main-nav {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 18px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 10px; border-radius: 10px; font-size: 17px; }
}
@media (max-width: 420px) {
  .brand-sep, .brand-lat { display: none; }
}

/* ── Hero ── */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 30%, rgba(184, 199, 176, 0.35), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(212, 169, 106, 0.14), transparent 70%);
}
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.02; margin-top: 22px; max-width: 16ch; }
[dir="rtl"] .hero h1 { line-height: 1.3; font-size: clamp(44px, 6.4vw, 82px); }
.signature { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.signature .ar-display { font-size: clamp(30px, 3.6vw, 42px); color: var(--sand-deep); line-height: 1.2; }
.signature .gloss { font-family: var(--f-display); font-style: italic; color: var(--ink-2); font-size: 18px; }
.hero-lead { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 48ch; }

.search { position: relative; margin-top: 30px; max-width: 560px; }
.search label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.search-box {
  display: flex; align-items: center; gap: 10px; background: #fffdf7;
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s;
}
[dir="rtl"] .search-box { padding: 6px 18px 6px 6px; }
.search-box:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(20, 44, 40, 0.08), var(--shadow); }
.search-box .ico { color: var(--ink-2); }
.search-box input {
  flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16.5px; color: var(--ink); padding: 10px 0;
}
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box button {
  border: 0; cursor: pointer; background: var(--forest); color: var(--ivory);
  padding: 12px 20px; border-radius: 99px; font-weight: 500; font-size: 15px;
}
.search-box button:hover { background: var(--forest-2); }
.search-results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 20;
  background: #fffdf7; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; max-height: 360px; overflow: auto;
}
.search-results a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none;
}
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--paper); }
.search-results .r-main { flex: 1; min-width: 0; }
.search-results .r-t { display: block; font-weight: 600; }
.search-results .r-s { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results mark { background: rgba(212, 169, 106, 0.35); color: inherit; border-radius: 3px; }
.search-empty { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-visual { position: relative; }
.kgraph { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.kg-ripples circle { fill: none; stroke: var(--forest); stroke-opacity: 0.08; }
.kg-ripples circle:nth-child(1) { stroke-opacity: 0.16; }
.kg-ring line { stroke: var(--forest); stroke-opacity: 0.16; stroke-dasharray: 3 5; }
.kg-links line { stroke: var(--forest); stroke-opacity: 0.22; }
.kg-sat circle { fill: var(--sage); animation: twinkle 4s ease-in-out infinite; animation-delay: var(--d); }
.kg-node { text-decoration: none; cursor: pointer; }
.kg-node circle { fill: #fffdf7; stroke: var(--forest); stroke-width: 1.2; transition: fill 0.25s; }
.kg-node .kg-ico { color: var(--forest); }
.kg-node .kg-ico path, .kg-node .kg-ico polyline, .kg-node .kg-ico line, .kg-node .kg-ico rect, .kg-node .kg-ico ellipse, .kg-node .kg-ico circle {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.kg-node .kg-ico circle[fill] { fill: currentColor; }
.kg-node text { font: 500 13.5px var(--f-body); fill: var(--ink); }
[dir="rtl"] .kg-node text { font-family: var(--f-ar); font-size: 15px; }
.kg-node.live > circle { fill: var(--sand); stroke: var(--sand-deep); }
.kg-node:hover > circle, .kg-node:focus-visible > circle { fill: var(--sage); }
.kg-center circle { fill: var(--forest); }
.kg-center text { fill: var(--ivory); font-size: 30px; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kg-sat circle { animation: none; opacity: 0.7; } }

.verbs {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 28px); color: var(--ink-2);
}
[dir="rtl"] .verbs { font-family: var(--f-ar-display); }
.verbs .dot { color: var(--sand); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .hero { padding-top: 24px; }
}
@media (max-width: 600px) {
  .hero-visual { max-width: 340px; }
  .kg-node text { font-size: 19px; }
  [dir="rtl"] .kg-node text { font-size: 21px; }
  .search-box button { padding: 12px 14px; }
}

/* ── Sections ── */
.sec { padding: 104px 0; }
@media (max-width: 760px) { .sec { padding: 72px 0; } }
.sec-head { margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; margin: 16px 0 14px; max-width: 20ch; }
[dir="rtl"] .sec-head h2 { line-height: 1.35; }
.sec-paper { background: var(--paper); }
.sub { font: 600 13px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 18px; }
[dir="rtl"] .sub { font-family: var(--f-ar); letter-spacing: 0; font-size: 15px; }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Disciplines */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .domains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .domains { grid-template-columns: 1fr; } }
.domain {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px; border-radius: var(--r); background: #fbf9f2; border: 1px solid var(--line);
  text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.domain.is-live { background: #fffdf7; }
a.domain:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.domain-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.domain-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--paper); color: var(--forest);
}
.domain.is-live .domain-ico { background: var(--forest); color: var(--sand); }
.domain-ico .ico { width: 24px; height: 24px; }
.domain h3 { font-family: var(--f-display); font-weight: 400; font-size: 27px; line-height: 1.15; }
[dir="rtl"] .domain h3 { font-family: var(--f-ar-display); font-weight: 700; font-size: 28px; }
.domain-verb { color: var(--sand-deep); font-weight: 500; font-size: 15px; }
.domain-desc { color: var(--ink-2); font-size: 15.5px; }
.domain-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14.5px; }

/* À la une */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.kcard {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r);
  background: var(--ivory); border: 1px solid var(--line); text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.kcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kcard-domain { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--sand-deep); }
.kcard h3 { font-family: var(--f-display); font-weight: 400; font-size: 23px; line-height: 1.2; }
[dir="rtl"] .kcard h3 { font-family: var(--f-ar-display); font-weight: 700; font-size: 24px; }
.kcard p:not(.kcard-domain) { font-size: 15px; color: var(--ink-2); }
.kcard-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 6px; background: var(--forest); color: var(--ivory); }
.chip-soft { background: rgba(20, 44, 40, 0.07); color: var(--ink-2); }
.kcard-open { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }

/* Parcours */
.paths-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .paths-grid { grid-template-columns: 1fr; } }
.modes { display: grid; gap: 4px; }
.mode { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.mode:first-child { border-top: 1px solid var(--line); }
.mode-letter {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--forest); font-family: var(--f-display); font-size: 24px;
}
[dir="rtl"] .mode-letter { font-family: var(--f-ar-display); font-weight: 700; }
.mode h3 { margin-bottom: 4px; }
.mode p { color: var(--ink-2); font-size: 16px; }

.path-card { background: var(--forest); color: var(--ivory); border-radius: 20px; padding: 36px; }
.path-card .eyebrow { color: var(--sand); }
.path-card > h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 10px 0 26px; }
[dir="rtl"] .path-card > h3 { font-family: var(--f-ar-display); font-weight: 700; }
.steps { position: relative; display: grid; gap: 0; }
.step { position: relative; display: flex; gap: 18px; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; inset-inline-start: 17px; top: 36px; bottom: 0; width: 1px; background: rgba(244, 241, 232, 0.2);
}
.step:last-child::before { display: none; }
.step-n {
  flex: none; width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.35); font-size: 14px; font-weight: 600;
}
.step.live .step-n { background: var(--sand); border-color: var(--sand); color: var(--forest); }
.step h4 { font-weight: 600; font-size: 17px; }
.step p { color: rgba(244, 241, 232, 0.72); font-size: 15px; }
.step-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--sand); font-size: 14px; font-weight: 600; text-decoration: none; }
.step-link:hover { text-decoration: underline; }

/* Laboratoires */
.sec-forest { background: var(--forest); color: var(--ivory); }
.sec-forest .eyebrow { color: var(--sand); }
.sec-forest .eyebrow .num { color: var(--ivory); border-color: rgba(244, 241, 232, 0.3); }
.sec-forest .lead { color: rgba(244, 241, 232, 0.75); }
.labs { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 20px; }
@media (max-width: 1060px) { .labs { grid-template-columns: 1fr 1fr; } .lab-next { grid-column: 1 / -1; } }
@media (max-width: 700px) { .labs { grid-template-columns: 1fr; } }
.lab {
  display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 20px;
  background: var(--forest-2); border: 1px solid rgba(244, 241, 232, 0.1);
}
.lab-art { color: var(--sage); opacity: 0.85; height: 120px; margin-bottom: 10px; }
.lab-art svg { height: 100%; width: auto; }
.lab-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
[dir="rtl"] .lab-kicker { letter-spacing: 0; font-size: 15px; }
.lab h3 { font-family: var(--f-display); font-weight: 400; font-size: 38px; line-height: 1; }
[dir="rtl"] .lab h3 { font-family: var(--f-ar-display); font-weight: 700; line-height: 1.3; }
.lab-host { font-size: 14px; color: var(--sand); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
[dir="rtl"] .lab-host { text-align: end; }
.lab > p:not(.lab-kicker):not(.lab-host) { color: rgba(244, 241, 232, 0.78); font-size: 16px; }
.ticks { display: grid; gap: 8px; margin: 6px 0 14px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ticks .ico { color: var(--sand); }
.lab .btn { align-self: flex-start; margin-top: auto; }
.lab-next { background: transparent; border: 1px dashed rgba(244, 241, 232, 0.3); justify-content: center; }
.lab-next h3 { font-size: 30px; }
.lab-plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244, 241, 232, 0.3); font-size: 26px; color: var(--sand); }

/* Bibliothèque */
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .lib-grid { grid-template-columns: 1fr; } }
.lib-grid .sec-head { margin-bottom: 32px; }
.statuses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .statuses { grid-template-columns: 1fr; } }
.status { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: #fbf9f2; border: 1px solid var(--line); }
.status div { display: grid; gap: 2px; }
.status strong { font-weight: 600; }
.status span:not(.status-dot) { font-size: 14.5px; color: var(--ink-2); }
.status-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.s0 .status-dot { border: 2px solid rgba(20, 44, 40, 0.35); }
.s1 .status-dot { background: var(--sage); }
.s2 .status-dot { background: var(--sand); }
.s3 .status-dot { background: var(--forest); box-shadow: 0 0 0 3px var(--sage); }

.sheet {
  position: relative; background: #fffdf7; border: 1px solid var(--line); border-radius: 20px; padding: 34px;
  box-shadow: var(--shadow); overflow: hidden;
}
.sheet::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--sand); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.sheet h3 { font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1.15; }
[dir="rtl"] .sheet h3 { font-family: var(--f-ar-display); font-weight: 700; }
.sheet-meta { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.sheet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .sheet-cols { grid-template-columns: 1fr; } }
.sheet h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand-deep); margin-bottom: 10px; }
[dir="rtl"] .sheet h4 { letter-spacing: 0; font-size: 15px; }
.sheet li { position: relative; padding-inline-start: 16px; font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.sheet li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.72em; width: 6px; height: 1px; background: var(--ink-2); }
.soon-ribbon {
  position: absolute; bottom: 18px; inset-inline-end: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sand-deep); border: 1px solid var(--sand); padding: 5px 10px; border-radius: 99px;
}

/* Intelligence */
.sec-blue { background: var(--blue); color: var(--ivory); }
.sec-blue .eyebrow { color: var(--sand); }
.sec-blue .eyebrow .num { color: var(--ivory); border-color: rgba(244, 241, 232, 0.3); }
.sec-blue .lead { color: rgba(244, 241, 232, 0.75); }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(244, 241, 232, 0.14); border-radius: var(--r); overflow: hidden; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }
.ai { background: var(--blue); padding: 30px 26px; display: grid; gap: 10px; align-content: start; }
.ai .ico { width: 30px; height: 30px; color: var(--sand); margin-bottom: 8px; }
.ai p { color: rgba(244, 241, 232, 0.75); font-size: 15.5px; }
.rule { margin: 40px 0 0; padding: 32px 36px; border-radius: 20px; background: rgba(244, 241, 232, 0.06); border: 1px solid rgba(244, 241, 232, 0.14); }
.rule figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
[dir="rtl"] .rule figcaption { letter-spacing: 0; font-size: 15px; }
.rule .badge { background: rgba(212, 169, 106, 0.18); color: var(--sand); letter-spacing: 0; text-transform: none; }
.rule blockquote { margin: 14px 0 0; font-family: var(--f-display); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.4; max-width: 62ch; }
[dir="rtl"] .rule blockquote { font-family: var(--f-ar-display); line-height: 1.7; }

/* Communauté */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.role { padding: 30px; border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: #fbf9f2; }
.role .ico { width: 30px; height: 30px; color: var(--sand-deep); margin-bottom: 6px; }
.role p { color: var(--ink-2); font-size: 15.5px; }

/* Manifeste */
.manifesto { background: var(--forest); color: var(--ivory); position: relative; overflow: hidden; }
.manifesto .eyebrow { color: var(--sand); }
.manifesto .eyebrow .num { color: var(--ivory); border-color: rgba(244, 241, 232, 0.3); }
.mani-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .mani-grid { grid-template-columns: 1fr; gap: 24px; } }
.mani-mark span { display: block; font-size: clamp(80px, 12vw, 168px); line-height: 1.1; color: var(--sand); text-align: center; }
.manifesto h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.15; margin: 16px 0 22px; }
.mani-p { color: rgba(244, 241, 232, 0.82); font-size: 18px; margin-bottom: 14px; max-width: 52ch; }
.motto { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 232, 0.18); font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--sage); }
[dir="rtl"] .motto { font-family: var(--f-ar-display); font-style: normal; font-size: 26px; }
.sub-light { color: var(--sage); margin-top: 72px; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(244, 241, 232, 0.14); border-radius: var(--r); overflow: hidden; counter-reset: v; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.values li { counter-increment: v; background: var(--forest); padding: 26px 22px; display: grid; gap: 6px; }
.values li::before { content: "0" counter(v); font-family: var(--f-display); color: var(--sand); font-size: 18px; }
[dir="rtl"] .values li::before { content: counter(v, arabic-indic); font-family: var(--f-ar); }
.values strong { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
[dir="rtl"] .values strong { font-family: var(--f-ar-display); font-weight: 700; }
.values span { color: rgba(244, 241, 232, 0.72); font-size: 15px; }

/* ── Pied de page ── */
.site-foot { background: #0f221f; color: rgba(244, 241, 232, 0.78); padding: 72px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.site-foot .brand { color: var(--ivory); }
.site-foot .brand-sep { background: rgba(244, 241, 232, 0.3); }
.foot-tag { font-family: var(--f-display); font-size: 24px; color: var(--ivory); margin: 18px 0 8px; }
[dir="rtl"] .foot-tag { font-family: var(--f-ar-display); font-weight: 700; }
.foot-brand p:last-child { max-width: 38ch; }
.site-foot h4 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
[dir="rtl"] .site-foot h4 { letter-spacing: 0; font-size: 15px; }
.site-foot li { margin-bottom: 10px; }
.site-foot ul a { text-decoration: none; }
.site-foot ul a:hover { color: var(--ivory); text-decoration: underline; }
.site-foot a[aria-current] { color: var(--ivory); font-weight: 600; }
.muted { opacity: 0.6; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 232, 0.12); font-size: 14px; }
.foot-bottom .ar-display { font-size: 22px; color: var(--sand); }

@media print {
  .site-head, .search, .hero-ctas, .menu-btn { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
