/* ==========================================================================
   VOSTAY · public lead pages: /tarifs/ (pp-), /contact/ and /souscription/
   (lf-). Loaded after marketing.css and built on its .mk variables, buttons,
   toggle, FAQ and reveal; colours only from tokens.css. Motion: transform and
   opacity, ease-out, gone under prefers-reduced-motion.
   ========================================================================== */

.mk-nav__links a[aria-current="page"] { opacity: 1; background: hsl(var(--mk-glass) / .1); }
.mk-nav.is-scrolled .mk-nav__links a[aria-current="page"] { background: hsl(var(--mk-fg) / .06); }

/* ---------- Shared section heads ---------- */
.pp-head { display: grid; justify-items: center; text-align: center; margin-bottom: var(--space-10); }
.pp-head .mk-h2 { max-width: 22ch; }
.pp-head .mk-lede { margin-inline: auto; }
.pp-tag {
  display: inline-flex; align-items: center; gap: var(--space-1-5); margin: 0 0 var(--space-4);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  background: hsl(var(--brand-coral) / .12); color: hsl(var(--brand-coral-text));
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
}
.pp-tag svg { width: var(--space-3-5); height: var(--space-3-5); }
.mk-pill svg { width: var(--space-4); height: var(--space-4); }

/* ================================ HERO ================================ */
.pp-hero, .lf-hero { padding-block: calc(var(--mk-nav-h) + var(--space-16)) var(--space-16); text-align: center; }
.pp-hero__inner, .lf-hero__inner { display: grid; justify-items: center; }
.pp-hero__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.06; max-width: 24ch; }
.pp-hero__title span { color: hsl(var(--brand-coral)); }
.pp-hero__sub { margin: var(--space-5) 0 0; max-width: 54ch; font-size: clamp(var(--text-base), 1.4vw, var(--text-lg)); color: hsl(var(--mk-dark-muted)); text-wrap: pretty; }
.pp-hero__sub strong, .lf-hero strong { color: hsl(var(--mk-dark-fg)); }
.lf-hero .mk-h2 { max-width: 20ch; }
.lf-hero .mk-lede { margin-inline: auto; color: hsl(var(--mk-dark-muted)); }

/* ================================ PLANS ================================ */
.pp-plans { padding-top: var(--space-12); }
.pp-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); color: hsl(var(--mk-muted)); font-size: var(--text-sm); font-weight: 600; }
.pp-trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
.pp-trust svg { width: var(--space-4); height: var(--space-4); color: hsl(var(--brand-petrol)); }

.pp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-10); align-items: stretch; }
/* Each card spans six rows of the grid and shares them (subgrid): titles,
   prices, the per-day line, the billing line, the buttons and the lists sit
   on the same lines across cards, whatever wraps. */
