/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Roboto:wght@300;400;500;600;700;900&display=swap');

:root {
  --green-50:  #e6f7d7;
  --green-100: #cfe2dd;
  --green-200: #a8db7b;
  --green-300: #4c956c;
  --green-400: #487a1f;
  --green-500: #06402B;
  --green-600: #0f6e56;
  --green-700: #006a4e;
  --green-900: #081c15;

  --red-500:   #c0392b;
  --red-600:   #e62e25;
  --orange:    #d85a30;
  --yellow:    #eac102;
  --gold:      #e9ad3b;
  --blue:      #0071bc;
  --blue-soft: #a2d2e5;

  --ink:       #262626;
  --ink-soft:  #595959;
  --muted:     #6c6e7b;
  --line:      #e9e8e7;
  --bg:        #ffffff;
  --green-brand: #06402B;
  --mint-bg:    #f3faf6;
}

/* Arabic home pages: keep the French component placement, localize only text flow. */
body.rtl-page {
  direction: ltr;
}

/* RTL header: flip flex order so logo sits on the right, nav flows RTL (الرئيسية on right), nav-right on left */
body.rtl-page .mainnav {
  direction: rtl;
}

/* Keep logo-block internal flex order LTR (crest → divider → title) */
body.rtl-page .mainnav .logo-block {
  direction: ltr;
}

/* Keep nav-right internal flex order LTR (btn → lang → hamburger) */
body.rtl-page .mainnav .nav-right {
  direction: ltr;
}

/* RTL sidebar layout: column 1 (292px) visually becomes the RIGHT column */
body.rtl-page .resource-layout,
body.rtl-page .info-layout {
  direction: rtl;
}

/* Prevent direction:rtl on mega-menu from reversing the icon-text flex order */
body.rtl-page .mega-link { flex-direction: row; }

body.rtl-page .mainnav .title-ar,
body.rtl-page .nav-links a,
body.rtl-page .nav-trigger,
body.rtl-page .mega-menu,
body.rtl-page .mobile-overlay,
body.rtl-page .hero-text,
body.rtl-page .announcement-card,
body.rtl-page .service-card,
body.rtl-page .stat,
body.rtl-page .stats-link,
body.rtl-page .explainer-head,
body.rtl-page .explainer-col,
body.rtl-page .programmes-head,
body.rtl-page .program-card,
body.rtl-page .parcours-head,
body.rtl-page .parcours-card,
body.rtl-page .faq-grid,
body.rtl-page .help-banner,
body.rtl-page .footer-col {
  direction: rtl;
}

body.rtl-page .resource-page-head,
body.rtl-page .resource-breadcrumb,
body.rtl-page .resource-aside,
body.rtl-page .resource-main-column,
body.rtl-page .resource-card,
body.rtl-page .resource-section-head,
body.rtl-page .resource-detail-title,
body.rtl-page .resource-info-box,
body.rtl-page .resource-tabs-card,
body.rtl-page .resource-tab-panel,
body.rtl-page .resource-faqs,
body.rtl-page .info-side-panel,
body.rtl-page .info-main-column,
body.rtl-page .info-lead-card,
body.rtl-page .info-section-card,
body.rtl-page .info-reading-card,
body.rtl-page .info-note-card {
  direction: rtl;
}

body.rtl-page .hero-text,
body.rtl-page .hero h1,
body.rtl-page .hero .lede,
body.rtl-page .announcement-card,
body.rtl-page .service-card,
body.rtl-page .explainer-head,
body.rtl-page .explainer-col,
body.rtl-page .programmes-head,
body.rtl-page .program-card,
body.rtl-page .parcours-head,
body.rtl-page .parcours-card,
body.rtl-page .faq-grid,
body.rtl-page .help-banner,
body.rtl-page .footer-col {
  text-align: right;
}

body.rtl-page .resource-page-head,
body.rtl-page .resource-breadcrumb,
body.rtl-page .resource-aside,
body.rtl-page .resource-main-column,
body.rtl-page .resource-card,
body.rtl-page .resource-section-head,
body.rtl-page .resource-detail-title,
body.rtl-page .resource-info-box,
body.rtl-page .resource-tabs-card,
body.rtl-page .resource-tab-panel,
body.rtl-page .resource-faqs,
body.rtl-page .info-side-panel,
body.rtl-page .info-main-column,
body.rtl-page .info-lead-card,
body.rtl-page .info-section-card,
body.rtl-page .info-reading-card,
body.rtl-page .info-note-card {
  text-align: right;
}

body.rtl-page .resource-info-box ul,
body.rtl-page .resource-info-box ol,
body.rtl-page .info-check-list {
  padding-left: 0;
  padding-right: 20px;
}

body.rtl-page .info-check-list li {
  padding-left: 0;
  padding-right: 22px;
}

body.rtl-page .info-check-list li::before {
  left: auto;
  right: 0;
}

body.rtl-page .resource-detail-title,
body.rtl-page .resource-section-head {
  max-width: 100%;
}

body.rtl-page .resource-section-head > span::before,
body.rtl-page .resource-detail-title > span::before,
body.rtl-page .resource-tabs-head > span::before,
body.rtl-page .resource-tab-panel-title > span::before,
body.rtl-page .resource-note-card > span::before {
  order: -1;
}

body.rtl-page .hero-text {
  align-items: flex-end;
  min-height: 427px;
  justify-self: end;
}

body.rtl-page .hero h1 {
  width: 100%;
  max-width: 500px;
  white-space: normal;
}

body.rtl-page .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(480px, 520px);
}

body.rtl-page .hero-media {
  order: 1;
}

body.rtl-page .hero-text {
  order: 2;
}

body.rtl-page .hero-dots {
  order: 3;
}

body.rtl-page .hero .cta-row {
  justify-content: flex-end;
}

body.rtl-page .head {
  direction: rtl;
}

body.rtl-page .head h2,
body.rtl-page .head .btn {
  direction: rtl;
}

/* ===== HOMEPAGE RTL LAYOUT ===== */

/* Services head: title on right, prev/next controls on left */
body.rtl-page .services-head {
  direction: rtl;
}

/* Section grid/flex containers: flow right-to-left */
body.rtl-page .announcement-grid,
body.rtl-page .stats-row,
body.rtl-page .variables-grid,
body.rtl-page .programs-grid,
body.rtl-page .parcours-grid,
body.rtl-page .footer-grid,
body.rtl-page .services-grid,
body.rtl-page .programmes-card-grid {
  direction: rtl;
}

/* Stats divider ::before uses left:0 — move to right:0 so it lands between the correct cells in RTL grid */
body.rtl-page .stat + .stat::before {
  left: auto;
  right: 0;
}

/* Right-pointing → arrows in cards and step buttons: flip to ← */
body.rtl-page .link svg,
body.rtl-page .parcours-btn svg,
body.rtl-page .ctrl-btn svg {
  transform: scaleX(-1);
}

/* arrow-go (stats-link, variables-link): was rotate(-90deg)→ pointing right, now → pointing left */
body.rtl-page .arrow-go svg {
  transform: rotate(90deg);
}

/* Explainer steps: move bullet and connector from left side to right side */
body.rtl-page .steps {
  padding-left: 0;
  padding-right: 80px;
}
body.rtl-page .step .bullet {
  left: auto;
  right: -69px;
}
body.rtl-page .step:not(:last-child)::before {
  left: auto;
  right: -48px;
}

@media (max-width: 900px) {
  body.rtl-page .hero-text {
    min-height: 0;
  }
}

/* Content container — pixel-perfect inline block */
.content { width: 1156px; margin: 0 auto; }

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
/* Prevent horizontal overflow on every viewport — iOS Safari requires html, not just body */
html { overflow-x: hidden; max-width: 100%; }
/* overflow-x: clip creates a clip boundary WITHOUT creating a scroll container
   (unlike hidden, which forces overflow-y to auto and traps vertical scroll) */
