/* ==========================================================================
   MONAMEDIA · INVEST MONACO (17 septembre 2026)
   Vanilla CSS, no framework. Tokens and interaction chrome match
   eme-partenariat so dossiers read as one house. Extra widgets for this
   presentation: team cards, mission cards, country map, AI systems,
   five-step interactive list, ask cards.
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --bg: #f3f2f2;
  --bg-alt: #eae9e9;
  --ink: #201e1d;
  --accent: #ec3013;
  --accent-hover: #dd2b0f;
  --accent-tint: #ffe0d9;
  --muted: #7d7979;
  --muted-dark: #605d5d;
  --border: #201e1d;

  --max-width: 1200px;
  --section-pad: 64px;
  /* Single source of truth for hub/chapter gutters. .hero and .vision-band
     cancel this same token with a negative margin so full-bleed bands stay
     aligned at every breakpoint instead of drifting from a second literal. */
  --gutter: 32px;
}

/* ---------- 2. RESET ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
/* Inherit so chapter body copy stays ink; official in-body links opt into
   accent below. Buttons keep their own color via .btn / .btn-primary. */
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* Sharp-edged brand aesthetic: no rounded corners anywhere in the system. */
*, *::before, *::after { border-radius: 0 !important; }

/* Visible focus states everywhere, per accessibility requirement. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 3. ROUTER (show/hide via data-route + .is-active) ---------- */
/* Hidden by default so a pre-JS first paint never stacks every chapter.
   invest-monaco.js runs at end of body and stamps .is-active immediately. */
.route-view { display: none; }
.route-view.is-active { display: block; }

/* ---------- 4. TYPOGRAPHY HELPERS ---------- */
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin: 0 0 12px;
}
.kicker-accent { color: var(--accent); }
.text-accent { color: var(--accent); }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
h2.chapter-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; position: relative; z-index: 1; }
h3 { font-size: 20px; margin-top: 40px; }
p { margin: 0 0 16px; color: var(--ink); }
.disclaimer, .section-note { color: var(--muted-dark); font-size: 14px; }

/* In-body official links: accent so they read as actions, underline so
   color is not the only cue. .btn links are exempt (they are chrome). */
.chapter-main a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-block;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent-tint); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-lg { padding: 18px 32px; font-size: 13px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

/* ---------- 6. LAYOUT SHELL ---------- */
.hub-main, .chapter-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 7. HUB: HEADER ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  height: 40px;
  width: auto;
  /* Blends the JPG's white background onto the page's light background. */
  mix-blend-mode: multiply;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-word { font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.brand-tagline { font-size: 12px; color: var(--muted-dark); font-weight: 500; }
.header-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
  max-width: 420px;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 8. HUB: HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0 48px;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 75% at 50% 32%,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      color-mix(in srgb, var(--bg) 85%, transparent) 60%,
      var(--bg) 100%),
    url("hero-monaco.jpg");
  background-repeat: no-repeat;
  background-position: center, center 38%;
  background-size: 100% 100%, cover;
  filter: grayscale(1);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-sub { font-size: 18px; color: var(--muted-dark); max-width: 720px; }

/* ---------- 9. HUB: EXPLORE STRIP ---------- */
.explore-strip {
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 28px 0;
  margin: 32px 0;
}
.explore-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.explore-strip-inner .kicker { margin: 0; }
.explore-progress { display: flex; align-items: center; gap: 16px; }
.explore-count { font-weight: 700; font-size: 14px; }
.progress-dots { display: flex; gap: 8px; }
.progress-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  background: transparent;
}
.progress-dot.is-visited { background: var(--accent); border-color: var(--accent); }