.pp-card {
  position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; min-width: 0;
  padding: var(--space-7) var(--space-6); border-radius: var(--radius-xl);
  background: hsl(var(--mk-surface)); border: 1px solid hsl(var(--mk-line));
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pp-card:hover { transform: translateY(calc(var(--space-1) * -1)); box-shadow: 0 24px 48px -32px hsl(var(--brand-ink) / .35); }
}
.pp-card h3 { font-size: var(--text-2xl); }
.pp-card__for { margin: var(--space-1) 0 0; color: hsl(var(--mk-muted)); font-size: var(--text-sm); }
.pp-price { margin: var(--space-5) 0 0; font-family: var(--mk-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-price small { display: block; margin-top: var(--space-2); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0; color: hsl(var(--mk-muted)); }
/* "Sur devis" keeps the figures' size, so every card's button lines up. */
.pp-price--words { white-space: nowrap; }
.pp-day { margin: var(--space-3) 0 0; font-size: var(--text-sm); font-weight: 700; color: hsl(var(--brand-coral-text)); font-variant-numeric: tabular-nums; }
.pp-billed { margin: var(--space-1) 0 var(--space-5); font-size: var(--text-xs); color: hsl(var(--mk-muted)); transition: opacity 150ms var(--ease-out); }
.pp-billed.is-changing { opacity: 0; }
.pp-card .mk-btn { width: 100%; align-self: start; }
.pp-card .mk-ticks { align-self: start; }
.pp-card .mk-ticks { margin-top: var(--space-6); font-size: var(--text-sm); }

/* Intégral: the one we recommend. Raised, petrol, the only coral button. */
.pp-card--pro {
  background: linear-gradient(160deg, hsl(var(--brand-petrol)), hsl(var(--brand-petrol-deep)));
  color: hsl(var(--mk-dark-fg)); border-color: transparent;
  box-shadow: 0 40px 80px -40px hsl(var(--brand-petrol-deep)), 0 0 0 1px hsl(var(--brand-coral) / .35);
  transform: translateY(calc(var(--space-3) * -1));
}
@media (hover: hover) and (pointer: fine) { .pp-card--pro:hover { transform: translateY(calc(var(--space-4) * -1)); } }
.pp-card--pro .pp-card__for, .pp-card--pro .pp-price small, .pp-card--pro .pp-billed { color: hsl(var(--mk-dark-muted)); }
.pp-card--pro .pp-day { color: hsl(var(--brand-coral)); }
.pp-card--custom { background: hsl(var(--brand-ink)); color: hsl(var(--mk-dark-fg)); border-color: transparent; --mk-fg: var(--mk-dark-fg); --mk-line: var(--mk-dark-line); }
.pp-card--custom .pp-card__for, .pp-card--custom .pp-price small, .pp-card--custom .pp-billed { color: hsl(var(--mk-dark-muted)); }
.pp-card--custom .pp-day { color: hsl(var(--brand-coral)); }
.pp-card__badge {
  position: absolute; top: calc(var(--space-3) * -1); left: var(--space-6);
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  background: hsl(var(--brand-coral)); color: hsl(var(--brand-ink)); font-size: var(--text-xs); font-weight: 800;
}
.pp-card__badge svg { width: var(--space-3); height: var(--space-3); }

.pp-note {
  display: flex; align-items: center; gap: var(--space-4); max-width: 46rem; margin: var(--space-12) auto 0;
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl);
  background: hsl(var(--mk-surface)); border: 1px solid hsl(var(--mk-line));
}
.pp-note p { margin: 0; color: hsl(var(--mk-muted)); font-size: var(--text-sm); }
.pp-note .pp-note__title { margin-bottom: var(--space-1); color: hsl(var(--mk-fg)); font-family: var(--mk-display); font-weight: 700; font-size: var(--text-base); }
.pp-note__icon { display: grid; place-items: center; flex-shrink: 0; width: var(--space-12); height: var(--space-12); border-radius: var(--radius-lg); background: hsl(var(--brand-petrol) / .1); color: hsl(var(--brand-petrol)); }
.pp-note__icon svg { width: var(--space-6); height: var(--space-6); }

@media (max-width: 1180px) {
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 24rem)); justify-content: center; row-gap: var(--space-8); }
  .pp-card--pro { transform: none; }
}
@media (max-width: 640px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  /* On one column the recommended plan comes first. */
  .pp-card--pro { order: -1; }
  .pp-note { flex-direction: column; align-items: flex-start; }
}

