/* =====================================================================
   MENELAS — UI kit Heaume
   Composants (.m-*) et tokens de la direction retenue ([data-d="heaume"]).
   Tout est local : polices embarquées, aucune ressource réseau.
   ===================================================================== */

/* ---------- Polices locales (OFL) ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

/* =====================================================================
   1. TOKENS PAR DIRECTION
   Invariant commun : l'encre du logo (#0C1C42) est la couleur de marque.
   Aucun dégradé, un seul accent par direction.
   ===================================================================== */

[data-d="heaume"] {
  /* Heaume : direction retenue. Structure précise, signature tirée du logo (casque, fente de visière, dôme) */
  --f-display: "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, monospace;
  --f-label: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 600; --display-track: -0.025em; --display-lh: 1.03;
  --h-weight: 600; --h3-font: "IBM Plex Sans", sans-serif; --h3-weight: 600;
  --t-display: clamp(40px, 6cqi, 68px); --t-h1: clamp(32px, 4.2cqi, 44px); --t-h2: clamp(26px, 3cqi, 32px); --t-h3: 19px;
  --t-lead: 18px; --t-body: 16px; --t-small: 14px; --t-micro: 12px;

  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F3F4F9; --band: #F3F4F9;
  --ink: #0C1C42; --text: #141A26; --muted: #565E72; --subtle: #8A90A2;
  --border: #E0E3EC; --border-strong: #B7BDCE;
  --accent: #0C1C42; --accent-hover: #1C2F63; --on-accent: #FFFFFF; --accent-soft: #EEEFFB;
  --mark: #5A60CA; --link: #5A60CA; --focus: #6369D0; --focus-ring: rgba(99, 105, 208, .22);
  --success: #17754B; --success-soft: #E5F3EC; --warning: #8F5A00; --warning-soft: #FBF1DE;
  --danger: #B42318; --danger-soft: #FDECEA; --info: #5A60CA; --info-soft: #EEEFFB;

  --r-btn: 6px; --r-field: 6px; --r-check: 4px; --r-badge: 4px; --r-md: 8px; --r-lg: 20px 20px 6px 6px; --r-media: 28px 28px 6px 6px;
  --shadow-card: none;
  --shadow-overlay: 0 0 0 1px rgba(12, 28, 66, .06), 0 14px 32px -12px rgba(12, 28, 66, .25);
  --btn-h: 46px; --field-h: 46px; --btn-weight: 500; --btn-px: 20px;
  --eyebrow-font: "IBM Plex Mono", monospace; --eyebrow-size: 12px; --eyebrow-track: .06em; --eyebrow-case: uppercase; --eyebrow-color: #0C1C42; --eyebrow-weight: 500;
  --price-weight: 500; --price-size: 38px;
  --check-c: var(--success); --step-on: var(--ink); --sel: #6369D0;
}