.resource-page-main,
.resource-detail-list,
.info-detail-list { overflow-x: clip; }
body {
  font-family: 'Almarai', 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.45;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Design canvas — pixel-perfect at 1440px */
.canvas { width: 1440px; margin: 0 auto; }

/* ===== Utility text styles ===== */
.font-almarai { font-family: 'Almarai', sans-serif; }
.font-roboto  { font-family: 'Roboto', sans-serif; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== Main nav ===== */
.mainnav {
  height: 96px;
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 80px;
  gap: 36px;
}
.mainnav .logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 70px;
  flex-shrink: 0;
}
.mainnav .logo-block .crest {
  height: 70px;
  width: auto;
  background: transparent;
  mix-blend-mode: multiply;
  display: block;
}
.mainnav .logo-block .divider {
  width: 1px;
  height: 48.24px;
  background: #c9cdc7;
  flex-shrink: 0;
}
.mainnav .logo-block .title-stack { display: flex; flex-direction: column; gap: 2px; }
.mainnav .logo-block .title-ar,
.mainnav .logo-block .title-fr { white-space: nowrap; font-family: 'Almarai', sans-serif; color: var(--ink); line-height: 1.2; }
.mainnav .logo-block .title-ar { direction: rtl; font-size: 14px; font-weight: 700; }
.mainnav .logo-block .title-fr { font-size: 14px; font-weight: 700; letter-spacing: 0.1px; }
.mainnav .nav-links { display: flex; align-items: center; gap: 42px; flex: 1; justify-content: center; }
.mainnav .nav-links a { font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.mainnav .nav-links a .chev { width: 10px; height: 6px; }
.mainnav .nav-right { display: flex; align-items: center; gap: 22px; }
.mainnav .lang { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-family: 'Almarai', sans-serif; background: transparent; border: none; }
.mainnav .lang .caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--red-500); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: all 0.15s ease; border: none; white-space: nowrap; }
.btn-primary { background: var(--green-brand); color: #fff; }
.btn-primary:hover { background: var(--green-500); }
.btn-outline-red { background: transparent; color: var(--red-500); border: 1.5px solid var(--red-500); }
.btn-outline-red:hover { background: rgba(192,57,43,0.08); }
.btn-outline { background: #fff; color: var(--green-brand); border: 1.5px solid var(--green-brand); }
.btn-outline:hover { background: var(--green-50); }
.btn-on-green-solid { background: #fff; color: var(--green-brand); }
.btn-on-green-ghost { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-on-green-ghost:hover { background: rgba(255,255,255,0.1); }

/* ===== Hero — editorial split layout ===== */
.hero {
  padding: 72px 0 56px;
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: #f8f8fa;
  display: flex;
  align-items: flex-start;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url('../assets/bg_motif.svg') top center / min(1440px, 100%) auto no-repeat; */
  opacity: 0.30;
  pointer-events: none;
}
.hero-inner {
  width: 1240px;
  max-width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(480px, 520px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero h1 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  text-align: left;
  text-transform: uppercase;
  max-width: 520px;
  white-space: nowrap;
}
.hero h1 .accent { color: var(--green-brand); display: block; }
.hero .lede {
  width: auto;
  max-width: 500px;
  margin: 22px 0 0;
  text-align: left;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.hero-subtitle-motif {
  width: 58px;
  height: 58px;
  margin: 18px 0 -4px;
  opacity: 0.62;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: flex-start; margin-top: 26px; flex-wrap: wrap; }
.hero .cta-row .btn { padding: 14px 26px; font-size: 15px; }
.hero .cta-row .btn-outline-red {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.hero .cta-row .btn-outline-red img { filter: brightness(0) saturate(100%) invert(72%) sepia(48%) saturate(760%) hue-rotate(353deg) brightness(95%) contrast(92%); }
.hero .cta-row .btn-outline-red:hover { background: rgba(233, 173, 59, 0.12); border-color: var(--gold); }

/* Hero video carousel — center video + right-peek of the next slide */
.hero-media {
  position: relative;
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1.74 / 1;
  overflow: visible;
  border-radius: 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
/* SLOT-based frames — clickable carousel (slide only, no resize) */
.hero-media .frame {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f3ed center/cover no-repeat;
  border: 1px solid rgba(8, 28, 21, 0.08);
  z-index: 1;
  transition:
    left    0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.4s ease;
}
.hero-media .frame[data-slot="center"] {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 22px 48px rgba(8, 28, 21, 0.14);
}
/* Peek frames keep the same size as center and slide in from off-screen */
.hero-media .frame[data-slot="right-peek"] { display: none; }
.hero-media .frame[data-slot="left-peek"]  { display: none; }
.hero-media .frame .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  z-index: 0;
}
.hero-media .frame .play-button { display: none; }
.hero-media .frame[data-slot="center"] .play-button { display: flex; }
.hero-media .frame[data-slot="center"].playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.hero-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9dadd;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dots button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.hero-dots button.active {
  width: 34px;
  background: var(--gold);
}

.play-button {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  border: none;
}
.play-button:hover { background: rgba(255, 255, 255, 0.38); transform: translate(-50%, -50%) scale(1.05); }
.play-button svg { width: 22px; height: 22px; color: var(--green-600); margin: 0; }

/* (custom zellige patterns removed — using asset JPGs only) */

/* ===== Section spacing ===== */
section { padding: 80px 0; }
section > .content { width: 1156px; margin: 0 auto; padding: 0; }
.section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 700px;
}

/* ===== Annonces ===== */
.announcements-section {
  padding-top: 42px;
  padding-bottom: 0;
}
.announcements {
  position: relative;
  background: var(--green-brand);
  color: #fff;
  border-radius: 52px;
  width: 1156px;
  height: 606.87px;
  margin: 0 auto;
  padding: 48px 109.5px 64px 117.5px;   /* aligns ANNONCES with first card */
  overflow: hidden;
}
/* Light/white texture on the green panel — invert the dark JPG and blend */
.announcements .annonces-motif {
  position: absolute;
  left: 0;
  top: 163px;
  width: 1156px;
  height: 360px;
  background: url('../assets/bh_annoces_motif.jpg') center/cover no-repeat;
  filter: invert(1) brightness(1.4) contrast(1.1);
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.announcements .head, .announcements .announcement-grid { position: relative; z-index: 1; }
.annonces-next-hint, .annonces-dots { display: none; }
.announcements .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.announcements .head h2 { font-family: 'Almarai', sans-serif; font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; }
.announcements .head .btn-on-green-ghost { padding: 10px 22px; font-size: 14px; font-weight: 700; }
.announcement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.announcement-card {
  position: relative;
  background: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  width: auto;
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
/* small motif fade bottom-right of each card */
.announcement-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  height: 160px;
  background: url('../assets/bh_annoces_motif.jpg') right bottom/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
          mask-image: radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}
.announcement-card > * { position: relative; z-index: 1; }
.announcement-card .tag { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; width: fit-content; }
.tag-important { background: #fbeae6; color: var(--red-500); }
.tag-program   { background: #ece9f7; color: #534ab7; }
.tag-important-2 { background: #e1efe4; color: var(--green-brand); }
.announcement-card h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.announcement-card p  { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.announcement-card .link { color: var(--ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.announcement-card .link svg { color: var(--red-500); }       /* arrow color = tag color */
.announcement-card.link-purple .link svg { color: #534ab7; }
.announcement-card.link-green  .link svg { color: var(--green-brand); }

/* ===== Services ===== */
.services-section { position: relative; }
.services-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; position: relative; z-index: 1; }
.services-head .controls { display: flex; gap: 10px; }
.services-head .ctrl-btn {
  width: 52.43px;
  height: 52.43px;
  border-radius: 120px;
  background: #fff;
  border: 1px solid #c9cdc7;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.services-head .ctrl-btn svg { width: 12px; height: 12px; display: block; }
.services-head .ctrl-btn:hover { background: var(--green-50); border-color: var(--green-brand); color: var(--green-brand); }
.services-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 22px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 36px 2px 10px;
  margin: -36px 0 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}
.services-grid::-webkit-scrollbar { display: none; }
.services-grid > .service-card {
  flex: 0 0 calc((100% - 66px) / 4) !important;
  min-width: 0;
  scroll-snap-align: start;
}
.services-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 10px;
  margin-top: 18px;
}
.services-dots .dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.services-dots .dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d6d6d6;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, background 0.2s ease;
}
.services-dots .dot.active { width: 24px; }
.services-dots .dot.active::before { width: 22px; background: #06402B; }
.service-card { border: 1px solid var(--line); border-radius: 18px; padding: 50px 24px 26px; display: flex; flex-direction: column; gap: 12px; transition: all 0.2s; background: #fff; position: relative; }
.service-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.service-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: absolute;
  top: -32px;
  left: 24px;
  background: #f3f6f1;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .icon::before { display: none; }
.service-card .icon svg {
  width: 30px;
  height: 30px;
  display: block;
  color: currentColor;
}
.icon-inscription { background: #fff; color: #0f6e56; }
.icon-update      { background: #fff; color: #d85a30; }
.icon-review      { background: #fff; color: #534ab7; }
.icon-removal     { background: #fff; color: #c0392b; }
.icon-followup    { background: #fff; color: #0f6e56; }
.icon-claim       { background: #fff; color: #b68a2d; }
.icon-green  { background: #e8f3ec; color: var(--green-brand); }
.icon-yellow { background: rgba(233,173,59,0.18); color: var(--gold); }
.icon-blue   { background: rgba(0,113,188,0.12); color: var(--blue); }
.icon-red    { background: rgba(192,57,43,0.12); color: var(--red-500); }
.icon-yellow { background: rgba(233,173,59,0.18); color: var(--gold); }
.icon-blue   { background: rgba(0,113,188,0.12); color: var(--blue); }
.icon-red    { background: rgba(192,57,43,0.12); color: var(--red-500); }
.service-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.service-card .lead { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.5; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.service-card .detail { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }

/* ===== Stats ===== */
.stats {
  position: relative;
  margin-top: 56px;
  width: 1156px;
  max-width: 100%;
  background: var(--mint-bg);
  border-radius: 52px;
  padding: 56px 24px 28px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stats .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
}
.stats .stats-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 18px;
  margin: 0 auto;
  width: fit-content;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #000;
  opacity: 1;
}
.stats .stats-link .arrow-go svg { width: 13px; height: 15px; color: #06402B; }
.stats .stats-link:hover { text-decoration: underline; }
.stats .corner {
  position: absolute;
  width: 112px;
  height: 112px;
  background: url('../assets/services_motif.svg') center/contain no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.stats .corner.tl { left: -28px; top: -28px; }
.stats .corner.br { right: -28px; bottom: -28px; transform: rotate(180deg); }
.stat {
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 120px;
  background: #c5d6cc;
}
.stat .num {
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--green-brand);
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
}
.stat .lbl { margin-top: 18px; color: var(--ink); font-size: 14px; line-height: 1.4; }

/* ===== Indicator explainer — dark green ===== */
.explainer-wrap {
  background: #06402B;
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.explainer-wrap::after { display: none; }
.explainer-wrap > section { padding: 0; position: relative; z-index: 1; }
.explainer-wrap .content { width: 1159px; }

.explainer-head { margin-bottom: 56px; }
.explainer-head h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 43px;
}
.explainer-head p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  width: 1159px;
  max-width: 100%;
  height: 50px;
  opacity: 1;
}

.explainer-cols {
  display: grid;
  grid-template-columns: 524px 454px;
  column-gap: 85px;
  align-items: start;
}
/* Right column: center the title + button above the 2×2 cards */
.explainer-cols .explainer-col:nth-child(2) .explainer-col-title { text-align: center; }
.explainer-col-title {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin: 0 0 32px;
}

/* LEFT — vertical timeline of 3 steps */
.steps {
  position: relative;
  padding-left: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 363px;
}
/* Bullet: gold with dark green text, outlined */
.step .bullet {
  position: absolute;
  left: -69px;
  top: -4px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #e9ad3b;
  color: #06402B;
  box-shadow: 0 0 0 4px #06402B;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 140%;
  text-align: center;
  z-index: 1;
}
/* Connector between consecutive bullets */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 45px;
  bottom: -34px;
  width: 2px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}
.step h3 {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  line-height: 1.2;
}
.step p {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* RIGHT — variables grid (4 cols × 2 rows) */
.variables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
/* 4-card variant — 2 cols × 2 rows, fixed 221px cards */
.variables-grid.variables-grid-4 {
  grid-template-columns: 221px 221px;
  gap: 12px;
}
.variables-grid.variables-grid-4 .variable {
  width: 221px;
  height: 151px;
  padding: 20px;
  gap: 24px;
  border-width: 1px;
  border-radius: 12px;
}
.variable {
  background: #fff;
  border: 1px solid #d7dddaff;
  border-radius: 12px;
  height: 162px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: center;
}
.variable .v-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.variable .v-icon img { width: 54px; height: 54px; object-fit: contain; }
.variable span {
  font-family: 'Almarai', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.variables-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 0;
  height: 18px;
  width: fit-content;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  opacity: 1;
}
.variables-link .arrow-go svg { width: 13px; height: 15px; color: #e9ad3b; }
.variables-link:hover { text-decoration: underline; }
/* Stack column items vertically; link is centered via margin auto */
.explainer-col { display: flex; flex-direction: column; }

/* ===== Programmes sociaux ===== */
.programmes-section .content { width: 1158px; }
.programmes-head h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  text-transform: uppercase;
  color: #081c15;
  margin: 0 0 24px;
}
.programmes-head p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 760px;
}

/* 3 explainer cards */
.three-dots-row {
  display: grid;
  grid-template-columns: repeat(3, 378px);
  gap: 12px;
  margin: 0 0 56px;
  justify-content: center;
}
.dot-item {
  width: 378px;
  height: 152px;
  background: linear-gradient(180deg, rgba(245, 249, 243, 0.86) 0%, #fff 58%);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 30px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(8, 28, 21, 0.06);
}
.dot-item h3 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-brand);
  margin: 0;
}
.dot-item p {
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.programmes-section .divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 48px;
}

/* 4 program cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 278px);
  gap: 15px;
  justify-content: space-between;
  position: static;
}
.program-card {
  position: relative;
  background: #fff;
  border: 1px solid #d7dddaff;
  border-radius: 12px;
  padding: 32px;
  width: 278px;
  height: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}
.program-card .icon-circle {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-card .icon-circle img { width: 43px; height: 43px; object-fit: contain; }

.program-card .tag {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 14px;
  margin: 0;
}
.program-card h3 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #000;
  margin: 0;
  line-height: 1.15;
}
.program-card p {
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.program-card .link {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  display: inline-flex; align-items: center; gap: 10px;
}
.program-card .title-block { display: flex; flex-direction: column; gap: 12px; }
.program-card .gap-between { display: flex; flex-direction: column; gap: 20px; flex: 1; }

/* Per-card accent colors */
.program-card.color-red    .tag { color: var(--red-500); }
.program-card.color-red    .link svg { color: var(--red-500); }
.program-card.color-orange .tag { color: var(--orange); }
.program-card.color-orange .link svg { color: var(--orange); }
.program-card.color-purple .tag { color: #534ab7; }
.program-card.color-purple .link svg { color: #534ab7; }
.program-card.color-green  .tag { color: var(--green-600); }
.program-card.color-green  .link svg { color: var(--green-600); }

/* ===== Parcours du ménage ===== */
.parcours-section { position: relative; overflow: hidden; }
.parcours-section .content { position: relative; z-index: 1; }
.parcours-head { text-align: left; margin-bottom: 56px; position: relative; z-index: 1; }
.parcours-head h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #081c15;
  margin: 0 0 24px;
}
.parcours-head p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 652px;
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.parcours-card {
  position: relative;
  background: linear-gradient(180deg, rgba(246, 250, 242, 0.84) 0%, #fff 36%);
  border: 1px solid rgba(59, 109, 17, 0.12);
  border-radius: 20px;
  padding: 84px 28px 28px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  min-height: 380px;
  box-shadow: 0 14px 34px rgba(59, 109, 17, 0.07);
}
.parcours-card::before { display: none; }
.parcours-card .num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background: var(--green-brand);
  color: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(59, 109, 17, 0.20);
  font-family: 'Almarai', sans-serif;
  z-index: 2;
  width: fit-content;
}
.parcours-card .num .num-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}
.parcours-card .num .num-value {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.parcours-card .icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-brand);
  margin-top: 8px;
  flex-shrink: 0;
}
.parcours-card .icon-wrap svg { width: 56px; height: 56px; }
.parcours-card .icon-wrap img { width: 56px; height: 56px; object-fit: contain; }
.parcours-card h3 {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: var(--green-brand);
  letter-spacing: 0.1px;
}
.parcours-card p {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.parcours-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--green-brand);
  color: #fff;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(59, 109, 17, 0.18);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.25s ease;
}
.parcours-btn svg { transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.parcours-btn:hover {
  background: var(--gold);
  color: var(--green-900);
  box-shadow: 0 14px 26px rgba(233, 173, 59, 0.30);
}
.parcours-btn:hover svg { transform: translateX(4px); }

.parcours-arrow {
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.parcours-arrow svg { width: 18px; height: 18px; }
/* Re-usable arrow-go used in program & announcement cards too */
.arrow-go { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; }
.arrow-go svg { transform: rotate(-90deg); width: 13px; height: 15px; }

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 416px 685px;
  gap: 56px;
  align-items: start;
}
.faq-grid .left h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  text-transform: uppercase;
  color: #081c15;
  margin: 0 0 24px;
}
.faq-grid .left p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #262626;
  margin: 0;
}
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #f3f3f3;
  border-radius: 40px;
  padding: 22px 28px;
  border: none;
}
.faq-item .q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #262626;
  cursor: pointer;
  user-select: none;
}
.faq-item .q .ic-wrap {
  width: 24px;
  height: 24px;
  border-radius: 90px;
  background: #4c956c1a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 5px 7px;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}
.faq-item.open .q .ic-wrap { transform: rotate(180deg); }
.faq-item .q .ic-wrap svg { color: #4c956c; width: 12px; height: 8px; display: block; }
.faq-item .a {
  margin-top: 14px;
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  color: #262626;
  font-size: 14px;
  line-height: 1.55;
  display: none;
}
.faq-item.open .a { display: block; }

/* ===== Help banner (centered, full-width mint section) ===== */
.help-section {
  background: #F3FAF6;
  width: 100%;
  height: 325px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.help-banner {
  background: transparent;
  width: 634px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 43px;
}
.help-banner .text-block { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.help-banner h3 {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  color: #081c15;
}
.help-banner p {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #262626;
}
.help-banner .btn-faq {
  background: #06402B;
  color: #fff;
  border-radius: 46px;
  padding: 16px 32px;
  width: 212px;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ===== Footer ===== */
footer { background: #fff; padding: 56px 0 0; border-top: none; }
.footer-inner { width: 1156px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 68px;
  align-items: start;
}
.footer-col .brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-col .brand img {
  height: 64px;
  width: auto;
  background: transparent;
  mix-blend-mode: multiply;
  display: block;
}
.footer-col .brand .brand-divider {
  width: 1px;
  height: 48px;
  background: #c9cdc7;
  flex-shrink: 0;
}
.footer-col .brand .ttl {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}
.footer-col h4 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 14px;
  color: #06402B;
  text-transform: none;
  letter-spacing: 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
}
.footer-col li a:hover { color: var(--green-brand); }
.footer-bottom {
  border-top: 1px solid #b3b3b3;
  margin-top: 44px;
  padding: 22px 0;
  text-align: center;
  color: #3c3c43cc;
  font-family: 'Almarai', sans-serif;
  font-size: 14px;
}

/* ===== Decorative Moroccan pattern (subtle) ===== */
.zellige-bg {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(15,110,86,0.04) 0%, rgba(15,110,86,0.04) 30%, transparent 31%),
    radial-gradient(circle at 100% 100%, rgba(15,110,86,0.04) 0%, rgba(15,110,86,0.04) 30%, transparent 31%),
    radial-gradient(circle at 0% 100%, rgba(15,110,86,0.04) 0%, rgba(15,110,86,0.04) 30%, transparent 31%),
    radial-gradient(circle at 0% 0%, rgba(15,110,86,0.04) 0%, rgba(15,110,86,0.04) 30%, transparent 31%);
  background-size: 80px 80px;
}

/* ======================================================================
   RESPONSIVE
   - 1440+   : exact pixel-perfect design (default rules above)
   - ≤1200  : laptop / narrow desktop. Fluid containers, peek hidden
   - ≤900   : tablet. Grids reduce columns, FAQ stacks
   - ≤600   : phone. Card grids become horizontal sliders, hamburger nav
   ====================================================================== */

/* Hamburger button — hidden on desktop, shown ≤900px */
.hamburger { display: none; }
.lang-mobile { display: none; }
.mobile-overlay { display: none; }

/* ============================ ≤ 1200 px ============================ */
@media (max-width: 1200px) {
  /* Containers go fluid, capped at the design width */
  .content,
  section > .content,
  .explainer-wrap .content,
  .programmes-section .content { width: 92%; max-width: 1156px; }

  .announcements,
  .footer-inner,
  .help-banner { width: 92%; max-width: 1156px; }

  .mainnav { padding: 0 24px; }
  footer   { padding: 56px 24px 0; }
  .help-section { padding: 0 24px; }

  .announcements {
    height: auto;
    min-height: 520px;
    padding: 42px clamp(28px, 5vw, 72px) 56px;
  }
  .announcements .annonces-motif {
    width: 100%;
  }
  .announcement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
  }
  .announcement-card {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 300px;
  }

  .programs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    justify-content: stretch;
  }
  .program-card {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 380px;
  }

  .faq-grid {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    gap: clamp(28px, 4vw, 56px);
  }
  .faq-list,
  .faq-item {
    min-width: 0;
  }

  .footer-grid {
    gap: clamp(28px, 5vw, 68px);
  }

  .explainer-cols {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(36px, 5vw, 72px);
  }
  .variables-grid.variables-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .variables-grid.variables-grid-4 .variable {
    width: auto;
    min-width: 0;
  }

  .three-dots-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dot-item {
    width: auto;
    min-width: 0;
    padding: 28px 24px;
  }

  /* Hero — keep split layout but scale the media frame */
  .hero-inner { grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); gap: 36px; }
  .hero h1 { font-size: 36px; }
  .hero-media { height: auto; margin-top: 0; padding-bottom: 0; aspect-ratio: 16 / 9; }
  .hero-media .frame[data-slot="right-peek"],
  .hero-media .frame[data-slot="left-peek"] { display: none; }
  .hero-media .frame[data-slot="center"] {
    position: absolute;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    left: 0;
    transform: none;
    top: 0;
  }
}

/* ============================ ≤ 900 px ============================ */
@media (max-width: 900px) {
  /* Nav → logo + hamburger */
  .mainnav { height: 80px; padding: 0 16px; gap: 12px; }
  .mainnav .nav-links,
  .mainnav .nav-right .btn,
  .mainnav .nav-right .lang { display: none; }
  .mainnav .nav-right { gap: 8px; }
  .hamburger {
    display: flex;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid #c9cdc7;
    background: #fff;
    align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .lang-mobile {
    display: flex;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid #c9cdc7;
    background: #fff;
    align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
  }
  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
    position: relative;
    transition: transform 0.25s ease, top 0.25s ease;
  }
  .hamburger span::before { content:""; position: absolute; top: -7px; left: 0; width: 20px; }
  .hamburger span::after  { content:""; position: absolute; top: 7px;  left: 0; width: 20px; }

  /* Mobile nav overlay — drawer slides in from the left */
  .mobile-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    z-index: 9000;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
    box-shadow: 6px 0 32px rgba(3, 28, 18, 0.18);
  }
  /* Backdrop */
  .mobile-overlay::after {
    content: '';
    position: fixed;
    inset: 0;
    left: min(320px, 88vw);
    background: rgba(3, 28, 18, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
    backdrop-filter: blur(2px);
  }
  .mobile-overlay.open { transform: translateX(0); }
  .mobile-overlay.open::after { opacity: 1; pointer-events: auto; }

  /* Top accent bar */
  .mobile-overlay::before {
    content: '';
    flex-shrink: 0;
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #06402B 0%, #e9ad3b 100%);
  }

  /* Header: brand on the left, × pinned inside on the right */
  .mobile-overlay-head {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 56px 18px 18px; /* right padding reserves space for the absolute × */
    border-bottom: 1px solid rgba(6, 64, 43, 0.10);
    background: linear-gradient(135deg, #f2faf4 0%, #f8fcf9 100%);
  }

  .mobile-overlay-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .mobile-overlay-brand strong {
    font-size: 16px;
    font-weight: 900;
    color: var(--green-brand);
    line-height: 1;
    letter-spacing: 0.3px;
  }
  .mobile-overlay-brand span {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.2;
  }

  /* Close button — absolute inside header, clearly within drawer bounds */
  .mobile-overlay .close {
    position: absolute;
    top: 50%; right: 14px;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border: 1.5px solid rgba(6, 64, 43, 0.18);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    color: var(--green-brand);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(6, 64, 43, 0.08);
  }
  .mobile-overlay .close svg { width: 15px; height: 15px; display: block; }
  .mobile-overlay .close:hover {
    background: #e6f2ea;
    border-color: rgba(6,64,43,0.32);
    transform: translateY(-50%) scale(1.06);
  }

  /* Scrollable nav */
  .mobile-overlay nav {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px 12px;
  }
  .mobile-overlay nav > a:last-of-type {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(6, 64, 43, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 64, 43, 0.06) 0%, rgba(233, 173, 59, 0.14) 100%);
    color: var(--green-brand);
    box-shadow: 0 6px 18px rgba(6, 64, 43, 0.08);
  }
  .mobile-overlay nav > a:last-of-type::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* Top-level links (Accueil, Questions fréquentes, العربية) */
  .mobile-overlay nav > a {
    padding: 13px 14px;
    font-size: 15px; font-weight: 700; color: var(--ink);
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
  }
  .mobile-overlay nav > a:hover,
  .mobile-overlay nav > a:active { background: rgba(6,64,43,0.06); color: var(--green-brand); }

  /* Actions sticky footer */
  .mobile-overlay .actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 20px;
    border-top: 1px solid rgba(6, 64, 43, 0.08);
    background: #fff;
  }
  .mobile-overlay .actions .btn { width: 100%; border-radius: 12px; padding: 14px 16px; font-size: 15px; }

  /* Hero text adjustments */
  .hero { background: #fff; min-height: auto; display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { align-items: center; text-align: center; }
  .hero h1 { font-size: 30px; line-height: 38px; width: auto; height: auto; padding: 0 16px; text-align: center; }
  .hero h1 .accent { display: inline; }
  .hero .lede { width: auto; padding: 0 24px; height: auto; text-align: center; }
  .hero .cta-row { justify-content: center; }

  /* Grids reduce */
  .services-grid > .service-card { flex: 0 0 calc((100% - 44px) / 2) !important; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .programs-grid .program-card { width: 100%; height: auto; }
  .announcement-grid { grid-template-columns: 1fr; }
  .announcement-card { width: 100%; height: auto; }
  .variables-grid { grid-template-columns: repeat(3, 1fr); }
  .variables-grid.variables-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .three-dots-row { grid-template-columns: 1fr; gap: 16px; }
  .three-dots-row .dot-item { width: 100%; height: auto; min-height: 152px; }
  .explainer-cols { grid-template-columns: 1fr; row-gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { padding: 40px 24px 24px; }
  .stats .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat + .stat::before { display: none; }

  .announcements { padding: 32px; height: auto; }

  /* Parcours: stack to a single column with arrows hidden */
  .parcours-grid { grid-template-columns: 1fr; }
  .parcours-grid .parcours-arrow { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  body.rtl-page .hero-inner { grid-template-columns: 1fr; }
  body.rtl-page .hero-media { order: unset; }
  body.rtl-page .hero-text  { order: unset; }
  body.rtl-page .hero-dots  { order: unset; }
  body.rtl-page .hero .cta-row { justify-content: center; }
  body.rtl-page .hero-text { align-items: center; text-align: center; }
}

/* ============================ ≤ 600 px : MOBILE ============================ */
@media (max-width: 600px) {
  body { overflow-x: hidden; }

  .resource-page-head {
    padding: 30px 0 42px;
  }

  .inscription-hero-actions {
    flex-direction: column;
  }

  .inscription-hero-actions .btn {
    width: 100%;
  }

  /* Hero shrinks further, video centered, buttons stack */
  .hero { padding: 8px 0 40px; }
  .hero-inner { max-width: calc(100% - 32px); gap: 20px; }
  .hero-media { border-radius: 16px; overflow: hidden; }
  .hero h1 { font-size: 26px; line-height: 32px; padding: 0 20px; }
  .hero .lede { font-size: 14px; padding: 0 20px; }
  .hero-subtitle-motif { display: none; }
  .hero .cta-row { flex-direction: column; align-items: stretch; padding: 0 24px; margin-top: 36px; }

  section { padding: 56px 0; }

  /* ---- HORIZONTAL SLIDERS on mobile ---- */
  .announcement-grid,
  .services-grid,
  .programs-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    padding: 24px 0 16px;
    margin: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  /* Services cards have a floating icon 32px above — needs more top breathing room */
  .services-grid {
    padding-top: 42px;
  }

  .announcement-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .programs-grid::-webkit-scrollbar { display: none; }

  /* Beat the ≤900px !important specificity */
  .services-grid > .service-card {
    flex: 0 0 78% !important;
    width: auto !important;
    scroll-snap-align: start;
    min-width: 0;
  }
  /* One full card at a time — fills the green box, clean swipe UX */
  .announcement-grid > .announcement-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
    width: auto;
  }
  .programs-grid > .program-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-width: 0;
    width: auto;
  }
  .announcement-card { height: auto; min-height: 340px; }
  .program-card      { height: auto; min-height: 360px; }

  /* Variables grid: 2 cols on small phones (8 items → 2×4) */
  .variables-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .variable { height: 148px; padding: 14px 8px; }
  .variable span { font-size: 12px; }

  /* Stats — single column, each item centered */
  .stats { width: 100%; max-width: 100%; margin-top: 28px; padding: 28px 20px 24px; border-radius: 24px; overflow: hidden; }
  .stats .stats-row { grid-template-columns: 1fr; gap: 22px; }
  .stats .corner { display: none; }
  .stat { padding: 12px 20px; text-align: center; border-bottom: 1px solid rgba(6,64,43,0.10); }
  .stat:last-child { border-bottom: none; }
  .stat + .stat::before { display: none; }
  .stat .num { font-size: 34px; }
  .stat .lbl { margin-top: 6px; }
  .stats-link { margin-top: 18px; justify-content: center; }

  /* Annonces panel */
  .announcements {
    width: 92%;
    padding: 32px 20px;
    border-radius: 32px;
    height: auto;
    overflow: visible;
    clip-path: inset(0 round 32px);
    position: relative;
  }
  .announcements .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .announcements .head h2 { font-size: 22px; }

  /* Next-slide arrow hint */
  .annonces-next-hint {
    display: flex;
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    align-items: center;
    justify-content: center;
    color: var(--green-brand);
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .annonces-next-hint.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .annonces-next-hint svg { width: 18px; height: 18px; }

  /* Dots */
  .annonces-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .annonces-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none; padding: 0; cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
  }
  .annonces-dots .dot.active {
    background: #fff;
    width: 22px; border-radius: 999px;
  }

  /* Services head: hide nav arrows on mobile (replaced by swipe) */
  .services-head .controls { display: none; }
  .services-head .section-title { font-size: 22px; }

  /* Explainer — dark green section */
  .explainer-wrap .content { padding: 0 4%; }
  .explainer-head h2 { font-size: 22px; line-height: 30px; }
  /* Remove the fixed height — causes text to overflow and overlap on mobile */
  .explainer-head p  { font-size: 14px; height: auto !important; line-height: 1.65; }
  .explainer-title-row { flex-direction: column; gap: 12px; align-items: flex-start; }
  .steps { padding-left: 44px; }
  .step .bullet { left: -46px; width: 32px; height: 32px; font-size: 16px; }
  .step:not(:last-child)::before { left: -32px; top: 34px; bottom: -34px; }
  /* Center the explainer section columns on mobile */
  .explainer-cols { gap: 32px; }
  .explainer-col-title { font-size: 18px; }

  /* Programmes */
  .programmes-head h2 { font-size: 24px; line-height: 32px; }

  /* Parcours */
  .parcours-head h2 { font-size: 20px; }
  .parcours-card { min-height: auto; padding: 64px 20px 22px; }

  /* FAQ */
  .faq-grid .left h2 { font-size: 22px; }

  /* Help banner */
  .help-section { height: auto; padding: 48px 24px; }
  .help-banner { width: 100%; gap: 24px; }
  .help-banner h2 { font-size: 22px; }

  /* Footer */
  footer { padding: 40px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { font-size: 12px; padding: 16px 0; }
}

/* ======================================================================
   ANIMATIONS — modern hovers + scroll reveal
   ====================================================================== */

/* ---------- card hover lifts ---------- */
.service-card,
.program-card,
.announcement-card,
.parcours-card,
.variable {
  transition:
    transform   0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow  0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s ease;
  will-change: transform;
}
.service-card:hover,
.program-card:hover,
.parcours-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.08);
}
.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}
.variable:hover {
  transform: translateY(-3px);
  border-color: var(--green-brand);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* ---------- "En savoir plus" arrow nudge ---------- */
.link {
  transition: color 0.2s ease, gap 0.25s ease;
}
.link .arrow-go {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.link:hover .arrow-go { transform: translateX(5px); }

/* ---------- nav links underline grow ---------- */
.mainnav .nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.mainnav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--green-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mainnav .nav-links a:hover { color: var(--green-brand); }
.mainnav .nav-links a:hover::after { transform: scaleX(1); }
.mainnav .nav-links a:hover .chev path { stroke: var(--green-brand); }

/* ---------- desktop mega menus ---------- */
.mainnav .nav-links {
  gap: 36px;
}

.mainnav .nav-links .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.mainnav .nav-links .nav-item::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 24px;
}

.mainnav .nav-links .nav-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Almarai', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mainnav .nav-links .nav-trigger .chev {
  width: 10px;
  height: 6px;
}

.mainnav .nav-links .nav-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--green-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mainnav .nav-links .nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 264px;
  padding: 8px;
  border: 1px solid rgba(6, 64, 43, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 30;
}

.mainnav .nav-links .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(6, 64, 43, 0.14);
  border-top: 1px solid rgba(6, 64, 43, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.mainnav .nav-links .nav-item:hover .nav-dropdown,
.mainnav .nav-links .nav-item:focus-within .nav-dropdown,
.mainnav .nav-links .nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.mainnav .nav-links .nav-item:hover > .nav-trigger,
.mainnav .nav-links .nav-item:focus-within > .nav-trigger,
.mainnav .nav-links .nav-item.open > .nav-trigger {
  color: var(--green-brand);
}

.mainnav .nav-links .nav-item:hover > .nav-trigger::after,
.mainnav .nav-links .nav-item:focus-within > .nav-trigger::after,
.mainnav .nav-links .nav-item.open > .nav-trigger::after {
  transform: scaleX(1);
}

.mainnav .nav-links .nav-item:hover > .nav-trigger .chev path,
.mainnav .nav-links .nav-item:focus-within > .nav-trigger .chev path,
.mainnav .nav-links .nav-item.open > .nav-trigger .chev path {
  stroke: var(--gold);
}

.mainnav .nav-links .nav-trigger:focus-visible {
  outline: none;
}

.mainnav .nav-links .nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #06402B !important;
  font-family: 'Almarai', sans-serif;
  font-size: 13.5px !important;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  white-space: normal;
  transform: none !important;
  will-change: auto;
}

.mainnav .nav-links .nav-dropdown a::after {
  display: none !important;
}

.mainnav .nav-links .nav-dropdown a:hover,
.mainnav .nav-links .nav-dropdown a:focus-visible {
  background: #f3faf6;
  color: #06402B !important;
  outline: none;
}

.mainnav .nav-links .mega-menu {
  width: min(640px, calc(100vw - 64px));
  padding: 8px;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow:
    0 28px 72px rgba(3, 28, 18, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.mainnav .nav-links .services-mega {
  width: min(560px, calc(100vw - 64px));
}

.mega-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.mega-intro {
  position: relative;
  display: block;
  padding: 12px 16px 13px 18px;
  color: #06402B;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(248, 252, 250, 0.98) 0%, rgba(255, 255, 255, 0.98) 72%),
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.12), transparent 42%);
  overflow: hidden;
}

.mega-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 999px;
  background: var(--green-brand);
}

.mega-intro span {
  display: block;
  margin: 0 0 3px;
  color: var(--green-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-intro strong {
  display: block;
  margin: 0;
  color: #06402B;
  font-size: 16px;
  line-height: 1.2;
}

.mega-intro p {
  margin: 4px 0 0;
  color: #5d6b66;
  font-size: 12.2px;
  line-height: 1.35;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 6px;
  padding: 6px 2px 2px;
}

.mainnav .nav-links .mega-menu .mega-link {
  position: relative;
  min-height: 60px;
  padding: 10px !important;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #06402B !important;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mainnav .nav-links .mega-menu .mega-link:hover,
.mainnav .nav-links .mega-menu .mega-link:focus-visible {
  background: #f5faf7;
  border-color: rgba(6, 64, 43, 0.12);
  transform: none !important;
}

.mega-link.featured {
  background: rgba(6, 64, 43, 0.035) !important;
  border-color: rgba(6, 64, 43, 0.10) !important;
}

.mega-icon {
  --mega-icon-color: #06402B;
  --mega-icon-bg: #f0f7f3;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  background: var(--mega-icon-bg);
  color: var(--mega-icon-color);
  border: 1px solid color-mix(in srgb, var(--mega-icon-color) 20%, transparent);
}

.mega-icon::before {
  content: "";
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: var(--mega-icon-svg) center / contain no-repeat;
          mask: var(--mega-icon-svg) center / contain no-repeat;
}

.mega-icon[data-icon="inscription"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6'/%3E%3Cpath d='M22 11h-6'/%3E%3C/svg%3E"); }
.mega-icon[data-icon="update"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 0-15-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3 12a9 9 0 0 0 15 6.7L21 16'/%3E%3Cpath d='M16 16h5v5'/%3E%3C/svg%3E"); --mega-icon-color: #d85a30; --mega-icon-bg: #fff1e9; }
.mega-icon[data-icon="revision"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='m8 11 2 2 4-5'/%3E%3C/svg%3E"); --mega-icon-color: #4a55b8; --mega-icon-bg: #f0f1ff; }
.mega-icon[data-icon="radiation"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='m17 8 5 5'/%3E%3Cpath d='m22 8-5 5'/%3E%3C/svg%3E"); --mega-icon-color: #c0392b; --mega-icon-bg: #fff0ee; }
.mega-icon[data-icon="suivi"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M5 5h2'/%3E%3Cpath d='M17 5h2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2'/%3E%3Cpath d='m8 14 2 2 5-5'/%3E%3C/svg%3E"); }
.mega-icon[data-icon="reclamation"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M12 7v5'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E"); }
.mega-icon[data-icon="annonces"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 13z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E"); --mega-icon-color: #9b6812; --mega-icon-bg: #fff1cf; }
.mega-icon[data-icon="parcours"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Cpath d='M12 19h1a5 5 0 0 0 5-5V8'/%3E%3Cpath d='M6 16V9a4 4 0 0 1 4-4h5'/%3E%3C/svg%3E"); }
.mega-icon[data-icon="indice"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 13a9 9 0 1 0-18 0'/%3E%3Cpath d='M12 13 16 7'/%3E%3Cpath d='M7 13h10'/%3E%3C/svg%3E"); --mega-icon-color: #4a55b8; --mega-icon-bg: #f0f1ff; }
.mega-icon[data-icon="rescoring"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7'/%3E%3Cpath d='M20 4v7h-7'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E"); }
.mega-icon[data-icon="programmes"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.4-9.2-8.3C.8 9.1 2.8 5 6.7 5c2.1 0 3.4 1.2 5.3 3.1C13.9 6.2 15.2 5 17.3 5c3.9 0 5.9 4.1 3.9 7.7C19 16.6 12 21 12 21z'/%3E%3C/svg%3E"); }
.mega-icon[data-icon="stats"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h17'/%3E%3Cpath d='M8 16v-5'/%3E%3Cpath d='M13 16V8'/%3E%3Cpath d='M18 16v-3'/%3E%3C/svg%3E"); --mega-icon-color: #0071bc; --mega-icon-bg: #edf7ff; }
.mega-icon[data-icon="juridique"] { --mega-icon-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M5 6h14'/%3E%3Cpath d='m6 6-4 7h8z'/%3E%3Cpath d='m18 6-4 7h8z'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E"); --mega-icon-color: #5b6870; --mega-icon-bg: #f2f5f6; }

.mainnav .nav-links .mega-menu .mega-icon {
  --mega-icon-color: var(--gold);
  --mega-icon-bg: rgba(233, 173, 59, 0.14);
}

.mega-link > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link strong {
  color: #06402B;
  font-size: 14.2px;
  line-height: 1.18;
}

.mega-link em {
  color: #5d6b66;
  font-size: 12px;
  line-height: 1.34;
  font-style: normal;
  font-weight: 400;
}

.mobile-overlay .mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 5px 0;
  padding: 6px;
  background: #f4f9f5;
  border-radius: 14px;
  border: 1px solid rgba(6, 64, 43, 0.08);
}

/* Section label */
.mobile-overlay .mobile-nav-group > span {
  display: block;
  color: var(--green-brand);
  font-family: 'Almarai', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 8px 4px;
  opacity: 0.7;
}

/* Individual link — pill-shaped, no border lines */
.mobile-overlay .mobile-nav-group > a {
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--ink) !important;
  border-radius: 9px;
  background: transparent;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-overlay .mobile-nav-group > a:hover,
.mobile-overlay .mobile-nav-group > a:active {
  background: rgba(6, 64, 43, 0.08);
  color: var(--green-brand) !important;
}

/* ---------- buttons subtle lift ---------- */
.btn {
  transition:
    transform   0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow  0.2s ease,
    background  0.15s ease,
    color       0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(59,109,17,0.28); }
.btn-outline-red:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(192,57,43,0.18); }
.btn-on-green-ghost:hover { transform: translateY(-2px); }

/* ---------- services carousel chevron buttons ---------- */
.services-head .ctrl-btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.services-head .ctrl-btn:hover { transform: scale(1.08); }

/* ---------- FAQ item hover ---------- */
.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: var(--green-300); }
.faq-item .q { transition: color 0.2s ease; }
.faq-item:hover .q { color: var(--green-brand); }

/* ---------- ANNOUNCEMENT cards: extra polish on hover ---------- */
.announcement-card .link svg,
.announcement-card .link {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.2s ease;
}
.announcement-card:hover .link svg { transform: translateX(5px); }
.announcement-card .tag { transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1); }
.announcement-card:hover .tag { transform: scale(1.05); }

/* ---------- SERVICE cards: icon pop + border tint ---------- */
.service-card { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease; }
.service-card:hover { border-color: var(--green-300); }
.service-card .icon { transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.service-card:hover .icon { transform: scale(1.1) rotate(-4deg); }

/* ---------- STATS numbers: scale on hover ---------- */
.stat { transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.stat:hover { transform: translateY(-3px); }
.stat .num { transition: color 0.25s ease; }
.stat:hover .num { color: var(--green-500); }

/* ---------- PARCOURS arrows + button polish ---------- */
.parcours-arrow {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.25s ease;
}
.parcours-grid:hover .parcours-arrow { animation: parcours-bounce 1.6s ease-in-out infinite; }
.parcours-grid:hover .parcours-arrow:nth-of-type(2) { animation-delay: 0.2s; }
@keyframes parcours-bounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.parcours-btn {
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s ease;
}
.parcours-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.15); }
.parcours-card .icon-wrap { transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
.parcours-card:hover .icon-wrap { transform: scale(1.08); }
.parcours-card .num { transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.parcours-card:hover .num { transform: translate(-50%, -50%) scale(1.04); }

/* ---------- VARIABLES grid: icon scale on hover ---------- */
.variable .v-icon { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
.variable:hover .v-icon { transform: scale(1.1); }

/* ---------- PROGRAMMES SOCIAUX — section animations ---------- */
/* Green explainer cards: lift + soft glow on hover, subtle shine on entrance */
.three-dots-row .dot-item {
  position: relative;
  overflow: hidden;
  transition:
    transform   0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow  0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.three-dots-row .dot-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(59,109,17,0.28);
}
/* Diagonal sheen that sweeps across the green cards once when they reveal */
.three-dots-row .dot-item::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.three-dots-row.in-view .dot-item::after {
  animation: dot-sheen 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.three-dots-row.in-view > *:nth-child(1)::after { animation-delay: 0.20s; }
.three-dots-row.in-view > *:nth-child(2)::after { animation-delay: 0.40s; }
.three-dots-row.in-view > *:nth-child(3)::after { animation-delay: 0.60s; }
@keyframes dot-sheen {
  0%   { left: -40%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* Divider: draws in from the center when the section enters view */
.programmes-section .divider {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}
.programmes-section.in-view .divider,
.programmes-section .programs-grid.in-view ~ .divider,
.programmes-section .three-dots-row.in-view ~ .divider { transform: scaleX(1); }

/* Program-card icon: gentle scale + colored ring halo on hover */
.program-card .icon-circle {
  transition:
    transform   0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow  0.35s ease;
  box-shadow: 0 0 0 0 transparent;
}
.program-card:hover .icon-circle { transform: scale(1.06); }
.program-card.color-red:hover    .icon-circle { box-shadow: 0 0 0 6px rgba(192,57,43,0.18); }
.program-card.color-orange:hover .icon-circle { box-shadow: 0 0 0 6px rgba(216,90,48,0.18); }
.program-card.color-purple:hover .icon-circle { box-shadow: 0 0 0 6px rgba(83,74,183,0.18); }
.program-card.color-green:hover  .icon-circle { box-shadow: 0 0 0 6px rgba(15,110,86,0.18); }

/* ---------- SCROLL-TO-TOP BUTTON ---------- */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 33px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity   0.3s ease,
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover  { background: var(--green-500); box-shadow: 0 12px 26px rgba(0,0,0,0.22); transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .scroll-top { bottom: 86px; right: 19px; width: 44px; height: 44px; }
  .scroll-top svg { width: 18px; height: 18px; }
}

/* ---------- DEMO TOGGLE (proposition switcher) ---------- */
.demo-toggle {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 28, 21, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 2147483600;
  font-family: 'Almarai', 'Roboto', sans-serif;
  animation: demo-toggle-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes demo-toggle-in {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to   { opacity: 1; transform: translateX(-50%); }
}
/* Fade-in on page load */
@keyframes page-in { from { opacity: 0 } to { opacity: 1 } }
body { animation: page-in 0.22s ease both; }
.demo-toggle-tag {
  background: #e9ad3b;
  color: #06402B;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-right: 1px;
  flex-shrink: 0;
}
.demo-toggle-opt {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 13px;
  min-width: 34px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.25s ease;
}
.demo-toggle-opt:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.demo-toggle-opt.active {
  color: #06402B;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.demo-toggle-opt.active:hover { background: #fff; color: #06402B; }
@media (max-width: 600px) {
  .demo-toggle { bottom: 16px; padding: 4px; gap: 2px; }
  .demo-toggle-tag { font-size: 9.5px; padding: 5px 9px; letter-spacing: 1.2px; }
  .demo-toggle-opt { min-width: 30px; height: 28px; font-size: 12px; padding: 0 9px; }
}

/* (Video slider keeps only its original slot-swap easing — no extra animations) */

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Stagger children inside a [data-reveal-group] when in-view */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal-group].in-view > * { opacity: 1; transform: none; }
[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0.00s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: 0.40s; }
[data-reveal-group].in-view > *:nth-child(7) { transition-delay: 0.48s; }
[data-reveal-group].in-view > *:nth-child(8) { transition-delay: 0.56s; }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}


/* =================================================================
   ============== DEMO 1 STRUCTURED RESOURCE PAGES =================
   ================================================================= */

/* Dedicated FAQ page */
.faq-page .faq-hero-block {
  min-height: 560px !important;
  padding-bottom: 0 !important;
  overflow: visible;
  position: relative;
}

/* Nav — dark text on canvas */
.faq-page .faq-hero-block .mainnav .logo-block .title-ar,
.faq-page .faq-hero-block .mainnav .logo-block .title-fr { color: #003d2e !important; }
.faq-page .faq-hero-block .mainnav .logo-block .divider { background: rgba(0,61,46,0.2); }
.faq-page .faq-hero-block .mainnav .logo-block .crest {
  mix-blend-mode: multiply;
  background: transparent;
}
.faq-page .faq-hero-block .mainnav .nav-links a,
.faq-page .faq-hero-block .mainnav .nav-links .nav-trigger { color: rgba(0,61,46,0.8); }
.faq-page .faq-hero-block .mainnav .nav-links a:hover,
.faq-page .faq-hero-block .mainnav .nav-links a[aria-current="page"],
.faq-page .faq-hero-block .mainnav .nav-links .nav-item:hover > .nav-trigger,
.faq-page .faq-hero-block .mainnav .nav-links .nav-item:focus-within > .nav-trigger,
.faq-page .faq-hero-block .mainnav .nav-links .nav-item.open > .nav-trigger { color: #c8881a; }
.faq-page .faq-hero-block .mainnav .nav-links a::after,
.faq-page .faq-hero-block .mainnav .nav-links .nav-trigger::after { background: #c8881a; }
.faq-page .faq-hero-block .mainnav .nav-links a:hover .chev path,
.faq-page .faq-hero-block .mainnav .nav-links .nav-item:hover > .nav-trigger .chev path,
.faq-page .faq-hero-block .mainnav .nav-links .nav-item:focus-within > .nav-trigger .chev path,
.faq-page .faq-hero-block .mainnav .nav-links .nav-item.open > .nav-trigger .chev path { stroke: #c8881a; }
.faq-page .faq-hero-block .mainnav .lang { color: #003d2e; }
.faq-page .faq-hero-block .mainnav .lang .caret { border-top-color: #c8881a; }
.faq-page .faq-hero-block .mainnav .hamburger span { background: #003d2e; }
.faq-page .faq-hero-block .mainnav .nav-right .btn.btn-on-green-solid {
  background: #006a4e;
  color: #fff;
}

.faq-page .hero-ornaments {
  inset: 88px 0 0;
  opacity: 0.12;
}

/* Curved white wave at bottom of hero */
.faq-page .faq-hero-block::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 80px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
}

.faq-page-head {
  position: relative;
  z-index: 1;
  padding: 60px 0 110px;
  color: #003d2e;
}

.faq-page-head .content {
  width: min(1157.44px, calc(100% - 80px));
}

/* Two-column hero layout */
.faq-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

/* Left column */
.faq-hero-text {
  display: flex;
  flex-direction: column;
}

.faq-hero-eyebrow {
  margin: 0 0 16px;
  color: #c8881a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-page-head h1 {
  margin: 0 0 20px;
  color: #003d2e;
  font-family: 'Almarai', sans-serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.faq-h1-accent {
  color: #c8881a;
}

.faq-hero-lede {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,61,46,0.62);
  max-width: 460px;
}

.faq-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-hero-tags span {
  background: rgba(0,106,78,0.07);
  border: 1px solid rgba(0,106,78,0.18);
  color: rgba(0,61,46,0.8);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 100px;
}

/* Right column — decorative floating cards */
.faq-hero-deco {
  position: relative;
  height: 340px;
}

.faq-deco-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,106,78,0.1) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.faq-deco-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,106,78,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 14px 18px;
  color: #003d2e;
  font-size: 14px;
  line-height: 1.4;
  max-width: 230px;
  box-shadow: 0 8px 32px rgba(0,61,46,0.1);
}

.faq-deco-qmark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #e9ad3b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #006a4e;
  font-family: 'Almarai', sans-serif;
}

.faq-deco-card--1 { top: 10px;  left: 0;    animation: faq-float 4.2s ease-in-out infinite; }
.faq-deco-card--2 { top: 110px; right: 10px; animation: faq-float 4.2s ease-in-out infinite 1.4s; }
.faq-deco-card--3 { bottom: 10px; left: 30px; animation: faq-float 4.2s ease-in-out infinite 2.8s; }

@keyframes faq-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Main content sits above the wave */
.faq-page-main {
  position: relative;
  z-index: 3;
}

.faq-page-main #faq {
  padding: 72px 0 96px;
}

.faq-grid-page {
  align-items: start;
}

.faq-page .faq-grid .left h2 {
  text-transform: none;
  letter-spacing: 0;
}

.faq-page .demo-toggle {
  display: flex;
}

@media (max-width: 1000px) {
  .faq-page .faq-hero-block {
    min-height: 0 !important;
  }

  .faq-page-head {
    padding: 40px 0 80px;
  }

  .faq-page-head .content {
    width: calc(100% - 40px);
  }

  .faq-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-hero-deco {
    display: none;
  }

  .faq-page-head h1 {
    font-size: 34px;
  }

  .faq-hero-lede {
    font-size: 15px;
  }
}

/* Hero block — light abstract canvas shared by resource pages */
.hero-block {
  position:static;
  /* background: url('../assets/hero_bg_demo1.png') center top / cover no-repeat; */
  background: url('../assets/hero_bg_6.png') center top / cover no-repeat;

  background-color: #f5f7f2;
  overflow: hidden;
  isolation: isolate;
}

.hero-block .mainnav {
  border-bottom: 1px solid rgba(6, 64, 43, .10);
}

.hero-block .mainnav .logo-block .title-ar,
.hero-block .mainnav .logo-block .title-fr {
  color: #06402B;
}

.hero-block .mainnav .logo-block .divider {
  background: rgba(6, 64, 43, .22);
}

.hero-block .mainnav .nav-links a,
.hero-block .mainnav .nav-links .nav-trigger {
  color: rgba(6, 64, 43, 0.82);
}

.hero-block .mainnav .nav-links a:hover,
.hero-block .mainnav .nav-links a[aria-current="page"],
.hero-block .mainnav .nav-links .nav-item:hover > .nav-trigger,
.hero-block .mainnav .nav-links .nav-item:focus-within > .nav-trigger,
.hero-block .mainnav .nav-links .nav-item.open > .nav-trigger { color: #06402B; }

.hero-block .mainnav .nav-links a::after,
.hero-block .mainnav .nav-links .nav-trigger::after { background: #e9ad3b; }

.hero-block .mainnav .nav-links a:hover .chev path,
.hero-block .mainnav .nav-links .nav-item:hover > .nav-trigger .chev path,
.hero-block .mainnav .nav-links .nav-item:focus-within > .nav-trigger .chev path,
.hero-block .mainnav .nav-links .nav-item.open > .nav-trigger .chev path { stroke: #06402B; }

.hero-block .mainnav .lang { color: #06402B; }
.hero-block .mainnav .lang .caret { border-top-color: #e9ad3b; }

.hero-block .mainnav .nav-right .btn.btn-on-green-solid {
  background: #06402B;
  color: #fff;
}

.hero-block .mainnav .hamburger span,
.hero-block .mainnav .hamburger span::before,
.hero-block .mainnav .hamburger span::after { background: #06402B; }
.hero-block .mainnav .lang-mobile { color: #06402B; }

/* Dedicated resource pages */
.mainnav .nav-links .services-mega {
  width: min(560px, calc(100vw - 64px));
}

.services-mega .mega-panel {
  grid-template-columns: 1fr;
}

.services-mega .mega-grid-services {
  align-content: stretch;
}

.resource-page .resource-hero-block {
  position: relative;
  background: #faf6ee;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible;
}

.resource-page .resource-page-head {
  overflow: hidden;
}

.resource-page .resource-page-head::after {
  content: '';
  position: absolute;
  right: max(10px, calc(10% - 640px));
  top: 0;
  bottom: 0;
  width: 280px;
  background: url('../assets/ornement-green.svg') center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.resource-page .hero-ornaments {
  display: none;
}

.resource-page-head {
  position: relative;
  z-index: 1;
  padding: 46px 0 58px;
  color: #06402B;
}

.resource-page-head .content {
  width: min(1157.44px, calc(100% - 80px));
}

.resource-page-head p {
  margin: 0 0 12px;
  color: #e9ad3b;
  font-weight: 800;
  font-size: 14px;
}

.resource-page-head h1 {
  max-width: 820px;
  margin: 0;
  color: #06402B;
  font-family: 'Almarai', sans-serif;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.resource-page-head span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: rgba(6, 64, 43, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.resource-page-main {
  background:
    linear-gradient(180deg, #fff 0%, #fbfdfb 42%, #fff 100%);
}

.resource-overview {
  padding: 78px 0 34px;
}

.resource-section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.resource-section-head > span,
.resource-detail-title > span,
.resource-tabs-head > span,
.resource-tab-panel-title > span,
.resource-note-card > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #b68a2d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-section-head > span::before,
.resource-detail-title > span::before,
.resource-tabs-head > span::before,
.resource-tab-panel-title > span::before,
.resource-note-card > span::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #c0392b;
}

.resource-section-head h2,
.resource-detail-title h2,
.resource-tabs-head h2 {
  margin: 0;
  color: #06402B;
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.resource-section-head h2 {
  font-size: 36px;
  line-height: 1.18;
}

.resource-section-head p,
.resource-detail-title p,
.resource-tabs-head p,
.resource-tab-panel-title p {
  margin: 14px 0 0;
  color: #4f5d58;
  font-size: 17px;
  line-height: 1.65;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.programmes-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-card {
  position: relative;
  min-height: 214px;
  padding: 24px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(244, 250, 246, 0.96), rgba(255, 255, 255, 0.98));
  color: #06402B;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.resource-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  opacity: 0.06;
  background: #06402B;
  -webkit-mask: url('../assets/ornement-green.svg') center / contain no-repeat;
          mask: url('../assets/ornement-green.svg') center / contain no-repeat;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(6, 64, 43, 0.28);
  box-shadow: 0 24px 58px rgba(6, 64, 43, 0.11);
}

.resource-num {
  display: inline-flex;
  min-width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #06402B;
  color: #e9ad3b;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.resource-card h3 {
  position: relative;
  z-index: 1;
  margin: 30px 0 10px;
  color: #1f2623;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.resource-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #5a6561;
  font-size: 14.5px;
  line-height: 1.55;
}

.programmes-jump-card {
  display: flex;
  flex-direction: column;
}

body.rtl-page .programmes-jump-card {
  align-items: stretch;
}

body.rtl-page .programmes-jump-card .resource-num {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

body.rtl-page .programmes-jump-card h3 {
  margin-top: 28px;
}

.programmes-jump-card strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding: 8px 11px;
  border: 1px solid rgba(6, 64, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #06402B;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.25;
}

body.rtl-page .programmes-jump-card strong {
  width: 100%;
  padding: 10px 12px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: normal;
}

.programmes-icon-card .icon-circle {
  position: relative;
  z-index: 1;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.programmes-icon-card .icon-circle img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.programmes-icon-card h3 {
  margin-top: 26px;
}

body.rtl-page .programmes-icon-card .icon-circle {
  align-self: flex-start;
}

.program-rsu-criterion {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-left: 4px solid #e9ad3b;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(247, 251, 248, 0.98));
}

body.rtl-page .program-rsu-criterion {
  border-left-width: 1px;
  border-right: 4px solid #e9ad3b;
  text-align: right;
}

.program-rsu-criterion span {
  display: block;
  margin-bottom: 8px;
  color: #b68a2d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-rsu-criterion strong {
  display: block;
  color: #06402B;
  font-size: 18px;
  line-height: 1.35;
}

.program-rsu-criterion p {
  margin: 8px 0 0;
  color: #4f5d58;
  font-size: 15px;
  line-height: 1.6;
}

.program-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

body.rtl-page .program-detail-actions {
  justify-content: flex-end;
}

.program-detail-actions .btn {
  justify-content: center;
  padding: 12px 22px;
}

body.rtl-page .program-detail-actions .btn {
  min-width: 132px;
}

.resource-index-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #06402B;
  --mega-icon-color: #fff;
  border: none;
}

.resource-detail-list {
  padding: 34px 0 98px;
}

.resource-detail-page .resource-detail-list {
  padding-top: 52px;
}

.resource-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #7a8681;
  font-size: 14px;
}

.resource-breadcrumb a {
  color: #06402B;
  font-weight: 700;
  text-decoration: none;
}

.resource-breadcrumb a:hover {
  text-decoration: underline;
}

.resource-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.resource-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.resource-help-card,
.resource-note-card {
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
}

.resource-help-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #b68a2d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-help-tag::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #c0392b;
}

.resource-help-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.22), transparent 34%),
    linear-gradient(145deg, #06402B 0%, #0f6e56 100%);
  color: #fff;
}

.resource-help-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 140px;
  height: 140px;
  opacity: 0.08;
  background: #fff;
  -webkit-mask: url('../assets/ornement-green.svg') center / contain no-repeat;
          mask: url('../assets/ornement-green.svg') center / contain no-repeat;
}

.resource-help-card > * {
  position: relative;
  z-index: 1;
}

.resource-help-card .resource-help-tag {
  color: #e9ad3b;
}

.resource-help-card .resource-help-tag::before {
  background: #fff;
}

.resource-help-card strong {
  display: block;
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}

.resource-help-card p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.58;
}

.resource-help-card .btn {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: #06402B;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.resource-help-card .btn:hover {
  background: #f7fbf8;
}

.resource-note-card {
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.96));
}

.resource-note-card > span {
  margin-bottom: 10px;
}

.resource-note-card p {
  margin: 0;
  color: #46534e;
  font-size: 14.5px;
  line-height: 1.65;
}

.resource-note-card-inline {
  border: 1px solid rgba(6, 64, 43, 0.10);
  background: linear-gradient(145deg, #f7fbf8, #eef6f1);
}

.resource-main-column {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.resource-detail {
  scroll-margin-top: 110px;
  padding: 34px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.resource-detail.resource-detail-compact {
  padding-top: 22px;
}

.resource-detail + .resource-detail {
  margin-top: 22px;
}

.resource-main-column .resource-detail + .resource-detail,
.resource-main-column .resource-rich-section {
  margin-top: 0;
}

.resource-detail:hover {
  border-color: rgba(6, 64, 43, 0.20);
  box-shadow: 0 22px 56px rgba(6, 64, 43, 0.08);
}

.resource-detail:target,
.resource-faqs:target,
.resource-related:target {
  scroll-margin-top: 110px;
}

.resource-detail:target {
  border-color: rgba(233, 173, 59, 0.55);
  box-shadow: 0 0 0 4px rgba(233, 173, 59, 0.13), 0 22px 56px rgba(6, 64, 43, 0.08);
}

.resource-rich-section {
  margin-top: 22px;
}

.resource-rich-section .resource-detail-title h2 {
  font-size: 28px;
}

.resource-detail-title {
  max-width: 850px;
}

.resource-detail-title h2 {
  font-size: 32px;
  line-height: 1.2;
}

.resource-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.resource-tabs-card {
  padding: 30px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
}

.resource-tabs-head {
  max-width: 760px;
}

.resource-tabs-head h2 {
  font-size: 30px;
  line-height: 1.2;
}

.resource-tabs-head p {
  font-size: 15.5px;
}

.resource-tabs-shell {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  align-items: start;
}

.resource-tab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4faf7 0%, #edf6f1 100%);
}

.resource-tab-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #52615b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(6, 64, 43, 0.05);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.resource-tab-button::before {
  content: "";
  flex: 0 0 12px;
  width: 10px;
  height: 10px;
  border-top: 1.75px solid currentColor;
  border-right: 1.75px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.resource-tab-button:hover,
.resource-tab-button:focus-visible {
  color: #06402B;
  background: #fff;
  border-color: rgba(6, 64, 43, 0.18);
  box-shadow: 0 14px 28px rgba(6, 64, 43, 0.10);
  transform: translateY(-1px);
}

.resource-tab-button.active {
  color: #06402B;
  background: #fff;
  border-color: rgba(6, 64, 43, 0.20);
  box-shadow: inset 4px 0 0 #e9ad3b, 0 16px 32px rgba(6, 64, 43, 0.12);
}

.resource-tab-button.active::before {
  opacity: 1;
}

.resource-tab-panels {
  min-width: 0;
}

.resource-tab-panel {
  padding: 26px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background: #fff;
}

.resource-tab-panel[hidden] {
  display: none;
}

.resource-tab-panel-title {
  max-width: 790px;
}

.resource-tab-panel-title h3 {
  margin: 0;
  color: #06402B;
  font-size: 26px;
  line-height: 1.2;
}

.resource-tab-panel-title p {
  font-size: 15.5px;
}

.resource-info-box {
  padding: 22px;
  border-radius: 10px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  background: #f7fbf8;
}

#essentiel .resource-info-box h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#essentiel .resource-info-box h3::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #c0392b;
  flex: 0 0 auto;
}

.resource-info-box h3 {
  margin: 0 0 14px;
  color: #06402B;
  font-size: 18px;
  line-height: 1.25;
}

.resource-info-box ul,
.resource-info-box ol {
  margin: 0;
  padding-left: 20px;
  color: #3e4844;
  font-size: 15px;
  line-height: 1.72;
}

.resource-info-box li + li {
  margin-top: 7px;
}

.resource-info-box-wide {
  margin-top: 24px;
}

.resource-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 10px;
  background: #fff;
}

.resource-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #33403b;
  font-size: 14px;
  line-height: 1.55;
}

.resource-table th,
.resource-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(6, 64, 43, 0.10);
  text-align: left;
  vertical-align: top;
}

.resource-table th {
  color: #06402B;
  background: #f2f8f4;
  font-weight: 800;
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.resource-note {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #e9ad3b;
  border-radius: 8px;
  background: #fffaf0;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.65;
}

.resource-faqs {
  padding: 30px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
}

.resource-faqs .resource-section-head {
  margin-bottom: 18px;
}

.resource-faqs .resource-section-head h2 {
  font-size: 28px;
}

.resource-faq-list {
  display: grid;
  gap: 12px;
}

.resource-faq-item {
  padding: 0;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 64, 43, 0.045);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-faq-item[open] {
  border-color: rgba(6, 64, 43, 0.20);
  box-shadow: 0 18px 42px rgba(6, 64, 43, 0.07);
}

.resource-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: #06402B;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.resource-faq-item summary::-webkit-details-marker {
  display: none;
}

.resource-faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #b68a2d;
  transition: transform 0.2s ease;
}

.resource-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.resource-faq-item summary:hover {
  background: #f8fbf9;
}

.resource-faq-item h3 {
  margin: 0;
  color: #06402B;
  font-size: 17px;
  line-height: 1.35;
}

.resource-faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: #4f5d58;
  font-size: 15px;
  line-height: 1.65;
}

.resource-related {
  margin-top: 42px;
}

.resource-related .resource-section-head {
  margin-bottom: 20px;
}

.resource-related .resource-section-head h2 {
  font-size: 26px;
}

.resource-related .resource-card {
  min-height: 182px;
}

.info-detail-list {
  padding-top: 40px;
}

.info-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.info-layout:not(.info-layout-full) .info-main-column {
  grid-column: 2;
  grid-row: 1;
}

.info-layout:not(.info-layout-full) .info-side-panel {
  grid-column: 1;
  grid-row: 1;
}

.info-main-column {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.info-side-panel {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
}

.info-lead-card,
.info-section-card,
.info-reading-card {
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
}

.info-lead-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.98));
}

.info-lead-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  opacity: 0.045;
  background: #06402B;
  -webkit-mask: url('../assets/ornement-green.svg') center / contain no-repeat;
          mask: url('../assets/ornement-green.svg') center / contain no-repeat;
}

.info-lead-card > span,
.info-reading-card > span,
.info-update-card > span,
.info-doc-grid article > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b68a2d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-lead-card > span::before,
.info-reading-card > span::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #c0392b;
}

.info-lead-card h2 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 12px 0 0;
  color: #06402B;
  font-family: 'Almarai', sans-serif;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.info-lead-card p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 14px 0 0;
  color: #4f5d58;
  font-size: 16.5px;
  line-height: 1.65;
}

.info-quick-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.info-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(6, 64, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #06402B;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.info-quick-links a:hover,
.info-quick-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(6, 64, 43, 0.26);
  background: #fff;
}

.info-section-card {
  padding: 30px;
  scroll-margin-top: 110px;
}

.info-section-card.compact {
  padding: 26px;
}

.info-section-card .resource-section-head {
  margin-bottom: 24px;
}

.info-section-card .resource-section-head h2 {
  font-size: 30px;
}

.info-update-grid,
.info-dashboard-grid,
.info-doc-grid,
.info-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-update-card,
.info-dashboard-grid article,
.info-doc-grid article,
.info-compare-grid article,
.info-step-card,
.info-cycle-grid article,
.info-equation article {
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 10px;
  background: #f7fbf8;
}

.info-update-card {
  min-height: 210px;
  padding: 22px;
}

.info-update-card.urgent {
  background: linear-gradient(145deg, rgba(255, 247, 244, 0.95), rgba(255, 255, 255, 0.98));
}

.info-update-card.campaign {
  background: linear-gradient(145deg, rgba(247, 252, 242, 0.95), rgba(255, 255, 255, 0.98));
}

.info-update-card.procedure {
  background: linear-gradient(145deg, rgba(247, 250, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.info-update-card h3,
.info-doc-grid article h3,
.info-compare-grid article h3,
.info-step-card h3,
.info-cycle-grid article h3,
.info-equation article strong {
  margin: 16px 0 10px;
  color: #06402B;
  font-size: 20px;
  line-height: 1.25;
}

.info-update-card p,
.info-doc-grid article p,
.info-compare-grid article p,
.info-step-card p,
.info-cycle-grid article p,
.info-equation article p {
  margin: 0;
  color: #4f5d58;
  font-size: 14.5px;
  line-height: 1.6;
}

.info-update-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: #06402B;
  font-size: 13px;
  font-weight: 900;
}

.info-tabs-card {
  scroll-margin-top: 110px;
}

.info-tab-panel .info-check-list {
  margin-top: 22px;
}

.info-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3e4844;
  font-size: 15px;
  line-height: 1.65;
}

.info-check-list li {
  position: relative;
  padding-left: 22px;
}

.info-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b6b51;
  box-shadow: 0 0 0 4px rgba(11, 107, 81, 0.08);
}

.info-check-list li + li {
  margin-top: 9px;
}

.info-disclosure-list {
  display: grid;
  gap: 10px;
}

.info-disclosure {
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.info-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 16px 18px;
  color: #06402B;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.info-disclosure summary::-webkit-details-marker {
  display: none;
}

.info-disclosure summary i {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-right: 2px solid #b68a2d;
  border-bottom: 2px solid #b68a2d;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.18s ease;
}

.info-disclosure[open] summary i {
  transform: rotate(225deg) translateY(-3px);
}

.info-disclosure div {
  padding: 0 18px 18px;
}

.info-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-step-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.14), transparent 32%),
    #f7fbf8;
}

.info-step-card span,
.info-cycle-grid article span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #06402B;
  color: #e9ad3b;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.info-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.info-equation i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b68a2d;
  font-style: normal;
  font-size: 30px;
  font-weight: 900;
}

.info-equation article {
  padding: 22px;
}

.info-equation article span {
  display: block;
  color: #b68a2d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-equation article strong {
  display: block;
}

.info-compare-grid.two,
.info-compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-compare-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-compare-grid article {
  padding: 22px;
}

.info-cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-cycle-grid article {
  min-height: 210px;
  padding: 22px;
  background: #f7fbf8;
}

.info-dashboard-grid article {
  min-height: 188px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(247, 251, 248, 0.96), rgba(255, 255, 255, 0.98));
}

.info-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-dashboard-grid article strong {
  display: block;
  color: #06402B;
  font-family: 'Almarai', sans-serif;
  font-size: 36px;
  line-height: 1;
}

.info-dashboard-grid article span {
  display: block;
  margin-top: 12px;
  color: #1f2623;
  font-size: 16px;
  font-weight: 900;
}

.info-dashboard-grid article p {
  margin-top: 10px;
}

.info-bar-list {
  display: grid;
  gap: 14px;
}

.info-bar-list div {
  display: grid;
  grid-template-columns: 210px minmax(120px, 1fr) minmax(90px, auto);
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 10px;
  background: #f7fbf8;
  color: #34413c;
  font-size: 14px;
}

.info-bar-list span {
  font-weight: 800;
}

.info-bar-list i {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(6, 64, 43, 0.10);
  overflow: hidden;
}

.info-bar-list i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, #06402B, #1a8d6d);
}

.info-bar-list strong {
  color: #06402B;
  text-align: right;
}

.info-doc-grid article {
  min-height: 220px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 248, 0.98));
}

.info-doc-grid article a {
  display: inline-flex;
  margin-top: 18px;
  color: #06402B;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.info-doc-grid article a:hover {
  text-decoration: underline;
}

.info-note-card,
.info-reading-card {
  padding: 20px;
}

.info-reading-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.96));
}

.info-reading-card > span {
  margin-bottom: 14px;
}

.info-reading-card div {
  padding: 14px 0;
  border-top: 1px solid rgba(6, 64, 43, 0.10);
}

.info-reading-card div:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.info-reading-card strong {
  display: block;
  color: #06402B;
  font-size: 15px;
  line-height: 1.3;
}

.info-reading-card p {
  margin: 6px 0 0;
  color: #52605b;
  font-size: 13.5px;
  line-height: 1.55;
}

.info-related {
  margin-top: 10px;
}

.info-layout-full {
  grid-template-columns: minmax(0, 1fr);
}

.info-layout-indice.info-layout-full {
  max-width: none;
}

.info-layout-indice .info-main-column {
  gap: 24px;
}

.info-layout-indice .info-lead-card {
  padding: 38px 40px;
  background:
    radial-gradient(circle at 88% 8%, rgba(233, 173, 59, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 247, 0.98));
}

.info-layout-indice .info-lead-card h2 {
  max-width: 980px;
  font-family: 'Roboto', 'Almarai', sans-serif;
  font-size: 38px;
}

.info-layout-indice .info-lead-card p {
  max-width: 1040px;
}

.info-layout-indice .resource-section-head {
  max-width: 920px;
}

.info-layout-indice .resource-section-head p {
  max-width: none;
}

.ise-plain-section,
.ise-variables-section,
.ise-correction-section,
.ise-faq-section {
  overflow: hidden;
}

.ise-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ise-flow article {
  position: relative;
  min-height: 238px;
  padding: 22px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.12), transparent 34%),
    linear-gradient(145deg, #f8fbf8, #ffffff);
}

.ise-flow article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #e9ad3b;
}


.ise-flow article::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  background: url('../assets/bh_annoces_motif.jpg') right bottom / cover no-repeat;
  opacity: 0.08;
  border-radius: 0 0 12px 0;
  pointer-events: none;
}
.ise-flow article span,
.ise-variable-card > span {
  display: block;
  color: #b68a2d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ise-flow article h3,
.ise-variable-card h3 {
  margin: 12px 0 10px;
  color: #06402B;
  font-family: 'Roboto', 'Almarai', sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

.ise-flow article p,
.ise-variable-card p {
  margin: 0;
  color: #4f5d58;
  font-size: 14.5px;
  line-height: 1.62;
}

.ise-variable-carousel {
  width: 100%;
  max-width: none;
}

.ise-variables-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.ise-variable-page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 2px;
}

.ise-variable-page:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ise-variable-card {
  position: relative;
  min-height: 286px;
  padding: 24px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 64, 43, 0.045);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ise-variable-card:hover,
.ise-variable-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(6, 64, 43, 0.26);
  box-shadow: 0 18px 40px rgba(6, 64, 43, 0.08);
  outline: none;
}

.ise-variable-card strong {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(6, 64, 43, 0.10);
  color: #06402B;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.45;
}

.ise-variable-card.emphasis {
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.14), transparent 32%),
    #f7fbf8;
}

.ise-variable-controls {
  margin-top: 20px;
}

.ise-variable-controls .variables-nav {
  width: 36px;
  height: 36px;
  border-color: rgba(6, 64, 43, 0.18);
  background: #fff;
  color: #06402B;
  box-shadow: 0 10px 22px rgba(6, 64, 43, 0.08);
}

.ise-variable-controls .variables-nav:hover,
.ise-variable-controls .variables-nav:focus-visible {
  border-color: rgba(6, 64, 43, 0.32);
  background: #f7fbf8;
}

.ise-variable-controls .variables-dots .dot::before {
  background: rgba(6, 64, 43, 0.22);
}

.ise-variable-controls .variables-dots .dot.active::before {
  background: #e9ad3b;
}

.ise-modal[hidden] {
  display: none;
}

.ise-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.ise-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 38, 26, 0.58);
  backdrop-filter: blur(5px);
}

.ise-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 40px));
  max-height: min(780px, calc(100vh - 56px));
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.14), transparent 30%),
    #fff;
  box-shadow: 0 28px 80px rgba(3, 38, 26, 0.28);
}

.ise-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #06402B;
  cursor: pointer;
}

.ise-modal-close svg {
  width: 18px;
  height: 18px;
}

.ise-modal-panel > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b68a2d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ise-modal-panel > span::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #c0392b;
}

.ise-modal-panel h2 {
  max-width: 760px;
  margin: 12px 54px 0 0;
  color: #06402B;
  font-family: 'Roboto', 'Almarai', sans-serif;
  font-size: 30px;
  line-height: 1.2;
}

.ise-modal-panel > p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #4f5d58;
  font-size: 15.5px;
  line-height: 1.65;
}

.ise-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ise-modal-group {
  padding: 18px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.08), transparent 32%),
    #f8fbf8;
}

