/* Domain — feuille de style principale
   Palette : fond crème, blocs de couleur francs, contours marine. */

@font-face {
  font-family: "Sora";
  src: url("../font/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../font/sora-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../font/work-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../font/work-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f6f4ef;
  --paper: #ffffff;
  --navy: #1b1f3b;
  --navy-soft: #2c3159;
  --orange: #ff6a3d;
  --sky: #8fd3ff;
  --sun: #ffd23f;
  --sage: #b9d8c2;
  --ink: #1b1f3b;
  --muted: #4a4f6a;
  --line: 2px solid var(--navy);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --shadow: 5px 5px 0 var(--navy);
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #c8411a; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.mq-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .mq-wrap { padding: 0 28px; } }

.mq-ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

.mq-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 500; text-decoration: none;
}
.mq-skip:focus { top: 12px; color: #fff; }

/* Couleurs de blocs */
.mq-navy { background: var(--navy); color: #fff; }
.mq-orange { background: var(--orange); color: var(--navy); }
.mq-sky { background: var(--sky); color: var(--navy); }
.mq-sun { background: var(--sun); color: var(--navy); }
.mq-sage { background: var(--sage); color: var(--navy); }
.mq-white { background: var(--paper); color: var(--navy); }
.mq-outline { border: var(--line); }

.mq-nowrap { white-space: nowrap; }

/* Boutons */
.mq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em;
  border: var(--line); border-radius: 12px;
  font-family: var(--head); font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mq-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--navy); }
.mq-btn:active { transform: translate(0, 0); box-shadow: none; }
.mq-btn-dark { background: var(--navy); color: #fff; }
.mq-btn-dark:hover { color: #fff; background: var(--navy-soft); box-shadow: 4px 4px 0 var(--orange); }
.mq-btn-line { background: var(--paper); color: var(--navy); }
.mq-btn-line:hover { color: var(--navy); }
.mq-btn-cta { background: var(--orange); color: var(--navy); }
.mq-btn-cta:hover { color: var(--navy); }
.mq-btn-full { width: 100%; }

.mq-textlink { display: inline-flex; align-items: center; gap: .35em; font-weight: 500; }
.mq-linkbtn {
  display: inline-flex; align-items: center; gap: .45em;
  background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* Badges façon autocollant */
.mq-sticker {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .32em .8em; border: var(--line); border-radius: 999px;
  background: var(--paper); color: var(--navy);
  font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .01em; line-height: 1.3;
  box-shadow: 2px 2px 0 var(--navy);
}
.mq-tilt { transform: rotate(-2deg); }
.mq-eyebrow {
  display: inline-block; margin-bottom: .8rem;
  font-family: var(--head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: #c8411a;
}
.mq-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }

/* En-tête */
.mq-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.mq-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mq-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.mq-logo:hover { color: var(--navy); }
.mq-logo__mark { width: 42px; height: 42px; flex: none; }
.mq-logo__name { font-family: var(--head); font-weight: 800; font-size: 1.3rem; line-height: 1.05; letter-spacing: -.02em; display: flex; flex-direction: column; }
.mq-logo__name small { white-space: nowrap; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.mq-logo-light, .mq-logo-light:hover { color: #fff; }
.mq-logo-light .mq-logo__name small { color: #c9cce0; }

.mq-burger {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: var(--sun); color: var(--navy); border: var(--line); border-radius: 12px;
  font-family: var(--head); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.mq-burger .mq-ico { width: 1.2em; height: 1.2em; }
.mq-burger { flex: none; }
.mq-logo { min-width: 0; }
@media (max-width: 480px) {
  .mq-top .mq-logo__name small { display: none; }
}
.mq-burger__close { display: none; }
.mq-burger[aria-expanded="true"] .mq-burger__open { display: none; }
.mq-burger[aria-expanded="true"] .mq-burger__close { display: inline; }

.mq-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: var(--line);
  padding: 8px 16px 20px;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mq-menu.is-open { display: block; }
.mq-menu ul { list-style: none; margin: 0 0 14px; padding: 0; }
.mq-menu li a {
  display: block; padding: 13px 4px; border-bottom: 1px solid rgba(27, 31, 59, .14);
  font-family: var(--head); font-weight: 600; text-decoration: none;
}
.mq-menu li a[aria-current="page"] { color: #c8411a; }
.mq-menu .mq-btn-cta { width: 100%; }

@media (min-width: 1100px) and (max-width: 1279px) {
  .mq-top .mq-logo__name small { display: none; }
}
@media (min-width: 1100px) {
  .mq-burger { display: none; }
  .mq-menu {
    display: flex !important; align-items: center; gap: 22px;
    position: static; padding: 0; background: none; border: 0; max-height: none; overflow: visible;
  }
  .mq-menu ul { display: flex; gap: 2px; margin: 0; }
  .mq-menu li a {
    padding: 8px 10px; border: 0; border-radius: 10px;
    font-family: var(--body); font-weight: 500; font-size: .95rem; white-space: nowrap;
  }
  .mq-menu li a:hover { background: rgba(27, 31, 59, .07); color: var(--navy); }
  .mq-menu .mq-btn-cta { width: auto; min-height: 44px; padding: .55em 1.05em; font-size: .92rem; white-space: nowrap; }
}

/* Sections */
.mq-section { padding: 64px 0; scroll-margin-top: 80px; }
@media (min-width: 900px) { .mq-section { padding: 96px 0; } }
.mq-sechead { max-width: 760px; margin-bottom: 40px; }
.mq-sechead p { color: var(--muted); font-size: 1.08rem; }
.mq-sechead-light p { color: #d7d9ea; }
.mq-sechead-light .mq-eyebrow { color: var(--sun); }
.mq-sechead-light h2 { color: #fff; }

/* Hero */
.mq-hero { padding: 40px 0 48px; }
.mq-hero__grid { display: grid; gap: 40px; align-items: center; }
.mq-hero__grid > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
.mq-hero__text h1 { margin-top: 22px; }
.mq-hl {
  display: inline-block; padding: 0 .16em .04em; margin: 0 .02em;
  background: var(--orange); border: var(--line); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--navy); transform: rotate(-1.5deg);
}
.mq-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.mq-hero__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mq-hero__stats li {
  background: var(--paper); border: var(--line); border-radius: var(--r-md);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 4px;
}
.mq-hero__stats strong { font-family: var(--head); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.mq-hero__stats span { font-size: .84rem; line-height: 1.35; color: var(--muted); }

.mq-hero__mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mq-mtile {
  position: relative; margin: 0; aspect-ratio: 1 / 1; border: var(--line); border-radius: var(--r-lg);
  overflow: hidden; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
}
.mq-mtile-photo { padding: 0; }
.mq-mtile-photo img { width: 100%; height: 100%; object-fit: cover; }
.mq-mtile-photo .mq-sticker { position: absolute; left: 12px; bottom: 12px; }
.mq-mtile__ico { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; }
.mq-mtile__num { font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); line-height: .9; letter-spacing: -.04em; }
.mq-mtile__name { font-family: var(--head); font-weight: 600; font-size: clamp(.95rem, 2.2vw, 1.2rem); margin-top: 6px; }
.mq-hero__mosaic > :nth-child(1) { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px; }
.mq-hero__mosaic > :nth-child(4) { border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); }

@media (min-width: 960px) {
  .mq-hero { padding: 64px 0 80px; }
  .mq-hero__grid { grid-template-columns: 1.08fr 1fr; gap: 56px; }
  .mq-hero__mosaic { gap: 16px; }
  .mq-hero__mosaic > :nth-child(2n) { transform: translateY(28px); }
}

/* Bandeau d’indépendance */
.mq-notice__card {
  display: grid; gap: 16px; align-items: center;
  background: var(--sage); border: var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.mq-notice__card h2 { font-size: 1.3rem; margin-bottom: .4em; }
.mq-notice__card p { margin: 0; font-size: .98rem; }
.mq-notice__ico { width: 40px; height: 40px; }
@media (min-width: 900px) {
  .mq-notice__card { grid-template-columns: auto 1fr auto; gap: 24px; padding: 28px 32px; }
}

/* Bento des familles */
.mq-bento { display: grid; gap: 14px; }
.mq-tile {
  margin: 0; border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden;
}
.mq-tile h3 { font-size: 1.35rem; font-weight: 800; }
.mq-tile p { font-size: .98rem; }
.mq-tile p:last-child { margin-bottom: 0; }
.mq-tile__num {
  display: block; font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  letter-spacing: -.05em; margin-bottom: 14px; opacity: .95;
}
.mq-navy .mq-tile__num { color: var(--sun); }
.mq-tile__big { display: block; font-family: var(--head); font-weight: 800; font-size: 4rem; line-height: 1; letter-spacing: -.05em; margin-bottom: 12px; }
.mq-tile__big small { font-size: .5em; margin: 0 .15em; color: var(--orange); vertical-align: middle; }
.mq-tile-photo { padding: 0; border: var(--line); min-height: 220px; }
.mq-tile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mq-tile .mq-sticker { margin-bottom: 14px; }
.mq-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mq-chips li { border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .2em .8em; font-size: .85rem; font-weight: 500; }
.mq-navy p { color: #dfe1f0; }

@media (min-width: 720px) {
  .mq-bento { grid-template-columns: repeat(6, 1fr); }
  .mq-bento__a { grid-column: span 6; }
  .mq-bento__b { grid-column: span 3; }
  .mq-bento__c { grid-column: span 3; }
  .mq-bento__d { grid-column: span 3; }
  .mq-bento__e { grid-column: span 3; }
  .mq-bento__f { grid-column: span 4; }
  .mq-bento__g { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .mq-bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
  .mq-bento__a { grid-column: 1 / span 6; grid-row: span 2; padding: 34px; }
  .mq-bento__a h3 { font-size: 1.9rem; }
  .mq-bento__b { grid-column: 7 / span 3; grid-row: span 2; }
  .mq-bento__c { grid-column: 10 / span 3; }
  .mq-bento__d { grid-column: 10 / span 3; }
  .mq-bento__e { grid-column: 1 / span 5; }
  .mq-bento__f { grid-column: 6 / span 4; }
  .mq-bento__g { grid-column: 10 / span 3; }
}

/* Explorateur */
.mq-explorer { padding-top: 24px; }
.mq-explorer__frame {
  background: var(--navy); color: #fff; border-radius: 22px; padding: 32px 18px;
}
@media (min-width: 720px) { .mq-explorer__frame { padding: 48px 40px; } }
.mq-seg {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px; margin: 0 -2px 22px;
  background: rgba(255, 255, 255, .08); border-radius: 16px; scrollbar-width: none;
}
.mq-seg::-webkit-scrollbar { display: none; }
.mq-seg__btn {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border: 2px solid transparent; border-radius: 12px;
  background: transparent; color: #fff; font-family: var(--head); font-weight: 600; font-size: .93rem;
  cursor: pointer; white-space: nowrap; transition: background-color .15s ease;
}
.mq-seg__btn:hover { background: rgba(255, 255, 255, .1); }
.mq-seg__btn.is-active { background: var(--sun); color: var(--navy); border-color: var(--navy); box-shadow: 3px 3px 0 var(--orange); }

.mq-profile {
  display: grid; gap: 0; background: var(--paper); color: var(--navy);
  border: var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.mq-profile[hidden] { display: none; }
.mq-profile__visual { padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; border-bottom: var(--line); }
.mq-profile__visual.mq-navy .mq-sticker { background: var(--sun); }
.mq-radar { width: 100%; max-width: 340px; height: auto; overflow: visible; }
.mq-radar .mq-r-grid { fill: none; stroke: currentColor; stroke-opacity: .28; stroke-width: 1; }
.mq-radar .mq-r-axis { stroke: currentColor; stroke-opacity: .28; stroke-width: 1; }
.mq-radar .mq-r-shape { fill: var(--navy); fill-opacity: .2; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.mq-navy .mq-radar .mq-r-shape { fill: var(--sun); fill-opacity: .35; stroke: var(--sun); }
.mq-radar .mq-r-dot { fill: var(--paper); stroke: var(--navy); stroke-width: 2.5; }
.mq-navy .mq-radar .mq-r-dot { stroke: var(--sun); fill: var(--navy); }
.mq-radar text { font-family: var(--head); font-weight: 600; font-size: 15px; fill: currentColor; }
.mq-profile__scale { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 340px; display: grid; gap: 4px; font-size: .84rem; }
.mq-profile__scale li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed currentColor; padding-top: 4px; }
.mq-profile__scale b { font-family: var(--head); }
.mq-profile__text { padding: 24px 20px; }
.mq-profile__kicker { font-family: var(--head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #c8411a; margin-bottom: .4em; }
.mq-profile__text h3 { font-size: 1.55rem; font-weight: 800; }
.mq-profile__facts { margin: 0; display: grid; gap: 14px; }
.mq-profile__facts div { border-left: 4px solid var(--sun); padding-left: 14px; }
.mq-profile__facts div:nth-child(3) { border-color: var(--orange); }
.mq-profile__facts div:nth-child(6) { border-color: var(--sky); background: #eef8ff; padding: 10px 14px; border-radius: 0 10px 10px 0; }
.mq-profile__facts dt { font-family: var(--head); font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.mq-profile__facts dd { margin: 0; font-size: .96rem; color: var(--muted); }
@media (min-width: 900px) {
  .mq-profile { grid-template-columns: 360px 1fr; }
  .mq-profile__visual { border-bottom: 0; border-right: var(--line); padding: 30px 22px; justify-content: center; }
  .mq-profile__text { padding: 32px 36px; }
  .mq-profile__facts { grid-template-columns: 1fr 1fr; gap: 18px 26px; }
}
.mq-explorer__note { display: flex; gap: 10px; margin: 20px 0 0; font-size: .92rem; color: #d7d9ea; }
.mq-explorer__note .mq-ico { margin-top: .3em; color: var(--sun); }

/* Diversification */
.mq-axes { display: grid; gap: 14px; margin-bottom: 56px; }
@media (min-width: 640px) { .mq-axes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .mq-axes { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.mq-axis {
  background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mq-axis:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.mq-axis__ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border: var(--line); border-radius: 14px;
  margin-bottom: 18px; font-size: 1.4rem;
}
.mq-axis p { font-size: .96rem; color: var(--muted); margin: 0; }

.mq-corr { display: grid; gap: 28px; align-items: center; margin-bottom: 56px; }
.mq-corr__text h3 { font-size: 1.6rem; font-weight: 800; }
.mq-corr__text p { color: var(--muted); }
.mq-corr__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mq-corr__card {
  display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  background: var(--paper); border: var(--line); border-radius: var(--r-md); padding: 14px 16px;
}
.mq-corr__card svg { grid-row: span 2; width: 110px; height: 56px; background: var(--cream); border-radius: 8px; }
.mq-corr__card strong { font-family: var(--head); font-weight: 800; font-size: 1.05rem; }
.mq-corr__card span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.mq-l1, .mq-l2 { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mq-l1 { stroke: var(--orange); }
.mq-l2 { stroke: var(--navy); }
@media (min-width: 960px) { .mq-corr { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

.mq-demo {
  background: var(--sky); border: var(--line); border-radius: 22px; padding: 24px 16px; box-shadow: 8px 8px 0 var(--navy);
}
@media (min-width: 720px) { .mq-demo { padding: 36px; } }
.mq-demo__head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.mq-demo__head h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; margin: 0; max-width: 24ch; }
.mq-demo__head .mq-eyebrow { color: var(--navy); }
.mq-demo__head .mq-sticker { font-size: .84rem; }
.mq-demo__grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .mq-demo__grid { grid-template-columns: 330px 1fr; } }
.mq-demo__controls, .mq-demo__chart {
  background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 20px; margin: 0;
}
.mq-demo__label { display: block; font-family: var(--head); font-weight: 600; margin-bottom: 10px; }
.mq-range { width: 100%; height: 34px; accent-color: var(--orange); cursor: pointer; }
.mq-demo__split { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 500; margin: 6px 0 18px; }
.mq-demo__split output { font-family: var(--head); font-weight: 800; margin-right: 14px; }
.mq-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--navy); vertical-align: middle; }
.mq-dot-a { background: var(--orange); }
.mq-dot-b { background: var(--sky); }
.mq-demo__corr { border: 0; padding: 0; margin: 0 0 20px; }
.mq-demo__corr legend { font-family: var(--head); font-weight: 600; margin-bottom: 10px; padding: 0; }
.mq-demo__corr label { display: inline-block; margin: 0 6px 8px 0; cursor: pointer; }
.mq-demo__corr input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mq-demo__corr span {
  display: inline-block; padding: .45em .9em; border: var(--line); border-radius: 999px;
  font-weight: 500; font-size: .92rem; background: var(--cream);
}
.mq-demo__corr input:checked + span { background: var(--navy); color: #fff; box-shadow: 2px 2px 0 var(--orange); }
.mq-demo__corr input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.mq-demo__mtitle { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.mq-meter { display: grid; grid-template-columns: 70px 1fr 40px; gap: 10px; align-items: center; font-size: .9rem; margin-bottom: 8px; }
.mq-meter b { font-family: var(--head); text-align: right; }
.mq-meter__bar { height: 14px; background: var(--cream); border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.mq-meter__fill { display: block; height: 100%; width: 0; transition: width .3s ease; }
.mq-fill-a { background: var(--orange); }
.mq-fill-b { background: var(--sky); }
.mq-fill-m { background: var(--navy); }
.mq-demo__chart svg { width: 100%; height: auto; display: block; }
.mq-demo__chart figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; }
.mq-demo__chart text { font-family: var(--body); font-size: 12px; fill: var(--muted); }
.mq-demo__foot { margin: 18px 0 0; font-size: .95rem; }

/* Horizon */
.mq-horizon { background: var(--paper); border-top: var(--line); border-bottom: var(--line); }
.mq-horizon__top { display: grid; gap: 28px; align-items: center; margin-bottom: 36px; }
.mq-horizon__top .mq-sechead { margin-bottom: 0; }
.mq-horizon__photo { margin: 0; border: var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.mq-horizon__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .mq-horizon__top { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.mq-timeline { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.mq-timeline__step {
  position: relative; background: var(--cream); border: var(--line); border-radius: var(--r-lg); padding: 22px;
}
.mq-timeline__when {
  display: inline-block; padding: .3em .85em; border: var(--line); border-radius: 999px;
  font-family: var(--head); font-weight: 800; font-size: .9rem; margin-bottom: 14px;
}
.mq-timeline__step h3 { font-size: 1.15rem; }
.mq-timeline__step p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (min-width: 720px) { .mq-timeline { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
  .mq-timeline { grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
  .mq-timeline::before {
    content: ""; position: absolute; left: 24px; right: 24px; top: 38px; height: 0;
    border-top: 3px dashed var(--navy); z-index: 0;
  }
  .mq-timeline__step { z-index: 1; }
}
.mq-sri { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 26px 20px; display: grid; gap: 20px; }
.mq-sri__text h3 { font-size: 1.4rem; font-weight: 800; }
.mq-sri__text p { color: #d7d9ea; margin: 0; }
.mq-sri__scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-self: end; }
.mq-sri__scale li span {
  display: grid; place-items: center; height: 54px; border-radius: 10px; border: 2px solid var(--navy);
  font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--navy);
}
.mq-sri__scale li:nth-child(1) span { background: #d9ecdf; }
.mq-sri__scale li:nth-child(2) span { background: var(--sage); }
.mq-sri__scale li:nth-child(3) span { background: var(--sky); }
.mq-sri__scale li:nth-child(4) span { background: #ffe58a; }
.mq-sri__scale li:nth-child(5) span { background: var(--sun); }
.mq-sri__scale li:nth-child(6) span { background: #ff9a76; }
.mq-sri__scale li:nth-child(7) span { background: var(--orange); }
.mq-sri__ends { display: flex; justify-content: space-between; gap: 16px; margin: 0; font-size: .82rem; color: #c9cce0; }
.mq-sri__ends span:last-child { text-align: right; }
@media (min-width: 960px) {
  .mq-sri { grid-template-columns: 1fr 1fr; padding: 34px 36px; column-gap: 48px; }
  .mq-sri__text { grid-row: span 2; }
}

/* Rééquilibrage */
.mq-rebal { display: grid; gap: 32px; align-items: center; }
.mq-rebal__text p { color: var(--muted); }
.mq-rebal__fig { margin: 0; background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--shadow); }
.mq-rebal__fig figcaption { font-size: .95rem; margin-bottom: 20px; }
.mq-rebal__fig figcaption .mq-sticker { margin-right: 6px; }
.mq-rebal__bars { display: grid; gap: 14px; }
.mq-rebal__row { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; font-weight: 500; font-size: .92rem; }
.mq-rebal__bar { display: flex; height: 44px; border: var(--line); border-radius: 12px; overflow: hidden; }
.mq-rebal__bar i {
  display: grid; place-items: center; font-style: normal; font-family: var(--head); font-weight: 800; font-size: .95rem;
  transition: width .4s ease;
}
.mq-rebal__bar i + i { border-left: var(--line); }
.mq-rebal__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: .86rem; color: var(--muted); }
.mq-rebal__legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 960px) { .mq-rebal { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* FAQ */
.mq-faq { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .mq-faq { grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
  .mq-faq .mq-sechead { position: sticky; top: 104px; }
}
.mq-faq__list { display: grid; gap: 10px; }
.mq-faq__item { background: var(--paper); border: var(--line); border-radius: var(--r-md); }
.mq-faq__item[open] { box-shadow: 4px 4px 0 var(--sun), 4px 4px 0 2px var(--navy); }
.mq-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--head); font-weight: 600; font-size: 1.02rem; line-height: 1.35;
}
.mq-faq__item summary::-webkit-details-marker { display: none; }
.mq-faq__sign {
  width: 30px; height: 30px; padding: 6px; flex: none; border: var(--line); border-radius: 9px; background: var(--sun);
  transition: transform .2s ease;
}
.mq-faq__item[open] .mq-faq__sign { transform: rotate(45deg); background: var(--orange); }
.mq-faq__item p { padding: 0 20px 20px; margin: 0; color: var(--muted); font-size: .98rem; }

/* Inscription */
.mq-signup {
  display: grid; gap: 28px; background: var(--orange); border: var(--line); border-radius: 22px;
  padding: 28px 18px; box-shadow: 8px 8px 0 var(--navy);
}
.mq-signup__pitch h2 { margin-top: 18px; }
.mq-signup__pitch > p { font-size: 1.08rem; }
.mq-ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.mq-ticks li { display: flex; gap: 10px; font-weight: 500; }
.mq-ticks .mq-ico { flex: none; width: 24px; height: 24px; padding: 4px; background: var(--navy); color: var(--sun); border-radius: 7px; margin-top: 1px; }
.mq-signup__img { display: none; }
@media (min-width: 960px) {
  .mq-signup { grid-template-columns: 1fr 440px; gap: 48px; padding: 48px; align-items: start; }
  .mq-signup__img { display: block; width: 200px; border: var(--line); border-radius: var(--r-md); transform: rotate(3deg); box-shadow: var(--shadow); }
}

.mq-form { background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 24px 20px; }
@media (min-width: 720px) { .mq-form { padding: 30px; } }
.mq-form__title { font-family: var(--head); font-weight: 800; font-size: 1.35rem; margin-bottom: 18px; }
.mq-field { margin-bottom: 16px; }
.mq-field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.mq-opt { color: var(--muted); font-weight: 400; font-size: .88em; }
.mq-field input, .mq-field select, .mq-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: var(--line); border-radius: 12px;
  background: var(--cream); color: var(--navy); font: inherit; font-size: 1rem;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.mq-field textarea { min-height: 150px; resize: vertical; }
.mq-field input:focus, .mq-field select:focus, .mq-field textarea:focus { outline: none; background: #fff; box-shadow: 3px 3px 0 var(--orange); }
.mq-check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.mq-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.mq-form__privacy { display: block; font-size: .82rem; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
.mq-form__privacy .mq-ico { margin-right: 4px; }

/* Encadré risques */
.mq-risk { padding-top: 0; }
.mq-risk__box {
  display: grid; gap: 18px; background: var(--sun); border: var(--line); border-radius: 22px; padding: 26px 20px;
}
.mq-risk__box h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mq-risk__box p { font-size: .98rem; }
.mq-risk__ico { display: grid; place-items: center; width: 58px; height: 58px; background: var(--navy); color: var(--sun); border-radius: 16px; font-size: 1.6rem; }
@media (min-width: 900px) { .mq-risk__box { grid-template-columns: auto 1fr; gap: 28px; padding: 40px; } }

/* Pied de page */
.mq-foot { background: var(--navy); color: #dfe1f0; padding: 60px 0 28px; margin-top: 40px; }
.mq-foot a { color: #fff; }
.mq-foot a:hover { color: var(--sun); }
.mq-foot__grid { display: grid; gap: 32px; }
.mq-foot__brand p { font-size: .94rem; margin-top: 16px; max-width: 46ch; }
.mq-foot__org { color: #b7bad2; font-size: .86rem !important; }
.mq-foot__title { font-family: var(--head); font-weight: 600; color: var(--sun); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.mq-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.mq-foot__links a { text-decoration: none; }
.mq-foot__links a:hover { text-decoration: underline; }
.mq-foot__links .mq-linkbtn { color: #fff; text-decoration: none; }
.mq-foot__links .mq-linkbtn:hover { color: var(--sun); }
.mq-foot__risk {
  display: flex; gap: 14px; margin-top: 40px; padding: 18px 20px;
  border: 2px solid rgba(255, 255, 255, .25); border-radius: var(--r-md); font-size: .86rem; line-height: 1.6;
}
.mq-foot__risk .mq-ico { flex: none; width: 22px; height: 22px; color: var(--sun); margin-top: 2px; }
.mq-foot__risk p { margin: 0; }
.mq-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; font-size: .84rem; color: #b7bad2; }
.mq-foot__base p { margin: 0; }
@media (min-width: 720px) { .mq-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }

/* Pages intérieures */
.mq-pagehead { padding: 40px 0 36px; border-bottom: var(--line); background:
  linear-gradient(90deg, var(--sun) 0 14px, transparent 14px) no-repeat, var(--cream); }
.mq-pagehead h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 16px; }
.mq-pagehead .mq-lead { margin-bottom: 14px; }
.mq-pagehead__date { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; margin: 0; }
.mq-crumbs { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.mq-crumbs__sep { transform: rotate(-90deg); width: .8em; height: .8em; }
@media (min-width: 900px) { .mq-pagehead { padding: 64px 0 52px; } }

.mq-doc { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; }
.mq-doc__toc nav { background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.mq-doc__toctitle { font-family: var(--head); font-weight: 800; margin-bottom: 10px; }
.mq-doc__toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .92rem; }
.mq-doc__toc a { text-decoration: none; }
.mq-doc__toc a:hover { text-decoration: underline; }
.mq-doc__body { min-width: 0; }
.mq-doc__part { scroll-margin-top: 96px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 2px dashed rgba(27, 31, 59, .2); }
.mq-doc__part:last-child { border-bottom: 0; }
.mq-doc__part h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.mq-doc__num {
  flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 36px; padding: 0 6px;
  background: var(--sky); border: var(--line); border-radius: 10px; font-size: .95rem; transform: translateY(-3px);
}
.mq-doc__part:nth-child(3n+2) .mq-doc__num { background: var(--sun); }
.mq-doc__part:nth-child(3n) .mq-doc__num { background: var(--sage); }
.mq-doc__part h3 { font-size: 1.12rem; margin-top: 1.4em; }
.mq-doc__part ul, .mq-doc__part ol { padding-left: 1.25em; }
.mq-doc__part li { margin-bottom: .35em; }
.mq-doc__body p, .mq-doc__body li { color: #2d3150; }
@media (min-width: 960px) {
  .mq-doc { grid-template-columns: 280px 1fr; gap: 56px; padding-top: 56px; }
  .mq-doc__toc nav { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .mq-doc__body { max-width: 820px; }
}

.mq-table { width: 100%; overflow-x: auto; margin: 0 0 1.2em; border: var(--line); border-radius: var(--r-md); background: var(--paper); }
.mq-table table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.mq-table th, .mq-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(27, 31, 59, .15); }
.mq-table th { font-family: var(--head); font-weight: 600; background: var(--sun); border-bottom: var(--line); }
.mq-table tr:last-child td { border-bottom: 0; }
.mq-table code { font-size: .88em; background: var(--cream); padding: 1px 5px; border-radius: 5px; }

.mq-callout {
  display: flex; gap: 14px; background: var(--sage); border: var(--line); border-radius: var(--r-md);
  padding: 16px 18px; margin: 0 0 1.2em;
}
.mq-callout .mq-ico { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.mq-callout p { margin: 0; }
.mq-callout-warm { background: var(--sun); }
.mq-card-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.mq-card-list li { background: var(--paper); border: var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0; }

/* Pages qui sommes-nous / nous joindre */
.mq-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .mq-split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.mq-photo { margin: 0; border: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.mq-photo img { width: 100%; height: 100%; object-fit: cover; }
.mq-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .mq-cards { grid-template-columns: 1fr 1fr; } }
.mq-card { background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 24px; }
.mq-card h3 { display: flex; align-items: center; gap: 10px; }
.mq-card p:last-child, .mq-card ul:last-child { margin-bottom: 0; }
.mq-card ul { padding-left: 1.2em; }
.mq-prose p { color: #2d3150; }
.mq-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mq-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.mq-contact-list .mq-ico { flex: none; width: 40px; height: 40px; padding: 10px; border: var(--line); border-radius: 12px; background: var(--sun); }
.mq-contact-list strong { display: block; font-family: var(--head); font-weight: 600; }
.mq-contact-list span, .mq-contact-list a { word-break: break-word; }

/* Merci / 404 */
.mq-center { text-align: center; padding: 72px 0 40px; }
.mq-center .mq-lead { margin: 0 auto 28px; }
.mq-center .mq-hero__actions { justify-content: center; }
.mq-bignum { font-family: var(--head); font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); line-height: .9; letter-spacing: -.06em; display: inline-flex; gap: .06em; margin-bottom: 18px; }
.mq-bignum span { display: inline-grid; place-items: center; min-width: .85em; padding: .05em .08em; border: 3px solid var(--navy); border-radius: 22px; }
.mq-steps { list-style: none; padding: 0; margin: 40px auto 0; max-width: 900px; display: grid; gap: 14px; text-align: left; counter-reset: s; }
@media (min-width: 720px) { .mq-steps { grid-template-columns: repeat(3, 1fr); } }
.mq-steps li { background: var(--paper); border: var(--line); border-radius: var(--r-lg); padding: 22px; counter-increment: s; }
.mq-steps li::before { content: "0" counter(s); display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; color: #c8411a; margin-bottom: 8px; }

/* Bandeau cookies */
.mq-consent {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
  background: var(--paper); color: var(--navy);
  border-top: var(--line); border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(27, 31, 59, .18);
  max-height: 88vh; overflow-y: auto;
  font-size: .92rem; line-height: 1.5;
}
.mq-consent[hidden] { display: none; }
.mq-consent__grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(27, 31, 59, .25); margin: 0 auto 12px; }
.mq-consent__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mq-consent__badge { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: var(--sun); border: var(--line); border-radius: 12px; font-size: 1.15rem; }
.mq-consent__title:focus { outline: none; }
.mq-consent__title { font-family: var(--head); font-weight: 800; font-size: 1.12rem; margin: 0; }
.mq-consent p { margin: 0 0 12px; }
.mq-consent__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mq-consent__choice {
  min-height: 46px; padding: 0 12px; border: var(--line); border-radius: 12px; background: var(--paper); color: var(--navy);
  font-family: var(--head); font-weight: 600; font-size: .92rem; cursor: pointer;
}
.mq-consent__choice:hover { background: var(--navy); color: #fff; }
.mq-consent__more {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px;
  min-height: 40px; background: none; border: 0; color: var(--navy); font: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.mq-consent__more .mq-ico { transition: transform .2s ease; }
.mq-consent__more[aria-expanded="true"] .mq-ico { transform: rotate(180deg); }
.mq-consent__panel { border-top: 2px dashed rgba(27, 31, 59, .25); margin-top: 8px; padding-top: 12px; }
.mq-consent__panel[hidden] { display: none; }
.mq-consent__cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(27, 31, 59, .12); }
.mq-consent__cat strong { font-family: var(--head); font-weight: 600; }
.mq-consent__cat small { grid-column: 1; color: var(--muted); font-size: .82rem; }
.mq-consent__cat .mq-switch { grid-row: 1 / span 2; grid-column: 2; }
.mq-switch { position: relative; display: inline-block; width: 52px; height: 30px; }
.mq-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.mq-switch i { position: absolute; inset: 0; background: var(--cream); border: var(--line); border-radius: 999px; transition: background-color .15s ease; }
.mq-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); transition: transform .15s ease; }
.mq-switch input:checked + i { background: var(--orange); }
.mq-switch input:checked + i::after { transform: translateX(22px); }
.mq-switch input:disabled { cursor: not-allowed; }
.mq-switch input:disabled + i { opacity: .55; }
.mq-switch input:focus-visible + i { outline: 3px solid var(--orange); outline-offset: 2px; }
.mq-consent__save { width: 100%; margin-top: 12px; }
.mq-consent__links { font-size: .8rem; margin: 10px 0 0 !important; color: var(--muted); }
@media (min-width: 720px) {
  .mq-consent {
    left: 24px; right: auto; bottom: 24px; width: 400px; max-height: calc(100vh - 48px);
    border: var(--line); border-radius: 18px; box-shadow: 7px 7px 0 var(--navy);
    padding: 20px 22px;
  }
  .mq-consent__grab { display: none; }
}

/* Compléments pages intérieures */
.mq-stack { grid-template-columns: 1fr !important; }
.mq-photo-band { aspect-ratio: 16 / 6; }
.mq-h3 { font-size: 1.2rem; font-weight: 800; }
.mq-bignum .mq-ico { width: .6em; height: .6em; }
.mq-card h3 .mq-ico { flex: none; }
.mq-card.mq-sun a:not(.mq-btn), .mq-card.mq-sage a:not(.mq-btn) { color: var(--navy); }
.mq-logo-light .mq-logo__mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); border-radius: 10px; }
.mq-card.mq-sage { background: var(--sage); }
.mq-card.mq-sun { background: var(--sun); }
.mq-card.mq-sky { background: var(--sky); }
.mq-card.mq-white { background: var(--paper); }
.mq-rebal__photo { margin: 24px 0 0; border: var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; }
.mq-rebal__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Petits écrans */
@media (max-width: 400px) {
  .mq-hero__text h1 { font-size: 1.85rem; }
  .mq-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mq-hero__stats li { padding-left: 10px; padding-right: 10px; }
  .mq-hero__stats strong { font-size: 1.7rem; }
  .mq-hero__stats span { font-size: .76rem; }
}