/* Fond sombre : même composants, tokens inversés */
.m-inverse {
  --bg: #0C1C42; --surface: rgba(255, 255, 255, .05); --surface-2: rgba(255, 255, 255, .08);
  --ink: #FFFFFF; --text: #E4E8F1; --muted: #A7B0C4; --subtle: #7C87A1;
  --border: rgba(255, 255, 255, .14); --border-strong: rgba(255, 255, 255, .4);
  --accent: #FFFFFF; --accent-hover: #E4E8F1; --on-accent: #0C1C42; --accent-soft: rgba(255, 255, 255, .1);
  --link: #FFFFFF; --focus: #FFFFFF; --focus-ring: rgba(255, 255, 255, .25); --check-c: #FFFFFF; --sel: #FFFFFF;
  background: var(--bg); color: var(--text);
}
[data-d="heaume"] .m-inverse { --mark: #A9ADF2; --eyebrow-color: #FFFFFF; --sel: #A9ADF2; }

/* Contenu propre à une direction */


/* =====================================================================
   2. BASE
   ===================================================================== */
.m-root {
  container-type: inline-size;
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.m-root *, .m-root *::before, .m-root *::after { box-sizing: border-box; }
.m-root :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.m-root :where(img) { display: block; max-width: 100%; }
.m-root :where(a) { color: inherit; }
.m-root :where(button, input, select, textarea) { font: inherit; color: inherit; }
.m-root svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   3. TYPOGRAPHIE
   ===================================================================== */
.m-display, .m-h1, .m-h2 {
  font-family: var(--f-display); color: var(--ink); text-wrap: balance;
  font-weight: var(--display-weight); letter-spacing: var(--display-track);
}
.m-display { font-size: var(--t-display); line-height: var(--display-lh); }
.m-h1 { font-size: var(--t-h1); line-height: 1.08; }
.m-h2 { font-size: var(--t-h2); line-height: 1.14; font-weight: var(--h-weight); }
.m-h3 { font-family: var(--h3-font); font-size: var(--t-h3); line-height: 1.3; font-weight: var(--h3-weight); color: var(--ink); letter-spacing: -0.005em; }
.m-lead { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.m-body { font-size: var(--t-body); max-width: 38em; text-wrap: pretty; }
.m-small { font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.m-micro { font-size: var(--t-micro); color: var(--subtle); line-height: 1.45; }
.m-num { font-family: var(--f-num); font-variant-numeric: tabular-nums lining-nums; }
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--eyebrow-font); font-size: var(--eyebrow-size); font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-track); text-transform: var(--eyebrow-case); color: var(--eyebrow-color); line-height: 1.2;
}

/* Mot mis en valeur dans un titre : remplace le texte en dégradé */
.m-accent { font-style: normal; }
[data-d] .m-accent { color: var(--mark); }

.m-prose { display: grid; gap: 1em; max-width: 38em; }
.m-prose p { text-wrap: pretty; }

/* =====================================================================
   4. BOUTONS & LIENS
   ===================================================================== */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 var(--btn-px); border: 1px solid transparent; border-radius: var(--r-btn);
  font-family: var(--f-body); font-size: 15px; font-weight: var(--btn-weight); line-height: 1; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.m-btn svg.i { width: 18px; height: 18px; transition: transform .15s ease; }
.m-btn:hover svg.i-arrow { transform: translateX(3px); }
.m-btn--primary { background: var(--accent); color: var(--on-accent); }
.m-btn--primary:hover { background: var(--accent-hover); }
.m-btn--ink { background: var(--ink); color: #fff; }
.m-btn--ink:hover { background: #1C2F63; }
.m-btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.m-btn--secondary:hover { background: var(--surface-2); }
.m-btn--ghost { background: transparent; color: var(--ink); }
.m-btn--ghost:hover { background: var(--surface-2); }
.m-btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.m-btn--lg { height: calc(var(--btn-h) + 8px); padding: 0 calc(var(--btn-px) + 6px); font-size: 16px; }
.m-btn--block { width: 100%; }
.m-btn--icon { width: var(--btn-h); padding: 0; }
.m-btn:disabled, .m-btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
.m-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.m-btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--on-accent); border-right-color: transparent; animation: m-spin .7s linear infinite;
}
.m-btn--secondary.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes m-spin { to { transform: rotate(360deg); } }
.m-root :is(.m-btn, .m-link, .m-input, .m-select, .m-textarea, .m-tag, summary, a):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.m-link { color: var(--link); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.m-link:hover { text-decoration-thickness: 2px; }
.m-link--arrow { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.m-link--arrow:hover span { text-decoration: underline; text-underline-offset: 3px; }
.m-link--arrow svg.i { width: 16px; height: 16px; transition: transform .15s ease; }
.m-link--arrow:hover svg.i { transform: translateX(3px); }

/* =====================================================================
   5. FORMULAIRES
   ===================================================================== */
.m-field { display: grid; gap: 8px; }
.m-label { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.m-label .m-opt { font-weight: 400; color: var(--subtle); }
.m-help { font-size: 13px; color: var(--muted); }
.m-error { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--danger); }
.m-error svg.i { width: 16px; height: 16px; }
.m-control { position: relative; display: flex; align-items: center; }
.m-input, .m-select, .m-textarea {
  width: 100%; height: var(--field-h); padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-field); background: var(--surface);
  color: var(--text); font-size: 16px; appearance: none; -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.m-input::placeholder, .m-textarea::placeholder { color: var(--subtle); }
.m-input:hover, .m-select:hover, .m-textarea:hover { border-color: var(--ink); }
.m-input:focus, .m-select:focus, .m-textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-ring); }
.m-input.m-num { font-family: var(--f-num); font-size: 17px; }
.m-textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.m-select { padding-right: 42px; cursor: pointer; }
.m-control__suffix { position: absolute; right: 14px; color: var(--muted); pointer-events: none; font-size: 15px; }
.m-control__prefix { position: absolute; left: 14px; color: var(--muted); pointer-events: none; display: flex; }
.m-control--prefix .m-input, .m-control--prefix .m-select { padding-left: 44px; }
.m-control__chevron { position: absolute; right: 14px; pointer-events: none; color: var(--muted); display: flex; }
.m-control__chevron svg.i, .m-control__prefix svg.i { width: 18px; height: 18px; }
.is-invalid .m-input, .is-invalid .m-select { border-color: var(--danger); }
.is-invalid .m-input:focus { box-shadow: 0 0 0 4px var(--danger-soft); }

/* Case / radio */
.m-box {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 2px 0 0;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-check); background: var(--surface);
  display: grid; place-content: center; cursor: pointer; transition: background-color .12s, border-color .12s;
}
.m-box:checked { background: var(--ink); border-color: var(--ink); }
[data-d] .m-box:checked { background: var(--accent); border-color: var(--accent); }
.m-box[type="checkbox"]:checked::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.m-box[type="radio"] { border-radius: 50%; }
.m-box[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.m-box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.m-box:disabled { opacity: .45; cursor: not-allowed; }
.m-inverse .m-box:checked { background: #fff; border-color: #fff; }
.m-inverse .m-box[type="checkbox"]:checked::after { border-color: var(--on-accent); }
.m-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; line-height: 1.45; }
.m-check small { display: block; color: var(--muted); font-size: 13px; }

/* Carte de choix */
.m-choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.m-choice:hover { border-color: var(--border-strong); }
.m-choice:has(.m-box:checked) { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); }
.m-choice__icon { color: var(--ink); display: flex; margin-top: 1px; }
.m-choice__body { display: grid; gap: 3px; font-size: 14px; color: var(--muted); }
.m-choice__body strong { font-size: 15px; font-weight: 600; color: var(--ink); }

