/* ═══════════════════════════════════════════════════════════════════
   BACHIR GLOBAL HALAL — style.css
   Fonts: system serif and system sans stacks only — no external network call
═══════════════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  --ink: #11100D;
  --ink-soft: #292720;
  --muted: #666052;
  --muted-2: #8A8270;
  --paper: #FAF8F1;
  --paper-2: #F3EEE2;
  --white: #FFFFFF;
  --line: rgba(178,145,74,.26);
  --line-strong: rgba(178,145,74,.42);
  --gold: #B8922A;
  --gold-2: #D4AE4A;
  --gold-dark: #87630A;
  --navy: #0D1B3D;
  --deep: #161512;
  --deep-2: #222018;
  --red: #9B2018;
  --red-soft: #FFF1ED;
  --shadow: 0 24px 80px rgba(17,16,13,.08);

  /* Font stacks */
  --f-title: Georgia, 'Times New Roman', serif;
  --f-hero: Georgia, 'Times New Roman', serif;
  --f-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --f-ar-body: Tahoma, 'Segoe UI', Arial, sans-serif;
  --f-ar-title: 'Arabic Typesetting', 'Geeza Pro', Georgia, 'Times New Roman', serif;
}

/* ── BASE ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* RTL — Arabic mode */
body.rtl {
  direction: rtl;
  font-family: var(--f-ar-body);
  font-weight: 400;
  line-height: 1.9;
  font-size: 17px; /* Arabic slightly larger for readability */
}

a { color: inherit; text-decoration: none; }

/* ── TOPLINE ────────────────────────────────────────────────────── */
.topline {
  background: var(--deep);
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .62rem 4rem;
}
body.rtl .topline { letter-spacing: .02em; font-size: .82rem; }
.topline-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

/* ── HEADER / NAV ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,241,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 78px;
  padding: .55rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ── LOGO ───────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

/* Fallback text brand (hidden when SVG loads) */
.brand-fallback {
  display: none;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--f-title);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-sub {
  margin-top: .18rem;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  font-family: var(--f-body);
  direction: ltr;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
}
.nav-links a {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s ease;
}
body.rtl .nav-links a {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .9rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--gold-dark); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

