/* ==========================================================================
   negotiume.ch — feuille de style
   Police : Jost (hébergée localement, licence OFL — voir /assets/fonts/OFL.txt)
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Couleurs ---------- */
:root {
  color-scheme: light dark;

  --petrol: #183136;
  --petrol-2: #2c4c54;
  --gold: #dfae2f;
  --green: #1c7c54;
  --sapin: #1f6b5c;

  --bg: #f3f5f5;
  --surface: #ffffff;
  --surface-2: #e9eff0;
  --text: #183136;
  --muted: #4a5f65;
  --line: #d6dfe0;

  --accent-text: #2c4c54;
  --green-text: #1c7c54;
  --sapin-text: #1f6b5c;
  --sapin-tint: #e2efeb;
  --green-tint: #e1f1e9;
  --gold-tint: #fbf3dc;

  --btn-dark-bg: #183136;
  --btn-dark-fg: #ffffff;
  --btn-dark-hover: #2c4c54;

  --stage: #183136;
  --stage-line: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(24, 49, 54, 0.06);
  --shadow: 0 1px 2px rgba(24, 49, 54, 0.05), 0 10px 30px rgba(24, 49, 54, 0.08);
  --shadow-lg: 0 2px 4px rgba(24, 49, 54, 0.06), 0 24px 60px rgba(24, 49, 54, 0.14);

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1c1f;
    --surface: #142a2e;
    --surface-2: #1a3439;
    --text: #e8efef;
    --muted: #a9bcbf;
    --line: #29454a;

    --accent-text: #9fcad3;
    --green-text: #52c896;
    --sapin-text: #66c9b1;
    --sapin-tint: #12352e;
    --green-tint: #113524;
    --gold-tint: #352c13;

    --btn-dark-bg: #e8efef;
    --btn-dark-fg: #183136;
    --btn-dark-hover: #ffffff;

    --stage: #142a2e;
    --stage-line: rgba(255, 255, 255, 0.06);

    --shadow-sm: none;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--btn-dark-bg);
  color: var(--btn-dark-fg);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--gold);
  color: #183136;
  box-shadow: 0 6px 18px rgba(223, 174, 47, 0.28);
}
.btn--primary:hover { background: #e8bd4a; transform: translateY(-1px); }

.btn--dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn--dark:hover { background: var(--btn-dark-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--sapin { background: var(--sapin); color: #fff; }
.btn--sapin:hover { background: #185a4d; }
@media (prefers-color-scheme: dark) {
  .btn--sapin { background: #1f6b5c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
  .btn--sapin:hover { background: #26806d; }
}

.btn--sm { min-height: 40px; padding: 0.45em 1.05em; font-size: 0.975rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-text);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.2s; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand img { width: auto; height: 34px; }
.brand .mark-light { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .mark-dark { display: none; }
  .brand .mark-light { display: block; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--accent-text); }
.nav-soon {
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.header-login { white-space: nowrap; }

@media (max-width: 379px) {
  .brand span { display: none; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    margin-right: 8px;
  }
  .site-nav ul { flex-direction: row; gap: 4px; }
  .site-nav a {
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
  }
  .site-nav a:hover { background: var(--surface-2); color: var(--text); }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
@media (min-width: 960px) { .section { padding-block: 112px; } }

.section--white { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); margin-bottom: 14px; }
.section-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead { font-size: 1.2rem; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--surface-2);
  color: var(--text);
}
.badge--gold { background: var(--gold-tint); color: var(--text); }
.badge--gold::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Accroche ---------- */
.hero { padding-block: 36px 72px; }
@media (min-width: 960px) { .hero { padding-block: 72px 112px; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}

.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--green-text); }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero .btn-row { margin-bottom: 22px; }
@media (max-width: 479px) {
  .hero .btn-row .btn { width: 100%; }
}

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.975rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--green-text); flex: none; }
.hero-points a { color: inherit; text-underline-offset: 3px; }

/* Illustration du parcours */
.journey {
  position: relative;
  margin: 0;
  padding: 26px 18px;
  border-radius: 28px;
  background:
    linear-gradient(var(--stage-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--stage);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
@media (prefers-color-scheme: dark) { .journey { border: 1px solid var(--line); } }
@media (min-width: 480px) { .journey { padding: 34px 30px; } }

.journey__path {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
}
.journey__path path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  opacity: 0.75;
}

.journey__cards { display: flex; flex-direction: column; gap: 16px; }

.jcard {
  width: 84%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  color: #183136;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.875rem;
  line-height: 1.35;
}
@media (min-width: 480px) { .jcard { width: 76%; padding: 16px 18px; font-size: 0.9375rem; } }
.jcard--q { align-self: flex-start; }
.jcard--s { align-self: flex-end; }
.jcard--n { align-self: flex-start; margin-left: 6%; }

.jcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.jcard__title { font-weight: 600; font-size: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--sapin { background: #e2efeb; color: #1f6b5c; }
.chip--petrol { background: #e6eef0; color: #183136; }
.chip--green { background: #e1f1e9; color: #1c7c54; }
.chip--gold { background: #fbf3dc; color: #6b5210; }
.chip--warn { background: #fdeee0; color: #8a4510; }

.checks { display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 9px; }
.box {
  width: 18px; height: 18px;
  flex: none;
  border: 2px solid #9fb2b5;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.box--on { background: #1f6b5c; border-color: #1f6b5c; }
.box--on::after {
  content: "";
  width: 8px; height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}

.mini-table { width: 100%; border-collapse: collapse; }
.mini-table td { padding: 5px 0; border-top: 1px solid #e3e9ea; }
.mini-table tr:first-child td { border-top: 0; }
.mini-table .qty { color: #4a5f65; text-align: right; padding-right: 10px; white-space: nowrap; }
.mini-table .price { width: 64px; }
.mini-table .price span {
  display: block;
  height: 20px;
  border: 1.5px dashed #b6c5c7;
  border-radius: 6px;
}
.jcard__foot { margin-top: 8px; font-size: 0.8125rem; color: #4a5f65; }

.jprice { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.jprice__label { font-size: 0.8125rem; color: #4a5f65; }
.jprice__old { color: #4a5f65; text-decoration: line-through; font-size: 0.875rem; }
.jprice__now {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1c7c54;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.jprice svg { width: 96px; height: 44px; flex: none; }
.spark { fill: none; stroke: #1c7c54; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark-dot { fill: #1c7c54; }

/* Animations d'entrée de l'illustration */
@media (prefers-reduced-motion: no-preference) {
  .journey .jcard { animation: card-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .journey .jcard--q { animation-delay: 0.15s; }
  .journey .jcard--s { animation-delay: 0.55s; }
  .journey .jcard--n { animation-delay: 0.95s; }
  .journey__path path { animation: dash 1.6s linear 0.2s both; }
  .spark { stroke-dasharray: 140; animation: draw 1.4s ease-out 1.3s both; }
  .spark-dot { animation: pop 0.4s ease-out 2.5s both; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes dash { from { opacity: 0; } to { opacity: 0.75; } }
@keyframes draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
.spark-dot { transform-origin: center; transform-box: fill-box; }

/* ---------- Où en êtes-vous ---------- */
.choices { display: grid; gap: 16px; }
@media (min-width: 820px) { .choices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.section--white .choice { background: var(--bg); }
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.choice__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
}
.choice__icon svg { width: 26px; height: 26px; }
.choice--soumio .choice__icon { background: var(--sapin-tint); color: var(--sapin-text); }
.choice--negotiume .choice__icon { background: var(--green-tint); color: var(--green-text); }
.choice--projefi .choice__icon { background: var(--surface-2); color: var(--muted); }
.choice__q { font-size: 0.95rem; color: var(--muted); margin-bottom: 4px; }
.choice h3 { font-size: 1.35rem; margin-bottom: 8px; }
.choice p { color: var(--muted); }
.choice .link-arrow { margin-top: auto; }
.choice--soumio .link-arrow { color: var(--sapin-text); }
.choice--negotiume .link-arrow { color: var(--green-text); }
.choice .badge { position: absolute; top: 24px; right: 22px; }

/* Frise des étapes */
.steps-title { font-size: 1.35rem; margin: 64px 0 24px; }
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 16px;
  align-content: start;
  padding-bottom: 28px;
}
.step:last-child { padding-bottom: 0; }
@media (max-width: 899px) {
  .step > :not(.step__num) { grid-column: 2; }
}
.step::before {
  /* trait vertical */
  content: "";
  position: absolute;
  left: 25px; top: 52px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step__num {
  grid-row: span 3;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 600;
  font-size: 1.15rem;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  position: relative;
  z-index: 1;
}
.step--soumio .step__num { border-color: var(--sapin); color: var(--sapin-text); }
.step--negotiume .step__num { background: var(--green); border-color: var(--green); color: #fff; }
.step--soon .step__num { border-style: dashed; color: var(--muted); }
.step__app { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 4px; }
.step--soumio .step__app { color: var(--sapin-text); }
.step--negotiume .step__app { color: var(--green-text); }
.step--soon .step__app { color: var(--muted); }
.step h4 { font-size: 1.2rem; }
.step p { margin: 2px 0 0; color: var(--muted); font-size: 1rem; }
.step--soon h4 { color: var(--muted); }

.bridge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.bridge svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .step::before { left: 52px; right: -24px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .step:last-child::before { display: none; }
  .step--soon::before { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
  .step__num { grid-row: auto; margin-bottom: 14px; }
  .step:nth-child(3)::before { background: var(--gold); }
}

/* ---------- Sections application ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.app-grid > *, .hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .app-grid--reverse .app-visual { order: -1; }
}

.app-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.app-tag__dot {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
}
.app-tag__dot svg { width: 20px; height: 20px; }
.app-tag__dot img { width: 26px; height: auto; }
.app-tag--soumio { color: var(--sapin-text); }
.app-tag--soumio .app-tag__dot { background: var(--sapin); }
.app-tag--negotiume { color: var(--text); }
.app-tag--negotiume .app-tag__dot { background: #ffffff; border: 1px solid var(--line); }

.app-copy h2 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); margin-bottom: 16px; }
.app-copy .lead { margin-bottom: 10px; }
.for-whom { font-size: 0.975rem; color: var(--muted); margin-bottom: 26px; }
.for-whom strong { color: var(--text); font-weight: 600; }

.benefits { display: grid; gap: 18px; margin-bottom: 32px; }
.benefit { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.benefit__icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-top: 1px;
}
.benefit__icon svg { width: 16px; height: 16px; }
.benefits--soumio .benefit__icon { background: var(--sapin-tint); color: var(--sapin-text); }
.benefits--negotiume .benefit__icon { background: var(--green-tint); color: var(--green-text); }
.benefit h3 { font-size: 1.1rem; margin-bottom: 3px; }
.benefit p { margin: 0; color: var(--muted); }

.section--soumio {
  background:
    radial-gradient(900px 520px at 95% 45%, var(--sapin-tint), transparent 70%),
    var(--surface);
}
.section--negotiume { background: var(--bg); }

/* Maquettes d'écran */
.mock {
  position: relative;
  margin: 0;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.875rem;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock__bar span { margin-left: 10px; font-size: 0.8125rem; color: var(--muted); }
.mock__body { padding: 18px; }
@media (min-width: 480px) { .mock__body { padding: 22px; } }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mock__head strong { font-size: 1.05rem; }
.mock__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--muted); padding-left: 0; }
.cmp thead th { font-weight: 600; font-size: 0.8125rem; color: var(--text); }
.cmp tfoot td { font-weight: 600; color: var(--text); border-bottom: 0; padding-top: 10px; }
.cmp .best { background: var(--sapin-tint); }
.cmp thead .best { border-radius: 8px 8px 0 0; color: var(--sapin-text); }
.cmp tfoot .best { border-radius: 0 0 8px 8px; color: var(--sapin-text); }
.cmp .flag { color: #b45d12; }
@media (prefers-color-scheme: dark) { .cmp .flag { color: #f0a868; } }
.cmp-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
@media (max-width: 479px) {
  .cmp { font-size: 0.78rem; }
  .cmp th, .cmp td { padding: 7px 4px; }
  .mock__body { padding: 16px 14px; }
}

.alerts { display: grid; gap: 8px; margin-top: 14px; }
.alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fdf1e6;
  color: #6e3a0f;
  font-size: 0.8125rem;
}
@media (prefers-color-scheme: dark) { .alert { background: #3a2716; color: #f6d2b0; } }
.alert svg { width: 16px; height: 16px; flex: none; }
.alert > span:not(.alert__act) { flex: 1 1 150px; }
.alert b { font-weight: 600; }
.alert .alert__act {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Maquette enchère */
.auction { display: grid; gap: 14px; }
.auction__top { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.auction__label { font-size: 0.8125rem; color: var(--muted); }
.auction__price {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--green-text);
  font-variant-numeric: tabular-nums;
}
.auction__start { font-size: 0.875rem; color: var(--muted); }
.auction__start s { text-decoration-thickness: 1px; }
.timer {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.timer strong { display: block; font-size: 1.15rem; }
.chart { width: 100%; height: auto; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: var(--green-tint); }
.chart .line { fill: none; stroke: var(--green-text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .floor { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart text { font-family: inherit; font-size: 11px; fill: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .chart .line { stroke-dasharray: 600; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease-out; }
  .chart .area { transition: opacity 0.8s ease-out 1.2s; }
  .anim [data-live]:not(.is-live) .chart .line { stroke-dashoffset: 600; }
  .anim [data-live]:not(.is-live) .chart .area { opacity: 0; }
}

.ranks { display: grid; gap: 6px; }
.rank {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}
.rank b {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.8125rem;
}
.rank--1 b { background: var(--green); color: #fff; }
.rank span:last-child { font-weight: 600; }

.peek {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
}
.peek__rank {
  flex: none;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--petrol);
  color: #fff;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}
@media (prefers-color-scheme: dark) { .peek__rank { background: #e8efef; color: #183136; } }
.peek__rank small { display: block; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.peek p { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.peek strong { display: block; color: var(--text); font-size: 0.875rem; }

.fineprint { font-size: 0.95rem; color: var(--muted); margin: -12px 0 28px; }
.fineprint a { color: inherit; text-underline-offset: 3px; }

/* ---------- Projefi ---------- */
.projefi {
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  border-radius: 24px;
  border: 1.5px dashed var(--line);
  background: var(--surface);
}
@media (min-width: 820px) {
  .projefi { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 40px 44px; }
}
.projefi__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
}
.projefi__icon svg { width: 32px; height: 32px; }
.projefi h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 8px 0 8px; }
.projefi p { margin: 0; color: var(--muted); max-width: 620px; }

/* ---------- Exemple chiffré ---------- */
.example {
  border-radius: 28px;
  background: var(--petrol);
  color: #e8efef;
  padding: 36px 20px;
  position: relative;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) { .example { background: #142a2e; border: 1px solid var(--line); } }
@media (min-width: 640px) { .example { padding: 52px 44px; } }
@media (min-width: 1024px) { .example { padding: 64px 64px; } }

.example .eyebrow { color: #c9d8da; }
.example h2 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); color: #fff; margin-bottom: 12px; }
.example .section-head p { color: #c9d8da; }
.example-tag {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #183136;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 479px) {
  .example-tag { position: static; display: inline-block; margin-bottom: 18px; }
}

.ex-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .ex-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

.ex-steps { display: grid; gap: 0; margin: 0; font-variant-numeric: tabular-nums; }
.ex-steps dt, .ex-steps dd { margin: 0; }
.ex-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ex-row span { color: #c9d8da; }
.ex-row strong { font-size: 1.25rem; font-weight: 600; color: #fff; white-space: nowrap; }
.ex-row--save strong { color: #6fd6a6; }
.ex-row--fee strong { color: var(--gold); }
.ex-row--keep { border-bottom: 0; padding-top: 18px; }
.ex-row--keep span { color: #fff; font-weight: 500; font-size: 1.1rem; }
.ex-row--keep strong { font-size: clamp(1.8rem, 5vw, 2.4rem); color: #6fd6a6; }

.ex-visual h3 { font-size: 1.05rem; font-weight: 500; color: #c9d8da; margin-bottom: 16px; }
.offers { display: grid; gap: 10px; margin-bottom: 36px; }
.offer {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #c9d8da;
}
.offer__bar {
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
  white-space: nowrap;
}
.offer--a .offer__bar { width: 100%; }
.offer--b .offer__bar { width: 93%; }
.offer--c .offer__bar { width: 88%; background: rgba(255, 255, 255, 0.3); }
.offer--n .offer__bar { width: 75%; background: #1c7c54; }
.offer--n { color: #fff; font-weight: 500; }

.split-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: #c9d8da; margin-bottom: 8px; }
.split {
  display: flex;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.split__keep { flex: 80; background: #1c7c54; color: #fff; display: flex; align-items: center; padding-left: 14px; }
.split__fee { flex: 20; background: var(--gold); color: #183136; display: flex; align-items: center; justify-content: center; }
.split-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font-size: 0.875rem; color: #c9d8da; }
.ex-foot { margin: 28px 0 0; font-size: 0.875rem; color: #a9bcbf; }

@media (prefers-reduced-motion: no-preference) {
  .offers .offer__bar { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .offers.is-pending .offer__bar { transform: scaleX(0.15); }
  .offers .offer--b .offer__bar { transition-delay: 0.1s; }
  .offers .offer--c .offer__bar { transition-delay: 0.2s; }
  .offers .offer--n .offer__bar { transition-delay: 0.5s; }
}

/* ---------- Tarifs ---------- */
.pricing { display: grid; gap: 20px; }
@media (min-width: 820px) { .pricing { grid-template-columns: 1fr 1fr; gap: 24px; } }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .price-card { padding: 40px 38px; } }
.price-card--main { border: 2px solid var(--text); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 6px;
}
.price-amount strong { font-size: clamp(2.6rem, 7vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.price-amount span { color: var(--muted); font-size: 1.05rem; }
.price-sub { color: var(--muted); margin-bottom: 24px; }
.price-list { display: grid; gap: 10px; margin-bottom: 28px; }
.price-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.price-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green-text); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 479px) { .price-card .btn { align-self: stretch; } }
.price-alt {
  margin: -8px 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.975rem;
}
.price-alt strong { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Appel final ---------- */
#contact { padding-top: 0; }
.final {
  text-align: center;
  padding: 48px 20px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--gold-tint), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .final { padding: 72px 48px; } }
.final h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 760px; margin: 0 auto 16px; }
.final > p { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 28px; }
.final .btn-row { justify-content: center; }
@media (max-width: 479px) { .final .btn-row .btn { width: 100%; } }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-line a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.contact-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-line svg { width: 22px; height: 22px; color: var(--accent-text); }

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { font-size: 1.3rem; margin-bottom: 10px; }
.site-footer .brand img { height: 28px; }
.site-footer h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer a:not(.brand) { text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:not(.brand):hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.is-pending { opacity: 0; transform: translateY(24px); }
}

/* ---------- Page 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.notfound .notfound__code {
  font-size: clamp(4.5rem, 18vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.notfound h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 14px; }
.notfound p { color: var(--muted); font-size: 1.15rem; max-width: 520px; margin: 0 auto 28px; }
.notfound .btn-row { justify-content: center; }

.site-footer > .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