.ise-modal-group > h3 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #06402B;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.ise-modal-group-note {
  margin: 12px 0 0;
  color: #52605b;
  font-size: 14.5px;
  line-height: 1.55;
}

.ise-modal-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ise-modal-grid article,
.ise-modal-group-grid article {
  padding: 18px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background: #fff;
}

.ise-modal-grid h3,
.ise-modal-grid h4,
.ise-modal-group-grid h4 {
  margin: 0;
  color: #06402B;
  font-size: 17px;
  line-height: 1.3;
}

.ise-modal-grid p,
.ise-modal-group-grid p {
  margin: 8px 0 0;
  color: #52605b;
  font-size: 14px;
  line-height: 1.55;
}

.ise-modal-grid .ise-modal-group > h3 {
  color: #fff;
  font-size: 13px;
}

.ise-compare-grid article {
  min-height: 188px;
  background:
    linear-gradient(145deg, rgba(247, 251, 248, 0.98), rgba(255, 255, 255, 0.98));
}

.ise-faq-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-color: rgba(6, 64, 43, 0.16);
  background:
    radial-gradient(circle at 0% 100%, rgba(233, 173, 59, 0.18), transparent 34%),
    linear-gradient(135deg, #06402B, #0b5b46);
}

.ise-faq-section .resource-section-head {
  margin: 0;
}