/* Contrôle segmenté */
.m-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: calc(var(--r-btn) + 3px); background: var(--surface-2); }
.m-seg label { position: relative; }
.m-seg input { position: absolute; opacity: 0; pointer-events: none; }
.m-seg span { display: block; padding: 8px 14px; border-radius: var(--r-btn); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.m-seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 28, 66, .1), 0 0 0 1px rgba(12, 28, 66, .05); }
.m-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

/* =====================================================================
   6. BADGES, ÉTIQUETTES, NOTES
   ===================================================================== */
.m-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; width: fit-content;
  border-radius: var(--r-badge); border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.m-badge svg.i { width: 14px; height: 14px; }
.m-badge--accent { background: var(--accent-soft); color: var(--ink); }
[data-d] .m-badge--accent { color: var(--accent); }
.m-badge--ink { background: var(--ink); color: #fff; }
.m-badge--success { background: var(--success-soft); color: var(--success); }
.m-badge--warning { background: var(--warning-soft); color: var(--warning); }
.m-badge--danger { background: var(--danger-soft); color: var(--danger); }
.m-badge--outline { background: transparent; border-color: var(--border-strong); }
[data-d] .m-badge { font-family: var(--f-label); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; height: 22px; padding: 0 7px; }

.m-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.m-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--surface);
  color: var(--text); font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.m-tag:hover { border-color: var(--border-strong); }
.m-tag[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-d] .m-tag[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.m-tag .m-count { font-family: var(--f-num); font-size: 12px; color: var(--subtle); }
.m-tag[aria-pressed="true"] .m-count { color: inherit; opacity: .7; }

.m-note {
  --n: var(--info); --n-bg: var(--info-soft);
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--n-bg); color: var(--text); font-size: 14px; line-height: 1.5;
}
.m-note > svg.i { width: 18px; height: 18px; color: var(--n); margin-top: 1px; }
.m-note strong { color: var(--ink); font-weight: 600; }
.m-note--success { --n: var(--success); --n-bg: var(--success-soft); }
.m-note--warning { --n: var(--warning); --n-bg: var(--warning-soft); }
.m-note--danger { --n: var(--danger); --n-bg: var(--danger-soft); }
.m-note--plain { --n: var(--muted); --n-bg: transparent; padding: 0; color: var(--muted); font-size: 13px; }

/* =====================================================================
   7. NAVIGATION : EN-TÊTE, ÉTAPES
   ===================================================================== */
