/* ===== 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: #3b6d11;
  --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: #3b6d11;
  --mint-bg:    #f3faf6;
}

/* 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; }
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; }

/* ===== 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; }
.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 ===== */
.hero {
  padding: 16px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero h1 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 46px;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  width: 346px;
  height: 92px;
}
.hero h1 .accent { color: var(--green-brand); display: block; }
.hero .lede {
  width: 525px;
  height: auto;
  margin: 14px auto 0;
  text-align: center;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 140%;
  letter-spacing: 0;
  color: var(--ink);
}
.hero .cta-row { display: flex; gap: 13px; justify-content: center; margin-top: 16px; }
.hero .cta-row .btn { padding: 11px 21px; font-size: 13.5px; }

.hero-media {
  position: relative;
  margin-top: 16px;
  width: 1700px;
  margin-left: calc(50% - 850px);
  height: 360px;
  overflow: hidden;
}
/* Full-bleed decorative motif — widened to bleed further left & right */
.hero-media .motif-bg {
  position: absolute;
  left: 0;
  top: 12px;
  width: 1700px;
  height: 245px;
  background: url('../../assets/bh_video_motif.jpg') center/cover no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to top, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 100%);
}
/* SLOT-based hero frames — clickable carousel */
.hero-media .frame {
  position: absolute;
  border-radius: 34px;
  overflow: hidden;
  background: #d7dddaff center/cover no-repeat;
  z-index: 1;
  transition:
    width  0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    left   0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    top    0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-media .frame[data-slot="center"]     { width: 600px; height: 337px; left: 550px;  top: 12px; z-index: 2; cursor: default; }
.hero-media .frame[data-slot="right-peek"] { width: 495px; height: 277px; left: 1310px; top: 42px; z-index: 1; cursor: pointer; }
.hero-media .frame[data-slot="left-peek"]  { width: 495px; height: 277px; left: -105px; top: 42px; z-index: 1; cursor: pointer; }
.hero-media .frame .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  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; }
/* (Right peek now uses the slot-based system above; legacy rule removed) */

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

/* (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 {
  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; }
.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, 291px); gap: 32px; }
.announcement-card {
  position: relative;
  background: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  width: 291px;
  height: 388px;
  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: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 1; }
.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-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.icon-inscription { background-image: url("../../assets/fi_Inscription.jpg"); }
.icon-maj         { background-image: url("../../assets/fi_Mise%20%C3%A0%20jour.jpg"); }
.icon-revision    { background-image: url("../../assets/fi_R%C3%A9vision%20de%20l%27Indice.jpg"); }
.icon-radiation   { background-image: url("../../assets/fi_Radiation.jpg"); }
.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;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--mint-bg);
  border-radius: 40px;
  padding: 56px 24px;
  overflow: visible;
  align-items: center;
}
.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 ===== */
.explainer-wrap {
  background: #f3f3f3;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.explainer-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 520px;
  height: 420px;
  background: url('../../assets/bh_annoces_motif.jpg') right bottom/cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
          mask-image: radial-gradient(circle at 100% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
  z-index: 0;
}
.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: #081c15;
  margin: 0 0 43px;
}
.explainer-head p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 1020px;
}

.explainer-cols {
  display: grid;
  grid-template-columns: 524px 1fr;
  column-gap: 24px;
  align-items: start;
}
.explainer-col-title {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  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: 43px solid green with white number */
.step .bullet {
  position: absolute;
  left: -69px;
  top: -4px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #3b6d11;
  color: #ffffff;
  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 — no line after the last bullet */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 45px;
  bottom: -34px;
  width: 2px;
  background: #534ab7;
  z-index: 0;
}
.step h3 {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  line-height: 1.2;
}
.step p {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* RIGHT — variables grid (4 cols × 2 rows) */
.variables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 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;
}

/* ===== 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: 652px;
}

/* 3-item dotted explainer */
.three-dots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 56px;
  position: relative;
}
.dot-item { text-align: center; }
.dot-item .dot-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed #3b6d11;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.dot-item .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b6d11;
}
.dot-item h3 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  margin: 0 0 12px;
}
.dot-item p {
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto;
  max-width: 263px;
}
/* Solid connector lines between dots */
.three-dots-row::before,
.three-dots-row::after {
  content: "";
  position: absolute;
  top: 17px;
  height: 1.5px;
  background: #3b6d11;
  z-index: 0;
}
.three-dots-row::before { left: calc(16.666% + 22px); width: calc(33.333% - 44px); }
.three-dots-row::after  { left: calc(50% + 22px);     width: calc(33.333% - 44px); }

.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); }

