/* =========================================================================
   Page d'accueil : présentation de l'application (front-page.php)
   Aussi chargé sur la page Tarifs (page-tarifs.php), qui en réutilise les composants.
   Mobile first : les styles de base visent le téléphone, les media queries
   en min-width élargissent jusqu'à l'ordinateur.
   Toutes les classes sont préfixées mrh- pour ne rien casser ailleurs.
   ========================================================================= */

.mrh {
  /* Couleurs (reprises de l'application) */
  --mrh-bg: #f9fafb;
  --mrh-surface: #ffffff;
  --mrh-ink: #111827;
  --mrh-ink2: #374151;
  --mrh-muted: #6b7280;
  --mrh-faint: #9ca3af;
  --mrh-line: #e5e7eb;
  --mrh-line2: #f3f4f6;
  --mrh-brand: #7c5cff;
  --mrh-brand-dark: #6344e0;
  --mrh-brand-soft: #f1edff;
  --mrh-gain: #059669;
  --mrh-loss: #dc2626;
  --mrh-grad: linear-gradient(135deg, #7c5cff, #a78bfa 55%, #fb7185);

  /* Échelle typographique : une seule source pour toute la page.
     Les titres grandissent avec l'écran (clamp), le texte courant reste fixe. */
  --mrh-fs-label: 12px;   /* surtitres, étiquettes, en-têtes de colonnes */
  --mrh-fs-small: 14px;   /* mentions, légendes, textes secondaires */
  --mrh-fs-card: 15px;    /* texte des cartes */
  --mrh-fs-body: 16px;    /* paragraphes principaux, boutons */
  --mrh-fs-lede: 17px;    /* introduction du haut de page (18 px sur ordinateur) */
  --mrh-fs-h3: 17px;      /* titres de cartes, questions de la FAQ */
  --mrh-fs-stat: clamp(22px, 1.6vw + 16px, 30px);  /* grands chiffres */
  --mrh-fs-h2: clamp(26px, 2.2vw + 18px, 36px);    /* titres de section */
  --mrh-fs-h1: clamp(32px, 4.2vw + 16px, 52px);    /* titre principal */

  /* Pas de font-family : la page reprend la police du thème, comme le reste du site. */
  font-size: var(--mrh-fs-body);
  line-height: 1.55;
  color: var(--mrh-ink);
  -webkit-font-smoothing: antialiased;
}

/* Le thème contraint <main> (legacy.css) : la page d'accueil prend toute la largeur. */
main.mrh {
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--mrh-bg);
}

/* Remise à zéro des styles globaux du thème, sans augmenter la spécificité. */
:where(.mrh) *, :where(.mrh) *::before, :where(.mrh) *::after { box-sizing: border-box; }
/* Retour à la ligne normal : chaque ligne est remplie au maximum.
   balance et pretty renvoyaient des mots à la ligne trop tôt, et les titres
   passaient sur trois lignes alors que la place existait. */
:where(.mrh) h1, :where(.mrh) h2, :where(.mrh) h3, :where(.mrh) h4 { margin: 0; color: var(--mrh-ink); letter-spacing: -0.02em; text-wrap: wrap; }
:where(.mrh) p { margin: 0; font-size: inherit; }
:where(.mrh) ul, :where(.mrh) ol { list-style: none; margin: 0; padding: 0; }
:where(.mrh) li { padding-left: 0; }
:where(.mrh) a, :where(.mrh) a:visited, :where(.mrh) a:hover { color: inherit; text-decoration: none; }
:where(.mrh) a:focus-visible, :where(.mrh) summary:focus-visible, :where(.mrh) [tabindex]:focus-visible { outline: 2px solid var(--mrh-brand); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.mrh) { scroll-behavior: smooth; }
}

.mrh-wrap { max-width: var(--container-max-width, 1200px); margin: 0 auto; padding: 0 1rem; }   /* mêmes bords que l'en-tête (.header-content) */
.mrh-tnum { font-variant-numeric: tabular-nums; }
.mrh-nowrap { white-space: nowrap; }
.mrh-gain { color: var(--mrh-gain); }
.mrh-check { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--mrh-gain); }
.mrh-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(124, 92, 255, 0.1); color: var(--mrh-brand); display: grid; place-items: center; flex: none; }
.mrh-ico svg { width: 20px; height: 20px; }