/* ── LANGUAGE SWITCHER ──────────────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  padding: .22rem;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.6);
  direction: ltr;
}
.lang-btn {
  min-width: 36px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .38rem .55rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body) !important;
  transition: all .2s ease;
  border-radius: 1px;
}
.lang-btn:hover,
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .72rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--navy);
  transition: all .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
body.rtl .nav-cta {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .88rem;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(184,146,42,.18), transparent 34%),
    linear-gradient(135deg, rgba(250,248,241,.98), rgba(243,238,226,.94));
  border-bottom: 1px solid var(--line);
}
body.rtl .hero {
  background:
    radial-gradient(circle at 12% 14%, rgba(184,146,42,.18), transparent 34%),
    linear-gradient(135deg, rgba(250,248,241,.98), rgba(243,238,226,.94));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,146,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,42,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.1rem 4rem 2.9rem;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
  gap: 2.6rem;
  align-items: stretch;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}
.hero-file-cta {
  align-self: flex-start;
  min-height: 44px;
  padding: .78rem 1.18rem;
  box-shadow: 0 14px 34px rgba(13,27,61,.10);
}
body.rtl .hero-file-cta { align-self: flex-end; }
.hero-title-lines {
  display: block;
  max-width: 690px;
}
.hero-title-line {
  display: block;
  width: auto;
  white-space: nowrap;
  text-align: left;
  text-align-last: auto;
}
body.rtl .hero-title-lines { max-width: 640px; margin-left: auto; }
body.rtl .hero-title-line { white-space: normal; text-align: right; text-align-last: auto; }
body.rtl .hero-title-line + .hero-title-line { margin-top: .08em; }

.eyebrow, .section-kicker {
  color: var(--gold-dark);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
}
body.rtl .eyebrow, body.rtl .section-kicker {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .88rem;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--f-hero);
  font-size: clamp(2.45rem, 4.2vw, 3.9rem);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -.035em;
  max-width: 900px;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}
body.rtl .hero h1 {
  font-family: var(--f-ar-title);
  font-size: clamp(2.05rem, 3.7vw, 3.05rem);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
}

.hero-subhead {
  font-family: var(--f-title);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  line-height: 1.1;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: -.015em;
  margin-bottom: 1.65rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold);
}
body.rtl .hero-subhead {
  font-family: var(--f-ar-title);
  padding-left: 0;
  border-left: 0;
  padding-right: 1.25rem;
  border-right: 3px solid var(--gold);
  letter-spacing: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.72rem);
  line-height: 1.38;
  font-weight: 700;
}

.hero-lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.95;
  margin-bottom: 1.45rem;
}
body.rtl .hero-lead {
  font-family: var(--f-ar-body);
  font-size: 1.08rem;
  line-height: 2.05;
}

.hero-actions, .section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 52px;
  padding: .95rem 1.45rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid transparent;
  transition: all .22s ease;
  cursor: pointer;
}
body.rtl .btn {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .92rem;
  font-weight: 700;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,.38); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--white); }

/* ── TRUST PILLS ────────────────────────────────────────────────── */
.trust-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .75rem;
  max-width: 900px;
  margin-top: 1.45rem;
}
.trust-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  padding: .85rem .9rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
  font-weight: 500;
}
body.rtl .trust-pill {
  font-family: var(--f-ar-body);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ── HERO PANEL ─────────────────────────────────────────────────── */
.hero-panel {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border: 1px solid rgba(212,174,74,.17);
  border-radius: 50%;
  right: -150px; top: -140px;
}
body.rtl .hero-panel::after { right: auto; left: -150px; }

.panel-content, .panel-metrics { position: relative; z-index: 1; }
.panel-kicker {
  color: var(--gold-2);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: .9rem;
}
body.rtl .panel-kicker {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .9rem;
  font-weight: 700;
}
.panel-title {
  font-family: var(--f-title);
  font-size: 2.25rem;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
body.rtl .panel-title {
  font-family: var(--f-ar-title);
  line-height: 1.38;
  font-weight: 700;
  font-size: 2.05rem;
}
.panel-text {
  color: rgba(255,255,255,.68);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 1.6rem;
}
body.rtl .panel-text {
  font-family: var(--f-ar-body);
  font-size: 1rem;
  line-height: 2;
}
.panel-list {
  list-style: none;
  display: grid;
  gap: .65rem;
  margin: 1rem 0 1.35rem;
}
.panel-list li {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: .65rem;
  color: rgba(255,255,255,.78);
  font-size: .93rem;
  line-height: 1.55;
}
body.rtl .panel-list li {
  font-family: var(--f-ar-body);
  font-size: 1rem;
  line-height: 1.75;
}
.panel-list li span {
  color: var(--gold-2);
  font-weight: 800;
  margin-right: .45rem;
  font-family: var(--f-body) !important;
  direction: ltr;
}
body.rtl .panel-list li span { margin-right: 0; margin-left: .45rem; }
.panel-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.metric { border: 1px solid rgba(212,174,74,.32); padding: 1.1rem; background: rgba(255,255,255,.035); }
.metric strong {
  display: block;
  font-family: var(--f-title);
  color: var(--gold-2);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .4rem;
  direction: ltr;
  text-align: center;
}
.metric span {
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.rtl .metric span {
  font-family: var(--f-ar-body);
  font-size: .82rem;
  letter-spacing: 0;
}

/* ── SECTIONS ───────────────────────────────────────────────────── */
section { padding: 2.55rem 4rem; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 900px; margin-bottom: 1.25rem; }
.section-title {
  font-family: var(--f-title);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .9rem;
}
body.rtl .section-title {
  font-family: var(--f-ar-title);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 700;
}
.section-lead { color: var(--muted); font-size: 1.03rem; line-height: 1.9; }
body.rtl .section-lead {
  font-family: var(--f-ar-body);
  font-size: 1.05rem;
  line-height: 2;
}

/* ── CREDIBILITY ────────────────────────────────────────────────── */
.credibility, .independence { background: var(--white); border-bottom: 1px solid var(--line); }
.credibility-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: stretch; }

.experience-card, .risk-card, .service-card, .science-panel,
.standards-card, .regions-card, .reference-card, .cost-card,
.missions-card, .independence-card, .resource-card {
  background: var(--white);
  border: 1px solid var(--line);
}
.experience-card {
  padding: 1.65rem;
  background: linear-gradient(135deg, var(--white), #FCFAF3);
  box-shadow: var(--shadow);
}
.experience-card h2 {
  font-family: var(--f-title);
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: .9rem;
}
body.rtl .experience-card h2 {
  font-family: var(--f-ar-title);
  line-height: 1.32;
  font-weight: 700;
}
.gold-rule { width: 42px; height: 2px; background: var(--gold); margin-bottom: 1.4rem; }
.experience-card p { color: var(--muted); font-size: 1rem; line-height: 1.95; margin-bottom: 1rem; }
body.rtl .experience-card p { font-family: var(--f-ar-body); font-size: 1.05rem; line-height: 2.05; }
.experience-card strong { color: var(--gold-dark); font-weight: 800; }

.risk-card {
  border-color: rgba(155,32,24,.34);
  background: linear-gradient(135deg, var(--red-soft), var(--white));
  padding: 1.65rem;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.risk-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--f-body) !important;
}
.risk-card .label {
  color: var(--red);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: .6rem;
}
body.rtl .risk-card .label {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .88rem;
  font-weight: 700;
}
.risk-card h3 {
  font-family: var(--f-title);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: .85rem;
}
body.rtl .risk-card h3 {
  font-family: var(--f-ar-title);
  line-height: 1.38;
  font-weight: 700;
}
.risk-card p { color: var(--muted); line-height: 1.8; }
body.rtl .risk-card p { font-family: var(--f-ar-body); font-size: 1rem; line-height: 1.95; }

/* ── SERVICES ───────────────────────────────────────────────────── */
.services-grid, .resources-grid, .independence-grid {
  display: grid;
  gap: 1.25rem;
}
.services-grid { grid-template-columns: repeat(3,1fr); }
.service-card, .resource-card, .independence-card, .reference-card {
  padding: 1.65rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.service-card:hover, .resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.service-num, .resource-cat {
  color: var(--gold-dark);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
body.rtl .service-num, body.rtl .resource-cat {
  font-family: var(--f-ar-body);
  letter-spacing: 0;
  font-size: .88rem;
  font-weight: 700;
}
.service-card h3, .reference-card h3,
.independence-card h3, .resource-card h3 {
  font-family: var(--f-title);
  font-size: 1.72rem;
  line-height: 1.16;
  font-weight: 600;
  margin-bottom: .95rem;
}
body.rtl .service-card h3, body.rtl .reference-card h3,
body.rtl .independence-card h3, body.rtl .resource-card h3 {
  font-family: var(--f-ar-title);
  line-height: 1.38;
  font-size: 1.55rem;
  font-weight: 700;
}
.service-card p, .reference-card p, .independence-card p, .resource-card p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.82;
}
body.rtl .service-card p, body.rtl .reference-card p,
body.rtl .independence-card p, body.rtl .resource-card p {
  font-family: var(--f-ar-body);
  font-size: 1rem;
  line-height: 1.95;
}

/* ── METHODOLOGY ────────────────────────────────────────────────── */
.methodology {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.methodology::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(184,146,42,.16), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(184,146,42,.12), transparent 34%);
  pointer-events: none;
}
.methodology .section-inner { position: relative; z-index: 1; }
.methodology .section-title { color: var(--white); }
.methodology .section-lead { color: rgba(255,255,255,.66); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(212,174,74,.26);
  border: 1px solid rgba(212,174,74,.26);
}
.process-step { background: var(--deep-2); padding: 1.65rem; min-height: 240px; }
.process-step .step {
  color: var(--gold-2);
  font-family: var(--f-title);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  direction: ltr;
}
.process-step h3 {
  font-family: var(--f-title);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: .8rem;
}
body.rtl .process-step h3 {
  font-family: var(--f-ar-title);
  line-height: 1.38;
  font-size: 1.35rem;
  font-weight: 700;
}
.process-step p { color: rgba(255,255,255,.63); font-size: .93rem; line-height: 1.75; }
body.rtl .process-step p { font-family: var(--f-ar-body); font-size: 1rem; line-height: 1.9; }

/* ── EXPERTISE ──────────────────────────────────────────────────── */
.science-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.science-panel {
  padding: 1.65rem;
  background: linear-gradient(135deg, var(--paper-2), var(--white));
}
.science-panel .section-title { font-size: clamp(2rem,3vw,3.2rem); }
.science-panel p { color: var(--muted); font-size: .97rem; line-height: 1.9; margin-bottom: 1.25rem; }
body.rtl .science-panel p { font-family: var(--f-ar-body); font-size: 1.03rem; line-height: 2; }
.science-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.science-list li {
  background: var(--white);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}
body.rtl .science-list li { grid-template-columns: 190px 1fr; }
.science-list li strong {
  font-family: var(--f-title);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink-soft);
}
body.rtl .science-list li strong {
  font-family: var(--f-ar-title);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
.science-list li span { color: var(--muted); font-size: .92rem; line-height: 1.72; }
body.rtl .science-list li span { font-family: var(--f-ar-body); font-size: .98rem; line-height: 1.88; }

/* ── MARKETS ────────────────────────────────────────────────────── */
.markets { background: var(--paper-2); }
.markets-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.standards-card, .regions-card { padding: 1.65rem; }
.standards { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.standard-pill {
  border: 1px solid var(--line-strong);
  padding: .55rem 1.05rem;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--white);
  font-family: var(--f-body) !important;
  direction: ltr;
}
.region-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.region-list li {
  background: var(--white);
  padding: .95rem 1.15rem;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
}
body.rtl .region-list li { grid-template-columns: 155px 1fr; }
.region-list li strong { font-family: var(--f-title); font-size: 1.18rem; font-weight: 600; }
body.rtl .region-list li strong { font-family: var(--f-ar-title); font-size: 1.05rem; font-weight: 700; }
.region-list li span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
body.rtl .region-list li span { font-family: var(--f-ar-body); font-size: .95rem; }

/* ── REFERENCES ─────────────────────────────────────────────────── */
.references { background: var(--white); border-top: 1px solid var(--line); }
.refs-intro { max-width: 900px; margin-bottom: 1.55rem; }
.reference-grid { display: grid; gap: 1.25rem; }
.reference-company-grid { grid-template-columns: repeat(4,1fr); }
.company-card { padding: 1.5rem 1.8rem; }
.company-card h3 { font-family: var(--f-title); font-size: 1.5rem; font-weight: 600; margin-bottom: .45rem; }
.company-card p { color: var(--muted); font-size: .86rem; }
body.rtl .company-card p { font-family: var(--f-ar-body); font-size: .92rem; }
.references-note {
  color: var(--muted-2);
  font-size: .9rem;
  font-style: italic;
  margin: 1.3rem 0;
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
}
body.rtl .references-note {
  border-left: 0; padding-left: 0;
  border-right: 2px solid var(--gold);
  padding-right: 1.2rem;
  font-family: var(--f-ar-body);
  font-size: .95rem;
  font-style: normal;
}
.conversion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.6rem; }
.cost-card, .missions-card { padding: 1.75rem; }
.cost-card h3, .missions-card h3 {
  font-family: var(--f-title);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
body.rtl .cost-card h3, body.rtl .missions-card h3 {
  font-family: var(--f-ar-title);
  line-height: 1.38;
  font-weight: 700;
}
.cost-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.cost-list { list-style: none; display: grid; gap: .7rem; }
.cost-list li { color: var(--muted); font-size: .92rem; position: relative; padding-left: 1.4rem; }
.cost-list li::before { content: '×'; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 900; font-family: var(--f-body); }
body.rtl .cost-list li { padding-left: 0; padding-right: 1.4rem; font-family: var(--f-ar-body); font-size: .98rem; }
body.rtl .cost-list li::before { left: auto; right: 0; }
.cost-emphasis {
  border-left: 1px solid rgba(155,32,24,.28);
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.82;
}
body.rtl .cost-emphasis {
  border-left: 0; padding-left: 0;
  border-right: 1px solid rgba(155,32,24,.28);
  padding-right: 1.5rem;
  font-family: var(--f-ar-body);
  font-size: 1rem;
  line-height: 2;
}
.cost-emphasis strong { color: var(--red); font-weight: 800; }
.mission-list { list-style: none; }
.mission-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.mission-list li:last-child { border-bottom: 0; }
.mission-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--f-body) !important;
  direction: ltr;
  flex-shrink: 0;
}
.mission-list strong {
  display: block;
  font-family: var(--f-title);
  font-size: 1.28rem;
  line-height: 1.1;
  margin-bottom: .25rem;
}
body.rtl .mission-list strong {
  font-family: var(--f-ar-title);
  font-size: 1.12rem;
  line-height: 1.42;
  font-weight: 700;
}
.mission-list span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
body.rtl .mission-list span { font-family: var(--f-ar-body); font-size: .92rem; line-height: 1.68; }