/* ===== Documents légaux ===== */
.docs-wrap {
  background: var(--green-brand);
  border-radius: 52px;
  width: 1156px;
  height: 549px;
  margin: 0 auto;
  padding: 70px 118px 70px 118px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.docs-wrap .docs-motif {
  position: absolute;
  left: 0;
  top: 189px;
  width: 1156px;
  height: 360px;
  background: url('../../assets/bh_annoces_motif.jpg') center/cover no-repeat;
  border-bottom-left-radius: 52px;
  border-bottom-right-radius: 52px;
  filter: invert(1) brightness(1.4) contrast(1.1);
  mix-blend-mode: screen;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.docs-wrap .head,
.docs-wrap .docs-grid { position: relative; z-index: 1; }
.docs-wrap .head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  margin-bottom: 47px;
}
.docs-wrap .head-text { max-width: 504px; }
.docs-wrap .head h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 43px;
  text-transform: uppercase;
  color: #f6f5f0;
  margin: 0 0 16px;
}
.docs-wrap .head p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #f6f5f0;
  margin: 0;
}
.docs-wrap .head .btn-on-green-ghost { padding: 12px 22px; font-size: 14px; font-weight: 700; white-space: nowrap; }

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc-card {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 24px;
  height: 262px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.doc-card .icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #f3faf6;
  color: var(--green-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-card .body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.doc-card h3 {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #262626;
  line-height: 1.2;
}
.doc-card p {
  margin: 0;
  font-family: 'Almarai', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: #262626;
  line-height: 1.5;
  flex: 1;
}
.doc-card .link {
  color: #000;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.doc-card .link .arrow-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}
.doc-card .link .arrow-go svg { color: #0f6e56; transform: rotate(-90deg); width: 13px; height: 15px; }
/* 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: #3b6d11;
  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; }
.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: #3b6d11;
  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; }
.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,
  .docs-wrap,
  .help-banner { width: 92%; max-width: 1156px; }

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

  /* Hero — drop both peeks, center the active video */
  .hero-media { width: 100%; margin-left: 0; height: auto; padding-bottom: 16px; }
  .hero-media .motif-bg { width: 100%; left: 0; }
  .hero-media .frame[data-slot="right-peek"],
  .hero-media .frame[data-slot="left-peek"] { display: none; }
  .hero-media .frame[data-slot="center"] {
    position: relative;
    width: min(640px, 90%);
    height: auto;
    aspect-ratio: 16 / 9;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
  }
}

/* ============================ ≤ 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: 0; }
  .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;
  }
  .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 */
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 80px 24px 24px;
    overflow-y: auto;
  }
  .mobile-overlay.open { transform: translateY(0); }
  .mobile-overlay .close {
    position: absolute; top: 24px; right: 24px;
    width: 36px; height: 36px;
    border: none; background: transparent; cursor: pointer;
    font-size: 28px; color: var(--ink); line-height: 1;
  }
  .mobile-overlay nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
  .mobile-overlay nav a {
    padding: 16px 0;
    font-size: 17px; font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-overlay .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .mobile-overlay .actions .btn { width: 100%; }

  /* Hero text adjustments */
  .hero h1 { font-size: 30px; line-height: 38px; width: auto; height: auto; padding: 0 16px; }
  .hero .lede { width: auto; padding: 0 24px; height: auto; }

  /* Grids reduce */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid     { grid-template-columns: repeat(2, 1fr); }
  .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); }
  .three-dots-row { grid-template-columns: 1fr; gap: 28px; }
  .three-dots-row::before,
  .three-dots-row::after { display: none; }
  .explainer-cols { grid-template-columns: 1fr; row-gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 24px; gap: 32px 0; }
  .stat + .stat::before { display: none; }

  .announcements { padding: 32px; height: auto; }
  .docs-wrap     { padding: 40px 24px; height: auto; }
  .docs-wrap .head { flex-direction: column; align-items: flex-start; gap: 16px; }

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

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

  /* Hero shrinks further, buttons stack */
  .hero { padding: 8px 0 40px; }
  .hero h1 { font-size: 26px; line-height: 32px; padding: 0 20px; }
  .hero .lede { font-size: 14px; padding: 0 20px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; padding: 0 24px; }

  section { padding: 56px 0; }

  /* ---- HORIZONTAL SLIDERS on mobile ---- */
  /* Generic slider behaviour applied to specific grids */
  .announcement-grid,
  .services-grid,
  .programs-grid,
  .docs-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    gap: 16px;
    padding: 24px 16px;
    margin: 0 -16px;            /* extend slider past container so cards bleed to edge */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .announcement-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .programs-grid::-webkit-scrollbar,
  .docs-grid::-webkit-scrollbar { display: none; }

  .announcement-grid > *,
  .services-grid > *,
  .programs-grid > *,
  .docs-grid > * {
    flex: 0 0 78%;
    scroll-snap-align: center;
    min-width: 0;
  }
  .announcement-card { width: auto; height: auto; min-height: 340px; }
  .service-card      { width: auto; }
  .program-card      { width: auto; height: auto; min-height: 360px; }
  .doc-card          { width: auto; height: auto; min-height: 220px; }

  /* 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 stack */
  .stats { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; border-radius: 28px; }
  .stats .corner { width: 80px; height: 80px; }
  .stat { padding: 0 12px; }
  .stat .num { font-size: 32px; }

  /* Annonces panel */
  .announcements {
    width: 92%;
    padding: 32px 20px;
    border-radius: 32px;
    height: auto;
  }
  .announcements .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .announcements .head h2 { font-size: 22px; }

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

  /* Explainer */
  .explainer-head h2 { font-size: 24px; line-height: 32px; }
  .explainer-head p  { font-size: 15px; }
  .steps { padding-left: 50px; }
  .step .bullet { left: -52px; width: 36px; height: 36px; font-size: 18px; }
  .step:not(:last-child)::before { left: -36px; top: 38px; bottom: -34px; }

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

  /* Docs */
  .docs-wrap { width: 92%; border-radius: 32px; padding: 32px 20px; }
  .docs-wrap .head h2 { font-size: 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,
.doc-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,
.doc-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); }
.doc-card .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); }

/* ---------- 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); }

/* (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; }
}

/* =================================================================
   ============ PROPO 2 OVERRIDES (dark-green hero) ================
   ================================================================= */

:root {
  --p2-green:  #0a3d2e;
  --p2-green2: #0f4d3a;
  --p2-gold:   #e9ad3b;
}

/* ============ HERO BLOCK (nav + hero share dark-green canvas) ============ */
.hero-block {
  position: relative;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}
.hero-block::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,.04), transparent 65%),
    radial-gradient(45% 60% at 10% 80%, rgba(233,173,59,.05), transparent 65%);
  pointer-events: none; z-index: 0;
}

/* Two gold curve decorations: top-left + bottom-right */
.hero-curve {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  mix-blend-mode: screen;
  filter: brightness(1.15) saturate(.95);
  opacity: .9;
}
.hero-curve-tl {
  left: -120px; top: 60px;
  width: 720px; height: 230px;
  background-image: url('../assets/bg_hero/Vector 32.jpg');
}
.hero-curve-br {
  right: -120px; bottom: -20px;
  width: 720px; height: 230px;
  background-image: url('../assets/bg_hero/Vector 31.jpg');
}

