/* ==========================================================================
   MCM Systems — Phase 1 structural wireframe stylesheet
   Brand: navy #1b3c71, teal #50b4c3, white
   Language: FR (root), EN (/en/), AR (/ar/, dir="rtl") — static folders,
   no CMS/plugin. See LANG/RTL NOTE below.

   LANG/RTL NOTE:
   - .lang-switch is wired to real <a> links between the FR root and the
     /en/ and /ar/ folders (same filenames across all three).
   - Basic RTL support: the handful of hardcoded left/right/padding-left
     declarations that affect direction-sensitive elements (testimonial
     quote borders, check-list ticks, video badge) were converted to CSS
     logical properties (inset-inline-start, border-inline-start, etc.) so
     they auto-mirror under dir="rtl" — this was a deliberate "basic, not
     hand-mirrored" tradeoff. Icon-then-text order inside cards/nav was
     NOT manually re-ordered for RTL and follows browser/flow defaults;
     revisit if the Arabic version needs a fully hand-mirrored layout.
   ========================================================================== */

:root {
  --navy: #1b3c71;
  --navy-dark: #122a52;
  --teal: #50b4c3;
  --white: #ffffff;
  --ink: #1c2530;
  --muted: #5b6675;
  --bg-light: #f6f8fa;
  --border: #dde3e9;
  --placeholder-bg: #eef6f7;
  --placeholder-border: #50b4c3;
  --radius: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- HEADER ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
  box-shadow: 0 2px 20px rgba(20,40,70,0.10);
}
.site-header.theme-dark {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-dark);
}
.site-header.theme-dark.scrolled {
  background: rgba(10,25,60,0.92);
  border-bottom-color: transparent;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.brand-logo { height: 44px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.theme-dark .main-nav a { color: var(--white); }
.main-nav a.active { color: var(--teal); }
.header-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--navy);
}
.theme-dark .nav-toggle { color: var(--white); }
.nav-toggle svg { width: 24px; height: 24px; display: block; transition: transform .25s ease; }
.nav-toggle.is-open svg { transform: rotate(90deg); }