/* ── INDEPENDENCE / RESOURCES ───────────────────────────────────── */
.independence-grid, .resources-grid { grid-template-columns: repeat(3,1fr); }
.resources-section { background: var(--paper); }

/* ── FINAL CTA ──────────────────────────────────────────────────── */
.final-cta {
  padding-top: 2.65rem;
  padding-bottom: 2.65rem;
  background:
    linear-gradient(135deg, rgba(17,16,13,.92), rgba(17,16,13,.97)),
    radial-gradient(circle at 85% 10%, rgba(184,146,42,.32), transparent 38%);
  color: var(--white);
  padding: 4.6rem 4rem;
}
body.rtl .final-cta {
  padding-top: 2.65rem;
  padding-bottom: 2.65rem;
  background:
    linear-gradient(135deg, rgba(17,16,13,.92), rgba(17,16,13,.97)),
    radial-gradient(circle at 15% 10%, rgba(184,146,42,.32), transparent 38%);
}
.final-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.final-cta .section-kicker { color: var(--gold-2); }
.final-cta h2 {
  font-family: var(--f-title);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: .9rem;
}
body.rtl .final-cta h2 {
  font-family: var(--f-ar-title);
  line-height: 1.3;
  font-weight: 700;
}
.final-cta p { color: rgba(255,255,255,.68); max-width: 720px; line-height: 1.85; }
body.rtl .final-cta p { font-family: var(--f-ar-body); line-height: 2; font-size: 1.05rem; }
.cta-actions { display: grid; gap: .7rem; min-width: 360px; }
.cta-actions .btn-primary { background: var(--gold); }
.cta-actions span { color: rgba(255,255,255,.64); font-size: .82rem; text-align: center; }
body.rtl .cta-actions span { font-family: var(--f-ar-body); font-size: .9rem; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 2.4rem 4rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: .85rem;
}
.footer-brand {
  font-family: var(--f-title);
  color: var(--gold-2);
  font-size: 1.35rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.rtl .footer-brand {
  font-family: var(--f-ar-title);
  letter-spacing: 0;
  font-size: 1.25rem;
}
body.rtl .footer-inner p { font-family: var(--f-ar-body); font-size: .88rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .nav { padding: 0 2rem; }
  .nav-links { display: none; }
  .hero-inner, section, .final-cta, footer { padding-left: 2rem; padding-right: 2rem; }
  .hero-inner, .science-grid, .markets-layout, .credibility-grid,
  .conversion-grid, .final-cta-inner { grid-template-columns: 1fr; }
  .trust-line, .services-grid, .resources-grid,
  .independence-grid, .reference-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .cta-actions { min-width: 0; }
}

@media (max-width: 680px) {
  .topline { display: none; }
  .nav { height: auto; min-height: 68px; padding: .8rem 1.2rem; }
  .brand-logo { height: 42px; }
  .nav-cta { display: none; }
  .nav-actions { gap: .2rem; }
  .lang-switch { padding: .16rem; }
  .lang-btn { min-width: 32px; min-height: 28px; font-size: .62rem; }
  .hero-inner { padding: 4.4rem 1.2rem 3rem; gap: 2rem; }
  .hero h1 { font-size: 2.2rem; line-height: 1.1; }
  body.rtl .hero h1 { font-size: 2rem; line-height: 1.24; }
  .hero-subhead { font-size: 1.55rem; padding-left: .9rem; }
  body.rtl .hero-subhead { font-size: 1.32rem; padding-left: 0; padding-right: .9rem; line-height: 1.48; }
  .trust-line, .services-grid, .process-grid, .science-list,
  .cost-layout, .resources-grid, .independence-grid, .reference-grid { grid-template-columns: 1fr; }
  section { padding: 3.7rem 1.2rem; }
  .hero-panel, .experience-card, .risk-card, .science-panel,
  .standards-card, .regions-card, .cost-card, .missions-card { padding: 1.45rem; }
  .risk-card { grid-template-columns: 1fr; }
  .panel-metrics { grid-template-columns: 1fr; }
  .science-list li { grid-template-columns: 1fr; }
  .final-cta { padding: 3.5rem 1.2rem; }
  footer { padding: 2rem 1.2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  body.rtl .footer-inner { align-items: flex-end; }
  .reference-company-grid { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   LOGO COMPACT — monogramme image + bloc texte
═══════════════════════════════════════════════════════════════════ */

.brand { text-decoration: none; display: flex; align-items: center; }

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-monogram {
  height: 62px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(13,27,61,.12));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-left: 2px solid rgba(184,146,42,.38);
  padding-left: 0.85rem;
}

body.rtl .brand-text-block {
  border-left: none;
  border-right: 2px solid rgba(184,146,42,.38);
  padding-left: 0;
  padding-right: 0.85rem;
}

.brand-name {
  font-family: Georgia, Georgia, serif !important;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}

.brand-tagline {
  font-family: Arial, Arial, sans-serif !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  line-height: 1.3;
  margin-top: 0.1rem;
}

.brand-sub {
  font-family: Arial, Arial, sans-serif !important;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-style: italic;
  line-height: 1.3;
  margin-top: 0.08rem;
  direction: ltr !important;
}

/* ── FOOTER LOGO ────────────────────────────────────────────────── */
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  opacity: 0.82;
  filter: brightness(0) invert(1) opacity(.6);
  flex-shrink: 0;
}

/* ── NAV HEIGHT ADJUSTMENT for bigger logo ──────────────────────── */
.nav { height: 88px; }

/* ── RESPONSIVE logo ────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .brand-monogram { height: 52px; }
  .brand-name     { font-size: 1.1rem; }
  .brand-tagline  { font-size: 0.65rem; }
  .brand-sub      { display: none; }
}

@media (max-width: 680px) {
  .nav           { height: auto; min-height: 72px; padding: 0.75rem 1.2rem; }
  .brand-monogram { height: 44px; }
  .brand-name    { font-size: 0.95rem; letter-spacing: 0.07em; }
  .brand-tagline { font-size: 0.6rem; letter-spacing: 0.18em; }
  .brand-text-block { padding-left: 0.6rem; gap: 0; }
  .footer-left   { gap: 0.6rem; }
  .footer-logo-img { height: 28px; }
}


/* Final compact-flow refinements */
.credibility, .independence, .references { border-bottom: 1px solid var(--line); }
.resources-section { padding-bottom: 2.25rem; }
.final-cta { padding-top: 2.65rem; padding-bottom: 2.65rem; }
@media (max-width:1120px) {
  .hero-side { gap: .9rem; }
  .hero-file-cta { align-self: flex-start; }
  body.rtl .hero-file-cta { align-self: flex-start; }
  section { padding-top: 2.3rem; padding-bottom: 2.3rem; }
}
@media (max-width:680px) {
  .hero-inner { padding-top: 2.8rem !important; padding-bottom: 2.1rem !important; }
  section { padding-top: 2.05rem; padding-bottom: 2.05rem; }
  .hero-title-line { white-space: normal; display:block; }
  .hero-file-cta { width:100%; }
}


/* V3 requested refinements: tighter vertical rhythm and balanced hero title */
.hero-title-lines { max-width: 690px; }
.hero-title-line { text-align:left !important; text-align-last:auto !important; width:auto !important; white-space:nowrap; }
body.rtl .hero-title-lines { max-width:640px; margin-left:auto; }
body.rtl .hero-title-line { text-align:right !important; text-align-last:auto !important; }
.hero h1 { font-size:clamp(2.45rem, 4.2vw, 3.9rem) !important; line-height:1.07; }
body.rtl .hero h1 { font-size:clamp(2.05rem, 3.7vw, 3.05rem) !important; line-height:1.25; }
section { padding-top:2.55rem !important; padding-bottom:2.55rem !important; }
.section-head { margin-bottom:1.25rem !important; }
.refs-intro { margin-bottom:1.55rem !important; }
.conversion-grid { margin-top:1.55rem !important; }
.final-cta { padding-top:2.65rem !important; padding-bottom:2.65rem !important; }
@media(max-width:680px){
  .hero h1{font-size:2.2rem !important;}
  body.rtl .hero h1{font-size:2rem !important;}
  .hero-title-line{white-space:normal;}
  section{padding-top:2.05rem !important; padding-bottom:2.05rem !important;}
}

/* V7 — Bibliothèque visible et dense */
.resources-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resource-card { min-height: 220px; }
@media (max-width:1120px) { .resources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:680px) { .resources-grid { grid-template-columns: 1fr; } }


/* V8 multipage header fit refinements — keeps colors and Arabic typography intact */
.nav {
  max-width: 1440px;
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
  gap: .85rem !important;
}
.brand-logo-wrap { gap: .55rem !important; }
.brand-monogram { height: 54px !important; }
.brand-text-block { padding-left: .58rem !important; }
body.rtl .brand-text-block { padding-right: .58rem !important; }
.brand-name { font-size: 1.08rem !important; letter-spacing: .065em !important; }
.brand-tagline { font-size: .62rem !important; letter-spacing: .18em !important; }
.brand-sub { display: none !important; }
.nav-links { gap: .72rem !important; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.nav-links a { font-size: .67rem !important; letter-spacing: .075em !important; white-space: nowrap; }
body.rtl .nav-links a { font-size: .82rem !important; letter-spacing: 0 !important; }
.nav-actions { margin-left: .25rem; }
.lang-btn { min-width: 32px !important; min-height: 30px !important; padding: .3rem .42rem !important; }
body.rtl .nav-actions { margin-left:0; margin-right:.25rem; }
@media (max-width: 1240px) {
  .nav-links { gap: .52rem !important; }
  .nav-links a { font-size: .61rem !important; letter-spacing: .055em !important; }
  .brand-name { font-size: 1rem !important; }
  .brand-tagline { font-size: .58rem !important; letter-spacing: .14em !important; }
  .brand-monogram { height: 48px !important; }
}
@media (max-width: 1120px) {
  .nav-links { display: none !important; }
  .nav { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* V8 multipage layout */
body:not(.home-page) .hero { display: none; }
body:not(.home-page) main > section:first-child { padding-top: 3.2rem; }
body:not(.home-page) .final-cta { margin-top: 0; }


/* V9 — header fit correction: removes the large gap after the logo and prevents horizontal overflow */
.site-header { overflow-x: clip; }
.nav {
  max-width: none !important;
  width: 100% !important;
  padding-left: .75rem !important;
  padding-right: .75rem !important;
  gap: .55rem !important;
  min-height: 76px !important;
  height: auto !important;
  justify-content: flex-start !important;
}
.brand {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}
.brand-logo-wrap {
  gap: .42rem !important;
  max-width: 232px !important;
  min-width: 0 !important;
}
.brand-monogram {
  height: 44px !important;
  width: auto !important;
}
.brand-text-block {
  padding-left: .45rem !important;
  min-width: 0 !important;
}
body.rtl .brand-text-block {
  padding-left: 0 !important;
  padding-right: .45rem !important;
}
.brand-name {
  font-size: .92rem !important;
  letter-spacing: .045em !important;
  white-space: nowrap !important;
  line-height: 1.04 !important;
}
.brand-tagline {
  font-size: .50rem !important;
  letter-spacing: .13em !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
}
.nav-links {
  flex: 0 1 auto !important;
  justify-content: flex-start !important;
  margin-left: .55rem !important;
  gap: .58rem !important;
  min-width: 0 !important;
}
body.rtl .nav-links {
  margin-left: 0 !important;
  margin-right: .55rem !important;
}
.nav-links a {
  font-size: .61rem !important;
  letter-spacing: .045em !important;
  white-space: nowrap !important;
}
body.rtl .nav-links a {
  font-size: .78rem !important;
  letter-spacing: 0 !important;
}
.nav-actions {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  gap: .28rem !important;
}
body.rtl .nav-actions {
  margin-right: auto !important;
  margin-left: 0 !important;
}
.lang-switch {
  gap: .12rem !important;
  padding: .16rem !important;
}
.lang-btn {
  min-width: 29px !important;
  min-height: 28px !important;
  padding: .25rem .32rem !important;
  font-size: .62rem !important;
  letter-spacing: .08em !important;
}
@media (max-width: 1280px) {
  .brand-logo-wrap { max-width: 210px !important; }
  .brand-monogram { height: 40px !important; }
  .brand-name { font-size: .84rem !important; letter-spacing: .035em !important; }
  .brand-tagline { font-size: .46rem !important; letter-spacing: .10em !important; }
  .nav-links { gap: .46rem !important; margin-left: .38rem !important; }
  body.rtl .nav-links { margin-right: .38rem !important; }
  .nav-links a { font-size: .57rem !important; letter-spacing: .035em !important; }
  body.rtl .nav-links a { font-size: .74rem !important; }
  .lang-btn { min-width: 27px !important; font-size: .58rem !important; }
}
@media (max-width: 1120px) {
  .nav-links { display: none !important; }
  .brand-logo-wrap { max-width: 240px !important; }
  .brand-monogram { height: 44px !important; }
  .brand-name { font-size: .95rem !important; }
  .brand-tagline { font-size: .52rem !important; }
  .nav { padding-left: .9rem !important; padding-right: .9rem !important; }
}
@media (max-width: 680px) {
  .nav { padding-left: .7rem !important; padding-right: .7rem !important; min-height: 66px !important; }
  .brand-logo-wrap { max-width: 180px !important; gap: .34rem !important; }
  .brand-monogram { height: 36px !important; }
  .brand-text-block { padding-left: .34rem !important; }
  body.rtl .brand-text-block { padding-right: .34rem !important; }
  .brand-name { font-size: .78rem !important; letter-spacing: .025em !important; }
  .brand-tagline { font-size: .42rem !important; letter-spacing: .08em !important; }
  .lang-btn { min-width: 26px !important; min-height: 26px !important; font-size: .55rem !important; padding: .2rem .25rem !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   V10 — HEADER BALANCED FIX
   Objectif : supprimer le débordement latéral, rétablir une distance saine
   entre le logo et le menu, et garder FR/EN/AR dans le cadre.
═══════════════════════════════════════════════════════════════════ */
html, body { max-width: 100%; overflow-x: hidden; }
.site-header { overflow-x: clip; }

.nav {
  max-width: 1680px !important;
  width: calc(100% - 56px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: .66rem 0 !important;
  min-height: 78px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: auto auto auto !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 1.35rem !important;
  row-gap: .55rem !important;
}

.brand {
  min-width: 0 !important;
  max-width: none !important;
  justify-self: end !important;
}
.brand-logo-wrap {
  max-width: none !important;
  width: auto !important;
  gap: .58rem !important;
}
.brand-monogram {
  height: 46px !important;
  width: auto !important;
}
.brand-text-block {
  padding-left: .55rem !important;
  min-width: 0 !important;
}
body.rtl .brand-text-block {
  padding-left: 0 !important;
  padding-right: .55rem !important;
}
.brand-name {
  font-size: .98rem !important;
  letter-spacing: .052em !important;
  white-space: nowrap !important;
}
.brand-tagline {
  font-size: .54rem !important;
  letter-spacing: .145em !important;
  white-space: nowrap !important;
}

.nav-links {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: .76rem !important;
  min-width: 0 !important;
  justify-self: center !important;
}
body.rtl .nav-links {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.nav-links a {
  font-size: .66rem !important;
  letter-spacing: .06em !important;
  white-space: nowrap !important;
}
body.rtl .nav-links a {
  font-size: .82rem !important;
  letter-spacing: 0 !important;
}

.nav-actions {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: start !important;
  flex: none !important;
}
body.rtl .nav-actions {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.lang-switch {
  gap: .16rem !important;
  padding: .18rem !important;
}
.lang-btn {
  min-width: 31px !important;
  min-height: 29px !important;
  padding: .26rem .34rem !important;
  font-size: .60rem !important;
  letter-spacing: .08em !important;
}

@media (max-width: 1520px) {
  .nav {
    width: calc(100% - 36px) !important;
    column-gap: 1rem !important;
  }
  .brand-monogram { height: 42px !important; }
  .brand-name { font-size: .88rem !important; letter-spacing: .04em !important; }
  .brand-tagline { font-size: .48rem !important; letter-spacing: .105em !important; }
  .nav-links { gap: .55rem !important; }
  .nav-links a { font-size: .59rem !important; letter-spacing: .035em !important; }
  .lang-btn { min-width: 28px !important; font-size: .56rem !important; }
}

@media (max-width: 1280px) {
  .nav {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "brand actions"
      "links links" !important;
    justify-content: stretch !important;
    width: calc(100% - 32px) !important;
    padding-top: .62rem !important;
    padding-bottom: .62rem !important;
  }
  .brand { grid-area: brand !important; justify-self: start !important; }
  .nav-actions { grid-area: actions !important; justify-self: end !important; }
  .nav-links {
    grid-area: links !important;
    justify-self: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    row-gap: .38rem !important;
    column-gap: .82rem !important;
    padding-top: .25rem !important;
    border-top: 1px solid rgba(178,145,74,.16) !important;
    width: 100% !important;
  }
  .nav-links a { font-size: .62rem !important; letter-spacing: .045em !important; }
}

@media (max-width: 1120px) {
  .nav-links { display: none !important; }
  .nav {
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "brand actions" !important;
    width: calc(100% - 28px) !important;
  }
  .brand-monogram { height: 42px !important; }
  .brand-name { font-size: .92rem !important; }
  .brand-tagline { font-size: .50rem !important; }
}

@media (max-width: 680px) {
  .nav { width: calc(100% - 20px) !important; min-height: 66px !important; }
  .brand-monogram { height: 36px !important; }
  .brand-text-block { padding-left: .38rem !important; }
  body.rtl .brand-text-block { padding-right: .38rem !important; }
  .brand-name { font-size: .78rem !important; letter-spacing: .02em !important; }
  .brand-tagline { font-size: .42rem !important; letter-spacing: .075em !important; }
  .lang-btn { min-width: 26px !important; min-height: 26px !important; font-size: .55rem !important; padding: .2rem .25rem !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   V12 — HEADER BALANCE + SELECTIVE CLAUDE-INSPIRED REFINEMENTS
   Keep the acquired visual identity; no full redesign.
═══════════════════════════════════════════════════════════════════ */
.site-header { overflow-x: clip; }
.nav {
  max-width: 1360px !important;
  width: min(100%, 1360px) !important;
  min-height: 76px !important;
  padding: .52rem clamp(1rem, 2.2vw, 2.4rem) !important;
  gap: 0 !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
}
.brand {
  flex: 0 0 auto !important;
  margin-right: clamp(1.05rem, 2.2vw, 2.15rem) !important;
  min-width: 0 !important;
}
body.rtl .brand {
  margin-right: 0 !important;
  margin-left: clamp(1.05rem, 2.2vw, 2.15rem) !important;
}
.brand-logo-wrap {
  max-width: 302px !important;
  gap: .64rem !important;
  display: inline-flex !important;
  align-items: center !important;
}
.brand-monogram {
  height: 52px !important;
  width: auto !important;
  flex: 0 0 auto !important;
  object-fit: contain !important;
}
.brand-text-block {
  padding-left: .66rem !important;
  gap: .04rem !important;
  min-width: 0 !important;
}
body.rtl .brand-text-block { padding-left: 0 !important; padding-right: .66rem !important; }
.brand-name {
  font-size: 1.16rem !important;
  letter-spacing: .07em !important;
  white-space: nowrap !important;
}
.brand-tagline {
  font-size: .56rem !important;
  letter-spacing: .18em !important;
  white-space: nowrap !important;
}
.brand-sub { display: none !important; }
.nav-links {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(.55rem, .86vw, 1rem) !important;
  margin: 0 !important;
}
.nav-links a {
  font-size: clamp(.66rem, .62vw, .72rem) !important;
  letter-spacing: .105em !important;
  white-space: nowrap !important;
}
.nav-actions {
  margin-left: auto !important;
  padding-left: clamp(.7rem, 1.2vw, 1.15rem) !important;
  flex: 0 0 auto !important;
}
body.rtl .nav-actions { margin-left: 0 !important; margin-right: auto !important; padding-left: 0 !important; padding-right: clamp(.7rem, 1.2vw, 1.15rem) !important; }
.lang-switch { flex-shrink: 0 !important; }
.lang-btn { min-width: 34px !important; min-height: 30px !important; padding: .34rem .5rem !important; }

/* Top mission strip inspired by Claude, adapted to our visual system */
.missions-done {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 4rem 2.35rem;
}
.missions-done .section-inner { max-width: 1240px; margin: 0 auto; padding: 0; }
.missions-done-head { text-align: center; max-width: 900px; margin: 0 auto 1.35rem; }
.missions-done-kicker {
  color: var(--gold-dark);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: .55rem;
}
body.rtl .missions-done-kicker { letter-spacing: 0; font-size: .92rem; }
.missions-done-lead {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.75;
}
.missions-done-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.missions-done-card {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--white), #FCFAF3);
  padding: 1rem 1.1rem;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 36px rgba(17,16,13,.035);
}
.missions-done-card span {
  font-family: var(--f-title);
  font-size: 1.24rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: .035em;
}
.missions-done-note {
  text-align: center;
  color: var(--muted-2);
  font-size: .82rem;
  margin-top: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .nav {
    flex-wrap: wrap !important;
    min-height: 112px !important;
    align-content: center !important;
    row-gap: .55rem !important;
  }
  .brand { order: 1 !important; margin-right: auto !important; }
  body.rtl .brand { margin-left: auto !important; }
  .nav-actions { order: 2 !important; margin-left: auto !important; }
  body.rtl .nav-actions { margin-right: auto !important; }
  .nav-links {
    order: 3 !important;
    flex: 0 0 100% !important;
    justify-content: center !important;
    gap: clamp(.75rem, 2vw, 1.35rem) !important;
    padding-top: .45rem !important;
    border-top: 1px solid rgba(178,145,74,.18) !important;
  }
}
@media (max-width: 760px) {
  .nav { min-height: 76px !important; flex-wrap: nowrap !important; }
  .nav-links { display: none !important; }
  .brand-logo-wrap { max-width: 220px !important; }
  .brand-monogram { height: 42px !important; }
  .brand-name { font-size: 1rem !important; }
  .brand-tagline { font-size: .5rem !important; }
  .nav-actions { padding-left: .5rem !important; }
  .missions-done { padding: 1.8rem 1.2rem; }
  .missions-done-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .missions-done-card { min-height: 68px; padding: .85rem; }
  .missions-done-card span { font-size: 1.04rem; }
}
@media (max-width: 420px) {
  .brand-text-block { display: none !important; }
  .brand-logo-wrap { max-width: 52px !important; }
  .missions-done-grid { grid-template-columns: 1fr; }
}


/* V13 — Corrections finales demandées */
.missions-done {
  background: var(--white) !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 1.55rem clamp(1.2rem, 3vw, 3rem) 1.65rem !important;
}
.missions-done .section-inner {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.missions-done-head {
  text-align: center !important;
  max-width: 820px !important;
  margin: 0 auto 1rem !important;
}
.missions-done-kicker {
  font-family: var(--f-body) !important;
  color: var(--gold-dark) !important;
  font-size: .68rem !important;
  letter-spacing: .26em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  margin-bottom: .42rem !important;
}
.missions-done-lead {
  color: var(--muted) !important;
  font-size: .88rem !important;
  line-height: 1.65 !important;
}
.missions-done-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
}
.missions-done-card {
  min-height: auto !important;
  padding: .45rem 1.18rem !important;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
}
.missions-done-card:last-child { border-right: 0 !important; }
body.rtl .missions-done-card { border-right: 0 !important; border-left: 1px solid var(--line) !important; }
body.rtl .missions-done-card:last-child { border-left: 0 !important; }
.missions-done-card span {
  font-family: var(--f-title) !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  letter-spacing: .035em !important;
  white-space: nowrap !important;
}
.missions-done-note {
  max-width: 760px !important;
  margin: .85rem auto 0 !important;
  text-align: center !important;
  color: var(--muted-2) !important;
  font-size: .78rem !important;
  line-height: 1.6 !important;
}
.resources-section .section-kicker,
#resources-kicker {
  visibility: visible !important;
}
.resource-arrow {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: .95rem !important;
  color: var(--gold-dark) !important;
  font-size: .72rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
}
.nav-links a[href="bibliotheque.html"] { display: inline-flex !important; }
@media (max-width: 760px) {
  .missions-done-card { border-right: 0 !important; padding: .42rem .75rem !important; }
  body.rtl .missions-done-card { border-left: 0 !important; }
  .missions-done-card span { font-size: .98rem !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   V16 — HEADER STABLE, SANS APPEL EXTERNE, CROSS-BROWSER
   Ligne 1 : logo officiel à gauche + langues à droite
   Ligne 2 : menu complet centré, jamais comprimé dans la ligne logo
═══════════════════════════════════════════════════════════════════ */

html, body { max-width: 100%; overflow-x: hidden; }

/* Polices locales/système uniquement */
:root {
  --f-title: Georgia, "Times New Roman", Times, serif !important;
  --f-hero: Georgia, "Times New Roman", Times, serif !important;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  --f-ar-body: Tahoma, "Segoe UI", Arial, sans-serif !important;
  --f-ar-title: "Geeza Pro", "Arabic Typesetting", Tahoma, Georgia, serif !important;
}

.topline {
  padding-left: clamp(1rem, 4vw, 4rem) !important;
  padding-right: clamp(1rem, 4vw, 4rem) !important;
}
.topline-inner {
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
}

/* Header volontairement en deux niveaux */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  overflow: visible !important;
  background: rgba(250,248,241,.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line) !important;
}

.nav {
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: .68rem clamp(1rem, 4vw, 4rem) .50rem !important;
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  gap: .48rem !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: visible !important;
}

/* Première ligne : logo + langues */
.nav-main-row {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  direction: ltr !important;
}

/* Logo officiel */
.brand {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 170px) !important;
  display: inline-flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

.brand-logo-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: .72rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.brand-monogram {
  height: 52px !important;
  width: auto !important;
  max-width: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain !important;
}

.brand-text-block {
  min-width: 0 !important;
  border-left: 2px solid rgba(184,146,42,.38) !important;
  padding-left: .72rem !important;
  line-height: 1.05 !important;
}
body.rtl .brand-text-block {
  border-left: none !important;
  border-right: 2px solid rgba(184,146,42,.38) !important;
  padding-left: 0 !important;
  padding-right: .72rem !important;
}

.brand-name {
  display: block !important;
  font-family: var(--f-title) !important;
  font-size: clamp(1.02rem, 1.25vw, 1.32rem) !important;
  letter-spacing: .09em !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  color: var(--navy) !important;
}

.brand-tagline {
  display: block !important;
  margin-top: .10rem !important;
  font-family: var(--f-body) !important;
  font-size: clamp(.50rem, .62vw, .64rem) !important;
  letter-spacing: .24em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  color: var(--gold-dark) !important;
}

.brand-sub { display: none !important; }

.nav-actions {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  min-width: max-content !important;
}

.lang-switch {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  direction: ltr !important;
  margin: 0 !important;
}

.lang-btn {
  min-width: 38px !important;
  min-height: 34px !important;
  padding: .38rem .55rem !important;
  font-size: .68rem !important;
  line-height: 1 !important;
}

/* Deuxième ligne : menu */
.nav-links {
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .42rem 0 .08rem !important;
  border-top: 1px solid rgba(178,145,74,.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  column-gap: clamp(.90rem, 2.1vw, 1.85rem) !important;
  row-gap: .42rem !important;
  list-style: none !important;
  direction: ltr !important;
}

.nav-links li {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: .16rem 0 !important;
  font-size: clamp(.66rem, .76vw, .78rem) !important;
  letter-spacing: .13em !important;
  line-height: 1.15 !important;
}

body.rtl .nav-links {
  direction: rtl !important;
}
body.rtl .nav-links a {
  font-family: var(--f-ar-body) !important;
  letter-spacing: 0 !important;
  font-size: clamp(.82rem, .92vw, .96rem) !important;
  font-weight: 600 !important;
}

/* Hero compensé pour la hauteur stable du header */
.hero-inner {
  padding-top: clamp(3.4rem, 5vw, 4.6rem) !important;
}

/* Responsive : menu mobile caché plutôt que débordant */
@media (max-width: 760px) {
  .nav {
    padding: .62rem 1rem !important;
    gap: .34rem !important;
  }
  .nav-links {
    display: none !important;
  }
  .brand {
    max-width: calc(100% - 126px) !important;
  }
  .brand-monogram {
    height: 44px !important;
    max-width: 44px !important;
    flex-basis: 44px !important;
  }
  .brand-logo-wrap {
    gap: .55rem !important;
  }
  .brand-text-block {
    padding-left: .55rem !important;
  }
  .brand-name {
    font-size: .95rem !important;
    letter-spacing: .07em !important;
  }
  .brand-tagline {
    font-size: .48rem !important;
    letter-spacing: .17em !important;
  }
  .lang-btn {
    min-width: 32px !important;
    min-height: 30px !important;
    padding: .32rem .44rem !important;
    font-size: .62rem !important;
  }
}

@media (max-width: 420px) {
  .brand-text-block { display: none !important; }
  .brand { max-width: 54px !important; }
}



/* ═══════════════════════════════════════════════════════════════════
   V17 — HEADER CACHE-PROOF / CROSS-BROWSER
   The header is deliberately split into two fixed rows.
   Row 1: official logo + language switch.
   Row 2: centered navigation.
═══════════════════════════════════════════════════════════════════ */
html, body { overflow-x: hidden !important; }

.site-header{
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  background: rgba(250,248,241,.97) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.nav{
  width: min(100%, 1440px) !important;
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding: .72rem clamp(1.05rem, 3.2vw, 3.5rem) .54rem !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  row-gap: .56rem !important;
  min-height: auto !important;
  overflow: visible !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.nav-main-row{
  grid-row: 1 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  min-width: 0 !important;
}

.brand{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 160px) !important;
  display: inline-flex !important;
  align-items: center !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.brand-logo-wrap{
  display: inline-flex !important;
  align-items: center !important;
  gap: .75rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.brand-monogram{
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-text-block{
  min-width: 0 !important;
  border-left: 2px solid rgba(184,146,42,.38) !important;
  padding-left: .78rem !important;
  line-height: 1.05 !important;
}

.brand-name{
  display: block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-family: var(--f-title) !important;
  font-size: clamp(1.03rem, 1.35vw, 1.38rem) !important;
  letter-spacing: .09em !important;
  color: var(--navy) !important;
  line-height: 1.05 !important;
}

.brand-tagline{
  display: block !important;
  margin-top: .14rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-family: var(--f-body) !important;
  font-size: clamp(.50rem, .62vw, .64rem) !important;
  letter-spacing: .24em !important;
  color: var(--gold-dark) !important;
  line-height: 1.2 !important;
}

.brand-sub{ display: none !important; }

.nav-actions{
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  min-width: max-content !important;
}

.lang-switch{
  display: inline-flex !important;
  align-items: center !important;
  gap: .22rem !important;
  padding: .22rem !important;
  border: 1px solid var(--line-strong) !important;
  background: rgba(255,255,255,.72) !important;
  direction: ltr !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.lang-btn{
  min-width: 38px !important;
  min-height: 34px !important;
  padding: .38rem .55rem !important;
  font-size: .68rem !important;
  line-height: 1 !important;
  font-family: var(--f-body) !important;
  font-weight: 800 !important;
}

.nav-links{
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .48rem 0 .06rem !important;
  border-top: 1px solid rgba(178,145,74,.18) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: clamp(.95rem, 2.4vw, 2.2rem) !important;
  row-gap: .44rem !important;
  list-style: none !important;
  direction: ltr !important;
}

.nav-links li{
  flex: 0 0 auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: .12rem 0 !important;
  font-size: clamp(.66rem, .76vw, .78rem) !important;
  letter-spacing: .13em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

body.rtl .nav-main-row{ direction: ltr !important; }
body.rtl .nav-links{
  direction: rtl !important;
}
body.rtl .brand-text-block{
  border-left: 2px solid rgba(184,146,42,.38) !important;
  border-right: none !important;
  padding-left: .78rem !important;
  padding-right: 0 !important;
}
body.rtl .nav-links a{
  font-family: var(--f-ar-body) !important;
  letter-spacing: 0 !important;
  font-size: clamp(.82rem, .92vw, .96rem) !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

@media (max-width: 760px){
  .nav{
    padding: .62rem 1rem .48rem !important;
    row-gap: .42rem !important;
  }
  .brand{ max-width: calc(100% - 126px) !important; }
  .brand-monogram{
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    max-width: 44px !important;
  }
  .brand-logo-wrap{ gap: .55rem !important; }
  .brand-text-block{ padding-left: .55rem !important; }
  .brand-name{ font-size: .95rem !important; letter-spacing: .07em !important; }
  .brand-tagline{ font-size: .48rem !important; letter-spacing: .17em !important; }
  .lang-btn{
    min-width: 32px !important;
    min-height: 30px !important;
    padding: .32rem .44rem !important;
    font-size: .62rem !important;
  }
  .nav-links{
    column-gap: .86rem !important;
    row-gap: .36rem !important;
  }
  .nav-links a{
    font-size: .64rem !important;
    letter-spacing: .10em !important;
  }
}

@media (max-width: 520px){
  .nav-links{ display: none !important; }
}

@media (max-width: 420px){
  .brand-text-block{ display: none !important; }
  .brand{ max-width: 58px !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   V18 — HEADER STABLE EN DEUX NIVEAUX / ANTI-DÉBORDEMENT
   Ligne 1 : logo officiel à gauche, langues à droite.
   Ligne 2 : menu complet centré, toujours présent dans le HTML.
═══════════════════════════════════════════════════════════════════ */
html, body { overflow-x: hidden !important; }
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(250,248,241,.98) !important;
  border-bottom: 1px solid rgba(178,145,74,.26) !important;
  box-shadow: 0 2px 12px rgba(17,16,13,.035) !important;
  overflow-x: clip !important;
}
.nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: .78rem clamp(1rem,3vw,2.2rem) .62rem !important;
  box-sizing: border-box !important;
  gap: .62rem !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
.nav-main-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
}
.brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 170px) !important;
  text-decoration: none !important;
  overflow: hidden !important;
}
.brand-logo-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: .72rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 0 1 auto !important;
}
.brand-monogram {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  flex: 0 0 58px !important;
  object-fit: contain !important;
  display: block !important;
}
.brand-text-block {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border-left: 2px solid rgba(184,146,42,.38) !important;
  padding-left: .75rem !important;
  line-height: 1.05 !important;
}
body.rtl .brand-text-block {
  border-left: 0 !important;
  border-right: 2px solid rgba(184,146,42,.38) !important;
  padding-left: 0 !important;
  padding-right: .75rem !important;
}
.brand-name {
  display: block !important;
  color: #0A1628 !important;
  font-family: var(--f-title, Georgia, 'Times New Roman', serif) !important;
  font-size: clamp(1.08rem, 1.55vw, 1.42rem) !important;
  font-weight: 600 !important;
  letter-spacing: .085em !important;
  text-transform: uppercase !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
.brand-tagline {
  display: block !important;
  margin-top: .16rem !important;
  color: #87630A !important;
  font-family: var(--f-body, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
  font-size: clamp(.54rem, .72vw, .68rem) !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
.brand-sub { display: none !important; }
.nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
}
.lang-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(178,145,74,.42) !important;
  background: rgba(255,255,255,.76) !important;
  padding: .22rem !important;
  gap: .12rem !important;
  flex-shrink: 0 !important;
  direction: ltr !important;
}
.lang-btn {
  min-width: 34px !important;
  min-height: 30px !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .36rem .48rem !important;
  font-size: .68rem !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  background: transparent !important;
  color: #666052 !important;
  cursor: pointer !important;
}
.lang-btn.active, .lang-btn:hover {
  background: #0A1628 !important;
  color: #fff !important;
}
.nav-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  list-style: none !important;
  padding: .08rem 0 0 !important;
  margin: 0 !important;
  gap: clamp(.85rem, 2vw, 1.65rem) !important;
  border-top: 1px solid rgba(178,145,74,.16) !important;
}
.nav-links li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.nav-links li a, .nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  color: #666052 !important;
  font-family: var(--f-body, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
  font-size: clamp(.66rem, .9vw, .74rem) !important;
  letter-spacing: .115em !important;
  text-transform: uppercase !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  padding: .28rem 0 !important;
}
.nav-links a:hover { color: #87630A !important; }
body.rtl .nav-links li a, body.rtl .nav-links a {
  font-size: clamp(.78rem, 1vw, .88rem) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 700 !important;
}
@media (max-width: 720px) {
  .nav { padding: .62rem .86rem .55rem !important; gap: .55rem !important; }
  .nav-main-row { gap: .65rem !important; }
  .brand { max-width: calc(100% - 128px) !important; }
  .brand-logo-wrap { gap: .45rem !important; }
  .brand-monogram { width: 42px !important; height: 42px !important; flex-basis: 42px !important; }
  .brand-text-block { padding-left: .48rem !important; }
  body.rtl .brand-text-block { padding-right: .48rem !important; }
  .brand-name { font-size: .9rem !important; letter-spacing: .035em !important; }
  .brand-tagline { font-size: .48rem !important; letter-spacing: .12em !important; }
  .lang-btn { min-width: 30px !important; min-height: 28px !important; font-size: .61rem !important; padding: .30rem .38rem !important; }
  .nav-links { gap: .62rem 1rem !important; }
  .nav-links a { font-size: .64rem !important; letter-spacing: .075em !important; }
}
@media (max-width: 430px) {
  .brand-name { font-size: .78rem !important; }
  .brand-tagline { display: none !important; }
  .brand { max-width: calc(100% - 116px) !important; }
  .nav-links { gap: .52rem .8rem !important; }
}


/* ═══ V29 — HEADER UNIFIÉ ET STABLE SUR TOUTES LES PAGES ═══ */
html, body { overflow-x: hidden !important; }
.site-header{
  position:sticky !important; top:0 !important; z-index:1000 !important;
  width:100% !important; max-width:100% !important;
  background:rgba(250,248,241,.98) !important;
  border-bottom:1px solid rgba(178,145,74,.26) !important;
  box-shadow:0 2px 12px rgba(17,16,13,.035) !important;
  overflow-x:clip !important;
}
.site-header .nav{
  display:flex !important; flex-direction:column !important;
  align-items:center !important; justify-content:flex-start !important;
  width:100% !important; max-width:1240px !important;
  margin:0 auto !important;
  padding:.78rem clamp(1rem,3vw,2.2rem) .62rem !important;
  box-sizing:border-box !important; gap:.62rem !important;
  min-height:0 !important; height:auto !important; overflow:visible !important;
}
.site-header .nav-main-row{
  display:flex !important; justify-content:space-between !important; align-items:center !important;
  width:100% !important; max-width:100% !important; min-width:0 !important;
  gap:1rem !important; margin:0 !important; padding:0 !important;
}
.site-header .brand{
  display:inline-flex !important; align-items:center !important;
  flex:1 1 auto !important; min-width:0 !important; max-width:calc(100% - 170px) !important;
  text-decoration:none !important; overflow:hidden !important;
}
.site-header .brand-logo-wrap{
  display:inline-flex !important; align-items:center !important; gap:.72rem !important;
  min-width:0 !important; max-width:100% !important; flex:0 1 auto !important;
}
.site-header .brand-monogram{
  width:58px !important; height:58px !important; max-width:58px !important; max-height:58px !important;
  flex:0 0 58px !important; object-fit:contain !important; display:block !important;
}
.site-header .brand-text-block{
  display:flex !important; flex-direction:column !important; justify-content:center !important;
  min-width:0 !important; max-width:100% !important;
  border-left:2px solid rgba(184,146,42,.38) !important; padding-left:.75rem !important;
  line-height:1.05 !important;
}
body.rtl .site-header .brand-text-block{
  border-left:0 !important; border-right:2px solid rgba(184,146,42,.38) !important;
  padding-left:0 !important; padding-right:.75rem !important;
}
.site-header .brand-name{
  display:block !important; color:#0A1628 !important;
  font-family:Georgia,'Times New Roman',serif !important;
  font-size:clamp(1.08rem,1.55vw,1.42rem) !important;
  font-weight:600 !important; letter-spacing:.085em !important; text-transform:uppercase !important;
  line-height:1.05 !important; white-space:nowrap !important; overflow:hidden !important;
  text-overflow:ellipsis !important; max-width:100% !important;
}
.site-header .brand-tagline{
  display:block !important; margin-top:.16rem !important; color:#87630A !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
  font-size:clamp(.54rem,.72vw,.68rem) !important; font-weight:700 !important;
  letter-spacing:.22em !important; text-transform:uppercase !important; line-height:1.15 !important;
  white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; max-width:100% !important;
}
.site-header .brand-sub{ display:none !important; }
.site-header .nav-actions{
  display:flex !important; align-items:center !important; justify-content:flex-end !important;
  flex:0 0 auto !important; min-width:max-content !important; margin:0 !important; padding:0 !important;
}
.site-header .lang-switch{
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  border:1px solid rgba(178,145,74,.42) !important; background:rgba(255,255,255,.76) !important;
  padding:.22rem !important; gap:.12rem !important; flex-shrink:0 !important; direction:ltr !important;
}
.site-header .lang-btn{
  min-width:34px !important; min-height:30px !important; border:0 !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  padding:.36rem .48rem !important; font-size:.68rem !important; letter-spacing:.11em !important;
  text-transform:uppercase !important; font-weight:800 !important; background:transparent !important;
  color:#666052 !important; cursor:pointer !important;
}
.site-header .lang-btn.active, .site-header .lang-btn:hover{ background:#0A1628 !important; color:#fff !important; }
.site-header .nav-links{
  display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:center !important;
  flex-wrap:wrap !important; width:100% !important; max-width:100% !important; min-width:0 !important;
  list-style:none !important; padding:.08rem 0 0 !important; margin:0 !important;
  gap:clamp(.85rem,2vw,1.65rem) !important; border-top:1px solid rgba(178,145,74,.16) !important;
}
.site-header .nav-links li{ display:inline-flex !important; margin:0 !important; padding:0 !important; flex:0 0 auto !important; }
.site-header .nav-links li a, .site-header .nav-links a{
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  text-decoration:none !important; white-space:nowrap !important; color:#666052 !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
  font-size:clamp(.66rem,.9vw,.74rem) !important; letter-spacing:.115em !important;
  text-transform:uppercase !important; font-weight:650 !important; line-height:1.1 !important; padding:.28rem 0 !important;
}
.site-header .nav-links a:hover{ color:#87630A !important; }
body.rtl .site-header .nav-links li a, body.rtl .site-header .nav-links a{
  font-size:clamp(.78rem,1vw,.88rem) !important; letter-spacing:0 !important; text-transform:none !important; font-weight:700 !important;
}
@media(max-width:720px){
  .site-header .nav{ padding:.62rem .86rem .55rem !important; gap:.55rem !important; }
  .site-header .nav-main-row{ gap:.65rem !important; }
  .site-header .brand{ max-width:calc(100% - 128px) !important; }
  .site-header .brand-logo-wrap{ gap:.45rem !important; }
  .site-header .brand-monogram{ width:42px !important; height:42px !important; flex-basis:42px !important; }
  .site-header .brand-text-block{ padding-left:.48rem !important; }
  body.rtl .site-header .brand-text-block{ padding-right:.48rem !important; }
  .site-header .brand-name{ font-size:.9rem !important; letter-spacing:.035em !important; }
  .site-header .brand-tagline{ font-size:.48rem !important; letter-spacing:.12em !important; }
  .site-header .lang-btn{ min-width:30px !important; min-height:28px !important; font-size:.61rem !important; padding:.30rem .38rem !important; }
  .site-header .nav-links{ gap:.62rem 1rem !important; }
  .site-header .nav-links a{ font-size:.64rem !important; letter-spacing:.075em !important; }
}
@media(max-width:430px){
  .site-header .brand-name{ font-size:.78rem !important; }
  .site-header .brand-tagline{ display:none !important; }
  .site-header .brand{ max-width:calc(100% - 116px) !important; }
  .site-header .nav-links{ gap:.52rem .8rem !important; }
}