.m-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 4cqi, 48px); height: 76px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.m-header__logo img { height: 42px; width: auto; }
.m-header__nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink); }
.m-header__nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.m-header__nav a:hover { border-bottom-color: currentColor; }
.m-header__nav a[aria-current="page"] { border-bottom: 2px solid var(--mark); }
.m-header__nav svg.i { width: 16px; height: 16px; color: var(--muted); }
.m-header__actions { display: flex; align-items: center; gap: 12px; }
.m-header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); text-decoration: none; margin-right: 8px; white-space: nowrap; }
.m-header__phone small { display: block; color: var(--muted); font-size: 12px; }
.m-header__phone .m-num { font-weight: 500; }
.m-header__menu { display: none; }
@container (max-width: 1220px) { .m-header__phone { display: none; } }
@container (max-width: 1040px) { .m-header__nav { gap: 20px; } }
@container (max-width: 900px) {
  .m-header { height: 64px; }
  .m-header__logo img { height: 34px; }
  .m-header__nav, .m-header__actions .m-btn--secondary { display: none; }
  .m-header__menu { display: inline-flex; }
}
@container (max-width: 480px) { .m-header__actions .m-btn--primary { display: none; } }

/* En-tête de parcours (tunnel) */
.m-flowbar { display: flex; align-items: center; gap: 20px; padding: 0 clamp(16px, 4cqi, 48px); height: 72px; background: var(--surface); border-bottom: 1px solid var(--border); }
.m-flowbar img { height: 36px; }
.m-flowbar__title { padding-left: 20px; border-left: 1px solid var(--border); font-size: 14px; }
.m-flowbar__title strong { display: block; color: var(--ink); font-weight: 600; }
.m-flowbar__title span { color: var(--muted); font-size: 13px; }
.m-flowbar__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@container (max-width: 700px) { .m-flowbar__title, .m-flowbar__end .m-small { display: none; } }

.m-stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 6px; }
.m-stepper li { display: grid; gap: 10px; font-size: 13px; color: var(--subtle); position: relative; }
.m-stepper li::before { content: ""; height: 3px; border-radius: 2px; background: var(--border); }
.m-stepper li.is-done::before, .m-stepper li.is-current::before { background: var(--step-on); }
.m-stepper li.is-current { color: var(--ink); font-weight: 500; }
.m-stepper li.is-done { color: var(--muted); }
.m-stepper__t { display: flex; gap: 8px; align-items: baseline; }
.m-stepper__n { font-family: var(--f-num); font-variant-numeric: tabular-nums; }

/* =====================================================================
   8. CARTES
   ===================================================================== */
.m-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: border-color .15s ease;
}
a.m-card:hover { border-color: var(--border-strong); }
.m-card__index { font-family: var(--f-num); font-size: 13px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.m-card__icon { color: var(--ink); display: flex; }
.m-card__icon svg.i { width: 24px; height: 24px; stroke-width: 1.4; }
.m-card > .m-link--arrow, .m-card > .m-card__foot { margin-top: auto; padding-top: 8px; }
.m-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.m-card--media { padding: 0; overflow: hidden; }
.m-card--media .m-card__media { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--surface-2); }
.m-card--media .m-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }

.m-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3.6cqi, 36px); box-shadow: var(--shadow-card); }

/* Formules / prix */
.m-price {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.m-price:hover { border-color: var(--border-strong); }
.m-price.is-selected { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); }
.m-price__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.m-price__name { font-size: 16px; font-weight: 600; color: var(--ink); }
.m-price__amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-family: var(--f-num); font-size: var(--price-size); font-weight: var(--price-weight); line-height: 1; color: var(--ink); letter-spacing: -0.025em; font-variant-numeric: tabular-nums lining-nums; }
[data-d] .m-price__amount { letter-spacing: -0.04em; }
.m-price__amount small { font-family: var(--f-body); font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.m-price__sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
.m-price hr { border: 0; border-top: 1px solid var(--border); margin: 2px 0; width: 100%; }
.m-price .m-btn { margin-top: auto; }

.m-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; }
.m-checks li { display: flex; gap: 10px; align-items: flex-start; }
.m-checks svg.i { width: 16px; height: 16px; margin-top: 3px; color: var(--check-c); stroke-width: 2; }
.m-checks li.is-off { color: var(--subtle); }
.m-checks li.is-off svg.i { color: var(--subtle); }