.lang-switch { display: flex; gap: 6px; font-size: 12px; font-weight: 700; }
.lang-switch span, .lang-switch a {
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-switch a:hover { color: var(--navy); border-color: var(--navy); }
.lang-switch span.active, .lang-switch a.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}
.theme-dark .lang-switch span, .theme-dark .lang-switch a { color: #cfe3ea; border-color: #2c4d82; }
.theme-dark .lang-switch a:hover { color: var(--white); border-color: var(--teal); }
.theme-dark .lang-switch span.active, .theme-dark .lang-switch a.active { background: var(--teal); border-color: var(--teal); color: var(--navy-dark); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  background: var(--teal);
  color: var(--navy-dark);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover { background: #45a3b1; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,40,70,.14); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-cta-header { padding: 10px 18px; font-size: 14px; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

/* ---------- SCROLL-REVEAL (driven by reveal.js, IntersectionObserver) ----------
   Generic fade+rise applied to repeating content blocks site-wide. Cards override
   the transition timing further down (see GRIDS/CARDS, MODULE CARDS, FLASH CARDS)
   so their hover-lift stays snappy while the one-time entrance stays smooth. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- HERO ---------- */
/* ---------- HERO ANIMATED GRADIENT (AWS-style slow colour cycle) ---------- */
@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(135deg,
    #50b4c3 0%,    /* MCM teal */
    #eaf6f9 20%,   /* teal fade to white */
    #c8dff7 40%,   /* sky blue */
    #f0f4ff 60%,   /* near-white */
    #3a7bd5 80%,   /* MCM blue */
    #e8f2fb 100%   /* light wash */
  );
  background-size: 300% 300%;
  animation: hero-gradient-shift 12s ease infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
  z-index: 1;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero p.sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 520px;
}
.hero-dark {
  background: var(--navy);
  background-size: unset;
  animation: none;
}
.hero-dark::after { display: none; }
.hero-static {
  background: linear-gradient(180deg, #e8f2fb, var(--white));
  background-size: unset;
  animation: none;
}
.hero-static::after { display: none; }
.hero-dark h1 { color: var(--white); }
.hero-dark p.sub { color: #cfe3ea; }

/* Section immediately after hero fades to white, not grey (excludes dark/static heroes) */
.hero:not(.hero-dark):not(.hero-static) + .section-alt,
.hero:not(.hero-dark):not(.hero-static) + section { background: #ffffff; }

/* ---------- PLACEHOLDER BOX (branded "asset in production" tile) ---------- */
.placeholder {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--placeholder-bg), var(--bg-light));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  min-height: 200px;
}
.placeholder .ph-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.placeholder .ph-icon svg { width: 22px; height: 22px; }
.placeholder .ph-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 5px;
}
.placeholder .ph-note {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.placeholder.tall { min-height: 320px; }
.placeholder.ready .ph-note { color: #2f8f3e; font-weight: 600; }

/* ---------- HERO VIDEO (real demo video, replaces a "coming soon" placeholder) ---------- */
.hero-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
  box-shadow: 0 16px 36px rgba(15,44,77,.2);
  border: 1px solid var(--border);
  cursor: pointer;
}
.hero-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--navy-dark);
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,44,77,0) 58%, rgba(10,25,45,.6) 100%);
  pointer-events: none;
  transition: opacity .3s ease;
}
.hero-video.is-playing::after { opacity: 0; }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-dark);
  border: 4px solid rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 26px rgba(10,25,45,.4);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s ease, background .2s ease;
}
.video-play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.video-play-btn:hover { transform: scale(1.08); background: #45a3b1; }
.hero-video.is-playing .video-play-btn { opacity: 0; pointer-events: none; transform: scale(.8); }
.video-badge {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 16px;
  background: rgba(15,44,77,.85);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 20px;
  letter-spacing: .02em;
  transition: opacity .25s ease;
}
.hero-video.is-playing .video-badge { opacity: 0; }

/* ---------- SECTION GENERIC ---------- */
section { padding: 64px 0; }
.section-title {
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 10px;
  text-align: center;
}
.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 16px;
}
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-intro { color: #cfe3ea; }

/* ---------- GRIDS / CARDS ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .5s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon-ph {
  width: auto;
  height: auto;
  border-radius: 6px;
  background: var(--teal);
  color: var(--navy-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 14px;
}
.card h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card-quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--navy);
  background: var(--placeholder-bg);
  border-inline-start: 3px solid var(--teal);
  padding: 10px 12px;
  margin: 16px 0 0 !important;
  border-radius: 4px;
}
.card-quote span { display: block; font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.section-dark .card { background: #234a85; border-color: #2c5a99; }
.section-dark .card h3 { color: var(--white); }
.section-dark .card p { color: #d8e6ee; }
.section-dark .card .icon-ph { background: var(--teal); color: var(--navy-dark); }

/* ---------- MODULE CARDS (Home — module overview grid) ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.module-card {
  --accent-bg: #eef6f7;
  --accent-dark: var(--navy);
  border: 1.5px solid var(--accent, var(--border));
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .5s ease, border-color .25s ease;
}
.module-card:hover { transform: translateY(-4px); }
.module-card.hidden { display: none; }

/* ---------- CARD BORDER GLOW (box-shadow stacked layers) ----------
   box-shadow lives outside the element box by design — no stacking
   context or z-index conflicts with the card's own background. */

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(80, 180, 195, 0.35),
    0 0 16px 4px rgba(80, 180, 195, 0.45),
    0 0 36px 10px rgba(58, 123, 213, 0.22),
    0 12px 24px rgba(20, 40, 70, 0.12);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent, #50b4c3) 55%, transparent),
    0 0 18px 6px color-mix(in srgb, var(--accent, #50b4c3) 40%, transparent),
    0 12px 24px rgba(20, 40, 70, 0.12);
}
.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.module-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.3px solid var(--accent, var(--border));
  background: var(--accent-bg);
  color: var(--accent-dark);
}
/* Sub-feature badge: same family as module-pill, but visually
   subordinate — used for cards that are a feature *within* a parent
   module (e.g. "RISM · fonctionnalité") rather than a standalone module.
   Prevents the load-more grid from looking like duplicate modules. */
.module-pill-sub {
  background: transparent;
  border: 1.3px dashed var(--accent, var(--border));
  font-weight: 600;
}
.module-icon { color: var(--accent, var(--navy)); display: flex; }
.module-icon svg { width: 26px; height: 26px; }
.module-status {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #8a6d00;
  background: #fff8e1;
  border: 1px solid #d8b400;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.module-card h3 { font-size: 16.5px; color: var(--navy); margin: 0 0 8px; }
.module-card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; flex-grow: 1; }
.module-quote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin: 0 0 14px;
}
.module-quote span { display: block; font-style: normal; font-weight: 600; color: var(--accent-dark); margin-top: 3px; font-size: 11px; }
.module-link {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--accent-dark);
  align-self: flex-start;
}
.module-link:hover { text-decoration: underline; }
.load-more-wrap { text-align: center; margin-top: 30px; }
.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn.is-loading { opacity: .55; transform: scale(.97); pointer-events: none; }

