/* Accueil : sections rendues par matelas-home.php. Cinq crans typographiques de la charte, couleurs de la charte (+ --amber sur fond nuit). */
.hm-sec, .hm-hero, .hm-final { box-sizing: border-box; width: 100%; }
.hm-in { width: 100%; box-sizing: border-box; max-width: 118rem; margin: 0 auto; padding: 0 var(--space-m); }
.hm-sec { padding: var(--space-3xl) 0; background: var(--surface); color: var(--ink); }
.hm-sec-muted { background: var(--surface-muted); }
.hm-sec-night { background: var(--night); color: var(--night-text); }
.hm-h2 { margin: 0 0 var(--space-m); font-family: Fraunces; font-weight: 600; font-size: var(--text-xl); line-height: 1.12; color: var(--ink); max-width: 80rem; }
.hm-h3 { margin: 0 0 var(--space-xs); font-family: Fraunces; font-weight: 600; font-size: var(--text-l); line-height: 1.2; color: var(--ink); }
.hm-text { margin: 0; font-size: var(--text-m); line-height: 1.55; color: var(--ink-soft); }
.hm-night { color: var(--night-text); }
.hm-night-soft { color: var(--night-soft); }
.hm-lead { margin: 0 0 var(--space-l); max-width: 72rem; font-size: var(--text-l); line-height: 1.4; color: var(--ink-soft); }
.hm-lead.hm-night-soft { color: var(--night-soft); }
.hm-center { margin: var(--space-xl) 0 0; text-align: center; }
.hm-kicker { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 var(--space-s); font-size: var(--text-s); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.hm-kicker-night, .hm-hero .hm-kicker { color: var(--amber); }
.hm-link-night { color: var(--amber); text-decoration: underline; text-underline-offset: 0.2em; }
.hm-link-night:hover { color: #ffffff; }

/* ---------- héros : la photo, puis la barre « votre repère » à cheval sur son bas ---------- */
.hm-heroblock { position: relative; background: var(--surface); }
.hm-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(80vh, 76rem); background: var(--night); color: var(--night-text); }
.hm-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; transform: scaleX(-1); }
.hm-hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 26, 44, 0.94) 0%, rgba(17, 26, 44, 0.88) 36%, rgba(17, 26, 44, 0.62) 50%, rgba(17, 26, 44, 0.1) 70%, rgba(17, 26, 44, 0) 100%); }
.hm-hero-in { width: 100%; box-sizing: border-box; max-width: 118rem; margin: 0 auto; padding: var(--space-2xl) var(--space-m) calc(var(--space-2xl) + 8rem); }
.hm-hero-copy { max-width: 56rem; }
.hm-h1 { margin: 0 0 var(--space-s); font-family: Fraunces; font-weight: 600; font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -0.01em; color: var(--night-text); }
.hm-hero .hm-lead { color: var(--night-soft); margin-bottom: var(--space-m); max-width: 52rem; }
.hm-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.hm-points li { display: flex; align-items: center; gap: 1rem; font-size: var(--text-s); line-height: 1.3; color: var(--night-text); }
.hm-points .mq-i { color: var(--amber); font-size: 2rem; }