/* ---------- 10. HUB: CHAPTER GRID / TILES ---------- */
.chapter-grid {
  display: grid;
  /* 6 tiles: 3 columns → 3×2, no leftover dark cell. */
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin-bottom: var(--section-pad);
}
.chapter-tile {
  background: var(--bg);
  border: none;
  text-align: left;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.chapter-tile:hover { background: var(--accent-tint); }
.tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile-number { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.tile-state {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.tile-state.is-visited { color: var(--accent); }
.tile-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.tile-desc { font-size: 13px; color: var(--muted-dark); flex-grow: 1; margin: 0; }
.tile-badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  padding: 4px 8px;
}

/* ---------- 11. HUB: FOOTER ---------- */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-confidential { font-size: 12px; color: var(--muted-dark); max-width: 700px; margin: 0 auto 8px; }
.footer-contact { font-size: 12px; color: var(--muted-dark); margin: 0; }
.footer-contact a { text-decoration: underline; }
.chapter-footer { margin-top: 56px; border-top: 2px solid var(--border); }

/* ---------- 12. CHAPTER SHELL: STICKY TOPBAR ---------- */
.chapter-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  flex-wrap: wrap;
}
.topbar-title { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; flex-grow: 1; text-align: center; }
.topbar-title .topbar-num { color: var(--accent); margin-right: 6px; }
.topbar-nav-group { display: flex; gap: 8px; }
.btn-topbar {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.btn-topbar:hover { background: var(--accent-tint); }

/* ---------- 13. CHAPTER SHELL: CONTENT + WATERMARK ---------- */
.chapter-main { position: relative; padding: 48px var(--gutter) 96px; }
.chapter-watermark {
  position: absolute;
  top: 20px;
  right: 16px;
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 900;
  color: var(--bg-alt);
  z-index: 0;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.chapter-main > * { position: relative; z-index: 1; }

.stat-grid {
  display: grid;
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0;
}
.stat-grid.is-quad { grid-template-columns: repeat(4, 1fr); }
.stat-grid.is-quad .stat-value { font-size: 22px; }
.stat-grid.is-duo { grid-template-columns: repeat(2, 1fr); }
/* 22px: registration numbers are long, same reason as .is-quad / chapter-1 RCI cards. */
.stat-grid.is-duo .stat-value { font-size: 22px; }
/* 5 is prime: never 2 or 3 columns (leftover dark cell). Collapse to 1 below 1080. */
.stat-grid.is-five { grid-template-columns: repeat(5, 1fr); }
.stat-grid.is-five .stat-value { font-size: 22px; }
.stat-card { background: var(--bg); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--muted-dark); }

.numbered-list, .check-list { padding-left: 0; margin: 0 0 16px; list-style: none; }
.numbered-list { counter-reset: num; }
.numbered-list li {
  counter-increment: num;
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.numbered-list li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
}

/* ---------- 14. PILLAR GRID ---------- */
.pillar-grid {
  display: grid;
  /* 3 cards: 3 columns divide evenly. Never 2 columns (leftover cell). */
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0 40px;
}
.pillar-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-card .kicker {
  color: var(--accent);
  margin: 0;
}
.pillar-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.pillar-body {
  font-size: 14px;
  color: var(--muted-dark);
  margin: 0;
}

/* ---------- 15. VISION BAND ---------- */
.vision-band {
  background: var(--ink);
  color: #f3f2f2;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  margin-top: 32px;
  margin-bottom: 8px;
  padding: 64px var(--gutter);
}
.vision-band .kicker { color: var(--accent); }
.vision-headline {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 32ch;
  color: #f3f2f2;
  margin: 0 0 28px;
}
/* This section title only: larger than the default 20px h3, without scaling every h3. */
.vision-section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.vision-prose { font-size: 17px; line-height: 1.6; max-width: 62ch; color: #d8d5d5; margin: 0 0 28px; }
/* Native <video> in the dark band: full width, grayscale, square corners (site reset). */
.manifeste-video {
  display: block;
  width: 100%;
  margin-top: 8px;
  filter: grayscale(1);
}

/* Civic loop: CSS 3D phone (not Three.js) cycling real Attention Store screens.
   Caption sits beside the chassis so the screenshot stays unobstructed. */
.how-demo {
  display: grid;
  /* Track matches --how-phone-w (18rem) so the chassis cannot overflow the column. */
  grid-template-columns: minmax(220px, 18rem) 1fr;
  gap: 40px;
  align-items: center;
  /* Prose already has 28px bottom; 8px is a small beat, not a second 28px. */
  margin-top: 8px;
}

.how-phone-stage {
  /* Definite vw/rem (not % of a shrink-wrap) so em bezels cannot collapse to 0. */
  --how-phone-w: min(18rem, 42vw);
  display: flex;
  justify-content: center;
  perspective: 1600px;
}

.how-phone {
  /* Reset UA button chrome so the chassis, not a form control, is what you see. */
  appearance: none;
  -webkit-appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  width: var(--how-phone-w);
  max-width: 100%;
  aspect-ratio: 320 / 692;
  /* 1em = width/20 so padding/radius stay proportional as the chassis scales. */
  font-size: calc(var(--how-phone-w) / 20);
  transform-style: preserve-3d;
  /* Rest pose: slight 3D even before hover. JS tilt overwrites rotateX/Y only. */
  transform: rotateX(6deg) rotateY(-12deg);
  transition: transform 0.18s ease-out;
}

.how-phone-back {
  position: absolute;
  inset: 0;
  border-radius: 2.75em !important;
  background: #050506;
  box-shadow: 0 0 0 0.0625em rgb(255 255 255 / 0.06);
  transform: translateZ(-1em);
}

.how-phone-chassis {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  padding: 0.625em;
  border-radius: 2.75em !important;
  background: linear-gradient(160deg, #2a2a2e 0%, #0c0c0e 45%, #1a1a1e 100%);
  box-shadow:
    0 0 0 0.0625em rgb(255 255 255 / 0.12),
    0 0 0 0.1875em #050506,
    0 1.5em 4em rgb(0 0 0 / 0.55);
}

.how-phone-island {
  position: absolute;
  z-index: 3;
  top: 1.125em;
  left: 50%;
  width: 5.75em;
  height: 1.35em;
  border-radius: 999px !important;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.how-phone-screen {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 2.1em !important;
  background: #000;
}

.how-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.how-phone-gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgb(255 255 255 / 0.16) 0%,
    transparent 42%,
    transparent 100%
  );
}

.how-caption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.how-caption p { margin: 0; }

.how-caption-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.how-caption-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.how-caption-body {
  font-size: 14px;
  line-height: 1.45;
  color: #cfcbcb;
}

.how-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
.how-dots button {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  padding: 6px 10px;
  min-width: 44px;
}
.how-dots button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.how-caption-hint {
  font-size: 12px;
  color: #8a8686;
}

@media (prefers-reduced-motion: reduce) {
  .how-phone {
    transform: rotateX(0deg) rotateY(0deg);
    transition: none;
  }
}

/* ---------- 16. WIDGET SHELL ---------- */
.widget {
  border: 2px solid var(--border);
  background: var(--bg-alt);
  padding: 32px;
  margin: 32px 0;
}
.widget-title { margin-top: 0; }
.widget p:last-child { margin-bottom: 0; }
/* Overlay was hiding the flag. Type colors follow the two bands:
   white kicker on official MC red, dark paragraph on white. */
.widget-mc-flag {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 168px;
  background-color: transparent;
  background-image: linear-gradient(#CE1126 50%, #ffffff 50%);
  border-color: #CE1126;
}
.widget-mc-flag .kicker {
  color: #fff;
  margin: 0;
}
.widget-mc-flag p {
  color: var(--ink);
  margin: 0;
}

/* ---------- 17. BLOCK STEPS ---------- */
.block-steps { border: 2px solid var(--border); margin: 20px 0 40px; }
.block-step { display: flex; gap: 20px; background: var(--bg); padding: 20px; border-bottom: 2px solid var(--border); }
.block-step:last-child { border-bottom: none; }
.block-step-num { flex: 0 0 32px; font-size: 15px; font-weight: 800; color: var(--accent); }
.block-step-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.block-step-title { font-size: 15px; font-weight: 800; margin: 0; }
.block-step-desc { font-size: 13px; color: var(--muted-dark); margin: 0; }

/* ---------- 18. TIMELINE ---------- */
.timeline { list-style: none; padding: 0; margin: 20px 0 40px; counter-reset: step; }
.timeline-step { position: relative; padding: 0 0 24px 44px; border-left: 2px solid var(--border); margin-left: 12px; }
.timeline-step:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -13px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-step-title { font-weight: 800; margin: 0 0 4px; }
.timeline-step-desc { font-size: 13px; color: var(--muted-dark); margin: 0; }

/* ---------- 19. CLOSING BOX ---------- */
.closing-box { border: 2px solid var(--border); background: var(--bg-alt); padding: 28px; margin: 32px 0; }
.closing-box p:last-child { margin-bottom: 0; }
.closing-list { list-style: none; padding: 0; margin: 0; }
.closing-list li { margin-bottom: 8px; font-size: 15px; }
.closing-list li:last-child { margin-bottom: 0; }

/* ---------- 20. MISSION CARDS (ch1, 6 cards → 3 cols) ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0 16px;
}
.mission-card {
  background: var(--bg);
  border: none;
  text-align: left;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  transition: background-color 0.15s ease;
  min-height: 140px;
}
.mission-card:hover { background: var(--accent-tint); }
.mission-card.is-active {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.mission-card-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mission-card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.mission-card-body {
  font-size: 13px;
  color: var(--muted-dark);
  margin: 0;
  /* Collapsed until selected: keeps the grid scannable. */
  display: none;
}
.mission-card.is-active .mission-card-body { display: block; }

/* ---------- 21. TEAM CARDS (ch1, 10 people) ---------- */
/* 9 people fill 3×3; open seat is a full row. Card borders (not
   gap-as-border) stay so a dark leftover cell cannot appear if the count changes. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}
/* User asked the hiring card on its own line. */
.team-card-open {
  grid-column: 1 / -1;
}
.team-card {
  border: 2px solid var(--border);
  background: var(--bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Circular exception for the requested photo bulle. The site-wide
   border-radius: 0 !important rule would otherwise square-crop these
   portraits; scoped here with !important, same pattern as product-demo
   phone frames, so the global sharp-edge rule stays intact everywhere else. */
.team-card-bubble {
  width: 72px;
  height: 72px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  border-radius: 50% !important;
  margin-bottom: 4px;
}
.team-card-bubble img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}
/* Face crop: Louis studio (head high), Eric arms-crossed (face centered), Mario already tight, Clement seated (head high), Leon centered, Anne/Duarte/Rezan/Duc head-high. */
.team-card-bubble img[src*="louis"] { object-position: 50% 12%; }
.team-card-bubble img[src*="eric"] { object-position: 50% 18%; }
.team-card-bubble img[src*="mario"] { object-position: 50% 20%; }
.team-card-bubble img[src*="clement"] { object-position: 50% 10%; }
.team-card-bubble img[src*="leon"] { object-position: 50% 18%; }
.team-card-bubble img[src*="anne"] { object-position: 50% 20%; }
.team-card-bubble img[src*="duarte"] { object-position: 50% 15%; }
.team-card-bubble img[src*="rezan"] { object-position: 50% 22%; }
.team-card-bubble img[src*="duc"] { object-position: 50% 18%; }

.team-card-bubble.is-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
/* Placeholder seat uses the brand mark; contain + padding keep the logo
   fully visible instead of clipping it like a face crop. */
.team-card-bubble.is-logo {
  background: #fff;
}
.team-card-bubble.is-logo img {
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
}
.team-card-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.team-card-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.team-card-bio {
  font-size: 13px;
  color: var(--muted-dark);
  margin: 0;
}

/* ---------- 22. FIVE-STEP INTERACTIVE LIST (ch4) ---------- */
.five-steps {
  border: 2px solid var(--border);
  margin: 20px 0 32px;
}
.five-step {
  display: flex;
  gap: 20px;
  width: 100%;
  background: var(--bg);
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 20px;
  text-align: left;
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.five-step:last-child { border-bottom: none; }
.five-step:hover { background: var(--accent-tint); }
.five-step.is-active {
  background: var(--accent-tint);
  box-shadow: inset 4px 0 0 var(--accent);
}
.five-step-num {
  flex: 0 0 32px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.five-step-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.five-step-title { font-size: 15px; font-weight: 800; margin: 0; }
.five-step-desc {
  font-size: 13px;
  color: var(--muted-dark);
  margin: 0;
  display: none;
}
.five-step.is-active .five-step-desc { display: block; }

.dual-face {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0 40px;
}
.dual-face-card {
  background: var(--bg);
  padding: 28px 24px;
}
.dual-face-card .kicker { color: var(--accent); margin: 0 0 10px; }
.dual-face-card p { margin: 0; font-size: 14px; color: var(--muted-dark); }

/* ---------- 23. COUNTRY MAP GRID (ch4: 5 actifs + IT réservée + 2 en signature) ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0 16px;
}
/* Column counts that divide item counts: 5, 1, 2. Cap is-un so one card is not a full-bleed bar. */
.country-grid.is-cinq { grid-template-columns: repeat(5, 1fr); }
.country-grid.is-deux { grid-template-columns: repeat(2, 1fr); }
.country-grid.is-un {
  /* Shrink-wrap the one card: a 1fr track still leaves the grid box full-width,
     and background: var(--border) would paint a black slab beside IT. */
  grid-template-columns: minmax(180px, 280px);
  width: max-content;
  max-width: 100%;
}
.country-card {
  background: var(--bg);
  border: none;
  text-align: left;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  min-height: 110px;
  transition: background-color 0.15s ease;
}
.country-card:hover { background: var(--accent-tint); }
.country-card.is-active {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.country-code {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.country-name {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}
.country-status {
  font-size: 12px;
  color: var(--muted-dark);
  margin: 0;
}
.country-detail {
  border: 2px solid var(--border);
  background: var(--bg-alt);
  padding: 20px 24px;
  margin: 0 0 40px;
  min-height: 64px;
}
.country-detail p { margin: 0; font-size: 14px; color: var(--muted-dark); }
.country-detail strong { color: var(--ink); }

/* ---------- 24. AI SYSTEM CARDS (ch5, 4 → 4 cols) ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0 16px;
}
.ai-card {
  background: var(--bg);
  border: none;
  text-align: left;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  min-height: 160px;
  transition: background-color 0.15s ease;
}
.ai-card:hover { background: var(--accent-tint); }
.ai-card.is-active {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.ai-card-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.ai-card-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.ai-card-body {
  font-size: 13px;
  color: var(--muted-dark);
  margin: 0;
}
.ai-detail {
  border: 2px solid var(--border);
  background: var(--bg-alt);
  padding: 20px 24px;
  margin: 0 0 40px;
  min-height: 64px;
}
.ai-detail p { margin: 0; font-size: 14px; color: var(--muted-dark); }
.ai-detail strong { color: var(--ink); }

/* ---------- 25. ASK CARDS (ch6, 2 → 2 cols) ---------- */
.ask-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 24px 0 40px;
}
.ask-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ask-card .kicker { color: var(--accent); margin: 0; }
.ask-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.ask-card-body {
  font-size: 14px;
  color: var(--muted-dark);
  margin: 0;
}

/* ---------- 26. MARKET CHARTS (ch1 constat, JCE figures) ---------- */
.market-headline {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 0 24px;
}

.mix-bar {
  display: flex;
  height: 90px;
  border: 2px solid var(--ink);
  margin: 16px 0 8px;
}
.mix-bar-digital {
  width: 81%;
  background: var(--ink);
  color: #f3f2f2;
  display: flex;
  align-items: center;
  padding-left: 20px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.mix-bar-offline {
  width: 19%;
  border-left: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.mix-bar-labels {
  display: flex;
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.mix-bar-labels span:first-child { width: 81%; }
.mix-bar-labels span:last-child { width: 19%; text-align: right; }

.decade-bars {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 180px;
  border-bottom: 2px solid var(--ink);
  margin: 16px 0 8px;
  padding: 0 4px;
}
.decade-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
}
.decade-col span {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.decade-fill { width: 100%; background: #9b9797; }
.decade-col.is-mid .decade-fill { background: #605d5d; }
.decade-col.is-ink .decade-fill { background: var(--ink); }
.decade-col.is-accent span {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
}
.decade-col.is-accent .decade-fill { background: var(--accent); }
.decade-labels {
  display: flex;
  gap: 18px;
  padding: 0 4px;
  margin-bottom: 16px;
}
.decade-labels span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.attn-compare {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 16px 0 16px;
}
.attn-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}
.attn-label-accent { color: #ae1800; }
.attn-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.attn-value.is-accent { color: var(--accent); }
.attn-track {
  height: 44px;
  background: #d7d3d3;
  border: 2px solid var(--ink);
}
.attn-fill { height: 100%; }
.attn-fill.is-classic { width: 22%; background: #9b9797; }
.attn-fill.is-five { width: 100%; background: var(--accent); }
.attn-punch {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 24ch;
  line-height: 1.1;
  margin: 8px 0 32px;
}

/* Product-demo support: comparison bars + campaign table + 3-card rows.
   product-demo.css scopes visuals under .product-demo but expects these
   base classes to already exist (same contract as us/lu/si license CSS). */
.progress-track { height: 12px; border: 2px solid var(--border); background: var(--bg-alt); }
.progress-fill { height: 100%; background: var(--muted-dark); }
.progress-fill-accent { background: var(--accent); }

.data-table { margin: 16px 0 24px; font-size: 14px; border: 2px solid var(--border); }
.table-caption { text-align: left; font-size: 12px; color: var(--muted-dark); padding: 8px 12px; caption-side: top; }
.data-table th, .data-table td { border-bottom: 1px solid var(--bg-alt); padding: 10px 12px; text-align: left; }
.data-table thead th { background: var(--bg-alt); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--border); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: none; }

.framework-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 20px 0 40px;
}
.framework-step { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.framework-step-label { font-size: 13px; font-weight: 800; }
.framework-step-desc { font-size: 12px; color: var(--muted-dark); margin: 0; }

/* ---------- 27. LIVE HUD WIDGET (fixed, all routes) ---------- */
.hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  box-shadow: 4px 4px 0 var(--accent);
}
.hud-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex-shrink: 0;
  animation: hud-pulse 1.4s ease-in-out infinite;
}
@keyframes hud-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-dot { animation: none; }
}
.hud-text { font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.hud-sep { margin: 0 4px; opacity: 0.6; }
.hud-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }

/* ---------- 27. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1080px) {
  /* Column counts must still divide item counts: 9 people → 3, open spans
     full row, 4 stats → 2, 2 IP stats stay at 2, 5 market stats → 1 (prime),
     6 mission → 2, 5+1+2 country → 1 / keep is-un cap, 4 AI → 2, how-demo phone then caption,
     3 pillars / 3 framework-triple → 1. */
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.is-quad { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.is-five { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .how-demo { grid-template-columns: 1fr; }
  /* 70vh height cap so the full chassis fits a phone viewport with a little air. */
  .how-phone-stage { --how-phone-w: min(18rem, 72vw, calc(70vh * 320 / 692)); }
  .how-caption { text-align: left; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  /* Beat .is-cinq / .is-deux (2 classes) or 5 cols would survive on tablet.
     Leave .is-un at its 280px cap so one card is not a full-bleed bar. */
  .country-grid,
  .country-grid.is-cinq,
  .country-grid.is-deux { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-face { grid-template-columns: 1fr; }
  .ask-grid { grid-template-columns: 1fr; }
  .framework-steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .chapter-main { padding: 0 var(--gutter) 96px; }
  .chapter-topbar { padding: 12px 16px; }
  .topbar-title { order: -1; width: 100%; text-align: left; }
  .site-header-inner { padding: 16px 20px; }
  .header-kicker { text-align: left; max-width: none; }
  .explore-strip-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; }
  .hud { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .site-footer { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .stat-grid.is-quad { grid-template-columns: 1fr; }
  .stat-grid.is-duo { grid-template-columns: 1fr; }
  .stat-grid.is-five { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .country-grid,
  .country-grid.is-cinq,
  .country-grid.is-deux { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .block-step { flex-direction: column; gap: 8px; }
  .five-step { flex-direction: column; gap: 8px; }
  .hud-text { white-space: normal; }
}
