/* Content RH : site public. Jetons tirés du Design System (vert forêt, mousse, ocre). */
:root {
  --surface: #f5f6f2;
  --raised: #ffffff;
  --line: #d6dcd2;
  --ink: #15231b;
  --muted: #4a574d;
  --brand: #213a2c;
  --on-brand: #ffffff;
  --band: #213a2c;
  --on-band: #f5f6f2;
  --band-muted: #c7d3c6;
  --band-line: #3b5445;
  --soft: #dde6d6;
  --ocre: #c08a3e;
  --ok: #1d4f57;
  --ok-soft: #dcecee;
  --alert: #b42318;
  --alert-soft: #fde8e6;
  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #101a14; --raised: #17241c; --line: #2a3a30; --ink: #e9eee6; --muted: #a8b5aa;
    --brand: #8fb89a; --on-brand: #101a14; --band: #17291f; --band-line: #2a3a30;
    --soft: #22362a; --ok: #7fc0c9; --ok-soft: #16343a; --alert: #f2877d; --alert-soft: #3a1512;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #101a14; --raised: #17241c; --line: #2a3a30; --ink: #e9eee6; --muted: #a8b5aa;
  --brand: #8fb89a; --on-brand: #101a14; --band: #17291f; --band-line: #2a3a30;
  --soft: #22362a; --ok: #7fc0c9; --ok-soft: #16343a; --alert: #f2877d; --alert-soft: #3a1512;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; caret-color: var(--brand); font-variant-numeric: tabular-nums; }
::selection { background: var(--soft); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--raised); color: var(--ink); padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 16px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s cubic-bezier(.16,1,.3,1), color .2s, border-color .2s, transform .2s cubic-bezier(.16,1,.3,1); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--ink); color: var(--surface); }
.btn-light { background: var(--on-band); color: #15231b; }
.btn-light:hover { background: #ffffff; color: #15231b; }
.btn-ghost { border-color: var(--band-muted); color: var(--on-band); }
.btn-ghost:hover { background: rgba(245, 246, 242, 0.1); color: var(--on-band); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--on-brand); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: var(--band); color: var(--on-band); border-bottom: 1px solid var(--band-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-band); text-decoration: none; }
.logo:hover { color: var(--on-band); }
.logo svg { width: 40px; height: 40px; }
.wordmark { font: 700 28px/1 var(--display); letter-spacing: -0.03em; color: inherit; }
.wordmark small { font-size: .62em; font-weight: 600; letter-spacing: 0; margin-left: .18em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--on-band); text-decoration: none; font-weight: 500; padding: 12px; border-radius: 999px; }
.nav a:not(.btn):hover { background: rgba(245, 246, 242, 0.1); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--band-muted); border-radius: 999px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--on-band); color: #15231b; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-width: 240px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
.menu nav a { color: var(--ink); text-decoration: none; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.menu nav a:hover { background: var(--soft); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } .wordmark { font-size: 24px; } .logo svg { width: 34px; height: 34px; } }

/* Héros */
.hero { background: var(--band); color: var(--on-band); padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; color: var(--on-band); max-width: 14ch; }
.slogan { margin-top: 20px; font: 600 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--display); color: var(--soft); }
:root[data-theme="dark"] .slogan { color: var(--band-muted); }
.lead { margin-top: 16px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--band-muted); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pilot { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--band-muted); }
.pilot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ocre); flex: none; }
.chat { background: var(--raised); color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 28px 56px -28px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 12px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chat-head strong { font: 600 18px/1.2 var(--display); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 600; }
.pill svg { width: 14px; height: 14px; }
.bubble { padding: 12px 14px; border-radius: 16px; font-size: 16px; line-height: 1.5; max-width: 92%; }
.bubble.q { align-self: flex-end; background: var(--soft); }
.bubble.a { border: 1px solid var(--line); }
.fict { font-size: 15px; color: var(--band-muted); margin-top: 10px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* Sections */
section { scroll-margin-top: 88px; }
.sec { padding-block: clamp(64px, 9vw, 112px) 0; }
.sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; max-width: 24ch; }
.sec .intro { margin-top: 14px; color: var(--muted); max-width: 62ch; font-size: 18px; }
.features { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.feature { padding-top: 18px; border-top: 2px solid var(--ink); }
.feature h3 { font-size: 22px; line-height: 1.25; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.feature.star { border-top-color: var(--ocre); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; gap: 28px; } }

.band-soft { margin-top: clamp(56px, 7vw, 88px); background: var(--soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.band-soft h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; line-height: 1.5; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
@media (max-width: 860px) { .band-soft { grid-template-columns: 1fr; } }

.strip { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line); background: var(--raised); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.strip h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; max-width: 32ch; }
.strip p { margin-top: 10px; color: var(--muted); max-width: 64ch; }

/* Tarifs */
.prices { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.price.featured { border: 2px solid var(--brand); }
.price h3 { font-size: 24px; }
.price .who { color: var(--muted); font-size: 16px; }
.amount { font: 600 40px/1 var(--display); letter-spacing: -0.02em; }
.amount span { font: 400 16px/1.2 var(--sans); color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; margin: 0; padding: 0; }
.price li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.note { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 90ch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* Formulaire */
.start { padding-block: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.start h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
.start .intro { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.form { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input { height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 17px/1 var(--sans); transition: border-color .2s; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover { border-color: var(--muted); }
.field input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: var(--alert); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; width: 100%; }
.form .small { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.status { grid-column: 1 / -1; border-radius: 12px; padding: 14px 16px; font-size: 16px; display: none; }
.status.show { display: block; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.err { background: var(--alert-soft); color: var(--alert); }
.status.info { background: var(--soft); color: var(--ink); }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; }
.foot .logo { color: var(--brand); }
.foot .logo svg { width: 30px; height: 30px; }
.foot .wordmark { font-size: 20px; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* Page texte (confidentialité) */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; }
.doc .date { margin-top: 12px; color: var(--muted); }
.doc h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 40px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; max-width: 70ch; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.todo { background: var(--alert-soft); color: var(--alert); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