.ise-faq-section .resource-section-head h2 {
  color: #fff;
}

.ise-faq-section .resource-section-head p {
  color: rgba(255, 255, 255, 0.76);
}

.ise-faq-section .info-disclosure-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.ise-faq-section .info-disclosure {
  align-self: start;
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(3, 38, 26, 0.12);
}

.ise-faq-section .info-disclosure summary {
  min-height: 62px;
}

.info-layout-statistiques .info-lead-card {
  padding: 30px 34px;
}

.stats-panel {
  padding: 30px;
  border: 1px solid rgba(6, 64, 43, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(6, 64, 43, 0.06);
  scroll-margin-top: 110px;
}

.stats-panel + .stats-panel {
  margin-top: 0;
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-kpi {
  position: relative;
  overflow: hidden;
  min-height: 162px;
  padding: 22px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 173, 59, 0.13), transparent 34%),
    linear-gradient(145deg, #f8fbf8, #ffffff);
}

.stats-kpi::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 18px solid rgba(6, 64, 43, 0.045);
}

.stats-kpi span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 220px;
  min-height: 40px;
  color: #4f5d58;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.stats-kpi strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: #06402B;
  font-family: 'Roboto', 'Almarai', sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.stats-kpi em {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  color: #6d7a75;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.stats-grid-2 {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.stats-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-chart-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(6, 64, 43, 0.10);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(248, 251, 248, 0.98), rgba(255, 255, 255, 0.98));
}