/* ---------- PROOF / TWO COL ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.testimonial {
  border-inline-start: 4px solid var(--teal);
  padding-inline-start: 18px;
  margin: 20px 0 0;
  font-size: 17px;
  font-style: italic;
  color: var(--navy);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- TESTIMONIAL + MEDIA CAROUSEL (proof section) ---------- */
.testimonial-track {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}
.testimonial-track .testimonial {
  display: none;
  margin: 20px 0 0;
}
.testimonial-track .testimonial.active {
  display: block;
  animation: slideInRight .45s ease;
}
.proof-media-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.proof-media-track .placeholder {
  display: none;
}
.proof-media-track .placeholder.active {
  display: flex;
  animation: slideInRight .45s ease;
}
@keyframes slideInRight {
  from { transform: translateX(36px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .2s ease;
}
.carousel-dots .dot:hover { transform: scale(1.25); }
.carousel-dots .dot.active { background: var(--teal); transform: scale(1.1); }

/* ---------- CHECK LIST (Academy section) ---------- */
.check-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: inline-block;
  text-align: start;
}
.check-list li {
  position: relative;
  padding-inline-start: 32px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--ink);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 52px 32px;
}
.cta-block h2 { font-size: 26px; margin: 0 0 12px; }
.cta-block p { color: #cfe3ea; margin: 0 0 22px; }
.cta-block .contact-line { margin-top: 18px; font-size: 14px; color: #cfe3ea; }
.process-steps {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0 0 26px;
  font-size: 14px;
  color: #cfe3ea;
}
.process-steps div { display: flex; align-items: center; gap: 8px; }
.process-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-dark);
  font-size: 12px;
}
@media (max-width: 560px) {
  .process-steps { flex-direction: column; gap: 10px; align-items: center; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfe3ea;
  padding: 44px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 { color: var(--white); font-size: 14px; margin: 0 0 12px; }
.footer-grid a { display: block; margin-bottom: 8px; color: #cfe3ea; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid #2c4d82;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #93aac4;
}
.footer-logo { height: 32px; margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid #2c4d82;
  color: #cfe3ea;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-dark); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ---------- FLASH CARDS (Innovation page) ---------- */
.flash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .5s ease;
}
.flash-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(80, 180, 195, 0.35),
    0 0 16px 4px rgba(80, 180, 195, 0.45),
    0 0 36px 10px rgba(58, 123, 213, 0.22),
    0 12px 24px rgba(20, 40, 70, 0.12);
}
.flash-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--teal);
  background: #e7f6f8;
  padding: 4px 9px;
  border-radius: 5px;
  margin-bottom: 14px;
  width: fit-content;
}
.flash-card h3 { color: var(--navy); font-size: 19px; margin: 0 0 4px; }
.flash-card .kicker { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.flash-card p.body { color: var(--ink); font-size: 14.5px; flex-grow: 1; }
.flash-card .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- ROADMAP LIST (Partenariats page) ----------
   Tags are deliberately explicit so the honesty framing in the data dump
   (CONFIRMED vs IN PROGRESS vs ASPIRATION vs ROADMAP/NOT BUILT) is visible
   as structure, not just copy — easy to audit at a glance. */
.roadmap-item {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #2c4d82;
}
.roadmap-item:last-child { border-bottom: none; }
.roadmap-item h4 { color: var(--white); font-size: 17px; margin: 0 0 6px; }
.roadmap-item p { color: #cfe3ea; font-size: 14.5px; margin: 0; max-width: 600px; }
.roadmap-tag {
  flex-shrink: 0;
  width: 230px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
  height: fit-content;
  text-align: center;
}
.tag-confirmed { background: #1e5c33; color: #b6f0c5; }
.tag-progress  { background: #5a4a12; color: #f0dd9a; }
.tag-aspiration{ background: #3a3a55; color: #cfcfe8; }
.tag-roadmap   { background: transparent; color: #93aac4; border: 1px solid #4a6694; }

/* ---------- ROADMAP GROUPS (Partenariats — standards chips) ---------- */
.roadmap-group-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
  margin: 0 0 16px;
  padding-top: 22px;
  border-top: 1px solid #2c4d82;
}
.roadmap-group-title:first-of-type { border-top: none; padding-top: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chip {
  background: #234a85;
  border: 1px solid #2c5a99;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
}
.roadmap-group-note {
  color: #93aac4;
  font-size: 13.5px;
  max-width: 640px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2c4d82;
}

/* ---------- FORM (demo page restyle) ---------- */
.form-shell {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-shell label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.form-shell input, .form-shell textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
  font-family: inherit;
}
.form-note {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #8a6d00;
  background: #fff8e1;
  border: 1px dashed #d8b400;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 22px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 18px;
  background: #e8f6ea;
  border: 1px solid #bfe8c6;
  border-radius: 6px;
  color: #1e5c33;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet: tighten grids before things get cramped */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-tag { width: 180px; }
}

/* Below this, nav links no longer fit inline — switch to dropdown */
@media (max-width: 880px) {
  .hero .wrap, .two-col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .site-header .wrap { position: relative; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 28px;
    right: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 18px;
    box-shadow: 0 12px 24px rgba(20,40,70,.12);
    z-index: 60;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .32s ease, opacity .25s ease, padding .32s ease;
  }
  .main-nav.open {
    max-height: 360px;
    opacity: 1;
    padding: 6px 18px;
    pointer-events: auto;
  }
  .theme-dark .main-nav { background: var(--navy); border-color: var(--navy-dark); }
  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
  }
  .theme-dark .main-nav a { border-bottom: 1px solid #2c4d82; }
  .main-nav a:last-child { border-bottom: none; }

  .header-right { gap: 12px; }
  .roadmap-item { flex-direction: column; gap: 10px; }
  .roadmap-tag { width: auto; }
}

/* Phone landscape / small tablet */
@media (max-width: 680px) {
  section { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 23px; }
  .placeholder.tall { min-height: 230px; }
  .grid-auto { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 38px 22px; }
}

/* Phone */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .brand-logo { height: 36px; }
  .header-right { gap: 8px; }
  .header-right .lang-switch { display: none; }
  .btn-cta-header { padding: 8px 14px; font-size: 13px; }
  .hero h1 { font-size: 24px; }
  .hero p.sub { font-size: 15.5px; }
  .section-title { font-size: 21px; }
  .form-shell { padding: 22px; }
  .testimonial { font-size: 15.5px; }
}