/* ================================ ROI ================================ */
.pp-roi { background: hsl(var(--mk-surface)); border-block: 1px solid hsl(var(--mk-line)); }
.pp-roi__card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-width: 60rem; margin: 0 auto;
  border-radius: var(--radius-xl); overflow: hidden; border: 1px solid hsl(var(--mk-line)); background: hsl(var(--mk-bg));
}
.pp-roi__in { padding: var(--space-8); display: grid; align-content: start; gap: var(--space-3); }
.pp-roi__label { font-weight: 700; font-size: var(--text-sm); }
.pp-roi__value { font-family: var(--mk-display); font-size: var(--text-3xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-roi__value span { font-size: var(--text-base); font-weight: 600; color: hsl(var(--mk-muted)); }
.pp-roi__slider {
  --fill: 10%;
  -webkit-appearance: none; appearance: none; width: 100%; height: var(--space-2); margin: var(--space-2) 0; border-radius: var(--radius-full); cursor: pointer;
  background: linear-gradient(90deg, hsl(var(--brand-coral)) var(--fill), hsl(var(--mk-line)) var(--fill));
}
.pp-roi__slider::-webkit-slider-thumb { -webkit-appearance: none; width: var(--space-6); height: var(--space-6); border-radius: 50%; background: hsl(var(--brand-ink)); border: 3px solid hsl(0 0% 100%); box-shadow: 0 2px 8px hsl(var(--brand-ink) / .3); transition: transform var(--dur-fast) var(--ease-out); }
.pp-roi__slider::-moz-range-thumb { width: var(--space-6); height: var(--space-6); border-radius: 50%; background: hsl(var(--brand-ink)); border: 3px solid hsl(0 0% 100%); box-shadow: 0 2px 8px hsl(var(--brand-ink) / .3); }
.pp-roi__slider:active::-webkit-slider-thumb { transform: scale(1.1); }
.pp-roi__slider:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: var(--space-1); }
.pp-roi__basis { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: hsl(var(--mk-muted)); line-height: var(--leading-relaxed); }
.pp-roi__out { padding: var(--space-8); display: grid; align-content: center; gap: var(--space-2); color: hsl(var(--mk-dark-fg));
  background: linear-gradient(160deg, hsl(var(--brand-petrol)), hsl(var(--brand-petrol-deep))); }
.pp-roi__out p { margin: 0; }
.pp-roi__kicker { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--mk-dark-muted)); }
.pp-roi__big { font-family: var(--mk-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: hsl(var(--brand-coral)); font-variant-numeric: tabular-nums; }
.pp-roi__big small { display: block; margin-top: var(--space-2); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; color: hsl(var(--mk-dark-fg)); }
.pp-roi__line { color: hsl(var(--mk-dark-muted)); font-variant-numeric: tabular-nums; }
.pp-roi__line b { color: hsl(var(--mk-dark-fg)); }
.pp-roi__line--cost { padding-top: var(--space-3); margin-top: var(--space-2) !important; border-top: 1px solid hsl(var(--mk-dark-line)); font-size: var(--text-sm); }
@media (max-width: 760px) { .pp-roi__card { grid-template-columns: minmax(0, 1fr); } .pp-roi__in, .pp-roi__out { padding: var(--space-6); } }

/* ============================ COMPARISON TABLE ============================ */
.pp-table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid hsl(var(--mk-line)); background: hsl(var(--mk-surface)); -webkit-overflow-scrolling: touch; }
.pp-table-wrap:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: 2px; }
.pp-table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: var(--text-sm); }
.pp-table th, .pp-table td { padding: var(--space-3) var(--space-4); text-align: center; border-bottom: 1px solid hsl(var(--mk-line)); }
.pp-table thead th { position: sticky; top: 0; padding-block: var(--space-4); background: hsl(var(--mk-surface)); font-family: var(--mk-display); font-size: var(--text-base); }
.pp-table tbody th[scope="row"] { text-align: left; font-weight: 500; color: hsl(var(--mk-fg)); width: 34%; }
.pp-table tr:last-child td, .pp-table tr:last-child th { border-bottom: 0; }
.pp-table .is-pro { background: hsl(var(--brand-petrol) / .06); }
.pp-table thead .is-pro { color: hsl(var(--brand-petrol)); box-shadow: inset 0 3px 0 hsl(var(--brand-coral)); }
.pp-table__group th { padding-top: var(--space-5); text-align: left; background: hsl(var(--mk-bg)); font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--mk-muted)); }
.pp-table__group svg { width: var(--space-3-5); height: var(--space-3-5); margin-right: var(--space-2); vertical-align: -2px; }
.pp-yes { display: inline-grid; place-items: center; width: var(--space-6); height: var(--space-6); border-radius: 50%; background: hsl(var(--brand-petrol) / .12); color: hsl(var(--brand-petrol)); }
.pp-yes svg { width: var(--space-3-5); height: var(--space-3-5); }
.pp-no { color: hsl(var(--mk-muted) / .6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pp-yes, :root:not([data-theme="light"]) .pp-table thead .is-pro { color: hsl(var(--petrol-300)); }
}
:root[data-theme="dark"] .pp-yes, :root[data-theme="dark"] .pp-table thead .is-pro { color: hsl(var(--petrol-300)); }

/* ================================= VS ================================= */
.pp-vs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); max-width: 62rem; margin: 0 auto; align-items: stretch; }
.pp-vs__card { position: relative; padding: var(--space-8); border-radius: var(--radius-xl); background: hsl(var(--mk-surface)); border: 1px solid hsl(var(--mk-line)); }
.pp-vs__card h3 { font-size: var(--text-xl); }
.pp-vs__card--us { background: linear-gradient(160deg, hsl(var(--brand-petrol)), hsl(var(--brand-petrol-deep))); color: hsl(var(--mk-dark-fg)); border-color: transparent; }
.pp-vs__tools { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.pp-vs__tools li { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px dashed hsl(var(--mk-line)); }
.pp-vs__tools span { color: hsl(var(--mk-muted)); }
.pp-vs__tools b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pp-vs__price { margin: var(--space-3) 0 0; color: hsl(var(--mk-dark-muted)); }
.pp-vs__price b { font-family: var(--mk-display); font-size: var(--text-3xl); color: hsl(var(--brand-coral)); margin-right: var(--space-1); }
.pp-vs__list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.pp-vs__list li { display: flex; gap: var(--space-2-5); align-items: flex-start; }
.pp-vs__list svg { flex-shrink: 0; width: var(--space-5); height: var(--space-5); padding: var(--space-0-5); border-radius: 50%; background: hsl(var(--brand-coral) / .9); color: hsl(var(--brand-ink)); }
.pp-vs__list--bad svg { background: hsl(var(--mk-fg) / .08); color: hsl(var(--mk-muted)); }
.pp-vs__list--bad li { color: hsl(var(--mk-muted)); }
.pp-vs__note { margin-inline: auto; text-align: center; max-width: 60ch; margin-top: var(--space-6); }
@media (max-width: 760px) { .pp-vs__grid { grid-template-columns: minmax(0, 1fr); } .pp-vs__card { padding: var(--space-6); } }

.pp-faq .mk-lede a, .lf-legal a, .lf-info a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: hsl(var(--brand-coral)); }
.pp-final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* =============================== FORMS (lf-) =============================== */
.lf-pills { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.lf-pills li { display: inline-flex; align-items: center; gap: var(--space-1-5); padding: var(--space-1-5) var(--space-3); border-radius: var(--radius-full); border: 1px solid hsl(var(--mk-dark-line)); background: hsl(var(--mk-glass) / .05); font-size: var(--text-sm); font-weight: 600; }
.lf-pills svg { width: var(--space-4); height: var(--space-4); color: hsl(var(--brand-coral)); }

.lf-section { padding-top: var(--space-12); }
.lf-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: var(--space-10); align-items: start; max-width: 64rem; }
.lf-narrow { max-width: 44rem; }
.lf-aside { display: grid; gap: var(--space-3); }
.lf-info { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: hsl(var(--mk-surface)); border: 1px solid hsl(var(--mk-line)); }
.lf-info h2 { font-size: var(--text-base); }
.lf-info p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }
.lf-info__icon { display: grid; place-items: center; flex-shrink: 0; width: var(--space-10); height: var(--space-10); border-radius: var(--radius-md); background: hsl(var(--brand-coral) / .12); color: hsl(var(--brand-coral-text)); }
.lf-info__icon svg { width: var(--space-5); height: var(--space-5); }