.stats-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.stats-card-head h3 {
  margin: 0;
  color: #06402B;
  font-size: 20px;
  line-height: 1.25;
}

.stats-card-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(233, 173, 59, 0.16);
  color: #8a671f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stats-bar-list,
.stats-region-list,
.stats-stacked-list {
  display: grid;
  gap: 11px;
}

.stats-bar-list.compact {
  gap: 9px;
}

.stats-bar-row,
.stats-region-row,
.stats-stacked-row {
  display: grid;
  align-items: center;
  gap: 12px;
  color: #34413c;
  font-size: 13.5px;
}

.stats-bar-row {
  grid-template-columns: minmax(96px, 160px) minmax(120px, 1fr) 44px;
}

.stats-region-row {
  grid-template-columns: minmax(180px, 240px) minmax(150px, 1fr) 50px;
}

.stats-stacked-row {
  grid-template-columns: minmax(190px, 260px) minmax(180px, 1fr) 64px;
}

.stats-bar-row span,
.stats-region-row span,
.stats-stacked-row span {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-bar-row span {
  overflow: visible;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.stats-bar-row i,
.stats-region-row i,
.stats-stacked-row i {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6, 64, 43, 0.10);
}

.stats-bar-row i::after,
.stats-region-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, #06402B, #1d8a6c);
}