/* Faits (remplace les « stats » colorées) */
.m-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--border); }
.m-facts > div { padding: 16px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.m-facts dt { font-size: 13px; color: var(--muted); order: 2; }
.m-facts dd { font-family: var(--f-num); font-size: 22px; color: var(--ink); font-weight: var(--h3-weight); order: 1; font-variant-numeric: tabular-nums; }
[data-d] .m-facts dd { font-size: 19px; font-weight: 500; }

/* =====================================================================
   9. DONNÉES : TABLEAU
   ===================================================================== */
.m-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.m-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.m-table th, .m-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.m-table tr:last-child > * { border-bottom: 0; }
.m-table thead th { font-family: var(--f-label); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .03em; background: var(--surface-2); white-space: nowrap; }
[data-d] .m-table thead th { text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.m-table tbody th { font-weight: 500; color: var(--ink); }
.m-table td.num, .m-table th.num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-table td .i { width: 16px; height: 16px; stroke-width: 2; }
.m-table .yes { color: var(--check-c); }
.m-table .no { color: var(--subtle); }
.m-table .is-col-selected { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }

/* =====================================================================
   10. CONTENU : ACCORDÉON, CITATION, PERSONNE
   ===================================================================== */
.m-acc { border-top: 1px solid var(--border); }
.m-acc details { border-bottom: 1px solid var(--border); }
.m-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; font-weight: 500; color: var(--ink); font-size: 16px; }
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc summary { transition: color .15s ease; }
.m-acc summary:hover { color: var(--mark); }
/* Bouton rond : montre que la ligne s'ouvre */
.m-acc summary > svg.i:last-child { width: 32px; height: 32px; padding: 7px; flex: none; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--ink); background: var(--surface); transition: transform .2s ease, background-color .15s, border-color .15s, color .15s; }
.m-acc summary:hover > svg.i:last-child { border-color: var(--ink); background: var(--surface-2); }
.m-acc details[open] > summary > svg.i:last-child { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.m-acc .m-acc summary > svg.i:last-child { width: 26px; height: 26px; padding: 5px; }
.m-acc__body { padding: 0 40px 20px 0; color: var(--muted); font-size: 15px; max-width: 62ch; }

.m-quote { display: grid; gap: 22px; max-width: 46em; }
.m-quote blockquote { font-size: 22px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
[data-d] .m-quote blockquote { font-size: 20px; border-left: 2px solid var(--accent); padding-left: 22px; }
.m-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
[data-d] .m-quote figcaption { padding-left: 24px; }
.m-quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }

.m-person { display: grid; gap: 14px; }
.m-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-media); background: var(--surface-2); }
.m-person h3 { font-size: 17px; font-weight: 600; color: var(--ink); }
.m-person p { font-size: 14px; color: var(--muted); }
.m-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* =====================================================================
   11. COMPOSITIONS
   ===================================================================== */
.m-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4cqi, 48px); }
.m-section { padding: clamp(56px, 8cqi, 104px) 0; }
.m-section--tight { padding: clamp(40px, 5cqi, 64px) 0; }
.m-section__head { display: grid; gap: 14px; max-width: 44em; margin-bottom: clamp(28px, 4cqi, 48px); }
.m-stack { display: grid; gap: var(--gap, 16px); }
.m-row { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.m-grid { display: grid; gap: var(--gap, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }

/* Hero */
.m-hero { display: grid; gap: clamp(32px, 5cqi, 64px); align-items: center; padding: clamp(40px, 7cqi, 96px) 0 clamp(48px, 7cqi, 96px); }
@container (min-width: 900px) { .m-hero { grid-template-columns: 1.08fr .92fr; } }
.m-hero__text { display: grid; gap: 24px; align-content: start; }
.m-hero__text .m-row { margin-top: 8px; }
.m-hero__media { position: relative; }
.m-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-media); }
@container (max-width: 899px) { .m-hero__media img { aspect-ratio: 4 / 3; } }
.m-hero__media figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.m-hero__card { position: absolute; left: -24px; bottom: 28px; display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-overlay); font-size: 14px; }
.m-hero__card strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.m-hero__card span { color: var(--muted); font-size: 13px; }
.m-hero__card svg.i { color: var(--ink); }
@container (max-width: 899px) { .m-hero__card { left: 12px; bottom: 12px; } }

