/* ===========================================================
   FMR TP MAROC — Design System v2
   Deep navy × electric blue × lime accent | Font: Inter
   =========================================================== */

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

:root {
  /* ── Brand (same variable names, updated values for full compatibility) ── */
  --petrol:        #000e24;   /* deep navy */
  --petrol-deep:   #00234b;   /* navy mid */
  --petrol-700:    #001b3d;   /* darkest navy */
  --teal:          #006399;   /* electric blue */
  --teal-600:      #004b74;   /* deep blue */
  --teal-soft:     #cde5ff;   /* sky blue */
  --teal-tint:     #e8f0fe;   /* light blue wash */
  --lime:          #CCFF00;   /* lime accent (NEW) */
  --lime-dim:      #b8e600;   /* lime hover */
  --amber:         #CCFF00;   /* repurposed → lime */

  /* ── Neutrals (cooler) ── */
  --ink:           #191c1e;
  --ink-soft:      #43474e;
  --muted:         #74777f;
  --line:          #c4c6d0;
  --line-soft:     #e0e3e5;
  --sand:          #f7f9fb;
  --sand-2:        #f0f2f4;
  --card:          #ffffff;
  --white:         #ffffff;

  /* ── Radii ── */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ── Shadows ── */
  --sh-sm: 0 2px 8px rgba(0,14,36,.06);
  --sh-md: 0 14px 40px rgba(0,14,36,.15);
  --sh-lg: 0 30px 72px rgba(0,14,36,.24);

  /* ── Layout ── */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;

  /* ── Type ── */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--sand);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--r-pill);
  border: 3px solid var(--sand);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 800; line-height: 1.08; letter-spacing: -.025em; color: var(--petrol);
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ── Layout helpers ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(40px, 5vw, 72px); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--teal-600);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: var(--teal); display: inline-block;
}
.eyebrow.center::before { display: none; }

/* ── Type scale ── */
h1.display { font-size: clamp(1.45rem, 2.4vw, 2.2rem); font-weight: 900; }
h2.title   { font-size: clamp(1.2rem, 1.9vw, 1.7rem); font-weight: 800; }
h3.sub     { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--muted); }
.text-teal { color: var(--teal-600); }

/* ── Hero badge ── */
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--teal); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: var(--r-pill); margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: var(--r-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
  white-space: nowrap; position: relative; will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }

.btn-primary { background: #ffffff; color: var(--petrol); box-shadow: 0 4px 16px rgba(0,14,36,.14); }
.btn-primary:hover { background: #f0f4f8; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,14,36,.20); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-dark { background: var(--petrol); color: #fff; }
.btn-dark:hover { background: var(--petrol-deep); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-dark:hover svg { transform: translateX(4px); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--petrol); background: #fff; transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--petrol); font-weight: 700; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn-lg { padding: 17px 32px; font-size: 1.04rem; }

/* ── Navbar ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247,249,251,.76);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(247,249,251,.92);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 28px -16px rgba(0,14,36,.18);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); height: 100%; display: flex; align-items: center; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; transition: transform 0.3s var(--ease); }
.brand:hover { transform: scale(1.02); }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.08) rotate(6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--petrol); letter-spacing: -.03em; }
.brand-name b { color: var(--teal); }
.brand-sub { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); white-space: nowrap;
  padding: 8px 16px; border-radius: var(--r-pill); position: relative;
  transition: all 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--teal-600);
  background: var(--teal-tint);
}
.nav-links a.active {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 4px 12px rgba(0, 99, 153, 0.2);
}
.nav-tools { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; align-items: center; background: var(--sand-2); border: 1px solid var(--line-soft); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang button { font-weight: 700; font-size: .78rem; color: var(--muted); padding: 5px 11px; border-radius: var(--r-pill); transition: all .22s var(--ease); }
.lang button.on { background: var(--petrol); color: #fff; }

.hamburger { display: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: #fff; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--sand); padding: 28px var(--gutter);
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--petrol); padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 20px; }

/* ── Cards ── */
.card {
  background: linear-gradient(135deg, var(--white) 0%, rgba(247,249,251,0.6) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 99, 153, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 99, 153, 0.15);
}

.icon-badge {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-600);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge { background: var(--petrol); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* ── Image placeholders ── */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  color: rgba(255,255,255,.92);
  display: grid; place-items: center; isolation: isolate; min-height: 220px;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px);
}
.ph::after {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -10%; bottom: -25%;
  background: radial-gradient(circle, rgba(103,186,253,.45), transparent 65%);
  z-index: -1; filter: blur(10px);
}
.ph-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px); position: relative; z-index: 1;
}
.ph-label svg { width: 16px; height: 16px; }
.ph.light { background: linear-gradient(135deg, #e8f0fe, #d0e4ff); color: var(--petrol); }
.ph.light .ph-label { background: rgba(0,14,36,.06); border-color: rgba(0,14,36,.12); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: inherit; }
.ph.has-img { background: rgba(0,14,36,.60); }
.ph.has-img::before { opacity: .22; }
.ph.has-img::after { opacity: .45; }
.ph.light.has-img { background: rgba(0,14,36,.52); color: #fff; }
.ph.light.has-img .ph-label { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }

/* ── Footer ── */
.footer { background: #eceff1; color: var(--ink-soft); padding-top: clamp(48px,6vw,80px); }
.footer h4 { color: var(--petrol); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer a { color: var(--ink-soft); transition: color .2s; }
.footer a:hover { color: var(--teal); }
.footer .brand-name { color: var(--petrol); }
.footer .brand-name b { color: var(--teal); }
.footer .brand-sub { color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; gap: 11px; font-size: .94rem; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }

/* ── Grids ── */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }

/* ── Misc components ── */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--r-pill); background: var(--teal-tint); color: var(--teal-600); font-size: .8rem; font-weight: 700; }
.chip.solid { background: var(--petrol); color: #fff; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: var(--petrol); letter-spacing: -.02em; }
.stat-num span { color: var(--teal); }
.wave-divider { display: block; width: 100%; height: auto; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero .blob-1 {
  animation: drift-slow 25s linear infinite;
}
.hero .blob-2 {
  animation: drift-reverse-slow 30s linear infinite;
}
.page-hero .blob {
  animation: drift-slow 22s linear infinite;
}

@keyframes drift-slow {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(40px, 30px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes drift-reverse-slow {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, 40px) rotate(-180deg); }
  100% { transform: translate(0, 0) rotate(-360deg); }
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-tools .btn-cta { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .g-3 { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .g-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .brand-sub { display: none; }
}

/* ── Top Announcement Banner ── */
.top-banner {
  background: linear-gradient(90deg, #CCFF00 0%, #a6d600 100%);
  color: #000e24;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 101;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(204,255,0,0.15);
}
.top-banner svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
}