.stats-region-row i::after {
  background: linear-gradient(90deg, #0b6b51, #e9ad3b);
}

.stats-bar-row strong,
.stats-region-row strong,
.stats-stacked-row strong {
  color: #06402B;
  font-weight: 900;
  text-align: right;
}

.stats-donut-wrap {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 202px;
}

.stats-donut-wrap.small {
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 170px;
}

.stats-donut {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(var(--c1) 0 calc(var(--a) * 1%), var(--c2) 0 100%);
  box-shadow: inset 0 0 0 1px rgba(6, 64, 43, 0.06), 0 16px 34px rgba(6, 64, 43, 0.08);
}

.stats-donut-wrap.small .stats-donut {
  width: 136px;
  height: 136px;
}

.stats-donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(6, 64, 43, 0.08);
}

.stats-donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06402B;
  font-size: 20px;
  font-weight: 900;
}

.stats-legend {
  display: grid;
  gap: 12px;
}

.stats-legend span,
.stats-stack-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #3f4b47;
  font-size: 14px;
  font-weight: 800;
}

.stats-legend i,
.stats-stack-legend i {
  width: 11px;
  height: 11px;
  margin-right: auto;
  border-radius: 50%;
  background: var(--color);
}

.stats-legend strong {
  color: #06402B;
  font-weight: 900;
}