/* Parcours */
.m-flow { display: grid; gap: clamp(28px, 5cqi, 56px); align-items: start; padding: clamp(28px, 5cqi, 64px) 0 clamp(48px, 6cqi, 80px); }
@container (min-width: 960px) { .m-flow { grid-template-columns: .9fr 1.1fr; } }
.m-flow__intro { display: grid; gap: 22px; padding-top: 8px; }
.m-flow__intro img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-media); margin-top: 8px; }
@container (max-width: 959px) { .m-flow__intro img, .m-flow__intro .m-assure { display: none; } }
.m-assure { list-style: none; padding: 0; display: grid; gap: 14px; }
.m-assure li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.m-assure li svg.i { color: var(--ink); margin-top: 2px; }
.m-assure strong { color: var(--ink); font-weight: 600; display: block; }
.m-form { display: grid; gap: 22px; }
.m-form__row { display: grid; gap: 16px; }
@container (min-width: 560px) { .m-form__row--2 { grid-template-columns: 1.5fr 1fr; } }
.m-form__secure { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.m-form__secure svg.i { width: 16px; height: 16px; margin-top: 1px; }

/* Résultats */
.m-results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.m-prices { display: grid; gap: 16px; }
@container (min-width: 860px) { .m-prices { grid-template-columns: repeat(3, 1fr); } }

/* Bandeau contact */
.m-cta { display: grid; gap: 24px; padding: clamp(32px, 5cqi, 56px); border-radius: var(--r-lg); }
@container (min-width: 860px) { .m-cta { grid-template-columns: 1.3fr auto; align-items: end; } }

/* Pied de page */
.m-footer { padding: clamp(48px, 6cqi, 80px) 0 28px; font-size: 14px; }
.m-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.m-footer__brand img { height: 40px; margin-bottom: 16px; }
.m-footer h4 { font-family: var(--f-label); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.m-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.m-footer a { text-decoration: none; color: var(--text); }
.m-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 12px; color: var(--muted); }

/* Bandeau cookies */
.m-cookie { display: grid; gap: 14px; max-width: 420px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-overlay); font-size: 14px; }
.m-cookie strong { color: var(--ink); }


/* =====================================================================
   12. SIGNATURE HEAUME
   ===================================================================== */

/* ---------- Heaume : la forme du logo ---------- */
/* Fente de visière (le T du casque) comme repère : surtitres, étape en cours, liste */
[data-d="heaume"] .m-eyebrow::before, [data-d="heaume"] .m-slot {
  content: ""; display: inline-block; width: 10px; height: 14px; flex: none; background: var(--mark);
  clip-path: polygon(0 0, 100% 0, 68% 40%, 68% 100%, 32% 100%, 32% 40%);
}
[data-d="heaume"] .m-accent { color: var(--mark); }
[data-d="heaume"] .m-card__index { color: var(--mark); }
[data-d="heaume"] .m-stepper li.is-current::before { background: var(--mark); }
[data-d="heaume"] .m-choice:has(.m-box:checked) { background: var(--accent-soft); }
[data-d="heaume"] .m-box:checked { background: var(--ink); border-color: var(--ink); }
[data-d="heaume"] .m-note { border-left: 3px solid var(--n); border-radius: 0 var(--r-md) var(--r-md) 0; }
[data-d="heaume"] .m-quote blockquote { border-left-color: var(--mark); }
[data-d="heaume"] .m-band { background: var(--surface-2); }
/* Silhouette du casque : réservée à la photo principale d'une page */
[data-d="heaume"] .m-hero__media img { aspect-ratio: 1 / .96; clip-path: url(#helmet); border-radius: 0; }
[data-d="heaume"] .m-hero__card { left: auto; right: -12px; bottom: 36px; }
@container (max-width: 899px) { [data-d="heaume"] .m-hero__card { right: 8px; bottom: 8px; } }
/* Filigrane : le casque, en grand, dans les aplats d'encre */
[data-d="heaume"] .m-cta, [data-d="heaume"] .m-footer { position: relative; overflow: hidden; isolation: isolate; }
[data-d="heaume"] .m-cta::after, [data-d="heaume"] .m-footer::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -120px; width: 380px; height: 420px;
  background: url("img/icone-bleu.png") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .06; pointer-events: none;
}
[data-d="heaume"] .m-footer::after { right: 4%; bottom: -160px; width: 460px; height: 500px; opacity: .045; }

