/* Charte « Menthe » — mêmes jetons que crates/frontend/input.css */
:root {
  --bg: #f5f3ec; --surface: #fff; --text: #0b1f17; --text-2: #4a5d54; --text-3: #5e7268;
  --line: rgba(18, 38, 28, .11); --line-accent: rgba(11, 122, 75, .28);
  --brand: #0b7a4b; --brand-dark: #085e3a; --accent: #0b7a4b; --tint: rgba(11, 122, 75, .09);
  --error: #b91c1c; color-scheme: light;
}
:root.dark {
  --bg: #0a1712; --surface: #0f2119; --text: #ecf7f0; --text-2: #9fb5a9; --text-3: #85a092;
  --line: rgba(159, 181, 169, .14); --line-accent: rgba(74, 222, 128, .28);
  --accent: #4ade80; --tint: rgba(74, 222, 128, .1);
  --error: #fca5a5; color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { font-family: 'Geist', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased }
a { color: inherit }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) }
h1, h2, h3 { font-weight: 600; letter-spacing: -.028em; line-height: 1.12; text-wrap: balance }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem) }
h3, h2.h3 { font-size: 1.15rem; letter-spacing: -.015em }

header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none }
.logo svg { width: 32px; height: 32px }
.tools { display: flex; align-items: center; gap: 8px }
.tools select, .tools button { font: inherit; font-size: .85rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; height: 38px; cursor: pointer }
.tools select { padding: 0 10px }
.tools button { width: 38px }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 56px 96px }
.hero > * { min-width: 0 }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem) }
h1 em { font-style: normal; color: var(--accent) }
.lead { margin-top: 22px; font-size: 1.125rem; color: var(--text-2); max-width: 52ch }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s }
.btn-primary { background: var(--brand); color: #fff }
.btn-primary:hover { background: var(--brand-dark) }
.btn-ghost { border-color: var(--line-accent); color: var(--accent) }
.btn-ghost:hover { background: var(--tint) }
.btn:disabled { opacity: .65; cursor: wait }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 24px 60px -32px rgba(8, 60, 38, .35) }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px }
.panel-head strong { letter-spacing: -.015em }
.panel-head span { font-size: .75rem; font-weight: 500; color: var(--text-3) }
.panel ul { list-style: none }
.panel li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 18px; border-top: 1px solid var(--line) }
.panel li:first-child { border-top: 0 }
.task b { display: block; font-weight: 600; font-size: .98rem }
.task small { display: block; font-size: .83rem; color: var(--text-2) }
.status { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 4px 12px; background: var(--tint); color: var(--accent) }
.status.wait { background: transparent; border: 1px solid var(--line-accent) }

.band { background: var(--surface); border-block: 1px solid var(--line) }
section .wrap.block { padding-block: 88px }
.intro { max-width: 60ch }
.intro p { margin-top: 16px; color: var(--text-2) }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; counter-reset: step }
.steps li { counter-increment: step; border-top: 2px solid var(--line-accent); padding-top: 20px }
.steps li::before { content: counter(step); display: block; font-weight: 600; font-size: 1.5rem; color: var(--accent); margin-bottom: 8px }
.steps p { margin-top: 8px; color: var(--text-2); font-size: .96rem }

.msg { min-height: 1.65em; margin-top: 12px; font-weight: 500; font-size: .93rem }
.msg.ok { color: var(--accent) }
.msg.err { color: var(--error) }
.note { font-size: .83rem; color: var(--text-3) }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: .85rem; color: var(--text-3) }
footer nav { display: flex; flex-wrap: wrap; gap: 20px }
footer a { text-decoration: none }
footer a:hover { color: var(--accent) }

.tools nav { display: flex; gap: 4px; margin-right: 10px }
.tools nav a { text-decoration: none; font-weight: 500; font-size: .93rem; padding: 7px 12px; border-radius: 999px }
.tools nav a:hover, .tools nav a[aria-current="page"] { background: var(--tint); color: var(--accent) }

.domains { display: grid; gap: 16px; list-style: none }
.domains li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px }
.domains p { margin-top: 8px; color: var(--text-2); font-size: .96rem }

.solution { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-top: 48px }
.solution > * { min-width: 0 }
.solution .name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 2rem }
.solution p { margin-top: 16px; color: var(--text-2); max-width: 54ch }
.solution .actions { margin-top: 28px }
.solution .panel { background: var(--bg) }

form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin-top: 36px }
.field { display: grid; gap: 6px; min-width: 0 }
.field.full, form.contact .send { grid-column: 1 / -1 }
.field label { font-weight: 500; font-size: .9rem }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px }
.field textarea { min-height: 150px; resize: vertical }
form.contact .send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px }
form.contact .send .btn { flex: 0 0 auto }
form.subscribe { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; max-width: 560px; margin-top: 32px }
form.subscribe .field { flex: 1 1 260px }
.band .field input { background: var(--bg) }
#nl-msg + .note { max-width: 56ch }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }

.page { min-height: 60vh }
.page h1 + p { margin-top: 20px; color: var(--text-2); max-width: 56ch; font-size: 1.1rem }
.page .actions { margin-top: 32px }

@media (max-width: 860px) {
  .hero, .solution { grid-template-columns: 1fr; gap: 40px }
  .hero { padding-block: 32px 64px }
  .steps, form.contact { grid-template-columns: 1fr }
  section .wrap.block { padding-block: 64px }
}
@media (max-width: 560px) {
  header .wrap { flex-wrap: wrap }
  .tools { width: 100%; flex-wrap: wrap }
  .tools nav { margin-right: auto; margin-left: -12px }
}
@media (max-width: 420px) {
  .tools { gap: 6px; flex-wrap: nowrap }
  .tools nav { gap: 0; margin-left: -8px }
  .tools nav a { padding: 7px 8px; font-size: .86rem }
  .tools select { padding: 0 4px }
}
/* Thin custom scrollbar */
/* Chrome ignores ::-webkit-scrollbar as soon as scrollbar-width/color are set,
   so those standard properties are reserved for the other browsers. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(156, 163, 175, .35) transparent }
  html.dark { scrollbar-color: rgba(75, 85, 99, .45) transparent }
}
::-webkit-scrollbar { width: 4px; height: 4px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background-color: rgba(156, 163, 175, .35); border-radius: 2px }
::-webkit-scrollbar-thumb:hover { background-color: rgba(156, 163, 175, .65) }
.dark ::-webkit-scrollbar-thumb { background-color: rgba(75, 85, 99, .45) }
.dark ::-webkit-scrollbar-thumb:hover { background-color: rgba(75, 85, 99, .75) }

.legal [data-lang] { display: none }
html[lang="fr"] .legal [data-lang="fr"], html[lang="en"] .legal [data-lang="en"], html[lang="de"] .legal [data-lang="de"] { display: block }
.legal article { max-width: 70ch; margin-inline: auto }
.legal h2 { font-size: 1.15rem; letter-spacing: -.01em; margin-top: 36px }
.legal p { margin-top: 10px; color: var(--text-2) }
.legal h1 + p { font-size: .85rem; color: var(--text-3) }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