.stats-wide-chart {
  margin-top: 16px;
}

.stats-stack-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: -4px 0 16px;
}

.stats-stack-legend span {
  justify-content: flex-start;
}

.stats-stack-legend i.urban { --color: #0b6b51; }
.stats-stack-legend i.rural { --color: #e9ad3b; }

.stats-stacked-row i {
  display: flex;
  background: rgba(6, 64, 43, 0.08);
}

.stats-stacked-row b {
  display: block;
  height: 100%;
}

.stats-stacked-row b.urban {
  width: var(--urban);
  background: #0b6b51;
}

.stats-stacked-row b.rural {
  width: var(--rural);
  background: #e9ad3b;
}

.resource-page .demo-toggle {
  display: none;
}

.resource-page .footer-col a[href="/Propo1/services/"],
.resource-page .footer-col a[href="/Propo1/programmes-sociaux/"] {
  color: #fff;
}

@media (max-width: 1120px) {
  .resource-layout {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 22px;
  }

  .programmes-card-grid,
  .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .resource-page .resource-hero-block {
    min-height: 0 !important;
  }

  .resource-page .resource-hero-block::after {
    display: none;
  }

  .resource-page-head {
    padding: 36px 0 52px;
  }

  .resource-page-head .content,
  .resource-section-head,
  .resource-detail-title {
    width: calc(100% - 40px);
    max-width: none;
  }

  .resource-detail-list .content {
    width: calc(100% - 40px);
  }

  .resource-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .resource-aside {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-section-head,
  .resource-detail-title {
    width: auto;
  }

  .resource-page-head h1 {
    font-size: 34px;
  }

  .resource-page-head span,
  .resource-section-head p,
  .resource-detail-title p {
    font-size: 15.5px;
  }

  .resource-detail-grid {
    grid-template-columns: 1fr;
  }

  .resource-tabs-shell {
    grid-template-columns: 1fr;
  }

  .resource-tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .resource-tab-button {
    min-width: 190px;
  }

  .resource-tabs-card,
  .resource-faqs {
    padding: 24px;
  }

  .resource-faqs,
  .resource-related {
    margin-top: 4px;
  }
}

@media (max-width: 720px) {
  .resource-overview {
    padding-top: 54px;
  }

  .services-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .resource-card-grid,
  .programmes-card-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 0;
  }

  .resource-detail-list {
    padding: 34px 0 72px;
  }

  .resource-breadcrumb {
    margin-bottom: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .resource-aside {
    grid-template-columns: 1fr;
  }

  .resource-detail {
    padding: 24px 18px;
    border-radius: 10px;
  }

  .resource-detail-title h2 {
    font-size: 26px;
  }

  .resource-info-box {
    padding: 18px;
  }

  .resource-tabs-card,
  .resource-faqs {
    padding: 20px 18px;
  }

  .resource-tab-panel {
    padding: 20px 18px;
  }

  .resource-tab-panel-title h3 {
    font-size: 22px;
  }

  .resource-faq-item summary {
    padding: 18px;
    font-size: 15.5px;
  }

  .resource-faq-item p {
    padding: 0 18px 18px;
  }

  .resource-table {
    min-width: 560px;
  }
}

@media (max-width: 1120px) {
  .info-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-layout:not(.info-layout-full) .info-main-column,
  .info-layout:not(.info-layout-full) .info-side-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .info-side-panel {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-update-grid,
  .info-dashboard-grid,
  .info-doc-grid,
  .info-compare-grid,
  .info-compare-grid.three,
  .info-cycle-grid,
  .ise-flow,
  .ise-variable-page,
  .ise-faq-section .info-disclosure-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-kpi-grid,
  .stats-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ise-faq-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .info-stepper,
  .info-equation {
    grid-template-columns: 1fr;
  }

  .info-equation i {
    min-height: 16px;
    font-size: 24px;
  }

  .info-bar-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-bar-list strong {
    text-align: left;
  }

  .stats-region-row,
  .stats-stacked-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .stats-region-row strong,
  .stats-stacked-row strong {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .info-lead-card,
  .info-section-card,
  .info-section-card.compact {
    padding: 22px 18px;
  }

  .info-lead-card h2 {
    font-size: 27px;
  }

  .info-section-card .resource-section-head h2 {
    font-size: 25px;
  }

  .info-side-panel,
  .info-update-grid,
  .info-dashboard-grid,
  .info-doc-grid,
  .info-compare-grid,
  .info-compare-grid.three,
  .info-cycle-grid,
  .ise-flow,
  .ise-variable-page,
  .ise-faq-section .info-disclosure-list {
    grid-template-columns: 1fr;
  }

  .info-layout-indice .info-lead-card h2 {
    font-size: 28px;
  }

  .ise-flow article,
  .ise-variable-card {
    min-height: 0;
  }

  .ise-variable-page:last-child,
  .ise-modal-grid,
  .ise-modal-group-grid {
    grid-template-columns: 1fr;
  }

  .ise-modal {
    padding: 18px;
  }

  .ise-modal-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 36px);
    padding: 24px 18px;
  }

  .ise-modal-panel h2 {
    margin-right: 48px;
    font-size: 24px;
  }

  .stats-panel {
    padding: 22px 18px;
  }

  .stats-kpi-grid,
  .stats-grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-kpi {
    min-height: 132px;
  }

  .stats-kpi strong {
    font-size: 36px;
  }

  .stats-card-head {
    flex-direction: column;
    gap: 8px;
  }

  .stats-bar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .stats-bar-row strong {
    text-align: left;
  }

  .stats-donut-wrap,
  .stats-donut-wrap.small {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .stats-legend {
    width: 100%;
  }

  .stats-stack-legend {
    justify-content: flex-start;
  }

  .info-quick-links {
    gap: 8px;
  }

  .info-quick-links a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

html[lang="fr"] body,
html[lang="fr"] body :where(h1, h2, h3, h4, h5, h6, p, a, button, span, li, td, th, label, input, textarea, select, strong, em, small, div) {
  font-family: 'Roboto', 'Almarai', system-ui, -apple-system, Segoe UI, sans-serif !important;
}

html[lang="fr"] .title-ar,
html[lang="fr"] .title-ar *,
html[lang="fr"] .lang,
html[lang="fr"] .lang *,
html[lang="fr"] [lang="ar"],
html[lang="fr"] [lang="ar"] *,
html[lang="fr"] [dir="rtl"],
html[lang="fr"] [dir="rtl"] *,
html[lang="fr"] .font-almarai {
  font-family: 'Almarai', 'Roboto', system-ui, sans-serif !important;
}

.explainer-wrap {
  height: auto !important;
  min-height: 0 !important;
  padding: 56px 0 64px !important;
}

.explainer-wrap > section {
  padding: 0 !important;
}

.explainer-wrap .explainer-head {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  margin-bottom: 44px !important;
}

.explainer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.explainer-title-row h2 {
  margin: 0 !important;
}

.explainer-title-row .explainer-more-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.explainer-intro-actions {
  display: block;
}

.explainer-col .variables-carousel {
  align-self: center;
}

.explainer-col .variables-carousel + .variables-link {
  margin-top: 16px;
}

/* =================================================================
   ====== EXPLAINER TITLE ROW + EN SAVOIR PLUS =====================
   ================================================================= */
.explainer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.explainer-title-row h2 {
  margin: 0 !important;
}

.explainer-title-row .explainer-more-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.explainer-intro-actions {
  display: block;
}

.explainer-more-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 28px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.explainer-more-link .arrow-go svg {
  width: 13px;
  height: 15px;
  color: var(--gold);
}

.explainer-more-link:hover,
.explainer-more-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
}

/* =================================================================
   ====== VARIABLES CAROUSEL =======================================
   ================================================================= */
.variables-carousel {
  width: 454px;
  max-width: 100%;
}

body.rtl-page .variables-carousel,
body.rtl-page .variables-viewport,
body.rtl-page .variables-track,
body.rtl-page .variables-page {
  direction: ltr;
}

body.rtl-page .variables-track {
  flex-direction: row-reverse;
}

body.rtl-page .variables-page {
  justify-content: center;
}

body.rtl-page .variables-page .variable {
  direction: rtl;
}

.variables-viewport {
  width: 100%;
  overflow: hidden;
}

.variables-track {
  display: flex;
  width: 100%;
  transition: transform 0.32s ease;
  will-change: transform;
}

.variables-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 221px 221px;
  gap: 12px;
}

.variables-page .variable {
  width: 221px;
  height: 151px;
  padding: 18px 16px;
  gap: 18px;
  border-width: 1px;
  border-radius: 12px;
}

.variables-page .variable .v-icon {
  color: #2f7a37;
}

.variables-page .variable .v-icon svg {
  width: 36px;
  height: 36px;
}

.variables-page .variable span {
  max-width: 174px;
  font-size: 12.5px;
  line-height: 1.3;
}

.variables-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.variables-nav {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.variables-nav svg {
  width: 16px;
  height: 16px;
}

.variables-nav:hover,
.variables-nav:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.15);
}

.variables-nav:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.variables-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.variables-dots .dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.variables-dots .dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, background 0.2s ease;
}

.variables-dots .dot.active {
  width: 24px;
}

.variables-dots .dot.active::before {
  width: 20px;
  background: var(--gold);
}

.explainer-col .variables-carousel {
  align-self: center;
}

.info-layout-indice .ise-variable-carousel {
  width: 100%;
  max-width: none;
}

.info-layout-indice .ise-variable-page {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-layout-indice .ise-variable-page:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .explainer-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .explainer-title-row .explainer-more-link {
    align-self: flex-start;
  }

  .variables-carousel {
    width: min(454px, 100%);
  }

  .variables-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variables-page .variable {
    width: auto;
    min-width: 0;
  }
}

/* =================================================================
   ====== AI CHATBOT DEMO ==========================================
   ================================================================= */
.ai-chat-widget,
.ai-chat-widget * {
  box-sizing: border-box;
}

.ai-chat-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  padding: 0 !important;
  z-index: 1200;
  font-family: 'Roboto', 'Almarai', system-ui, -apple-system, Segoe UI, sans-serif;
}