.lf-card { padding: var(--space-8); border-radius: var(--radius-xl); background: hsl(var(--mk-surface)); border: 1px solid hsl(var(--mk-line)); box-shadow: 0 30px 60px -40px hsl(var(--brand-ink) / .3); }
.lf-card__head h2 { font-size: var(--text-2xl); }
.lf-card__head p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }

.lf-form { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.lf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.lf-field { display: grid; gap: var(--space-1-5); align-content: start; min-width: 0; }
.lf-label { font-size: var(--text-sm); font-weight: 600; }
.lf-req { color: hsl(var(--brand-coral-text)); }
.lf-opt { font-weight: 500; color: hsl(var(--mk-muted)); }
.lf-field input, .lf-field select, .lf-field textarea {
  width: 100%; min-height: var(--space-12); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid hsl(var(--mk-line)); background: hsl(var(--mk-bg));
  color: hsl(var(--mk-fg)); font: inherit; font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.lf-field textarea { min-height: calc(var(--space-16) * 2); resize: vertical; line-height: var(--leading-normal); }
.lf-field select {
  appearance: none; cursor: pointer; padding-right: var(--space-10);
  background-image: linear-gradient(45deg, transparent 50%, hsl(var(--mk-muted)) 50%), linear-gradient(135deg, hsl(var(--mk-muted)) 50%, transparent 50%);
  background-position: calc(100% - var(--space-5)) 50%, calc(100% - var(--space-4)) 50%;
  background-size: var(--space-1-5) var(--space-1-5), var(--space-1-5) var(--space-1-5);
  background-repeat: no-repeat;
}
.lf-field input::placeholder, .lf-field textarea::placeholder { color: hsl(var(--mk-muted) / .7); }
.lf-field input:hover, .lf-field select:hover, .lf-field textarea:hover { border-color: hsl(var(--mk-fg) / .3); }
.lf-field input:focus-visible, .lf-field select:focus-visible, .lf-field textarea:focus-visible {
  outline: none; border-color: hsl(var(--brand-petrol)); background: hsl(var(--mk-surface));
  box-shadow: 0 0 0 var(--space-1) hsl(var(--brand-petrol) / .15);
}
.lf-field.has-error input, .lf-field.has-error select, .lf-field.has-error textarea { border-color: hsl(var(--destructive)); }
.lf-error { display: flex; align-items: center; gap: var(--space-1-5); margin: 0; font-size: var(--text-xs); font-weight: 600; color: hsl(var(--destructive)); }
.lf-error svg { width: var(--space-3-5); height: var(--space-3-5); flex-shrink: 0; }
.lf-alert { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: hsl(var(--destructive-bg)); color: hsl(var(--destructive)); font-size: var(--text-sm); font-weight: 600; }
.lf-alert svg { width: var(--space-4); height: var(--space-4); flex-shrink: 0; margin-top: var(--space-0-5); }
/* The honeypot: present for bots, nowhere for people. */
.lf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.lf-submit { width: 100%; margin-top: var(--space-2); }
.lf-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.lf-submit__sub { margin: calc(var(--space-2) * -1) 0 0; text-align: center; font-size: var(--text-xs); color: hsl(var(--mk-muted)); }
.lf-legal { margin: 0; font-size: var(--text-xs); color: hsl(var(--mk-muted)); text-align: center; }

.lf-step { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-4); min-width: 0; }
/* A floated legend is an ordinary child, not drawn on the fieldset's top
   border: so the separator line and the space under it behave normally. */
.lf-step + .lf-step { margin-top: var(--space-4); padding-top: var(--space-8); border-top: 1px solid hsl(var(--mk-line)); }
.lf-step legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--space-2-5); padding: 0; margin-bottom: var(--space-4); font-family: var(--mk-display); font-weight: 700; }
.lf-step legend span { display: grid; place-items: center; width: var(--space-6); height: var(--space-6); border-radius: 50%; background: hsl(var(--brand-ink)); color: hsl(0 0% 100%); font-size: var(--text-xs); }

