/* ==========================================================================
   Accueil du moteur, v2 (25/11/2026) : en-tête avec démonstration du calcul, plateformes et profils,
   classement de départ, sections sous le moteur. Chargé seulement sur l'accueil, après moteur.css.
   Même langage que le thème : blanc, gris, noir, un seul accent (jaune #FFB800, jamais en texte sur blanc), Inter.
   Survol et toucher : transform et opacity seulement.
   ========================================================================== */

.mh-ico { width: 22px; height: 22px; flex: none; }
#moteur { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- En-tête : texte à gauche, démonstration à droite ---------- */
.mh-top { --halo-x: 80%; --halo-y: 38%; }
.mh-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: calc(var(--overlap) + 32px); }
.mh-hero .mt-head { padding: 0; min-width: 0; }
.mh-hero__side { display: none; }
@media (min-width: 900px) { .mh-hero { padding-top: 40px; } }
@media (min-width: 1024px) {
	.mh-hero--demo { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; padding-top: 44px; padding-bottom: calc(var(--overlap) + 52px); }
	.mh-hero--demo .mt-head__title { font-size: clamp(42px, 4.5vw, 64px); }
	.mh-hero__side { display: block; position: relative; isolation: isolate; min-width: 0; }
	.mh-hero__side::before { content: ""; position: absolute; z-index: -1; inset: 26px -14px -14px 30px; border-radius: 26px; background: var(--ink); transform: rotate(2.2deg); }
	.mh-hero__side::after { content: ""; position: absolute; z-index: -2; right: -60px; bottom: -70px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,184,0,.32), rgba(255,184,0,0)); }
}
@media (min-width: 1280px) { .mh-hero--demo { grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; } }

.mh-hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.mh-hero__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.mh-hero__link:hover { text-decoration-color: var(--ink); }

.mh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin: 30px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line-2); }
.mh-stats li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-stats__v { display: inline-block; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mh-stats__l { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
@media (min-width: 560px) { .mh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mh-stats li + li { padding-left: 16px; border-left: 1px solid var(--line-2); } }

/* Vue résultat : l'en-tête redevient compact. */
.mt-is-results .mh-stats, .mt-is-results .mh-hero__act, .mt-is-results .mh-hero__side { display: none; }
.mt-is-results .mh-hero--demo { grid-template-columns: minmax(0, 1fr); }

/* ---------- Démonstration du calcul ---------- */
.mh-demo { position: relative; margin: 0; padding: 18px 18px 16px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(10,10,11,.5), 0 10px 22px -16px rgba(10,10,11,.16); }
@media (prefers-reduced-motion: no-preference) { .mh-hero .mh-demo { animation: mh-rise .6s var(--ease) backwards; } }
@keyframes mh-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.mh-demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: -6px -6px 0 0; }
.mh-demo__t { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.mh-demo__live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--star); }
.mh-demo__live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: rgba(255,184,0,.35); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .mh-demo.is-ready:not(.is-paused):not(.is-hover) .mh-demo__live::after { animation: mh-ping 1.8s var(--ease) infinite; } }
@keyframes mh-ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.mh-demo__pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: transform .15s var(--ease); }
.mh-demo__pause[hidden] { display: none; }
.mh-demo__pause:hover { transform: scale(1.06); }
.mh-demo__pause:active { transform: scale(.94); }
.mh-demo__pause .mh-ico { width: 18px; height: 18px; }
.mh-demo__pause .mh-ico + .mh-ico, .mh-demo__pause[aria-pressed="true"] .mh-ico:first-of-type { display: none; }
.mh-demo__pause[aria-pressed="true"] .mh-ico + .mh-ico { display: block; fill: currentColor; }