/* ============ MAIN NAV — dark-green / white text ============ */
.hero-block .mainnav {
  position: relative; z-index: 5;
  background: transparent;
  height: 88px;
  padding: 0 60px;
}
.hero-block .mainnav .logo-block .crest { height: 60px; }
.hero-block .mainnav .logo-block .divider { background: rgba(255,255,255,.3); height: 40px; }
.hero-block .mainnav .logo-block .title-ar,
.hero-block .mainnav .logo-block .title-fr { color: #fff; font-size: 13px; }
.hero-block .mainnav .nav-links a {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.hero-block .mainnav .nav-links a:hover { color: var(--p2-gold); }
.hero-block .mainnav .lang { color: #fff; font-size: 13px; }
.hero-block .mainnav .lang .caret {
  border-top-color: var(--p2-gold);
}
.hero-block .mainnav .nav-right .btn-on-green-solid {
  background: #fff;
  color: var(--p2-green);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.hero-block .mainnav .nav-right .btn-on-green-solid:hover { background: #f1f8f4; }

.hero-block .mainnav .hamburger { display: none; }
.hero-block .mainnav .hamburger,
.hero-block .mainnav .hamburger::before,
.hero-block .mainnav .hamburger::after,
.hero-block .mainnav .hamburger span { background: #fff; }

/* ============ HERO (inside hero-block) — 2-col layout ============ */
.hero-block .hero {
  position: relative; z-index: 3;
  padding: 0;
  overflow: visible;
  color: #fff;
}
.hero-inner {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 30px 0 110px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-block .hero h1 {
  width: auto; height: auto;
  margin: 0 0 20px;
  text-align: left;
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #fff;
}
.hero-block .hero h1 .accent { color: var(--p2-gold); display: block; }
.hero-block .hero .lede {
  width: auto;
  max-width: 460px;
  margin: 0 0 28px;
  text-align: left;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
}
.hero-block .hero .cta-row { justify-content: flex-start; margin-top: 0; gap: 14px; }
.hero-block .hero .cta-row .btn { padding: 13px 24px; font-size: 13.5px; }
.btn-on-green-solid {
  background: #fff;
  color: var(--p2-green);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.btn-on-green-solid:hover { background: #f1f8f4; }
.btn-on-green-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.btn-on-green-ghost:hover { background: rgba(255,255,255,.12); }

/* Hero photo (single image with play button) */
.hero-block .hero-media {
  position: relative;
  width: auto; height: auto;
  margin: 0;
  overflow: visible;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: #1a4f3c center/cover no-repeat;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.hero-photo .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-photo .play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
}
.hero-photo .play-button svg { color: var(--p2-green); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: width .2s ease, background .2s ease;
}
.hero-dots .dot.active { background: #fff; width: 22px; border-radius: 999px; }

/* ============ ANNONCES — white section, tinted cards ============ */
section .announcements {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 auto;
}
.announcements .annonces-motif { display: none; }
.announcements .head h2 { color: var(--p2-green); }
section:has(.announcements) { padding: 80px 0; background: #fff; }
.announcement-grid { grid-template-columns: repeat(3, 1fr); }
.announcement-card {
  width: auto;
  height: auto;
  min-height: 280px;
  background: #fbe6e1;
  padding: 26px;
  border-radius: 14px;
}
.announcement-card::after { display: none; }
.announcement-card.tint-pink  { background: #fbe6e1; }
.announcement-card.tint-cream { background: #fbf2d4; }
.announcement-card .tag {
  background: #fff;
  padding: 5px 12px;
  font-size: 12px;
}
.announcement-card .tag-important   { color: var(--red-500); background: #fff; }
.announcement-card .tag-program     { color: #1d7a5a; background: #d8f0e3; }
.announcement-card .tag-important-2 { color: var(--red-500); background: #fff; }
.announcement-card h3 { font-size: 18px; }
.announcement-card .link { color: var(--p2-green); }
.announcement-card .link svg { color: var(--p2-green); }
.announcement-card.link-purple .link,
.announcement-card.link-purple .link svg,
.announcement-card.link-green  .link,
.announcement-card.link-green  .link svg { color: var(--p2-green); }

/* ============ SERVICES — no prev/next, just dots below ============ */
.services-section .controls { display: none; }
.services-section .section-title { color: var(--p2-green); font-family: 'Almarai', sans-serif; }
.services-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 28px;
}
.services-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d6d6d6;
}
.services-dots .dot.active {
  background: var(--p2-green);
  width: 22px; border-radius: 999px;
}

/* ============ STATS — flat beige strip, no rounded panel, no motifs ============ */
.stats {
  background: #f5efe2;
  border-radius: 0;
  padding: 40px 24px;
  margin-top: 56px;
}
.stats .corner { display: none; }
.stats .stat .num { color: var(--p2-green); font-family: 'Almarai', sans-serif; font-weight: 800; }
.stats .stat + .stat::before { background: #d8c9a6; height: 80px; }

/* ============ EXPLAINER — DARK GREEN bg, gold numbered steps ============ */
.explainer-wrap {
  background: var(--p2-green);
  color: #fff;
}
.explainer-wrap::after { display: none; }
.explainer-head h2 { color: #fff; }
.explainer-head p   { color: rgba(255,255,255,.85); }
.explainer-col-title { color: #fff; }
.step h3 { color: #fff; }
.step p  { color: rgba(255,255,255,.78); }
.step .bullet {
  background: var(--p2-gold);
  color: var(--p2-green);
  box-shadow: 0 0 0 4px var(--p2-green);
}
.step:not(:last-child)::before { background: rgba(255,255,255,.25); }
.variable { background: #fff; }
.variable span { color: var(--ink); }

/* ============ PROGRAMMES — solid green dots with connector ============ */
.programmes-head h2 { color: var(--p2-green); }
.dot-item .dot-wrap {
  border: none;
  background: transparent;
  width: auto; height: auto;
}
.dot-item .dot {
  width: 16px; height: 16px;
  background: var(--p2-green);
  box-shadow: 0 0 0 6px #fff;
  margin: 0 auto;
}
.three-dots-row::before,
.three-dots-row::after { background: var(--p2-green); top: 8px; }
.programmes-section .divider { background: var(--line); }

/* Program-card icon-circle background tints */
.program-card.color-red    .icon-circle { background: #fde2dd; }
.program-card.color-orange .icon-circle { background: #fbe2d5; }
.program-card.color-purple .icon-circle { background: #ece9f7; }
.program-card.color-green  .icon-circle { background: #d8f0e3; }

/* ============ DOCUMENTS — dark green full-width band ============ */
section:has(> .docs-wrap) { padding: 80px 0; background: #fff; }
.docs-wrap {
  background: var(--p2-green);
  width: auto;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 60px;
}
.docs-wrap .docs-motif { display: none; }
.docs-wrap .head h2 { color: #fff; }
.docs-wrap .head p  { color: rgba(255,255,255,.85); }
.docs-wrap .doc-card .icon { background: #e6f4ee; color: var(--p2-green); }
.docs-wrap .doc-card .link { color: var(--p2-green); }
.docs-wrap .doc-card .link svg { color: var(--p2-green); }

/* ============ FAQ — pill rows, expand to green ============ */
.faq-grid .left h2 { color: var(--p2-green); }
.faq-item.open { background: #e6f4ee; }
.faq-item.open .q .ic-wrap { background: var(--p2-green); color: #fff; }

/* ============ BESOIN D'AIDE — centered, green pill ============ */
.help-section { background: #fff; }
.help-banner {
  background: transparent;
  border-radius: 0;
  padding: 30px 0;
  flex-direction: column;
  text-align: center;
  gap: 12px;
}
.help-banner .text-block h3 { color: var(--p2-green); text-transform: uppercase; }
.help-banner .text-block { text-align: center; }
.btn-primary-green {
  background: var(--p2-green);
  color: #fff;
  padding: 14px 38px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.btn-primary-green:hover { background: #0d5240; }

/* ============ FOOTER — clean white with green headings ============ */
footer { background: #fff; border-top: 1px solid var(--line); padding: 50px 0 24px; }
footer .footer-col h4 { color: var(--p2-green); }
footer .brand .brand-divider { background: #d6d6d6; }

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 24px 0 80px; }
  .hero-block .hero h1 { font-size: 44px; text-align: left; }
  .hero-block .hero .lede { max-width: none; text-align: left; }
  .hero-block .hero .cta-row { justify-content: flex-start; }
  .hero-block .mainnav .nav-links,
  .hero-block .mainnav .lang,
  .hero-block .mainnav .nav-right .btn,
  .hero-block .mainnav .nav-right a.btn { display: none !important; }
  .hero-block .mainnav .hamburger { display: inline-flex !important; }
  .hero-curve-tl, .hero-curve-br { display: none; }
  /* Kill the desktop aspect ratio so the hero-block grows to fit nav + content */
  .hero-block {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background-color: #06402B !important;
    background-size: 100% 100% !important;
  }
}
@media (max-width: 760px) {
  .hero-block .hero h1 { font-size: 36px; }
  .announcement-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* =================================================================
   ====== PROPO 2 — round 2 (emblem, hero bg, nav typo) =============
   ================================================================= */

/* Hero block uses the prepared hero_bg.svg as the dark-green canvas */
.hero-block {
  background: url('../assets/hero_bg.svg') center top / cover no-repeat;
}
.hero-block::before { display: none; }

/* Emblem is 49×83 (tall) — give it room without stretching */
.hero-block .mainnav .logo-block .crest {
  width: auto;
  height: 60px;
}

/* Title-stack stays bilingual, white on green */
.hero-block .mainnav .logo-block .title-ar,
.hero-block .mainnav .logo-block .title-fr {
  color: #fff;
  font-family: 'Almarai', sans-serif;
}
.hero-block .mainnav .logo-block .divider {
  background: rgba(255, 255, 255, .35);
}

/* Nav links — exact Figma typography */
.hero-block .mainnav .nav-links a {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0;
  color: #fff;
  text-transform: none;
}
.hero-block .mainnav .nav-links a:hover { color: var(--p2-gold); }

/* The "Compte du ménage" pill: white background, dark green text */
.hero-block .mainnav .nav-right .btn.btn-on-green-solid {
  background: #fff;
  color: var(--p2-green);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
}
.hero-block .mainnav .nav-right .btn.btn-on-green-solid:hover {
  background: #f1f8f4;
}

/* Lang switcher — white text, gold caret */
.hero-block .mainnav .lang {
  color: #fff;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 14px;
}
.hero-block .mainnav .lang .caret { border-top-color: var(--p2-gold); }

/* Thin horizontal rule under the nav (matches mockup) */
.hero-block .mainnav {
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

/* =================================================================
   ====== PROPO 2 — round 3 (preserve v1 sizing + video frame) ======
   ================================================================= */

/* Annonces — keep v1's fixed 1156×606 inline-block sizing, just remove the green panel */
section .announcements {
  width: 1156px;
  height: auto;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 0;   /* the cards align naturally; section already has 80px vertical padding */
}
section .announcements .head {
  padding: 0 0 28px 0;
}
.announcements .head h2 {
  color: var(--p2-green);
  font-size: 24px;
  letter-spacing: 0.5px;
}
.announcements .annonces-motif { display: none; }

/* Cards keep v1's 291×388 fixed footprint, tinted by class */
.announcement-card {
  width: 291px;
  height: 388px;
  min-height: 0;
  padding: 30px;
  border-radius: 12px;
}
.announcement-card.tint-pink  { background: #fbe6e1; }
.announcement-card.tint-cream { background: #fbf2d4; }

/* Hero photo — visible white "frame" around the video, matches the mockup */
.hero-block .hero-photo {
  border: 6px solid #ffffff;
  background-clip: padding-box;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}

/* =================================================================
   ====== PROPO 2 — round 4 (Figma-spec alignment) ==================
   ================================================================= */

:root {
  --p2-green-bg:  #06402B;   /* dark hero / section bg */
  --p2-green-btn: #0E6B44;   /* button + accents */
  --p2-mint-bg:   #F5F9F3;   /* stats + help band */
}

/* HERO BLOCK — use SVG bg (curves baked in), drop the JPG + curve overlays */
.hero-block {
  background: url('../assets/hero_bg.svg') center top / 100% auto no-repeat;
  background-color: transparent;
  min-height: 712px;
  padding-bottom: 0;
}
.hero-block::before { display: none; }
.hero-curve-tl, .hero-curve-br { display: none; }

/* NAV — thin centered underline (1157px) instead of full-width */
.hero-block .mainnav {
  border-bottom: none;
  position: relative;
}
.hero-block .mainnav::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(1157px, calc(100% - 80px));
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* COMPTE DU MÉNAGE — 176×38, 6px radius, 10/20 padding, 10px gap */
.hero-block .mainnav .nav-right .btn[class*="on-green-solid"],
.hero-block .mainnav .nav-right a.btn {
  background: var(--p2-green-btn) !important;
  color: #fff !important;
  font-family: 'Almarai', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  width: 176px !important;
  height: 38px !important;
  padding: 10px 20px !important;
  gap: 10px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero-block .mainnav .nav-right .btn[class*="on-green-solid"]:hover {
  background: #0a5436 !important;
}

/* ============ ANNONCES — 378×348 cards, gap 32px per Figma ============ */
section .announcements {
  width: min(1200px, calc(100% - 40px));
  padding: 0 0 0 0;
}
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.announcement-card {
  width: auto;
  max-width: 378px;
  height: 348px;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.announcement-card .tag {
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
}
.announcement-card h3 { font-size: 18px; }
.announcement-card p  { font-size: 13.5px; line-height: 1.55; }

/* ============ STATS — full-bleed #F5F9F3 band ============ */
.services-section { overflow: visible; }
.stats {
  background: var(--p2-mint-bg);
  border-radius: 0;
  padding: 56px 24px;
  margin-top: 56px;
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 100vw;
  background: var(--p2-mint-bg);
  z-index: -1;
}
.stats .corner { display: none; }
.stats .stat .num { color: var(--p2-green-bg); font-family: 'Almarai', sans-serif; font-weight: 800; }
.stats .stat + .stat::before { background: #c5d3c6; height: 80px; }

/* ============ EXPLAINER — 2nd_bg.svg ============ */
.explainer-wrap {
  background: var(--p2-green-bg) url('../assets/2nd_bg.svg') center / cover no-repeat;
  padding: 80px 0;
  color: #fff;
}
.explainer-wrap::after { display: none; }
.explainer-head h2 { color: #fff; }
.explainer-head p  { color: rgba(255, 255, 255, .85); }
.explainer-col-title { color: #fff; }
.step h3 { color: #fff; }
.step p  { color: rgba(255, 255, 255, .82); }

/* Restore v1's bullet style (green circle, white number) per user's "use same as root" */
.step .bullet {
  background: var(--p2-green-btn);
  color: #fff;
  box-shadow: none;
}
.step:not(:last-child)::before { background: var(--gold); }

.variable { background: #fff; }
.variable span { color: var(--ink); }

/* ============ 3-DOT ROW — v1 dashed-circle design ============ */
.dot-item .dot-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed var(--p2-green-btn);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.dot-item .dot,
.dot-item .dot-g {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p2-green-btn);
  box-shadow: none;
  margin: 0;
}
.three-dots-row::before,
.three-dots-row::after {
  background: var(--p2-green-btn);
  top: 17px;
  height: 1.5px;
}

/* ============ DOCUMENTS — 3rd_bg1.svg ============ */
.docs-wrap {
  background: var(--p2-green-bg) url('../assets/3rd_bg1.svg') center / cover no-repeat;
  width: 1156px;
  max-width: calc(100% - 40px);
  padding: 70px 60px;
}
.docs-wrap .docs-motif { display: none; }

/* ============ BESOIN D'AIDE — full-bleed #F5F9F3, no arrow on btn ============ */
.help-section {
  background: var(--p2-mint-bg);
  padding: 80px 0;
}
.help-section .help-banner {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}
.help-section .text-block { text-align: center; }
.help-section .text-block h3 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--p2-green-bg);
  margin: 0 0 8px;
  width: auto;
}
.help-section .text-block p {
  font-family: 'Almarai', sans-serif;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}
.btn-primary-green {
  background: var(--p2-green-btn);
  color: #fff;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 56px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border: none;
}
.btn-primary-green:hover { background: #0a5436; }

/* =================================================================
   ====== PROPO 2 — round 5 (precise Figma spec) ====================
   ================================================================= */

/* HERO BG — strictly hero_bg.svg, nothing else */
.hero-block {
  background: url('../assets/hero_bg.svg') center top / 100% 100% no-repeat;
  background-color: transparent;
  min-height: 712px;
  padding: 0 !important;
}

/* NAV — confined within 1157.44px container */
.hero-block .mainnav {
  width: min(1157.44px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  height: 132px;
}
.hero-block .mainnav::after {
  left: 0;
  transform: none;
  width: 100%;
}

/* HERO INNER — explicit 2-col layout with the video positioned per Figma */
.hero-block .hero { padding: 0; overflow: visible; }
.hero-inner {
  position: relative;
  width: min(1157.44px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  display: block;            /* override grid so we can position children freely */
  min-height: 540px;
}
.hero-block .hero-text {
  width: 472px;
  padding-top: 105px;
  max-width: 100%;
}
.hero-block .hero h1 {
  width: 472px;
  height: auto;
  margin: 0 0 24px;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 62px;
  letter-spacing: 0;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
}
.hero-block .hero h1 .accent {
  color: var(--gold);
  display: block;
}
.hero-block .hero .lede {
  width: 472px;
  height: auto;
  max-width: none;
  margin: 0 0 28px;
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 25px;
  color: rgba(255,255,255,.9);
  text-align: left;
}
.hero-block .hero .cta-row {
  display: flex; gap: 14px;
  justify-content: flex-start;
  margin-top: 0;
}
.hero-block .hero .cta-row .btn {
  padding: 13px 24px;
  font-size: 14px;
}

/* Hero video — exact size & position from Figma (467×263 @ left:832 top:256, within the 1440 canvas) */
.hero-block .hero-media {
  position: absolute;
  top: 130px;       /* 256 - 132 (nav height) ≈ 124, with a touch of breathing room */
  /* On a 1440 canvas, left:832 means 832 - ((1440-1157.44)/2 + 0) ≈ 690 from the container edge.
     But the container is 1157.44 wide and starts at left:140 on 1440. So inside the container,
     video starts at 832 - 141.28 = 690.72. */
  left: 690px;
  right: auto;
  width: 467.4px;
  height: 263px;
  margin: 0;
  display: block;
  overflow: visible;
}
.hero-block .hero-photo {
  position: relative;
  width: 467.4px;
  height: 263px;
  border: 11px solid #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background: #1a4f3c center/cover no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}
.hero-block .hero-photo .hero-video { object-fit: cover; }
.hero-block .hero-dots {
  position: static;
  left: auto;
  transform: none;
  bottom: auto;
  margin: 12px 0 0;
}

/* ============ ANNONCES — title typography per Figma ============ */
.announcements .head h2 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--p2-green-bg);
}

/* Announcement card — pink card bg #FEF3F4, title 22px/30px */
.announcement-card { background: #FEF3F4; }
.announcement-card.tint-pink  { background: #FEF3F4; }
.announcement-card.tint-cream { background: #FBF2D4; }
.announcement-card h3 {
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: 0;
  color: var(--ink);
}

/* "Important" tag — 79×36, padding 10px, radius 80px, text #EC161C, bg #EC161C33 */
.announcement-card .tag-important {
  width: auto;
  min-width: 79px;
  height: 36px;
  padding: 0 14px;
  border-radius: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 22, 28, 0.20);   /* #EC161C33 */
  color: #EC161C;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.announcement-card .tag-program {
  height: 36px;
  padding: 0 14px;
  border-radius: 80px;
  display: inline-flex;
  align-items: center;
  background: rgba(46, 125, 50, 0.18);
  color: #2E7D32;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.announcement-card .tag-important-2 {
  height: 36px;
  padding: 0 14px;
  border-radius: 80px;
  display: inline-flex;
  align-items: center;
  background: rgba(233, 173, 59, 0.22);
  color: #B26B00;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

/* ============ STATS sits FLUSH against EXPLAINER (no gap) ============ */
.services-section { padding-bottom: 0; }
.stats { margin-bottom: 0; }
.explainer-wrap { padding-top: 0 !important; }
.explainer-wrap > section { padding-top: 24px !important; }

/* Explainer head — exact Figma: 1159×136, gap 43px between h2 and p */
.explainer-wrap .explainer-head {
  width: 1159px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 43px !important;
  margin-bottom: 56px !important;
}
.explainer-wrap .explainer-head h2,
.explainer-wrap .explainer-head p {
  margin: 0 !important;
}

/* ============ EXPLAINER bullets — #FFC107 with #06402B numbers ============ */
.explainer-wrap .step .bullet {
  background: #FFC107;
  color: #06402B;
  box-shadow: none;
}
.explainer-wrap .step:not(:last-child)::before {
  background: rgba(255, 193, 7, .6);
}

/* =================================================================
   ====== PROPO 2 — round 6 (cascade fixes) =========================
   ================================================================= */

/* HERO VIDEO — force exact 467.4×263 + 11px frame, beat all earlier rules */
.hero-block .hero-media {
  position: absolute !important;
  top: 130px !important;
  left: 690px !important;
  right: auto !important;
  width: 467.4px !important;
  height: 263px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
}
.hero-block .hero-photo {
  position: relative !important;
  width: 467.4px !important;
  height: 263px !important;
  max-width: none !important;
  min-width: 0 !important;
  aspect-ratio: auto !important;
  border: 11px solid #fff !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  background: #1a4f3c center/cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}

/* "Voir toutes les annonces" — outline-green pill */
.btn-outline-green {
  background: #fff;
  color: var(--p2-green-bg);
  border: 1.5px solid var(--p2-green-bg);
  padding: 12px 26px;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-outline-green:hover { background: var(--p2-mint-bg); }

/* Third announcement card's "Important" tag — same RED treatment as the first card */
.announcement-card .tag-important-2 {
  background: rgba(236, 22, 28, 0.20) !important;
  color: #EC161C !important;
}

/* =================================================================
   ====== PROPO 2 — round 7 (annonces card palette + arrow tint) ====
   ================================================================= */

/* Card backgrounds per Figma */
.announcement-card.tint-pink   { background: #FEF3F4 !important; }   /* card 1 */
.announcement-card.tint-cream  { background: #F8FBF2 !important; }   /* card 2 (Programme) */
.announcement-card.link-green.tint-cream { background: #FFFCF3 !important; } /* card 3 (Important #FFC107) */

/* Important tag — 79×36 fixed, padding 10px (per Figma layout) */
.announcement-card .tag-important,
.announcement-card .tag-important-2,
.announcement-card .tag-program {
  width: 79px;
  height: 36px;
  padding: 10px;
  gap: 10px;
  border-radius: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 100%;
}
/* Card 1 — Important RED #EC161C */
.announcement-card .tag-important {
  background: rgba(236, 22, 28, 0.20) !important;   /* #EC161C33 */
  color: #EC161C !important;
}
/* Card 2 — Programme GREEN #71B200 */
.announcement-card .tag-program {
  background: rgba(113, 178, 0, 0.20) !important;   /* #71B20033 */
  color: #71B200 !important;
  width: auto;                                       /* "Programme" is wider than 79px */
  min-width: 79px;
  padding: 10px 14px;
}
/* Card 3 — Important YELLOW #FFC107 */
.announcement-card .tag-important-2 {
  background: rgba(255, 193, 7, 0.20) !important;   /* #FFC10733 */
  color: #FFC107 !important;
}

/* "En savoir plus" arrow colour matches the card's accent */
.announcement-card .link {
  color: var(--p2-green-bg);
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.announcement-card.tint-pink   .link svg { color: #EC161C !important; }
.announcement-card.link-purple .link svg,
.announcement-card .tag-program ~ .link svg,
.announcement-card.tint-cream:not(.link-green) .link svg { color: #71B200 !important; }
.announcement-card.link-green  .link svg { color: #FFC107 !important; }

/* "Voir toutes les annonces" — soft bg + 1px #06402B border */
.btn-outline-green {
  background: rgba(6, 64, 43, 0.10) !important;
  border: 1px solid #06402B !important;
}
.btn-outline-green:hover { background: rgba(6, 64, 43, 0.18) !important; }

/* Annonces — 3 cards, 379×348, 11px gap so they sit closer per Figma layout */
.announcement-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 379px) !important;
  gap: 11px !important;
  justify-content: space-between !important;
}
.announcement-card {
  width: 379px !important;
  height: 348px !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 30px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
.announcement-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

/* =================================================================
   ====== PROPO 2 — round 8 (bg fit, tag width, full-bleed docs) ====
   ================================================================= */

/* Hero bg — use the SVG at its natural aspect ratio, full viewport width */
.hero-block {
  background:
    url('../assets/hero_bg.svg') center top / cover no-repeat,
    #06402B !important;
  background-color: #06402B !important;
  min-height: 712px;
}

/* Programme tag — explicit 92×36 (the word is wider than 79) */
.announcement-card .tag-program {
  width: 92px !important;
  height: 36px !important;
  padding: 10px !important;
  min-width: 0 !important;
}

/* Documents légaux — full-bleed 1440×530 dark band, contained inner */
section:has(> .docs-wrap),
.docs-section {
  padding: 0 !important;
  background: transparent;
}
.docs-wrap {
  background: var(--p2-green-bg) url('../assets/3rd_bg1.svg') center / cover no-repeat !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 530.5px;
  border-radius: 0 !important;
  padding: 80px 0 !important;
  position: relative;
}
.docs-wrap .head,
.docs-wrap .docs-grid {
  width: min(1157px, calc(100% - 80px));
  margin: 0 auto;
}
.docs-wrap .head { padding: 0 0 36px; }

/* Footer copyright divider — full-bleed 1px line above */
.footer-bottom {
  position: relative;
  border-top: none !important;
  padding-top: 24px;
}
.footer-bottom::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 100vw;
  height: 1px;
  background: var(--line);
}

/* =================================================================
   ====== PROPO 2 — round 9 (docs title typography) =================
   ================================================================= */

.docs-wrap .head h2 {
  font-family: 'Almarai', sans-serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: #fff !important;
  width: 590px;
  max-width: 100%;
  margin: 0 0 12px !important;
}
.docs-wrap .head p {
  font-family: 'Almarai', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

/* =================================================================
   ====== PROPO 2 — round 10 (SVG bgs at natural aspect ratio) ======
   ================================================================= */

/* HERO — SVG fills width, height follows SVG aspect ratio. Curved bottom edge visible. */
/* .hero-block {
  width: 100%;
  background: url('../assets/hero_bg.svg') no-repeat center top / 100% auto !important;
  background-color: #06402B !important;
  aspect-ratio: 1440 / 712;
  min-height: 0 !important;
  height: auto;
} */

/* DOCUMENTS — same approach with 3rd_bg1.svg */
.docs-wrap {
  background: url('../assets/3rd_bg1.svg') no-repeat center top / 100% auto !important;
  background-color: var(--p2-green-bg) !important;
  aspect-ratio: 1440 / 805;
  min-height: 0 !important;
  padding: 70px 0 !important;
}

/* "DOCUMENTS LÉGAUX DE RÉFÉRENCE" — single line */
.docs-wrap .head h2 {
  width: auto !important;
  max-width: none !important;
  white-space: nowrap;
}

/* "Voir tous les documents" — 158×16 Figma spec, Almarai 700 14px, no border */
.docs-wrap .head .btn,
.docs-wrap .head .btn-on-green-ghost {
  width: auto;
  height: auto;
  font-family: 'Almarai', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 100% !important;
  letter-spacing: 0 !important;
  text-align: right;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #fff !important;
}
.docs-wrap .head .btn:hover { color: var(--gold) !important; background: transparent !important; }

/* =================================================================
   ====== PROPO 2 — round 11 (fixed band heights + simple hero bg) ==
   ================================================================= */

/* HERO — SVG simply scales to width, no aspect-ratio constraint */
.hero-block {
  background: url('../assets/hero_bg.svg') no-repeat center top / 100% auto !important;
  background-color: #06402B !important;
  aspect-ratio: 1440 / 712 !important;     /* keeps the curved bottom aligned at current width */
  height: auto !important;
  min-height: 0 !important;
}

/* EXPLAINER — fixed 804.7px tall band, SVG covers (clipped if needed) */
.explainer-wrap {
  height: 804.7px !important;
  min-height: 0 !important;
  background: url('../assets/2nd_bg.svg') no-repeat center / cover !important;
  background-color: var(--p2-green-bg) !important;
  aspect-ratio: auto !important;
  padding: 80px 0 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* DOCUMENTS — fixed 530.5px tall band, uses 3rd_bg1.svg */
.docs-wrap {
  height: 530.5px !important;
  min-height: 0 !important;
  background: url('../assets/3rd_bg1.svg') no-repeat center / cover !important;
  background-color: var(--p2-green-bg) !important;
  aspect-ratio: auto !important;
  padding: 70px 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* =================================================================
   ====== PROPO 2 — round 12 (diff fixes vs mockup) =================
   ================================================================= */

/* Doc cards — exact Figma: 312×262, 12px radius, 30/20 padding, 24px gap */
.docs-wrap .docs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 312px) !important;
  gap: 24px !important;
  justify-content: center !important;
}
.docs-wrap .doc-card {
  width: 312px !important;
  height: 262px !important;
  min-height: 0 !important;
  border-radius: 12px !important;
  padding: 30px 20px !important;
  gap: 24px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

/* "Voir tous les documents" — restore the thin white outline pill */
.docs-wrap .head .btn,
.docs-wrap .head .btn-on-green-ghost {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  padding: 12px 28px !important;
  border-radius: 999px !important;
    border: 1.5px solid #B4F8E0 !important;
  font-family: 'Almarai', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 100% !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
.docs-wrap .head .btn:hover {
  background: rgba(255, 255, 255, 0.10) !important;
}

/* HERO — SVG fills 100% width, height scales with aspect ratio so the wave is never clipped. */
.hero-block {
  background: url('../assets/hero_bg.svg') no-repeat center top / 100% 100% !important;
  background-color: transparent !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  aspect-ratio: 1440 / 713 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Prevent any horizontal page scrolling */
html, body { overflow-x: hidden !important; }

/* Push ANNONCES heading down with section padding (heading lands ~70px below the hero). */
section:has(.announcements) {
  padding: 70.8px 0 60px 0 !important;
}
section .announcements {
  width: min(1160px, calc(100% - 80px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
}
section .announcements .announcement-grid {
  overflow: visible !important;
  padding-bottom: 16px !important;
}
.announcements .head h2 {
  width: 182px;
  height: 36px;
  margin: 0;
}

/* =================================================================
   ============== PROPO 2 — HOVER ANIMATIONS =======================
   ================================================================= */

/* Smooth transitions for everything interactive */
.announcement-card,
.service-card,
.program-card,
.doc-card,
.variable,
.faq-item,
.btn,
.dot-item .dot-g,
.mainnav .nav-links a,
.help-block .btn-primary-green,
.announcement-card .link,
.program-card .link,
.doc-card .link {
  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,
    background-color 0.25s ease,
    color 0.25s ease;
  will-change: transform;
}

/* Card lift on hover — annonces / services / programmes / docs */
.announcement-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14) !important;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(6, 64, 43, 0.10);
  border-color: rgba(6, 64, 43, 0.25);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.10);
}
.docs-wrap .doc-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28) !important;
}

/* Variable cards — subtle lift + tinted border */
.variable {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.variable:hover {
  transform: translateY(-3px);
  border-color: var(--p2-green, #06402B);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* "En savoir plus" arrows — nudge right on card hover */
.announcement-card .link svg,
.program-card .link svg,
.doc-card .link svg,
.announcement-card .link .arrow-go,
.doc-card .link .arrow-go {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.announcement-card:hover .link svg,
.program-card:hover .link svg,
.doc-card:hover .link svg,
.announcement-card:hover .link .arrow-go,
.doc-card:hover .link .arrow-go {
  transform: translateX(6px);
}

/* Nav links — underline grow on hover */
.mainnav .nav-links a {
  position: relative;
}
.mainnav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--p2-gold, #e9ad3b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.mainnav .nav-links a:hover::after { transform: scaleX(1); }

/* Buttons — gentle lift */
.btn:not(.btn-on-green-solid):hover,
.btn-on-green-ghost:hover,
.btn-outline-green:hover,
.btn-primary-green:hover {
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* Hero photo (video frame) — soft zoom on hover */
.hero-block .hero-photo {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
}
.hero-block .hero-photo:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
}

/* Play button pulse */
.hero-block .play-button { transition: transform 0.25s ease, background 0.2s ease; }
.hero-block .play-button:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

/* FAQ pill rows — slight tint on hover */
.faq-item:not(.open):hover { background: #ebebeb; }

/* 3-dot bullets in programmes — pop on hover */
.dot-item .dot-g { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.dot-item:hover .dot-g {
  transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(6, 64, 43, 0.1), 0 0 0 6px #fff;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}

/* =================================================================
   ============== PROPO 2 — MOBILE SLIDERS (≤ 900px) ================
   ================================================================= */

@media (max-width: 900px) {
  /* Force-disable the desktop horizontal scroll and the 1440px hero min-width */
  html, body { overflow-x: hidden !important; }
  .hero-block {
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 520px !important;
  }
  .hero-block .hero-inner,
  .hero-block .hero { padding: 0 20px !important; }

  /* Section paddings tighten */
  section { padding: 48px 0 !important; }
  section:has(.announcements) { padding: 48px 0 !important; }

  /* Annonces grid → horizontal slider */
  .announcement-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    padding: 18px 16px !important;
    margin: 0 -16px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
  }
  .announcement-grid::-webkit-scrollbar { display: none; }
  .announcement-card {
    flex: 0 0 82% !important;
    width: auto !important;
    height: auto !important;
    min-height: 320px !important;
    scroll-snap-align: center !important;
  }

  /* Services grid → slider */
  .services-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    padding: 24px 16px !important;
    margin: 0 -16px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid > * {
    flex: 0 0 78% !important;
    scroll-snap-align: center !important;
    min-width: 0 !important;
  }

  /* Programmes grid → slider */
  .programs-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    padding: 18px 16px !important;
    margin: 0 -16px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
  }
  .programs-grid::-webkit-scrollbar { display: none; }
  .program-card {
    flex: 0 0 78% !important;
    width: auto !important;
    height: auto !important;
    min-height: 360px !important;
    scroll-snap-align: center !important;
  }

  /* Documents grid → slider */
  .docs-wrap .docs-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 14px !important;
    padding: 18px 16px !important;
    margin: 0 -16px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
    width: auto !important;
  }
  .docs-wrap .docs-grid::-webkit-scrollbar { display: none; }
  .docs-wrap .doc-card {
    flex: 0 0 80% !important;
    width: auto !important;
    height: auto !important;
    min-height: 240px !important;
    scroll-snap-align: center !important;
  }

  /* Documents band relaxes the fixed height */
  .docs-wrap {
    height: auto !important;
    aspect-ratio: auto !important;
    padding: 48px 0 !important;
  }

  /* Stats stack */
  .stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
    padding: 28px 20px !important;
  }
  .stat + .stat::before { display: none !important; }

  /* Explainer columns stack, variables → 3 per row */
  .explainer-cols {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    column-gap: 0 !important;
  }
  .variables-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  /* 3-dot row → stack vertically */
  .three-dots-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .three-dots-row::before,
  .three-dots-row::after { display: none !important; }

  /* FAQ stack */
  .faq-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Footer stack */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }

  /* Nav: hide desktop links, show hamburger */
  .mainnav .nav-links,
  .mainnav .lang,
  .mainnav .nav-right .btn { display: none !important; }
  .mainnav .hamburger { display: inline-flex !important; }
}

@media (max-width: 600px) {
  /* Tighter sliders on phones */
  .announcement-card { flex: 0 0 86% !important; }
  .service-card     { flex: 0 0 80% !important; }
  .program-card     { flex: 0 0 84% !important; }
  .docs-wrap .doc-card { flex: 0 0 84% !important; }

  /* Variables 2 per row */
  .variables-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Stats 1 column on tiny phones */
  .stats { grid-template-columns: 1fr !important; }

  /* Footer 1 column */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* Hero text scales down */
  .hero-block .hero h1 { font-size: 36px !important; line-height: 1.1 !important; }
  .hero-block .hero .lede { font-size: 13.5px !important; }
}

/* =================================================================
   ============== HERO — PREMIUM AMBIENT ANIMATION ==================
   Layered effect:
   (1) Slow rotating conic light-ray halo behind everything
   (2) Two bold floating aurora blobs (gold + mint), drifting + scaling
   (3) Twinkling sparkle layer (SVG dots) panning upward
   (4) Subtle hue shift across the whole hero for life
   All CSS, GPU-accelerated (transform / opacity / filter).
   ================================================================= */

.hero-block {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
}

/* Conic light-ray halo — sits BEHIND the SVG/orbs, rotates slowly.
   The .anim-rays element is injected by tiny JS so we don't burn pseudos. */
.hero-block .anim-rays {
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(233, 173, 59, 0)     0deg,
    rgba(233, 173, 59, 0.28)  20deg,
    rgba(233, 173, 59, 0)     50deg,
    rgba(180, 248, 224, 0)    140deg,
    rgba(180, 248, 224, 0.22) 165deg,
    rgba(180, 248, 224, 0)    195deg,
    rgba(255, 255, 255, 0)    260deg,
    rgba(255, 255, 255, 0.18) 280deg,
    rgba(255, 255, 255, 0)    310deg,
    rgba(233, 173, 59, 0)     360deg
  );
  filter: blur(70px) saturate(1.2);
  mix-blend-mode: screen;
  animation: heroRaysSpin 38s linear infinite, heroHueShift 16s ease-in-out infinite alternate;
  will-change: transform, filter;
}

/* Sparkle layer — tiny twinkling dots scattered, panning slowly upward.
   Inline SVG keeps it razor-sharp at any size. */
.hero-block .anim-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><g fill='%23ffffff'><circle cx='40' cy='80' r='1.2' opacity='.85'/><circle cx='120' cy='200' r='0.8' opacity='.6'/><circle cx='80' cy='340' r='1.4' opacity='.9'/><circle cx='200' cy='40' r='1' opacity='.7'/><circle cx='260' cy='160' r='0.7' opacity='.5'/><circle cx='180' cy='460' r='1.1' opacity='.75'/><circle cx='320' cy='280' r='1.5' opacity='.95'/><circle cx='400' cy='80' r='0.9' opacity='.65'/><circle cx='460' cy='220' r='1.2' opacity='.8'/><circle cx='380' cy='420' r='0.7' opacity='.55'/><circle cx='520' cy='340' r='1.3' opacity='.85'/><circle cx='560' cy='500' r='1' opacity='.7'/><circle cx='100' cy='520' r='1.1' opacity='.7'/><circle cx='240' cy='560' r='0.8' opacity='.5'/><circle cx='340' cy='540' r='1.4' opacity='.9'/></g><g fill='%23e9ad3b'><circle cx='160' cy='100' r='1.6' opacity='.9'/><circle cx='420' cy='340' r='1.4' opacity='.85'/><circle cx='60' cy='260' r='1.2' opacity='.75'/><circle cx='500' cy='120' r='1.1' opacity='.8'/><circle cx='280' cy='400' r='1.3' opacity='.85'/></g></svg>");
  background-repeat: repeat;
  background-size: 600px 600px;
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: heroSparklesDrift 38s linear infinite, heroSparklesTwinkle 4s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Aurora blob #1 — warm gold, top-left */
.hero-block::before {
  content: '' !important;
  position: absolute !important;
  width: 75% !important;
  height: 110% !important;
  top: -20% !important;
  left: -18% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
  background: radial-gradient(circle, rgba(233, 173, 59, 0.55) 0%, rgba(233, 173, 59, 0) 60%) !important;
  filter: blur(70px) saturate(1.15) !important;
  mix-blend-mode: screen;
  animation: heroBlobA 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Aurora blob #2 — cool mint, bottom-right */
.hero-block::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 110%;
  bottom: -20%;
  right: -18%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(180, 248, 224, 0.5) 0%, rgba(180, 248, 224, 0) 60%);
  filter: blur(80px) saturate(1.15);
  mix-blend-mode: screen;
  animation: heroBlobB 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Nav + hero content always above animated layers */
.hero-block .mainnav,
.hero-block .hero,
.hero-block .mobile-overlay { position: relative; z-index: 3; }

@keyframes heroBlobA {
  0%   { transform: translate(0, 0)         scale(1)    rotate(0deg); }
  33%  { transform: translate(38%, 16%)     scale(1.18) rotate(8deg); }
  66%  { transform: translate(22%, 50%)     scale(0.9)  rotate(-6deg); }
  100% { transform: translate(-12%, 28%)    scale(1.12) rotate(4deg); }
}

@keyframes heroBlobB {
  0%   { transform: translate(0, 0)         scale(1)    rotate(0deg); }
  33%  { transform: translate(-34%, -22%)   scale(1.2)  rotate(-7deg); }
  66%  { transform: translate(-16%, -54%)   scale(0.92) rotate(5deg); }
  100% { transform: translate(12%, -22%)    scale(1.15) rotate(-3deg); }
}

@keyframes heroRaysSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroHueShift {
  0%   { filter: blur(70px) saturate(1.2) hue-rotate(0deg); }
  100% { filter: blur(70px) saturate(1.3) hue-rotate(18deg); }
}

@keyframes heroSparklesDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 -1200px; }
}

@keyframes heroSparklesTwinkle {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-block::before,
  .hero-block::after,
  .hero-block .anim-rays,
  .hero-block .anim-sparkles { animation: none !important; }
}

/* =================================================================
   ============== HERO CAROUSEL — slides + dots =====================
   ================================================================= */

.hero-block .hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero-block .hero-slides {
  position: relative;
  width: 100%;
  max-width: 467.4px;
  aspect-ratio: 467.4 / 262.9;
  border-radius: 6px;
  border: 11px solid #FFFFFF;
  overflow: hidden;
  background: #1a4f3c;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.hero-block .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}
.hero-block .hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

.hero-block .hero-slide .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-block .hero-slide .play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}
.hero-block .hero-slide .play-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 0, 0, 0.6);
}
.hero-block .hero-slide .play-button svg {
  width: 26px; height: 26px;
  margin-left: 3px;
  color: #ffffff;
}
/* While playing: hide the play button completely (click the video to pause) */
.hero-block .hero-slide.playing .play-button {
  opacity: 0;
  pointer-events: none;
}
/* Make the video itself clickable to toggle play/pause */
.hero-block .hero-slide .hero-video { cursor: pointer; }

/* Dot buttons — sit BELOW the slides frame, not overlapping */
.hero-block .hero-dots {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex;
  gap: 8px;
  margin: 14px 0 0 !important;
  justify-content: center;
  width: 100%;
}
.hero-block .hero-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-block .hero-dots .dot:hover {
  background: rgba(255, 255, 255, 0.6);
}
.hero-block .hero-dots .dot.active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

/* =================================================================
   ============== MOBILE HEADER + HERO FIXES (≤ 1000px) =============
   ================================================================= */

@media (max-width: 1000px) {
  /* Ensure the hero-block is always a tall dark-green canvas */
  .hero-block {
    background-color: #06402B !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }

  /* HEADER: compact, hamburger visible, no nav-link wrap */
  .hero-block .mainnav {
    height: auto !important;
    min-height: 64px !important;
    padding: 12px 16px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    border-bottom: none !important;
  }
  .hero-block .mainnav::after { display: none !important; }
  .hero-block .mainnav .logo-block {
    gap: 8px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .hero-block .mainnav .logo-block .crest {
    height: 42px !important;
    width: auto !important;
  }
  .hero-block .mainnav .logo-block .divider { display: none !important; }
  .hero-block .mainnav .logo-block .title-stack {
    min-width: 0 !important;
  }
  .hero-block .mainnav .logo-block .title-ar,
  .hero-block .mainnav .logo-block .title-fr {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hero-block .mainnav .nav-links,
  .hero-block .mainnav .lang,
  .hero-block .mainnav .nav-right .btn,
  .hero-block .mainnav .nav-right a.btn { display: none !important; }
  .hero-block .mainnav .hamburger {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    position: relative;
  }
  .hero-block .mainnav .hamburger span,
  .hero-block .mainnav .hamburger::before,
  .hero-block .mainnav .hamburger::after {
    content: '';
    display: block !important;
    position: static !important;
    width: 18px !important;
    height: 2px !important;
    background: #fff !important;
    border-radius: 2px !important;
  }

  /* HERO: stack text + media, generous spacing, video frame fills width */
  .hero-block {
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 32px !important;
    background-size: 100% 100% !important;
  }
  .hero-block .hero { padding: 0 !important; }
  .hero-block .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 28px !important;
    padding: 24px 20px 40px !important;
    width: 100% !important;
    max-width: none !important;
  }
  .hero-block .hero-text {
    text-align: left !important;
    width: 100% !important;
  }
  .hero-block .hero h1 {
    font-size: 38px !important;
    line-height: 1.1 !important;
    text-align: left !important;
    width: auto !important;
    margin: 0 0 16px !important;
  }
  .hero-block .hero .lede {
    font-size: 14px !important;
    max-width: 100% !important;
    text-align: left !important;
    margin: 0 0 20px !important;
  }
  .hero-block .hero .cta-row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
  }
  .hero-block .hero .cta-row .btn {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 140px !important;
    justify-content: center !important;
  }
  .hero-block .hero-media {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }
  .hero-block .hero-slides {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* MOBILE OVERLAY NAV — full-screen dark green */
  .mobile-overlay {
    background: var(--p2-green, #06402B) !important;
  }
  .mobile-overlay nav a {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
  }
  .mobile-overlay .close {
    color: #fff !important;
    font-size: 36px !important;
  }
}

@media (max-width: 560px) {
  .hero-block .hero h1 { font-size: 30px !important; }
  .hero-block .hero .lede { font-size: 13px !important; }
  .hero-block .hero .cta-row .btn { flex: 1 1 100% !important; }
  .hero-block .mainnav .logo-block .title-ar,
  .hero-block .mainnav .logo-block .title-fr { font-size: 10px !important; }
}