/* Typographie */
.mrh-h1 { font-size: var(--mrh-fs-h1); line-height: 1.08; margin: 14px 0; }
.mrh-h1 span { background: var(--mrh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mrh-h2 { font-size: var(--mrh-fs-h2); line-height: 1.15; }
.mrh-h2-row { margin: 0 0 12px; }
.mrh-h3 { font-size: var(--mrh-fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.mrh-kicker { font-size: var(--mrh-fs-label); line-height: 1.4; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mrh-brand); margin-bottom: 10px; }
.mrh-sub { margin-top: 12px; font-size: var(--mrh-fs-body); color: var(--mrh-ink2); max-width: 60ch; }
.mrh-head { max-width: 720px; margin-bottom: 28px; }

/* Boutons */
.mrh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: var(--mrh-fs-body); line-height: 1.2; border-radius: 10px; padding: 14px 20px; border: 1px solid transparent; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.mrh .mrh-btn-brand, .mrh .mrh-btn-brand:visited { background: var(--mrh-brand); color: #fff; box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35); }
.mrh .mrh-btn-brand:hover { background: var(--mrh-brand-dark); color: #fff; }
.mrh .mrh-btn-ghost, .mrh .mrh-btn-ghost:visited { background: var(--mrh-surface); color: var(--mrh-ink); border-color: var(--mrh-line); }
.mrh .mrh-btn-ghost:hover { border-color: #cfc6ff; color: var(--mrh-brand); }
.mrh .mrh-btn-white, .mrh .mrh-btn-white:visited { background: #fff; color: var(--mrh-brand-dark); }

/* ---------------- Haut de page ---------------- */
.mrh-hero { padding: 28px 0 32px; }
.mrh-hero-grid { display: grid; gap: 32px; }
.mrh-eyebrow { display: inline-block; font-size: var(--mrh-fs-label); line-height: 1.4; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mrh-brand); background: var(--mrh-brand-soft); padding: 5px 11px; border-radius: 999px; }
.mrh-lede { font-size: var(--mrh-fs-lede); color: var(--mrh-ink2); max-width: 52ch; }
.mrh-hero-cta { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 16px; }
.mrh-reassure { display: flex; flex-direction: column; gap: 6px; font-size: var(--mrh-fs-small); color: var(--mrh-muted); }
.mrh-reassure li { display: flex; gap: 8px; align-items: flex-start; }
.mrh-reassure .mrh-check { margin-top: 3px; }

/* Fenêtre de l'application : miniature d'une capture d'écran, d'où des tailles
   volontairement plus petites que le reste de la page (jamais sous 10 px). */
.mrh-window { background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(49, 32, 120, 0.25), 0 8px 20px -8px rgba(0, 0, 0, 0.08); overflow: hidden; scroll-margin-top: 16px; }
.mrh-chrome { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--mrh-line2); background: #fbfbfd; }
.mrh-dots, .mrh-dots-spacer { display: flex; gap: 6px; width: 46px; }
.mrh-dots i { width: 10px; height: 10px; border-radius: 50%; }
.mrh-url { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--mrh-ink2); }
.mrh-app { display: grid; background: var(--mrh-bg); }
.mrh-side { display: none; }
.mrh-app-main { padding: 10px; min-width: 0; }
.mrh-app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mrh-app-title { font-size: 14px; font-weight: 600; }
.mrh-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #047857; background: #d1fae5; padding: 3px 9px; border-radius: 999px; }
.mrh-sync i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.mrh-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mrh-kpi { display: flex; flex-direction: column; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; padding: 10px 11px; min-width: 0; }
.mrh-kpi-l { font-size: 10px; line-height: 1.3; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mrh-muted); margin-bottom: 6px; }
.mrh-kpi-v { font-size: 17px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.mrh-kpi-s { font-size: 11px; line-height: 1.35; color: var(--mrh-faint); margin-top: 3px; }
.mrh-kpi-hero { background: var(--mrh-grad); border: 0; color: #fff; position: relative; overflow: hidden; }
.mrh-kpi-hero::after { content: ""; position: absolute; right: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.mrh-kpi-hero .mrh-kpi-l { color: #fff; }
.mrh-kpi-hero .mrh-kpi-s { color: rgba(255, 255, 255, 0.88); }
.mrh-card { background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; padding: 12px; min-width: 0; }
.mrh-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.mrh-card-title { font-size: 13px; font-weight: 600; color: var(--mrh-ink2); }
.mrh-seg { display: flex; background: var(--mrh-line2); border-radius: 8px; padding: 2px; }
.mrh-seg i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--mrh-muted); padding: 3px 8px; border-radius: 6px; }
.mrh-seg i.is-on { background: var(--mrh-surface); color: var(--mrh-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.mrh-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; font-size: 11px; color: var(--mrh-muted); }
.mrh-legend > span { display: flex; align-items: center; gap: 6px; }
.mrh-legend s { display: inline-block; width: 14px; height: 0; border-top: 2px solid; text-decoration: none; }
.mrh-legend s.is-dash { border-top-style: dashed; }
.mrh-chart { position: relative; min-height: 120px; }
.mrh-chart svg { display: block; width: 100%; height: auto; }
.mrh-chart text { font-family: inherit; font-size: 10px; fill: var(--mrh-faint); }
.mrh-tip { position: absolute; top: 6px; pointer-events: none; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12); font-size: 12px; min-width: 170px; z-index: 5; }
.mrh-tip b { display: block; font-size: 11px; font-weight: 500; color: var(--mrh-muted); margin-bottom: 4px; }
.mrh-tip div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 1px 0; }
.mrh-tip div span:first-child { display: flex; align-items: center; gap: 6px; color: var(--mrh-muted); }
.mrh-tip div span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--mrh-ink); }
.mrh-tip s { display: inline-block; width: 12px; height: 0; border-top: 2px solid; text-decoration: none; }
.mrh-two { display: grid; gap: 8px; margin-top: 8px; }
.mrh-donut-row { display: flex; gap: 12px; align-items: center; }
.mrh-donut { width: 88px; height: 88px; flex: none; }
.mrh-alloc { display: grid; gap: 3px; font-size: 11px; flex: 1; min-width: 0; }
.mrh-alloc > span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.mrh-alloc i { width: 8px; height: 8px; border-radius: 2px; }
.mrh-alloc b { font-weight: 400; color: var(--mrh-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrh-alloc em { font-style: normal; color: var(--mrh-muted); font-variant-numeric: tabular-nums; }
.mrh-top5 { display: grid; gap: 6px; font-size: 11px; }
.mrh-top-r { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; }
.mrh-top-r b { font-weight: 400; color: var(--mrh-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrh-top-r i { display: flex; align-items: center; justify-content: flex-end; height: 16px; min-width: 58px; padding-right: 6px; border-radius: 0 5px 5px 0; background: linear-gradient(90deg, #7c5cff, #a78bfa); color: #fff; font-style: normal; font-size: 10px; font-weight: 600; white-space: nowrap; }

/* ---------------- Bande enveloppes ---------------- */
.mrh-envs { padding: 18px 0; background: var(--mrh-surface); border-top: 1px solid var(--mrh-line); border-bottom: 1px solid var(--mrh-line); }
.mrh-envs-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.mrh-envs-label { font-size: var(--mrh-fs-small); font-weight: 500; color: var(--mrh-muted); }
.mrh-env-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mrh-env-list li { font-size: var(--mrh-fs-small); font-weight: 600; padding: 5px 12px; border-radius: 8px; }

/* ---------------- Sections ---------------- */
.mrh-block { padding: 48px 0; }
.mrh-alt { background: var(--mrh-surface); border-top: 1px solid var(--mrh-line); border-bottom: 1px solid var(--mrh-line); }

/* Fonctionnalités : blocs détaillés */
.mrh-rows { display: flex; flex-direction: column; gap: 64px; }
#fonctionnalites .mrh-head { margin-bottom: 32px; }
.mrh-row { display: grid; gap: 22px; }
.mrh-row-text p { font-size: var(--mrh-fs-body); color: var(--mrh-ink2); max-width: 52ch; }
.mrh-row-text p + p { margin-top: 10px; }

/* « Et plein d'autres choses » : les fonctionnalités sans bloc dédié, en une phrase */
.mrh-others { font-size: var(--mrh-fs-body); color: var(--mrh-ink2); max-width: 70ch; }
.mrh-others strong { font-weight: 600; color: var(--mrh-ink); }
.mrh-checks { display: grid; gap: 8px; margin-top: 16px; font-size: var(--mrh-fs-body); color: var(--mrh-ink2); }
.mrh-checks li { display: flex; gap: 9px; align-items: flex-start; }
.mrh-panel { background: var(--mrh-bg); border: 1px solid var(--mrh-line); border-radius: 16px; padding: 12px; min-width: 0; }
.mrh-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mrh-cmp { display: flex; flex-direction: column; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; padding: 14px; }
.mrh-cmp.is-strong { border: 2px solid var(--mrh-brand); }
.mrh-cmp-l { font-size: var(--mrh-fs-label); line-height: 1.35; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mrh-muted); }
.mrh-cmp-v { font-size: var(--mrh-fs-stat); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.mrh-cmp-s { font-size: var(--mrh-fs-small); line-height: 1.4; color: var(--mrh-muted); }
.mrh-flowline { margin-top: 8px; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; padding: 12px 14px; font-size: var(--mrh-fs-small); color: var(--mrh-ink2); }
.mrh-start { background: var(--mrh-surface); border: 2px solid var(--mrh-brand); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px -12px rgba(124, 92, 255, 0.35); }
.mrh-start-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.mrh-min2 { font-size: var(--mrh-fs-label); font-weight: 700; color: #047857; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; }
.mrh-start-title { font-size: var(--mrh-fs-h3); line-height: 1.3; font-weight: 700; margin-bottom: 4px; }
.mrh-start-sub { font-size: var(--mrh-fs-small); color: var(--mrh-muted); }
.mrh-mono { display: block; margin-top: 12px; background: var(--mrh-bg); border: 1px solid var(--mrh-line2); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; color: var(--mrh-ink2); }
.mrh-mono-r { display: grid; grid-template-columns: 1fr 44px 88px; gap: 8px; padding: 4px 0; }
.mrh-mono-r b { font-weight: 400; }
.mrh-mono-r b:not(:first-child) { text-align: right; }
.mrh-mono-r.is-head b { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mrh-faint); }
.mrh-mono-r.is-head { border-bottom: 1px solid var(--mrh-line); padding-bottom: 6px; margin-bottom: 2px; }
.mrh-mv-title { padding: 12px 14px 6px; font-size: var(--mrh-fs-small); font-weight: 600; color: var(--mrh-ink2); }

/* Plus-values réalisées et prochains dividendes : listes à deux lignes par entrée */
.mrh-loss { color: var(--mrh-loss); }
.mrh-pv { background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; overflow: hidden; }
.mrh-pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-right: 14px; }
.mrh-pv-total { display: flex; align-items: baseline; gap: 6px; }
.mrh-pv-total b { font-size: var(--mrh-fs-body); }
.mrh-pv-total small { font-size: var(--mrh-fs-label); color: var(--mrh-faint); }
.mrh-pv-r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--mrh-line2); }
.mrh-pv-left, .mrh-pv-right { display: flex; flex-direction: column; min-width: 0; }
.mrh-pv-right { align-items: flex-end; text-align: right; flex: none; }
.mrh-pv-left b, .mrh-pv-right b { font-size: var(--mrh-fs-small); font-weight: 600; }
.mrh-pv-left b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrh-pv-left small, .mrh-pv-right small { font-size: var(--mrh-fs-label); color: var(--mrh-faint); }
.mrh-divk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mrh-divk > div { display: flex; flex-direction: column; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; padding: 10px; min-width: 0; }
.mrh-divk-l { font-size: 11px; line-height: 1.3; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mrh-muted); }
.mrh-divk-v { font-size: 17px; font-weight: 700; line-height: 1.2; margin-top: 6px; white-space: nowrap; }
.mrh-divk-s { font-size: 11px; color: var(--mrh-faint); margin-top: 2px; }

/* Tarifs (résumé) */
.mrh-teaser { display: grid; gap: 22px; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 20px; padding: 24px; }
.mrh-teaser .mrh-checks { margin-top: 0; }
.mrh-teaser-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* Pourquoi MonRendement */
.mrh-stats { display: grid; gap: 12px; margin-bottom: 12px; }
.mrh-stat { background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 14px; padding: 20px; }
.mrh-stat-big { font-size: var(--mrh-fs-stat); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; background: var(--mrh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mrh-stat-sub { margin-top: 8px; font-size: var(--mrh-fs-card); color: var(--mrh-muted); }
.mrh-trust { display: grid; gap: 12px; }
.mrh-trust-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; column-gap: 12px; row-gap: 10px; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 14px; padding: 18px; }
.mrh-trust-item p { grid-column: 1 / -1; font-size: var(--mrh-fs-card); color: var(--mrh-muted); }

/* Questions fréquentes */
.mrh-faq { display: grid; gap: 10px; max-width: 860px; }
.mrh-faq details { background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 12px; padding: 0 16px; }
.mrh-faq summary { list-style: none; cursor: pointer; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mrh-faq summary::-webkit-details-marker { display: none; }
.mrh-faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--mrh-brand); }
.mrh-faq details[open] summary::after { content: "\2212"; }
.mrh-faq-q { font-size: var(--mrh-fs-h3); line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.mrh-faq details p { padding: 0 0 16px; font-size: var(--mrh-fs-body); color: var(--mrh-ink2); max-width: 70ch; }

/* Guides */
.mrh-guides { display: grid; gap: 12px; }
.mrh-guide { display: flex; flex-direction: column; gap: 8px; background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 14px; padding: 18px; }
.mrh .mrh-guide:hover { border-color: #cfc6ff; }
.mrh-guide-k { font-size: var(--mrh-fs-label); line-height: 1.4; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mrh-brand); }
.mrh-guide p { font-size: var(--mrh-fs-card); color: var(--mrh-muted); }
.mrh-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mrh-tool { background: var(--mrh-surface); border: 1px solid var(--mrh-line); border-radius: 10px; padding: 10px 14px; font-size: var(--mrh-fs-card); font-weight: 600; }
.mrh .mrh-tool:hover { color: var(--mrh-brand); border-color: #cfc6ff; }

/* Appel final */
.mrh-final { position: relative; overflow: hidden; display: grid; gap: 20px; background: var(--mrh-grad); border-radius: 22px; padding: 30px 22px; color: #fff; }
.mrh-final::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.mrh-final .mrh-h2 { color: #fff; }
.mrh-final p { margin-top: 8px; font-size: var(--mrh-fs-body); color: rgba(255, 255, 255, 0.9); }
.mrh-final .mrh-btn { position: relative; z-index: 1; }

/* =========================================================================
   À partir de 640 px : grand téléphone, petite tablette
   ========================================================================= */
@media (min-width: 640px) {
  .mrh-hero-cta, .mrh-teaser-cta { flex-direction: row; flex-wrap: wrap; }
  .mrh-reassure { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .mrh-app-main { padding: 12px; }
  .mrh-guides, .mrh-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrh-panel { padding: 16px; }
  .mrh-teaser { padding: 32px; }
  .mrh-final { padding: 38px 32px; }
}

/* =========================================================================
   À partir de 760 px : les indicateurs du tableau de bord passent sur une ligne
   ========================================================================= */
@media (min-width: 760px) {
  .mrh-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mrh-two { grid-template-columns: 1fr 1fr; }
  .mrh-final { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* =========================================================================
   À partir de 900 px : tablette paysage
   ========================================================================= */
@media (min-width: 840px) {
  .mrh-wrap { padding: 0 2rem; }   /* comme .header-content */
}

@media (min-width: 900px) {
  .mrh { --mrh-fs-lede: 18px; }
  .mrh-block { padding: 72px 0; }
  .mrh-head { margin-bottom: 34px; }
  .mrh-app { grid-template-columns: 168px minmax(0, 1fr); }
  .mrh-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--mrh-surface); border-right: 1px solid var(--mrh-line); }
  .mrh-nav { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #4b5563; }
  .mrh-nav svg { width: 16px; height: 16px; flex: none; }
  .mrh-nav.is-on { background: rgba(124, 92, 255, 0.1); color: var(--mrh-brand); }
  .mrh-rows { gap: 96px; }
  #fonctionnalites .mrh-head { margin-bottom: 56px; }
  .mrh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
  .mrh-row.is-flip .mrh-row-text { order: 2; }
  .mrh-teaser { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px; }
  .mrh-final { padding: 46px 40px; }
}

/* =========================================================================
   À partir de 1100 px : ordinateur
   ========================================================================= */
@media (min-width: 1100px) {
  .mrh-hero { padding: 56px 0 44px; }
  .mrh-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
  .mrh-guides, .mrh-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