.lf-plan {
  display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, hsl(var(--brand-petrol)), hsl(var(--brand-petrol-deep))); color: hsl(var(--mk-dark-fg));
}
.lf-plan p { margin: 0; }
.lf-plan__icon { display: grid; place-items: center; flex-shrink: 0; width: var(--space-10); height: var(--space-10); border-radius: var(--radius-md); background: hsl(var(--brand-coral)); color: hsl(var(--brand-ink)); }
.lf-plan__icon svg { width: var(--space-5); height: var(--space-5); }
.lf-plan__body { flex: 1; min-width: 0; }
.lf-plan__label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--mk-dark-muted)); }
.lf-plan__value { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.lf-plan__value b { font-family: var(--mk-display); }
.lf-plan__value small { font-size: var(--text-xs); color: hsl(var(--mk-dark-muted)); }
.lf-plan__deal { font-size: var(--text-xs); font-weight: 700; color: hsl(var(--brand-coral)); }
.lf-plan__link { display: inline-flex; align-items: center; gap: var(--space-1); flex-shrink: 0; color: hsl(var(--mk-dark-fg)); font-size: var(--text-sm); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); }
.lf-plan__link svg { width: var(--space-4); height: var(--space-4); transition: transform var(--dur-base) var(--ease-out); }
.lf-plan__link:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lf-plan__link:hover svg { transform: translateX(var(--space-0-5)); } }
@media (prefers-reduced-motion: no-preference) {
  .lf-plan.is-bump .lf-plan__value { animation: lf-bump 260ms var(--ease-out); }
}
@keyframes lf-bump { from { opacity: .4; transform: translateY(var(--space-1)); } to { opacity: 1; transform: none; } }