.hm-tool-wrap { position: relative; z-index: 3; margin-top: -11rem; margin-bottom: 0; }
.hm-tool { display: grid; grid-template-columns: 1.15fr 1.1fr 0.95fr; gap: 0; background: #ffffff; color: var(--ink); border-radius: 1.4rem; box-shadow: 0 3rem 7rem -2rem rgba(17, 26, 44, 0.55); overflow: hidden; }
.hm-tool-col { padding: var(--space-m); }
.hm-tool-col + .hm-tool-col { border-left: 1px solid var(--line); }
.hm-tool-res { display: flex; flex-direction: column; gap: var(--space-xs); background: var(--surface-muted); }
.hm-tool-step { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 var(--space-s); font-family: Fraunces; font-weight: 600; font-size: var(--text-l); line-height: 1.15; color: var(--ink); }
.hm-tool-step span { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ink); color: #ffffff; font-family: "Work Sans"; font-size: var(--text-s); font-weight: 600; }
.hm-seg { display: grid; gap: 0.8rem; }
.hm-seg-3 { grid-template-columns: 1fr; }
.hm-seg-4 { grid-template-columns: repeat(2, 1fr); }
.hm-pick { display: flex; align-items: center; justify-content: center; gap: 0.8rem; box-sizing: border-box; min-height: 5.6rem; padding: 0.6rem 1.2rem; border: 0.2rem solid var(--line); border-radius: 0.8rem; background: #ffffff; color: var(--ink); font-family: "Work Sans"; font-size: var(--text-s); font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.hm-pick-pos { justify-content: flex-start; padding: 0.5rem 1.2rem 0.5rem 0.5rem; min-height: 5.2rem; }
.hm-pick-img { flex: none; display: block; width: 11rem; height: auto; border-radius: 0.6rem; }
.hm-pick-s { min-height: 5.2rem; justify-content: center; text-align: center; }
.hm-pick:hover { border-color: var(--ink); }
.hm-pick:focus-visible, .hm-tab:focus-visible { outline: 0.3rem solid var(--ink); outline-offset: 0.2rem; }
.hm-pick[aria-pressed="true"] { border-color: var(--accent); background: #FBF1EA; }
.hm-tool-out { flex: 1; display: flex; align-items: center; }
.hm-tool-out > * { width: 100%; }
.hm-out-hint { margin: 0; padding: var(--space-s); border: 0.2rem dashed var(--line); border-radius: 0.8rem; font-size: var(--text-s); line-height: 1.4; color: var(--ink-soft); }
.hm-out { padding: var(--space-s); background: #ffffff; border: 1px solid var(--line); border-radius: 0.8rem; }
.hm-out-t { margin: 0 0 0.8rem; font-size: var(--text-s); line-height: 1.3; color: var(--ink-soft); }
.hm-out-t strong { display: block; font-family: Fraunces; font-weight: 600; font-size: var(--text-l); line-height: 1.15; color: var(--ink); }
.hm-out-track { position: relative; height: 1rem; border-radius: 10rem; background: var(--sand); border: 1px solid var(--line); }
.hm-out-zone { position: absolute; top: -1px; bottom: -1px; border-radius: 10rem; background: var(--accent); transition: left 0.5s ease, width 0.5s ease; }
.hm-out-scale { display: flex; justify-content: space-between; margin: 0.6rem 0 0; font-size: var(--text-s); line-height: 1.2; color: var(--ink-soft); }
.mq-btn.hm-tool-cta { width: 100%; }
.hm-tool-help { margin: var(--space-s) 0 0; font-size: var(--text-s); line-height: 1.45; color: var(--ink-soft); }
.hm-safe-sub { margin: -0.8rem 0 var(--space-xs); font-size: var(--text-s); line-height: 1.35; color: var(--ink-soft); }
.hm-tool-note { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0; font-size: var(--text-s); line-height: 1.3; color: var(--ink-soft); }

/* ---------- étapes ---------- */
.hm-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.hm-step { position: relative; padding: var(--space-l) var(--space-m) var(--space-m); background: #ffffff; border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; }
.hm-step-n { position: absolute; top: 0.8rem; right: 1.6rem; font-family: Fraunces; font-weight: 600; font-size: var(--text-3xl); line-height: 1; color: var(--sand); }
.hm-step-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 5.6rem; height: 5.6rem; margin-bottom: var(--space-s); border-radius: 50%; background: var(--accent); color: #ffffff; font-size: 2.8rem; }
.hm-step .hm-h3, .hm-step .hm-text { position: relative; }

/* ---------- ce que vous obtenez : texte à gauche, trois gains en lignes à droite ---------- */
.hm-gain { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-3xl); align-items: start; }
.hm-gain-copy .hm-lead { margin-bottom: var(--space-m); }
.hm-gain-list { display: grid; margin: 0; padding: 0; list-style: none; }
.hm-gain-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: start; padding: var(--space-m) 0; border-top: 0.2rem solid var(--line); }
.hm-gain-row:first-child { border-top-color: var(--amber); }
.hm-gain-row .hm-step-ico { margin-bottom: 0; }
.hm-gain-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.hm-gain-link:hover { color: var(--ink); }

/* ---------- « Allongez-vous » ---------- */
.hm-spine-head { margin-bottom: var(--space-l); }
.hm-spine-box { background: rgba(243, 238, 228, 0.06); border: 1px solid rgba(243, 238, 228, 0.18); border-radius: 1.2rem; padding: var(--space-l); }
.hm-spine-fallback { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
.hm-spine-fallback img { width: 100%; height: auto; border-radius: 0.8rem; }
.hm-spine-note { margin: var(--space-s) 0 0; font-size: var(--text-s); line-height: 1.5; color: var(--night-soft); }
.sp-ctl { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-m) var(--space-l); margin-bottom: var(--space-m); }
.sp-lab { margin: 0 0 0.8rem; font-size: var(--text-s); font-weight: 600; line-height: 1.3; color: var(--night-text); }
.sp-lab strong { color: var(--amber); }
.sp-seg { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sp-b { box-sizing: border-box; min-height: 4.4rem; padding: 0.8rem var(--space-s); border: 0.2rem solid rgba(243, 238, 228, 0.4); border-radius: 10rem; background: transparent; color: var(--night-text); font-family: "Work Sans"; font-weight: 600; font-size: var(--text-s); line-height: 1.2; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.sp-b:hover { background: rgba(243, 238, 228, 0.12); }
.sp-b[aria-pressed="true"] { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.sp-b:focus-visible, .sp-range:focus-visible { outline: 0.3rem solid var(--amber); outline-offset: 0.2rem; }
.sp-card { background: var(--surface); color: var(--ink); border-radius: 1.2rem; padding: var(--space-s) var(--space-m) var(--space-m); }
.sp-fig .sp-svg { display: block; width: 100%; height: auto; }
.sp-legend { display: flex; flex-wrap: wrap; gap: 0.6rem var(--space-m); margin: var(--space-xs) 0 var(--space-s); font-size: var(--text-s); line-height: 1.3; color: var(--ink-soft); }
.sp-k { display: inline-flex; align-items: center; gap: 0.8rem; }
.sp-k::before { content: ""; width: 3.2rem; border-top: 0.5rem solid var(--ink); border-radius: 1rem; }
.sp-card.is-ok .sp-k-spine::before { border-top-color: #1F5A40; }
.sp-card.is-bad .sp-k-spine::before { border-top-color: #8E3414; }
.sp-k-ref::before { border-top: 0.3rem dashed var(--ink-soft); }
.sp-k-void::before { height: 1.4rem; border: 0; border-radius: 0.3rem; background: rgba(178, 67, 28, 0.35); }
.sp-verdict { margin: 0; padding: var(--space-xs) var(--space-s); border-radius: 0.8rem; background: var(--surface-muted); font-size: var(--text-m); font-weight: 600; line-height: 1.4; color: var(--ink); }
.sp-card.is-ok .sp-verdict { background: #DDEBE3; }
.sp-card.is-bad .sp-verdict { background: #F5DFD3; }
.sp-slide { --r: 1.8rem; margin-top: var(--space-m); }
.sp-rangebox { position: relative; height: 4.4rem; }
.sp-track { position: absolute; left: var(--r); right: var(--r); top: 50%; height: 1.2rem; margin-top: -0.6rem; border-radius: 10rem; background: rgba(243, 238, 228, 0.22); }
.sp-zone { position: absolute; top: 50%; height: 1.2rem; margin-top: -0.6rem; border-radius: 10rem; background: var(--amber); transition: left 0.35s ease, width 0.35s ease; }
.sp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sp-range::-webkit-slider-runnable-track { height: 4.4rem; background: transparent; }
.sp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 3.6rem; height: 3.6rem; margin-top: 0.4rem; border-radius: 50%; background: #ffffff; border: 0.4rem solid var(--night); box-shadow: 0 0 0 0.2rem var(--night-text), 0 0.3rem 1rem rgba(0, 0, 0, 0.5); box-sizing: border-box; }
.sp-range::-moz-range-track { height: 4.4rem; background: transparent; }
.sp-range::-moz-range-thumb { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #ffffff; border: 0.4rem solid var(--night); box-shadow: 0 0 0 0.2rem var(--night-text); box-sizing: border-box; }
.sp-scale { display: flex; justify-content: space-between; margin: 0.4rem var(--r) 0; font-size: var(--text-s); line-height: 1.2; color: var(--night-soft); }
.sp-key { display: flex; align-items: center; gap: 0.8rem; margin: var(--space-xs) 0 0; font-size: var(--text-s); line-height: 1.3; color: var(--night-soft); }
.sp-sw { width: 3.2rem; height: 1.2rem; border-radius: 10rem; background: var(--amber); }

/* ---------- produits ---------- */
.hm-tabs { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); align-items: center; margin: 0 0 var(--space-l); }
.hm-tablist { display: inline-flex; flex-wrap: wrap; gap: 0.6rem; }
.hm-tab { box-sizing: border-box; min-height: 4.4rem; padding: 0.8rem var(--space-m); border: 0.2rem solid var(--ink); border-radius: 10rem; background: transparent; color: var(--ink); font-family: "Work Sans"; font-weight: 600; font-size: var(--text-s); line-height: 1.2; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.hm-tab:hover { background: var(--surface-muted); }
.hm-tab.is-on { background: var(--ink); color: #ffffff; }
.hm-tab-s { border-color: var(--line); }
.hm-tab-s.is-on { border-color: var(--ink); }
.hm-tab-night { border-color: rgba(243, 238, 228, 0.35); color: var(--night-text); }
.hm-tab-night:hover { background: rgba(243, 238, 228, 0.12); }
.hm-tab-night.is-on { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.hm-cards { min-height: 30rem; }
.hm-cards[aria-busy="true"] { opacity: 0.45; transition: opacity 0.2s; }

/* ---------- situations ---------- */
.hm-tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 34rem; gap: var(--space-s); }
.hm-tile { position: relative; display: block; overflow: hidden; border-radius: 0.8rem; color: #ffffff; text-decoration: none; background: var(--night); }
.hm-tile-a { grid-column: span 5; } .hm-tile-b { grid-column: span 4; } .hm-tile-c { grid-column: span 3; }
.hm-tile-d { grid-column: span 3; } .hm-tile-e { grid-column: span 4; } .hm-tile-f { grid-column: span 5; }
.hm-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hm-tile:hover .hm-tile-img { transform: scale(1.05); }
.hm-tile-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 26, 44, 0) 25%, rgba(17, 26, 44, 0.88) 100%); }
.hm-tile-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 0.6rem; padding: var(--space-m); }
.hm-tile-t { font-family: Fraunces; font-weight: 600; font-size: var(--text-l); line-height: 1.15; color: #ffffff; }
.hm-tile-s { font-size: var(--text-s); line-height: 1.4; color: var(--night-text); }
.hm-tile-go { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--text-s); font-weight: 600; color: var(--amber); }
.hm-tile:focus-visible { outline: 0.3rem solid var(--ink); outline-offset: 0.3rem; }
.hm-tile-f .hm-tile-img { object-position: 50% 62%; }

/* ---------- prix ---------- */
.hm-prices-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-2xl); align-items: start; }
.hm-stats { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
.hm-stat { padding-top: var(--space-s); border-top: 0.3rem solid var(--amber); }
.hm-stat-n { margin: 0 0 0.6rem; font-family: Fraunces; font-weight: 600; font-size: var(--text-xl); line-height: 1.05; color: var(--night-text); }
.hm-stat-l { margin: 0; font-size: var(--text-s); line-height: 1.4; color: var(--night-soft); }
.hm-prices-chart .hm-tablist { margin-bottom: var(--space-s); }
.hm-bars { display: grid; gap: 0.9rem; }
.hm-bar { display: grid; grid-template-columns: minmax(11rem, 24rem) 1fr minmax(8rem, 10rem); gap: var(--space-s); align-items: center; }
.hm-bar-name { margin: 0; font-size: var(--text-s); line-height: 1.3; color: var(--night-text); }
.hm-bars-group { display: flex; align-items: center; gap: 0.9rem; margin: var(--space-s) 0 0; font-size: var(--text-s); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-text); }
.hm-bars-group::before { content: ""; width: 2.4rem; height: 1rem; border-radius: 10rem; background: var(--amber); }
.hm-bars-group.is-sur::before { background: var(--night-soft); }
.hm-bars-group:first-child { margin-top: 0; }
.hm-bar-track { height: 1.6rem; border-radius: 10rem; background: rgba(243, 238, 228, 0.12); overflow: hidden; }
.hm-bar-fill { display: block; height: 100%; border-radius: 10rem; background: var(--amber); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-bar.is-sur .hm-bar-fill { background: var(--night-soft); }
.hm-bar-val { margin: 0; text-align: right; font-weight: 600; font-size: var(--text-s); line-height: 1.2; color: var(--night-text); }
.hm-chart-note { margin: var(--space-s) 0 0; font-size: var(--text-s); line-height: 1.5; color: var(--night-soft); }
.mq-js .hm-bars .hm-bar-fill { width: 0 !important; }
.mq-js .hm-prices.is-in .hm-bars .hm-bar-fill { width: var(--w) !important; }

/* ---------- acheter sans risque ---------- */
.hm-safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
.hm-safe-card { padding: var(--space-m); background: #ffffff; border: 1px solid var(--line); border-radius: 0.8rem; }
.hm-safe-card.is-warn { border: 0.2rem solid var(--accent); }
.hm-safe-brand { margin: 0 0 0.4rem; font-size: var(--text-s); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.hm-safe-n { margin: 0 0 var(--space-s); font-size: var(--text-s); line-height: 1.2; color: var(--ink-soft); }
.hm-safe-n strong { font-family: Fraunces; font-weight: 600; font-size: var(--text-xl); line-height: 1; color: var(--ink); }
.hm-safe-l { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.hm-safe-l li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: var(--text-s); line-height: 1.35; color: var(--ink); }
.hm-safe-l .mq-i { color: var(--accent-dark); margin-top: 0.1em; }
.hm-safe-l li.is-none, .mq-specs li.is-none { color: var(--ink-soft); }
.hm-safe-card.is-warn .hm-safe-l li:first-child { font-weight: 600; color: var(--accent-dark); }

/* ---------- guides ---------- */
.hm-sec.hm-guides { background: var(--surface-muted); }
.hm-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.hm-guide { display: flex; flex-direction: column; overflow: hidden; border-radius: 0.8rem; background: #ffffff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.hm-guide:hover { transform: translateY(-0.3rem); box-shadow: 0 1.4rem 2.8rem -1.2rem rgba(17, 26, 44, 0.35); }
.hm-guide-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hm-guide-body { display: flex; flex-direction: column; gap: 0.6rem; padding: var(--space-m); }
.hm-guide-t { font-family: Fraunces; font-weight: 600; font-size: var(--text-l); line-height: 1.15; color: var(--ink); }
.hm-guide-s { font-size: var(--text-s); line-height: 1.45; color: var(--ink-soft); }
.hm-guide:focus-visible { outline: 0.3rem solid var(--ink); outline-offset: 0.3rem; }

/* ---------- appel final ---------- */
.hm-final { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-3xl) 0; background: var(--night); }
.hm-final-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hm-final-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 26, 44, 0.7) 0%, rgba(17, 26, 44, 0.55) 100%); }
.hm-final .hm-lead { color: var(--night-text); }
.hm-final-in { max-width: 118rem; margin: 0 auto; padding: 0 var(--space-m); text-align: center; }
.hm-final .hm-h2 { margin-left: auto; margin-right: auto; }
.hm-final .hm-lead { margin-left: auto; margin-right: auto; }

/* ---------- barre d'action fixe (mobile) ---------- */
.hm-sticky { display: none; }
@media (max-width: 767px) {
  .hm-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 1rem var(--space-s) calc(1rem + env(safe-area-inset-bottom, 0px)); background: rgba(17, 26, 44, 0.96); transform: translateY(110%); transition: transform 0.3s ease; }
  .hm-sticky.is-on { transform: none; }
  .hm-sticky .mq-btn { width: 100%; min-height: 5.2rem; }
}

/* ---------- adaptation ---------- */
@media (max-width: 991px) {
  .hm-hero { min-height: 0; }
  .hm-hero-in { padding: var(--space-xl) var(--space-m) calc(var(--space-xl) + 6rem); }
  .hm-hero-veil { background: linear-gradient(180deg, rgba(17, 26, 44, 0.88) 0%, rgba(17, 26, 44, 0.78) 100%); }
  .hm-tool-wrap { margin-top: -7rem; }
  .hm-tool { grid-template-columns: 1fr 1fr; }
  .hm-tool-col + .hm-tool-col { border-left: 0; }
  .hm-tool-col:nth-child(2) { border-left: 1px solid var(--line); }
  .hm-tool-res { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .hm-steps-grid, .hm-safe-grid, .hm-guide-grid { grid-template-columns: 1fr 1fr; }
  .hm-gain { grid-template-columns: 1fr; gap: var(--space-l); }
  .hm-prices-in { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hm-tiles { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 30rem; }
  .hm-tile-a, .hm-tile-b, .hm-tile-c, .hm-tile-d, .hm-tile-e, .hm-tile-f { grid-column: span 3; }
  .sp-ctl { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hm-in { padding: 0 var(--space-s); }
  .hm-sec { padding: var(--space-xl) 0; }
  .hm-h2 { margin-bottom: var(--space-s); line-height: 1.15; }
  .hm-lead { margin-bottom: var(--space-m); font-size: var(--text-m); line-height: 1.45; }
  .hm-hero .hm-h1 { font-size: var(--text-2xl); }
  .hm-hero-in { padding: var(--space-s) var(--space-s) calc(var(--space-s) + 4rem); }
  .hm-hero .hm-kicker { margin-bottom: var(--space-2xs); }
  .hm-hero .hm-lead { margin-bottom: 0; font-size: var(--text-m); line-height: 1.4; }
  .hm-hero .hm-h1 { margin-bottom: var(--space-xs); }
  .hm-points { display: none; }
  .hm-tool-wrap { margin-top: -4rem; }
  .hm-tool { grid-template-columns: 1fr; }
  .hm-tool-col { padding: 0.8rem var(--space-s); }
  .hm-tool-step { gap: 0.8rem; margin-bottom: var(--space-2xs); font-size: var(--text-m); }
  .hm-tool-step span { width: 2.6rem; height: 2.6rem; }
  .hm-seg { gap: 0.6rem; }
  .hm-pick-s { min-height: 4.4rem; }
  .hm-tool-res { gap: 0; }
  .hm-tool-out { flex: none; }
  .hm-tool .hm-out-hint { display: none; }
  .hm-tool .hm-out { margin-bottom: var(--space-xs); }
  .hm-tool-help { margin-top: var(--space-xs); }
  .hm-tool-col:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .hm-seg-3 { grid-template-columns: repeat(3, 1fr); }
  .hm-pick-pos { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0.4rem 0.4rem 0.7rem; text-align: center; }
  .hm-pick-img { width: 100%; }
  .hm-steps-grid, .hm-safe-grid, .hm-guide-grid { grid-template-columns: 1fr; }
  .hm-gain-row { gap: var(--space-s); }
  .hm-gain-row .hm-step-ico { width: 4.4rem; height: 4.4rem; font-size: 2.2rem; }
  .hm-tiles { grid-template-columns: 1fr; grid-auto-rows: 17rem; gap: var(--space-xs); }
  .hm-tile-body { padding: var(--space-s); }
  .hm-guide-grid { gap: var(--space-xs); }
  .hm-guide { flex-direction: row; align-items: stretch; }
  .hm-guide-img { flex: none; align-self: stretch; width: 11rem; height: auto; min-height: 9rem; aspect-ratio: auto; }
  .hm-guide-body { justify-content: center; gap: 0.3rem; padding: var(--space-xs) var(--space-s); }
  .hm-guide-t { font-size: var(--text-m); }
  .hm-gain-row { padding: var(--space-s) 0; }
  .hm-safe-card { padding: var(--space-s); }
  .hm-tile-a, .hm-tile-b, .hm-tile-c, .hm-tile-d, .hm-tile-e, .hm-tile-f { grid-column: auto; }
  .hm-bar { grid-template-columns: 1fr auto; gap: 0.4rem var(--space-xs); }
  .hm-bar-track { grid-column: 1 / -1; order: 3; }
  .hm-spine-fallback { grid-template-columns: 1fr; }
  .hm-spine-box { padding: var(--space-s); }
  .sp-card { padding: var(--space-xs) var(--space-s) var(--space-s); }
}
/* ---------- textes de fond de l'accueil ---------- */
.hm-prose { margin: 0 0 var(--space-s); max-width: 68rem; font-size: var(--text-m); line-height: 1.6; color: var(--ink); }
.hm-answer-in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-3xl); align-items: start; }
.hm-answer-head .hm-h2 { margin-bottom: var(--space-m); }
.hm-answer .hm-stats { display: grid; margin: 0; padding: 0; list-style: none; }
.hm-answer .hm-stats li { display: grid; grid-template-columns: 10rem 1fr; align-items: baseline; gap: var(--space-s); padding: var(--space-s) 0; border-top: 0.2rem solid var(--line); }
.hm-answer .hm-stats li:first-child { border-top-color: var(--amber); }
.hm-answer .hm-stat-n { font-family: Fraunces; font-weight: 600; font-size: var(--text-xl); line-height: 1; color: var(--ink); }
.hm-answer .hm-stat-l { font-size: var(--text-s); line-height: 1.4; color: var(--ink-soft); }
.hm-answer-more { margin: var(--space-m) 0 0; }
.hm-ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3xl); }
.hm-ask-item { padding: var(--space-m) 0; border-top: 0.2rem solid var(--line); }
.hm-ask-item:nth-child(-n+2) { border-top-color: var(--amber); }
.hm-ask-item .hm-prose { font-size: var(--text-m); color: var(--ink-soft); margin-bottom: var(--space-xs); }
.hm-ask-links { display: flex; flex-wrap: wrap; gap: 0.4rem var(--space-m); margin: 0; font-size: var(--text-s); line-height: 1.4; font-weight: 600; }
.hm-work-in { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-3xl); align-items: start; }
.hm-work .hm-prose { color: var(--night-soft); }
.hm-work-links { display: flex; flex-wrap: wrap; gap: 0.6rem var(--space-l); margin: var(--space-m) 0 0; font-size: var(--text-m); font-weight: 600; }
.hm-work-link { color: var(--amber); text-decoration: underline; text-underline-offset: 0.2em; }
.hm-work-link:hover { color: var(--night-text); }
.hm-index { background: var(--surface); }
.hm-index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-l); }
.hm-index-t { margin: 0 0 var(--space-xs); padding-bottom: 0.6rem; border-bottom: 0.2rem solid var(--amber); font-family: Fraunces; font-weight: 600; font-size: var(--text-l); line-height: 1.2; color: var(--ink); }
.hm-index-col ul { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.hm-index-col a { display: flex; flex-direction: column; gap: 0.2rem; color: var(--ink); text-decoration: none; }
.hm-index-n { font-weight: 600; font-size: var(--text-m); line-height: 1.25; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.hm-index-d { font-size: var(--text-s); line-height: 1.4; color: var(--ink-soft); }
.hm-index-col a:hover .hm-index-n { color: var(--ink); }
@media (max-width: 991px) {
  .hm-answer-in, .hm-work-in { grid-template-columns: 1fr; gap: var(--space-l); }
  .hm-ask-grid { grid-template-columns: 1fr; }
  .hm-ask-item:nth-child(2) { border-top-color: var(--line); }
  .hm-index-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hm-answer .hm-stats li { grid-template-columns: 7.5rem 1fr; }
  .hm-index-grid { grid-template-columns: 1fr; }
  .hm-index { margin-top: var(--space-m); }
}

@media (prefers-reduced-motion: reduce) { .hm-tile-img, .hm-bar-fill, .hm-out-zone, .sp-zone { transition: none; } .hm-tile:hover .hm-tile-img { transform: none; } }