[dir="rtl"] .ai-chat-widget {
  right: auto;
  left: 28px;
  font-family: 'Almarai', 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
}

.ai-chat-bubble {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(233, 173, 59, 0.28), transparent 34%),
    linear-gradient(145deg, #0a7653 0%, #06402B 74%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 42px rgba(6, 64, 43, 0.32), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, opacity 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ai-chat-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(6, 64, 43, 0.38), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.ai-chat-bubble:focus-visible {
  outline: 2px solid #e9ad3b;
  outline-offset: 4px;
}

.ai-chat-bubble svg {
  width: 29px;
  height: 29px;
}

.ai-chat-widget.open .ai-chat-bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.94);
}

.ai-chat-pulse {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e9ad3b;
  box-shadow: 0 0 0 5px rgba(233, 173, 59, 0.2);
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(372px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(6, 64, 43, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 72px rgba(6, 64, 43, 0.26), 0 10px 26px rgba(0, 0, 0, 0.16);
}

[dir="rtl"] .ai-chat-panel {
  right: auto;
  left: 0;
}

.ai-chat-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(233, 173, 59, 0.2), transparent 38%),
    linear-gradient(145deg, #07543b 0%, #063824 100%);
}

.ai-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #e9ad3b;
}

.ai-chat-avatar svg {
  width: 29px;
  height: 29px;
}

.ai-chat-header strong,
.ai-chat-header span {
  display: block;
}

.ai-chat-header strong {
  font-size: 16px;
  line-height: 1.2;
}

.ai-chat-header span {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.ai-chat-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ai-chat-close:hover,
.ai-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.ai-chat-close svg {
  width: 18px;
  height: 18px;
}

.ai-chat-messages {
  max-height: min(360px, 46vh);
  padding: 16px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(233, 173, 59, 0.08), transparent 30%),
    #f6faf7;
}

.ai-chat-message {
  display: flex;
  margin-bottom: 10px;
}

.ai-chat-message.user {
  justify-content: flex-end;
}

[dir="rtl"] .ai-chat-message.user {
  justify-content: flex-start;
}

.ai-chat-message-bubble {
  max-width: 88%;
  padding: 12px 13px;
  border-radius: 14px;
  background: #fff;
  color: #27362f;
  border: 1px solid rgba(6, 64, 43, 0.1);
  box-shadow: 0 8px 22px rgba(6, 64, 43, 0.08);
}

.ai-chat-message.user .ai-chat-message-bubble {
  background: #06402B;
  color: #fff;
  border-color: #06402B;
}

.ai-chat-message-bubble p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.ai-chat-message-bubble a {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #07543b;
}

.ai-chat-message-bubble a::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 7px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h12M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h12M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

[dir="rtl"] .ai-chat-message-bubble a::after {
  margin-left: 0;
  margin-right: 7px;
  transform: rotate(180deg);
}

.ai-chat-typing .ai-chat-message-bubble {
  display: inline-flex;
  gap: 5px;
  padding: 14px 15px;
}

.ai-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d958b;
  animation: ai-chat-dot 0.9s ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) { animation-delay: 0.12s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.24s; }

@keyframes ai-chat-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 14px 16px 10px;
  background: #fff;
}

.ai-chat-form input {
  grid-column: 1;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(6, 64, 43, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  color: #17241f;
  background: #fbfdfb;
  font-size: 14px;
  outline: none;
}

.ai-chat-form input:focus {
  border-color: #0a7653;
  box-shadow: 0 0 0 4px rgba(10, 118, 83, 0.12);
}

.ai-chat-form button {
  grid-column: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #06402B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ai-chat-form button:hover,
.ai-chat-form button:focus-visible {
  transform: translateY(-1px);
  background: #0a5436;
}

.ai-chat-form svg {
  width: 20px;
  height: 20px;
}

.ai-chat-note {
  margin: 0;
  padding: 0 16px 16px;
  background: #fff;
  color: #718079;
  font-size: 11.5px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .ai-chat-widget {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  [dir="rtl"] .ai-chat-widget {
    right: auto;
    left: 16px;
  }

  .ai-chat-bubble {
    width: 54px;
    height: 54px;
  }

  .ai-chat-panel {
    right: 0;
    bottom: 70px;
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-bubble,
  .ai-chat-form button {
    transition: none !important;
  }

  .ai-chat-typing span {
    animation: none !important;
  }
}

/* ======================================================================
   INNER PAGES — PHONE (≤ 600 px)
   Only phone-specific overrides. Desktop layout is completely untouched.
   ====================================================================== */
@media (max-width: 600px) {

  /* ---- Nav: compact logo for small phones ---- */
  .mainnav {
    height: 64px;
  }

  .mainnav .logo-block {
    height: 46px;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .mainnav .logo-block .crest {
    height: 40px;
  }

  .mainnav .logo-block .divider {
    display: none;
  }

  .mainnav .logo-block .title-stack {
    min-width: 0;
    max-width: 145px;
  }

  .mainnav .logo-block .title-ar,
  .mainnav .logo-block .title-fr {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ---- Resource hero-block: soft green gradient instead of flat cream ---- */
  .resource-page .resource-hero-block {
    background: linear-gradient(180deg, #e6f4ec 0%, #f4faf7 55%, #fff 100%);
  }

  /* ---- Resource page head section ---- */
  .resource-page-head {
    padding: 20px 0 28px;
  }

  /* Hide decorative ornament — too wide for phone viewports */
  .resource-page .resource-page-head::after {
    display: none;
  }

  .resource-page-head p {
    font-size: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
  }

  .resource-page-head h1 {
    font-size: 22px;
    line-height: 1.28;
  }

  .resource-page-head span {
    font-size: 14px;
    line-height: 1.62;
    margin-top: 10px;
  }

  /* ---- Section / detail headings ---- */
  .resource-section-head h2 {
    font-size: 21px;
    line-height: 1.28;
  }

  .resource-section-head p {
    font-size: 14.5px;
  }

  .resource-detail-title h2 {
    font-size: 21px;
  }

  /* ---- Overview section vertical spacing ---- */
  .resource-overview {
    padding: 30px 0 16px;
  }

  /* ---- Card grids → horizontal sliders (snap-scroll) ---- */
  .resource-card-grid,
  .programmes-card-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 4px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .resource-card-grid::-webkit-scrollbar,
  .programmes-card-grid::-webkit-scrollbar {
    display: none;
  }

  /* 82 % width: shows one full card + peek of the next */
  .resource-card-grid > *,
  .programmes-card-grid > * {
    flex: 0 0 82%;
    max-width: 310px;
    scroll-snap-align: start;
    min-height: 0 !important;
    min-width: 0;
  }

  /* ---- Detail list section ---- */
  .resource-detail-list {
    padding: 20px 0 52px;
  }

  /* Override the 2-class rule that adds 52px top padding on service/detail pages */
  .resource-detail-page .resource-detail-list {
    padding-top: 16px;
  }

  .resource-detail {
    padding: 20px 16px;
  }

  /* ---- Info boxes ---- */
  .resource-info-box {
    padding: 16px 14px;
  }

  /* ---- FAQ heading inside resource pages ---- */
  .resource-faqs .resource-section-head h2 {
    font-size: 21px;
  }

  /* ---- Tabs: full-width stacked buttons on mobile ---- */
  .resource-tab-list {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .resource-tab-button {
    width: 100%;
    min-width: 0;
  }

  /* ================================================================
     INNER PAGE CONTENT GRIDS → horizontal sliders
     Covers: annonces, rescoring, textes-juridiques, statistiques,
             indice-socio-economique pages
     ================================================================ */

  .info-update-grid,
  .info-cycle-grid,
  .info-doc-grid,
  .info-dashboard-grid,
  .stats-kpi-grid,
  .stats-grid-3,
  .ise-flow {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 4px 0 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .info-update-grid::-webkit-scrollbar,
  .info-cycle-grid::-webkit-scrollbar,
  .info-doc-grid::-webkit-scrollbar,
  .info-dashboard-grid::-webkit-scrollbar,
  .stats-kpi-grid::-webkit-scrollbar,
  .stats-grid-3::-webkit-scrollbar,
  .ise-flow::-webkit-scrollbar { display: none; }

  /* Content cards: 78% — one full + clear peek of next */
  .info-update-grid > *,
  .info-cycle-grid > *,
  .info-doc-grid > * {
    flex: 0 0 78%;
    max-width: 290px;
    scroll-snap-align: start;
    min-height: 0 !important;
    min-width: 0;
  }

  /* Compact metric cards: show a bit more peek */
  .info-dashboard-grid > *,
  .stats-kpi-grid > *,
  .stats-grid-3 > *,
  .ise-flow > * {
    flex: 0 0 72%;
    max-width: 260px;
    scroll-snap-align: start;
    min-height: 0 !important;
    min-width: 0;
  }

  /* Fix items that had fixed min-height for desktop */
  .info-update-card,
  .info-dashboard-grid article,
  .stats-kpi,
  .ise-flow article {
    min-height: 0;
  }

  /* ---- Inner-page: viewport-anchored width constraints ----
     Use !important + 100vw so these cannot be lost to specificity
     battles with the global "section > .content { width: 1156px }" rule. */

  .resource-detail-list .content,
  .info-detail-list .content {
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Sidebar: force single column on small phones */
  .resource-aside {
    grid-template-columns: 1fr;
  }

  /* Every card in the main column must stay within its grid cell */
  .resource-detail,
  .resource-tabs-card,
  .resource-faqs,
  .resource-related,
  .info-section-card {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* FAQ summary: the span is a flex item — add min-width: 0 so it
     can shrink below max-content and allow text to wrap */
  .resource-faq-item summary span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Headings inside inner-page cards */
  .resource-detail-title h2,
  .resource-section-head h2,
  .resource-tabs-head h2,
  .resource-tab-panel-title h3 {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  /* Paragraphs and list items */
  .resource-detail-title p,
  .resource-info-box li,
  .resource-note-card p,
  .resource-help-card p,
  .resource-faq-item p {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .resource-info-box ul,
  .resource-info-box ol {
    padding-left: 18px;
  }

  /* Tighter horizontal padding on tabs card and FAQ */
  .resource-tabs-card,
  .resource-faqs {
    padding: 18px 14px;
  }

  .resource-tab-panel {
    padding: 16px 14px;
  }

  /* Table: reduce forced min-width */
  .resource-table {
    min-width: 420px;
  }

  /* Breadcrumb: prevent long paths from widening the page */
  .resource-breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
  }
}
body.rtl-page .variables-nav svg { transform: scaleX(-1); }
body.rtl-page .ise-variable-card,
body.rtl-page .ise-flow article {
  text-align: right;
  direction: rtl;
}