.lf-thanks { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-8) 0; text-align: center; outline: none; }
.lf-thanks h2 { font-size: var(--text-2xl); }
.lf-thanks p { margin: 0; max-width: 40ch; color: hsl(var(--mk-muted)); }
.lf-thanks .mk-btn { margin-top: var(--space-3); }
.lf-thanks__icon { display: grid; place-items: center; width: var(--space-16); height: var(--space-16); border-radius: 50%; background: hsl(var(--success-bg)); color: hsl(var(--success)); }
.lf-thanks__icon svg { width: var(--space-8); height: var(--space-8); }
@media (prefers-reduced-motion: no-preference) {
  .lf-thanks__icon { animation: lf-pop 420ms var(--ease-out) both; }
}
@keyframes lf-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.lf-steps { background: hsl(var(--mk-surface)); border-top: 1px solid hsl(var(--mk-line)); }
.lf-steps .mk-h2 { text-align: center; margin-inline: auto; max-width: 24ch; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.lf-steps__list { list-style: none; margin: var(--space-10) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.lf-steps__list li { padding: var(--space-6); border-radius: var(--radius-xl); background: hsl(var(--mk-bg)); border: 1px solid hsl(var(--mk-line)); }
.lf-steps__n { font-family: var(--mk-display); font-size: var(--text-3xl); font-weight: 800; color: hsl(var(--brand-coral)); }
.lf-steps__list h3 { margin-top: var(--space-3); font-size: var(--text-lg); }
.lf-steps__list p { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }

@media (max-width: 860px) {
  .lf-grid { grid-template-columns: minmax(0, 1fr); }
  .lf-aside { order: 2; }
  .lf-steps__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .lf-row { grid-template-columns: minmax(0, 1fr); }
  .lf-card { padding: var(--space-5); }
  /* The plan banner: icon and plan on the first line, the link under them. */
  .lf-plan { flex-wrap: wrap; row-gap: var(--space-3); }
  .lf-plan__body { flex: 1 1 0; }
  .lf-plan__link { flex: 1 0 100%; padding-left: calc(var(--space-10) + var(--space-4)); }
  .pp-hero, .lf-hero { padding-block: calc(var(--mk-nav-h) + var(--space-10)) var(--space-10); }
}

/* ===================== LEGAL AND CONTENT PAGES =====================
   Legal notice, privacy, cookies: text built from docs/legal/ (web/legal.py),
   set in a reading column, with the three pages as a small menu. The
   content pages (features, comparisons, guides: web/site_pages.py) share
   the same reading column as .mk-prose. */
.mk-page-body { padding-block: var(--space-12) var(--space-20); }
.mk-legal-layout { display: grid; grid-template-columns: 13rem minmax(0, 46rem); gap: var(--space-12); justify-content: center; align-items: start; }
.mk-legal-nav { position: sticky; top: calc(var(--mk-nav-h) + var(--space-6)); display: grid; gap: var(--space-1); }
.mk-legal-nav a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  color: hsl(var(--mk-muted)); font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mk-legal-nav a:hover { color: hsl(var(--mk-fg)); background: hsl(var(--mk-fg) / .05); }
.mk-legal-nav a[aria-current="page"] { color: hsl(var(--mk-fg)); background: hsl(var(--mk-surface)); box-shadow: inset 2px 0 0 hsl(var(--brand-coral)); }
.mk-legal-nav a:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: 2px; }

.mk-legal, .mk-prose { font-size: var(--text-base); line-height: var(--leading-relaxed); color: hsl(var(--mk-fg)); min-width: 0; }
.mk-legal > :first-child, .mk-prose > :first-child { margin-top: 0; }
.mk-legal p, .mk-legal ul, .mk-legal ol, .mk-prose p, .mk-prose ul, .mk-prose ol { margin: 0 0 var(--space-4); }
.mk-legal ul, .mk-legal ol, .mk-prose ul, .mk-prose ol { padding-left: var(--space-5); }
/* base.css clears list markers for the app; reading text keeps them. */
.mk-legal ul, .mk-prose ul { list-style: disc; }
.mk-legal ol, .mk-prose ol { list-style: decimal; }
.mk-legal li, .mk-prose li { margin-bottom: var(--space-1-5); }
.mk-legal li::marker, .mk-prose li::marker { color: hsl(var(--brand-coral)); }
.mk-legal h2, .mk-prose h2 { margin: var(--space-10) 0 var(--space-3); font-size: var(--text-xl); scroll-margin-top: calc(var(--mk-nav-h) + var(--space-4)); }
.mk-legal h3, .mk-prose h3 { margin: var(--space-6) 0 var(--space-2); font-size: var(--text-base); }
.mk-legal strong, .mk-prose strong { font-weight: 650; }
.mk-legal a, .mk-prose a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: hsl(var(--brand-coral)); }
.mk-legal code, .mk-prose code { font-size: .9em; padding: 0 var(--space-1); border-radius: var(--radius-sm); background: hsl(var(--mk-fg) / .06); overflow-wrap: anywhere; }
.mk-legal p, .mk-legal li, .mk-prose p, .mk-prose li { overflow-wrap: break-word; }
.mk-legal__table, .mk-prose__table { margin: 0 0 var(--space-5); overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid hsl(var(--mk-line)); background: hsl(var(--mk-surface)); -webkit-overflow-scrolling: touch; }
.mk-legal__table:focus-visible, .mk-prose__table:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: 2px; }
.mk-legal table, .mk-prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--leading-snug); }
.mk-legal th, .mk-legal td, .mk-prose th, .mk-prose td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid hsl(var(--mk-line)); }
.mk-legal tr:last-child td, .mk-prose tr:last-child td { border-bottom: 0; }
.mk-legal th, .mk-prose th { font-weight: 700; background: hsl(var(--mk-bg)); white-space: nowrap; }
/* Wide tables (privacy: five columns) keep readable columns and scroll. */
.mk-legal table:has(th:nth-child(4)), .mk-prose table:has(th:nth-child(4)) { min-width: 44rem; }
.mk-legal td:first-child, .mk-prose td:first-child { font-weight: 600; }