.mh-demo__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.mh-chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; font-weight: 650; color: var(--muted); transition: color .35s var(--ease); }
.mh-chip::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--ink); opacity: 0; transition: opacity .35s var(--ease); }
.mh-chip.is-on { color: var(--white); }
.mh-chip.is-on::after { opacity: 1; }
.mh-chip .mh-ico { width: 15px; height: 15px; }
.mh-chip--must::before { content: "★"; color: var(--line-2); font-size: 11px; transition: color .35s var(--ease); }
.mh-chip--must.is-on::before { color: var(--star); }
.mh-demo__n { margin: 14px 0 10px; font-size: 13.5px; color: var(--muted); }
.mh-demo__n strong { display: inline-block; min-width: 2ch; color: var(--ink); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

.mh-demo__list { position: relative; display: grid; gap: 6px; min-height: calc(5 * 56px + 4 * 6px); margin: 0; padding: 0; list-style: none; }
.mh-demo:not(.is-ready) .mh-demo__list { background: repeating-linear-gradient(to bottom, var(--soft) 0 56px, transparent 56px 62px); border-radius: 12px; }
.mh-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 7px; height: 56px; padding: 9px 12px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.mh-row__r { grid-row: 1 / span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font-size: 12px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.mh-row.is-top .mh-row__r { background: var(--star); }
.mh-row__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.mh-row__p { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.mh-row__b { grid-column: 2 / 4; height: 5px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.mh-row__b i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease); }
.mh-row.is-top .mh-row__b i { background: var(--star); }
.mh-demo__cap { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.mh-demo__cap a { display: inline-block; color: var(--ink); font-weight: 650; text-underline-offset: 3px; }

/* Mobile : la démonstration est déplacée sous « Comment ça marche ». */
.mh-demo-slot { display: none; }
.mh-demo-slot.is-on { display: block; max-width: 560px; margin: 28px auto 0; }

/* ---------- Plateformes : pictogrammes neutres (pas de logo de marque) ---------- */
.mt-opt--plat { min-height: 78px; transition: box-shadow .18s var(--ease), transform .2s var(--ease); }
.mt-opt--plat:hover { transform: translateY(-2px); }
.mt-opt--plat:active { transform: scale(.985); }
.mt-opt__mark.mh-pmark { width: 42px; height: 42px; margin-top: -21px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.mh-pmark .mh-ico { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.mt-opt--plat:hover .mh-pmark .mh-ico { transform: scale(1.1); }
.mt-opt--plat input:checked ~ .mh-pmark { background: var(--star); box-shadow: none; }
.mh-pnum { font-size: 12.5px; }
.mt-opt--plat:has(input:checked) .mh-pnum { color: var(--ink-2); }
@media (max-width: 479px) {
	.mt-opt--plat { min-height: 0; }
	.mt-opt__mark.mh-pmark { margin: 0; width: 40px; height: 40px; }
	.mt-opt--plat .mt-opt__l { margin-top: 2px; }
}

/* ---------- Profils prêts à l'emploi : cartes ---------- */
.mt-profiles__t { margin-top: 4px; }
.mt-profile.mh-profile { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 2px; align-content: start; padding: 16px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease); }
.mt-profile.mh-profile::before { display: none; }
.mt-profile.mh-profile::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 22px 40px -24px rgba(10,10,11,.38); opacity: 0; transition: opacity .25s var(--ease); }
.mt-profile.mh-profile { isolation: isolate; }
.mt-profile.mh-profile:hover { background: var(--white); transform: translateY(-3px); }
.mt-profile.mh-profile:hover::after { opacity: 1; }
.mt-profile.mh-profile:active { transform: scale(.985); }
.mh-profile__ico { position: relative; isolation: isolate; grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--ink); }
.mh-profile__ico::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--star); opacity: 0; transition: opacity .25s var(--ease); }
.mh-profile:hover .mh-profile__ico::after, .mh-profile:focus-visible .mh-profile__ico::after { opacity: 1; }
.mh-profile .mt-profile__l { grid-column: 2; font-size: 15px; }
.mh-profile .mt-profile__d { grid-column: 2; font-size: 13px; }
.mh-profile__foot { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mh-profile__n { opacity: 0; transition: opacity .35s var(--ease); }
.mh-profile__n.is-in { opacity: 1; }
.mh-profile__n strong { color: var(--ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mh-profile__go .icon { display: block; width: 18px; height: 18px; color: var(--ink); transition: transform .25s var(--ease); }
.mh-profile:hover .mh-profile__go .icon { transform: translateX(3px); }

/* ---------- Classement de départ : les plus complètes, sans rang ni pourcentage ---------- */
.mt-live__note { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.mt-live__note[hidden] { display: none; }
.mt-live__note-c { display: none; }
.moteur-moteur .mt-app { padding-bottom: 48px; }
.mt-live.is-cov .mt-live__i { grid-template-columns: minmax(0, 1fr) auto; }
.mt-live.is-cov .mt-live__r { display: none; }
.mt-live.is-cov .mt-live__b { grid-column: 1 / -1; }
.mt-live.is-cov .mt-live__i:nth-child(-n+3) .mt-live__b i { background: var(--ink); }
.mt-live.is-cov .mt-live__p { font-size: 13px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 1023.98px) {
	/* Barre mobile repliée : une invitation plutôt que trois vignettes sans pourcentage. */
	.mt-panel:not(.is-open) .mt-live.is-cov { display: none; }
	.mt-panel__head .mt-live__note { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; }
	.mt-panel:not(.is-open) .mt-live__note-l { display: none; }
	.mt-panel:not(.is-open) .mt-live__note-c { display: inline; }
	.mt-panel.is-open .mt-live.is-cov .mt-live__i { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Sections sous le moteur ---------- */
.mh-band { padding: 64px 0 72px; background: var(--white); }
@media (min-width: 900px) { .mh-band { padding: 96px 0 104px; } }
.mh-band--gris { background: var(--band); border-block: 1px solid var(--line); }
.mh-band--noir { background: var(--ink); color: #c9c9cf; }
.mh-head { max-width: 720px; margin-bottom: 32px; }
@media (min-width: 900px) { .mh-head { margin-bottom: 44px; } }
.mh-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; max-width: none; }
.mh-head--row > div { max-width: 720px; }
.mh-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mh-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.mh-desc { margin-top: 12px; max-width: 60ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.mh-desc a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.mh-band--noir .mh-title { color: var(--white); }
.mh-band--noir .mh-desc { color: rgba(255,255,255,.72); }
.mh-band--noir .mh-kicker { color: rgba(255,255,255,.6); }
.mh-more { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line-2); color: var(--ink); font-size: 14.5px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease); }
.mh-more .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.mh-more:hover { transform: translateY(-2px); }
.mh-more:hover .icon { transform: translateX(3px); }
.mh-band--noir .mh-more { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: var(--white); }
.mh-band--noir :focus-visible { outline-color: var(--star); }

/* Comment ça marche */
.mh-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .mh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.mh-step { padding: 10px 10px 26px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.mh-step__ill { overflow: hidden; border-radius: 15px; background: var(--soft) radial-gradient(circle at 1px 1px, rgba(10,10,11,.1) 1px, transparent 1.5px) 0 0 / 16px 16px; aspect-ratio: 320 / 176; }
.mh-step__ill svg { display: block; width: 100%; height: 100%; transition: transform .5s var(--ease); }
.mh-step:hover .mh-step__ill svg { transform: scale(1.035); }
.mh-step__n { margin: 20px 14px 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-step__t { margin: 0 14px; font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); }
.mh-step__d { margin: 8px 14px 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.mh-step .s-card { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.mh-step .s-ink { fill: var(--ink); }
.mh-step .s-soft { fill: var(--soft-2); }
.mh-step .s-mid { fill: #c4c4cb; }
.mh-step .s-star { fill: var(--star); }
.mh-step .s-ring { fill: #fff; stroke: var(--line-2); stroke-width: 2; }
.mh-step .s-opt { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.mh-step .s-opt--on { stroke: var(--ink); stroke-width: 2; }
.mh-step .s-dark { fill: var(--ink); }
.mh-step .s-white { fill: #fff; }
.mh-step .s-arrow { fill: none; stroke: var(--star); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mh-step .s-bar { transform-box: fill-box; transform-origin: 0 50%; transition: transform 1.1s var(--ease) .25s; }
.js .mh-step:not(.is-in) .s-bar { transform: scaleX(.3); }

/* Fonctionnalités les plus répandues */
.mh-feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .mh-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .mh-feat:nth-child(n+7) { display: none; } }
@media (min-width: 1024px) { .mh-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.mh-feat__a { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px 16px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease); }
.mh-feat__a::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 24px 44px -26px rgba(10,10,11,.36); opacity: 0; transition: opacity .25s var(--ease); }
.mh-feat__a:hover { transform: translateY(-3px); }
.mh-feat__a:hover::after { opacity: 1; }
.mh-feat__c { font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mh-feat__t { font-size: 17px; line-height: 1.3; font-weight: 750; letter-spacing: -0.02em; }
.mh-feat__b { position: relative; display: block; height: 6px; margin-top: auto; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.mh-feat__b i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--mh-v, 0)); transition: transform 1s var(--ease) calc(var(--d, 0) * 80ms + .15s); }
.mh-feat__b i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--star); opacity: 0; transition: opacity .25s var(--ease); }
.mh-feat__a:hover .mh-feat__b i::after { opacity: 1; }
.js .mh-feat:not(.is-in) .mh-feat__b i { transform: scaleX(0); }
.mh-feat__n { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.mh-feat__n strong { color: var(--ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mh-feat__n .icon { width: 18px; height: 18px; color: var(--ink); transition: transform .25s var(--ease); }
.mh-feat__a:hover .mh-feat__n .icon { transform: translateX(3px); }
.mh-feat__t { margin-bottom: 8px; }

/* Comparatifs (bande noire) */
.mh-cmps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .mh-cmps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mh-cmp--une { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
	.mh-cmps--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.mh-cmps--5 .mh-cmp--une { grid-column: 1 / span 2; grid-row: 1 / span 2; }
	.mh-cmps--5 .mh-cmp--une .mh-cmp__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
}
.mh-cmp { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: 20px; background: #17171a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: transform .3s var(--ease); }
.mh-cmp:hover { transform: translateY(-4px); }
.mh-cmp:hover .media__img { transform: scale(1.04); }
.mh-cmp__media { border-radius: 13px; }
@media (max-width: 639.98px) {
	/* Mobile : le premier comparatif en grand, les suivants en lignes compactes. */
	.mh-cmp:not(.mh-cmp--une) { flex-direction: row; align-items: center; gap: 4px; }
	.mh-cmp:not(.mh-cmp--une) .mh-cmp__media { flex: none; width: 104px; aspect-ratio: 1 / 1; border-radius: 12px; }
	.mh-cmp:not(.mh-cmp--une) .mh-cmp__body { padding: 6px 10px; }
	.mh-cmp:not(.mh-cmp--une) .mh-cmp__t { font-size: 16px; }
}
.mh-cmp__body { padding: 14px 10px 8px; }
.mh-cmp__k { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.mh-cmp__t { margin-top: 6px; font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; color: var(--white); text-wrap: balance; }
.mh-cmp--une .mh-cmp__t { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.03em; }
.mh-cmp__t a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .25s var(--ease); }
.mh-cmp__t a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.mh-cmp:hover .mh-cmp__t a { text-decoration-color: var(--star); }
.mh-cmp:focus-within { outline: 2px solid var(--star); outline-offset: 4px; }
.mh-cmp__t a:focus-visible { outline: none; }

/* Derniers articles : cartes du thème */
.mh-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .mh-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* Questions */
.mh-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 900px) { .mh-faq { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } .mh-faq .mh-head { margin-bottom: 0; } }
.mh-q { margin-bottom: 10px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.mh-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 18px 14px 20px; list-style: none; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); cursor: pointer; border-radius: 16px; }
.mh-q summary::-webkit-details-marker { display: none; }
.mh-q summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%230a0a0b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease); }
.mh-q[open] summary::after { transform: rotate(45deg); }
.mh-q summary:hover::after { transform: scale(1.08); }
.mh-q[open] summary:hover::after { transform: rotate(45deg) scale(1.08); }
.mh-q summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mh-q__a { padding: 0 20px 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.mh-q__a p + p { margin-top: .7em; }
.mh-q__a a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .mh-q[open] .mh-q__a { animation: mh-open .3s var(--ease); } }
@keyframes mh-open { from { opacity: 0; transform: translateY(-4px); } }

/* Dernier appel */
.mh-band--fin { padding-top: 64px; }
@media (min-width: 900px) { .mh-band--fin { padding-top: 96px; } }
.mh-fin { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 28px; padding: 32px 22px; border-radius: 28px; background: var(--ink); color: rgba(255,255,255,.78); }
.mh-fin::before { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,184,0,.26), rgba(255,184,0,0)); }
.mh-fin::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 100%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 100% 100%, #000 10%, transparent 70%); }
@media (min-width: 900px) { .mh-fin { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 64px; } }
.mh-kicker--inv { color: rgba(255,255,255,.62); }
.mh-fin__t { color: var(--white); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; }
.mh-fin__d { margin-top: 14px; max-width: 46ch; font-size: 17px; line-height: 1.55; }
.mh-fin__plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 480px) { .mh-fin__plats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mh-fin__plats a { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 10px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--white); font-size: 15px; font-weight: 650; text-decoration: none; transition: transform .2s var(--ease); }
.mh-fin__plats a:hover { transform: translateY(-2px); }
.mh-fin__plats a:active { transform: scale(.97); }
.mh-fin__plats .mh-ico { width: 20px; height: 20px; color: var(--star); }
@media (max-width: 479px) { .mh-fin__plats a { font-size: 14px; } .mh-fin { padding: 30px 18px; } }
.mh-fin__plats a:focus-visible, .mh-fin__btn:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; }
.mh-fin__btn { width: 100%; }
@media (min-width: 480px) { .mh-fin__btn { width: auto; } }

@media (prefers-reduced-motion: reduce) {
	.mh-row__b i, .mh-feat__b i, .mh-step .s-bar { transition: none; }
}

/* ---------- Page « Comment fonctionne le moteur » : promesse, étapes, critères de classement ---------- */
.mm-hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.mm-hero .mm-head { padding-left: 0; padding-right: 0; min-width: 0; }
.mm-ill { display: none; }
@media (min-width: 1024px) {
	.mm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; }
	.mm-ill { display: block; padding: 24px 0 36px; }
	.mm-ill svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10,10,11,.14)); }
}
.mm-ill .s-card { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.mm-ill .s-ink, .mm-ill .s-dark { fill: var(--ink); }
.mm-ill .s-soft { fill: var(--soft-2); }
.mm-ill .s-mid { fill: #c4c4cb; }
.mm-ill .s-star { fill: var(--star); }
.mm-ill .s-white { fill: #fff; }
.mm-ill .s-ring { fill: #fff; stroke: var(--line-2); stroke-width: 2; }
.mm-ill .s-check { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mm-head .mh-kicker { margin-top: 8px; }
.mm-head .mh-hero__act { margin-top: 24px; }
.mm-prom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .mm-prom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .mm-prom { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.mm-prom__i { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 26px 24px 28px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease); }
.mm-prom__i::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 26px 48px -28px rgba(10,10,11,.36); opacity: 0; transition: opacity .25s var(--ease); }
.mm-prom__i:hover { transform: translateY(-3px); }
.mm-prom__i:hover::after { opacity: 1; }
.mm-prom__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--star); color: var(--ink); transition: transform .3s var(--ease); }
.mm-prom__i:hover .mm-prom__ico { transform: rotate(-6deg) scale(1.04); }
.mm-prom__ico .mh-ico { width: 26px; height: 26px; }
.mm-prom__t { margin-top: 22px; font-size: 21px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); }
.mm-prom__d { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.mm-prom__d a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.mm-legal-band { padding-bottom: 0; }
.mm-legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 22px; border-radius: 24px; background: var(--band); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 640px) { .mm-legal { grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 40px; } }
.mm-legal__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--star); }
.mm-legal__ico .mh-ico { width: 28px; height: 28px; }
.mm-legal__t { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.mm-legal__txt p { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 66ch; }
.mm-legal__txt a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
@media (min-width: 1024px) {
	.mm-legal { grid-template-columns: 56px minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 14px 28px; padding: 48px; }
	.mm-legal__txt { display: contents; }
	.mm-legal__t { padding-top: 8px; }
	.mm-legal__txt p:first-of-type { grid-column: 3; margin-top: 0; }
	.mm-legal__txt p + p { grid-column: 3; margin-top: 0; }
}

/* Zone tactile d'au moins 44 px sans changer le dessin (les étiquettes de rubrique ont déjà la leur dans theme.css). */
.mh-demo__cap a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