@media (max-width: 900px) {
  .mk-legal-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .mk-legal-nav { position: static; display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .mk-legal-nav a { border: 1px solid hsl(var(--mk-line)); border-radius: var(--radius-full); }
  .mk-legal-nav a[aria-current="page"] { box-shadow: none; border-color: hsl(var(--brand-coral)); }
}

/* Volume discount and VAT mention, right under the plans (as in the CGV). */
.pp-scale { max-width: 46rem; margin: var(--space-10) auto 0; text-align: center; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }
.pp-scale p { margin: 0; text-wrap: pretty; }
.pp-scale b { color: hsl(var(--mk-fg)); font-weight: 700; }
.pp-scale__vat { margin-top: var(--space-2) !important; font-size: var(--text-xs); }
.pp-scale + .pp-note { margin-top: var(--space-8); }
.pp-tick-note { display: block; margin-top: var(--space-0-5); font-size: var(--text-xs); color: hsl(var(--mk-dark-muted)); }
.pp-price--words small { white-space: normal; }

/* ========================== CONTENT PAGES ==========================
   Features, comparisons, guides, about (web/site_pages.py): breadcrumb,
   title and the trial call in the dark band; then the reading column, the
   page's questions and three neighbours. No scroll reveals on the text:
   a page someone came to read is there at once. */
.mk-doc-head { padding-bottom: var(--space-12); }
.mk-doc-head .mk-h2 { max-width: 24ch; margin-top: var(--space-5); font-size: clamp(var(--text-3xl), 3.6vw, var(--text-4xl)); }
.mk-doc-head .mk-lede { max-width: 60ch; }
.mk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }
.mk-crumbs li + li::before { content: "›"; content: "›" / ""; margin-right: var(--space-2); color: hsl(var(--mk-muted) / .7); }
.mk-crumbs a { color: inherit; text-decoration: none; }
.mk-crumbs a:hover { color: hsl(var(--mk-fg)); text-decoration: underline; text-underline-offset: 3px; }
.mk-crumbs a:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: 2px; border-radius: var(--radius-sm); }
.mk-crumbs [aria-current="page"] { color: hsl(var(--mk-fg)); }
.mk-doc-head__byline { margin: var(--space-5) 0 0; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }
.mk-doc-head__byline a { color: inherit; text-underline-offset: 3px; }
.mk-doc-head__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.mk-doc { max-width: 46rem; margin-inline: auto; }
.mk-prose h2:first-child { margin-top: 0; }
.mk-prose table { font-variant-numeric: tabular-nums; }
.mk-prose blockquote { margin: 0 0 var(--space-5); padding: var(--space-4) var(--space-5); border-left: 3px solid hsl(var(--brand-coral)); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: hsl(var(--mk-surface)); }
.mk-prose blockquote > :last-child { margin-bottom: 0; }

.mk-doc__faq, .mk-doc__related { margin-top: var(--space-16); }
.mk-doc__faq h2, .mk-doc__related h2 { margin-bottom: var(--space-5); font-size: var(--text-xl); }
.mk-doc__faq .mk-qa__a a { color: inherit; font-weight: 600; text-underline-offset: 3px; text-decoration-color: hsl(var(--brand-coral)); }

.mk-doc__related ul, .mk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.mk-card { display: grid; align-content: start; gap: var(--space-2); height: 100%; padding: var(--space-5); border: 1px solid hsl(var(--mk-line)); border-radius: var(--radius-lg); background: hsl(var(--mk-surface)); color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: border-color var(--dur-fast) var(--ease-out), transform 160ms var(--ease-out); }
.mk-card b { font-family: var(--mk-display); font-size: var(--text-base); line-height: var(--leading-snug); }
.mk-card span { font-size: var(--text-sm); color: hsl(var(--mk-muted)); line-height: var(--leading-normal); }
.mk-card:focus-visible { outline: 2px solid hsl(var(--brand-coral)); outline-offset: 2px; }
.mk-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .mk-card:hover { border-color: hsl(var(--brand-coral) / .6); } }
.mk-cards--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--space-4); }
/* On a phone a content table reads as cards: one per row, its first cell as
   the title, every other cell under the name of its column (data-label,
   added by the build: web/site_pages.py). */
@media (max-width: 640px) {
  .mk-prose__table { overflow: visible; border: 0; border-radius: 0; background: none; }
  .mk-prose table, .mk-prose tbody, .mk-prose tr, .mk-prose td { display: block; width: 100%; }
  .mk-prose table:has(th:nth-child(4)) { min-width: 0; }
  .mk-prose thead { display: none; }
  .mk-prose tr { margin-bottom: var(--space-3); padding: var(--space-2) 0; border: 1px solid hsl(var(--mk-line)); border-radius: var(--radius-lg); background: hsl(var(--mk-surface)); }
  .mk-prose td, .mk-prose tr:last-child td { padding: var(--space-2) var(--space-4); border-bottom: 0; }
  .mk-prose td::before { content: attr(data-label); display: block; margin-bottom: var(--space-0-5); font-size: var(--text-xs); font-weight: 700; color: hsl(var(--mk-muted)); }
  .mk-prose td:first-child { font-family: var(--mk-display); font-size: var(--text-base); }
  .mk-prose td:first-child::before { display: none; }
}

/* ======================= TOURIST TAX CALCULATOR =======================
   templates/marketing/tool_taxe_sejour.html: the form card, the result
   card with its breakdown, then the explanation in the reading column. */
.tx-form { display: grid; gap: var(--space-4); }
.tx-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.tx-result { margin-top: var(--space-6); }
.tx-result:empty { display: none; }
.tx-result__where { margin: 0; font-size: var(--text-sm); font-weight: 600; color: hsl(var(--mk-muted)); }
.tx-result__title { margin: var(--space-1) 0 0; font-size: var(--text-2xl); }
.tx-result__sub { margin: var(--space-2) 0 0; color: hsl(var(--mk-muted)); }
.tx-table { width: 100%; margin-top: var(--space-5); border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.tx-table th, .tx-table td { padding: var(--space-2-5) 0; border-bottom: 1px solid hsl(var(--mk-line)); text-align: left; font-weight: 500; }
.tx-table td { text-align: right; white-space: nowrap; padding-left: var(--space-4); }
.tx-table__total th, .tx-table__total td { border-bottom: 0; font-weight: 700; font-size: var(--text-base); }
.tx-note { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: hsl(var(--mk-muted)); }
.tx-choices { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.tx-choices a { color: inherit; font-weight: 600; text-underline-offset: 3px; text-decoration-color: hsl(var(--brand-coral)); }
.tx-explain { margin-top: var(--space-12); }
@media (max-width: 560px) { .tx-row3 { grid-template-columns: minmax(0, 1fr); } .lf-card.tx-form { padding: var(--space-5); } }
