/* Hatfor : fond gris très clair, grotesque noire et grasse, cartes gris clair arrondies, boutons noirs en pilule. */
:root {
  --bg: #f4f4f5;
  --card: #e9e9eb;
  --card-2: #dfdfe2;
  --ink: #0b0b0c;
  --muted: #4f4f56;
  --line: #cfcfd4;
  --ok: #1f9d55;
  --warn: #9a5b00;
  --radius: 24px;
  --font: "Helvetica Neue", "Inter", "Arial Nova", Arial, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; }
.link { font-weight: 700; text-underline-offset: 3px; }
.center-text { text-align: center; margin-inline: auto; max-width: 46rem; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.5em;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 800 1.05rem/1 var(--font);
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2a2a2e; }
.btn-lg { min-height: 58px; padding: .8em 1.8em; font-size: 1.25rem; }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }

/* ---------- en-tête ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1280px; margin: 0 auto; padding: 22px 24px; }
.logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.04em; }
.logo img { height: 32px; width: auto; display: block; }
.nav { display: flex; gap: 2.4rem; }
.nav a { font-weight: 700; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-right { min-width: 110px; display: flex; justify-content: flex-end; }
.stepper { display: flex; list-style: none; margin: 0; padding: 0; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 150px; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--ink); }
.stepper .dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.stepper .done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper .done .dot svg { width: 14px; height: 14px; }
.stepper .current .dot { background: var(--ink); border-color: var(--ink); }
.stepper .current { color: var(--ink); font-weight: 800; }

/* ---------- mise en page ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 8px 24px 64px; }
main.center { max-width: 760px; padding-top: 32px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; }
.card.narrow { max-width: 620px; margin: 0 auto; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: 12px 0 28px; }
.title-row h1 { margin: 0; }
.actions { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.row-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin: .6rem 0 0; }
.stack { display: grid; gap: 10px; margin: 0 0 1rem; }
label { font-weight: 700; }
input[type=email], input[type=text], input[type=search] { width: 100%; min-height: 52px; padding: .6em 1.1em; border-radius: 16px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 1.05rem var(--font); }
input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.stack .btn { justify-self: start; margin-top: 6px; }
.error { color: #a1131b; font-weight: 700; }
.ok { font-weight: 700; }
.note { background: var(--card); border-radius: 16px; padding: 14px 18px; color: var(--muted); }
.beta { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; color: var(--muted); background: var(--card); padding: .45em 1em; border-radius: 999px; }
.beta-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex: none; }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: 0; background: var(--card-2); border-radius: 999px; padding: .2em .7em; vertical-align: middle; }
.tag-on { background: var(--ink); color: #fff; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { background: var(--ink); color: #fff; border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }

/* Casquettes : photos détourées (fond transparent, ombre gardée), posées sur les cartes grises. */
.cap { position: relative; }
.cap-patches { position: absolute; right: 10%; top: 33%; display: grid; gap: 2px; width: 16%; }
.cap-patches img { transform: rotate(-8deg); }
.cap-sm { width: 150px; flex: none; }
.cap-md { width: 260px; flex: none; }
.cap-lg { width: min(420px, 100%); margin: 0 auto; }

/* ---------- 1. accueil ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; min-height: 520px; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); letter-spacing: -0.05em; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: #2c2c31; max-width: 34rem; }
.hero .btn { margin: .4rem 0 1.4rem; }
.hero-caps { position: relative; aspect-ratio: 1.15; }
.hc { position: absolute; width: 46%; }
.hc0 { left: 2%; top: 0; width: 46%; }
.hc1 { right: 6%; top: -3%; width: 44%; }
.hc2 { right: -5%; top: 26%; width: 42%; }
.hc3 { left: 10%; top: 18%; width: 72%; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.step { text-align: center; padding: 34px 26px; }
.step-icon svg, .step-icon img { width: auto; height: 64px; margin: 0 auto 14px; display: block; }
.step h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.step p { color: var(--muted); margin: 0; }
.pricing { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 28px; align-items: center; }
.price { margin: 0; }
.price strong { font-size: 3.6rem; letter-spacing: -0.05em; font-weight: 800; }
.price span { display: block; color: var(--muted); font-weight: 600; }

/* ---------- 2. sélecteur ---------- */
.search { position: relative; flex: 0 1 560px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 50px; border-radius: 999px; background: transparent; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.job a { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 18px; padding: 14px 22px 20px; text-decoration: none; border: 2.5px solid transparent; }
.job a:hover { border-color: var(--line); }
.job-active a { border-color: var(--ink); background: #f0f0f2; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.job img { width: 82%; margin: 0 auto; }
.job-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.1; margin-top: .3rem; }
.job-tag { color: var(--muted); }
.badge { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.badge svg { width: 22px; height: 22px; }
.pill { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; background: var(--bg); border-radius: 999px; padding: .35em .8em; }
.pill svg { width: 1em; height: 1em; }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.notify { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }

/* ---------- 3. spécialités ---------- */
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 32px; align-items: start; }
.spec-cap { padding: 32px 36px 40px; position: sticky; top: 16px; }
.spec-cap h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 1rem; }
.spec-cap p { font-size: 1.3rem; margin: 0; }
.spec-form h1 { margin-bottom: .45em; }
.spec-form h2 { margin-top: 1.6rem; }
.tiles { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile-body { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 18px 14px 16px; background: var(--card); border: 2.5px solid transparent; border-radius: 18px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-align: center; height: 100%; }
.tile img { width: 96px; }
.patch-blank { width: 96px; height: 96px; border-radius: 50%; background: #1d2a4a; color: #efe7d4; display: grid; place-items: center; }
.patch-blank { font: 700 44px/1 Georgia, "Times New Roman", serif; }
.tile .badge { display: none; }
.tile input:checked + .tile-body { border-color: var(--ink); background: #f0f0f2; }
.tile input:checked + .tile-body .badge { display: grid; }
.tile input:focus-visible + .tile-body { outline: 3px solid var(--ink); outline-offset: 3px; }
.skills { list-style: none; margin: 0; padding: 6px 22px; border-radius: 18px; }
.skills li { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; }
.skills li:last-child { border-bottom: 0; }
.skill-icon svg { width: 28px; height: 28px; }
.skills .tick { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.skills .tick svg { width: 16px; height: 16px; }

/* ---------- 4. contenu ---------- */
.summary { display: flex; align-items: center; gap: 28px; padding: 14px 28px; margin: 16px 0; }
.summary-text { flex: 1; border-left: 2px solid var(--line); padding-left: 28px; }
.summary-text h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: .2em; }
.summary-text p { margin: 0; font-size: 1.15rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.8fr) minmax(0, 1.3fr); gap: 18px; align-items: start; margin-top: 18px; }
.procs ul { list-style: none; padding: 0; margin: 0; }
.procs a { display: flex; gap: .9rem; align-items: center; padding: .85rem .9rem; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
.procs svg { width: 28px; height: 28px; }
.procs a[aria-current] { background: var(--ink); color: #fff; border-bottom-color: transparent; }
.proc h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.proc-summary { font-size: 1.05rem; }
.timeline { list-style: none; counter-reset: s; margin: 1rem 0 1.4rem; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--ink); }
.timeline li { counter-increment: s; position: relative; display: flex; gap: 1rem; align-items: center; padding: .55rem 0; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.2; }
.timeline li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1rem; position: relative; }
.side { display: grid; gap: 18px; }
.side .card { padding: 22px 24px; }
.data { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.data li { display: flex; gap: .7rem; align-items: baseline; }
.dot-ok { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(1px); }
.h-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.h-row h2 { margin: 0 0 .4em; }

/* ---------- 5. paiement et lien ---------- */
.checkout { display: flex; gap: 28px; align-items: center; }
.price-line strong { white-space: nowrap; }
.price-line { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.ready { text-align: center; }
.ready h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-top: .2em; }
.urlbox { display: flex; gap: 18px; align-items: center; max-width: 1000px; margin: 1.5rem auto 0; padding: 18px 24px; }
.urlbox input { flex: 1; font: 500 1.2rem ui-monospace, "SF Mono", Menlo, monospace; }
.ready-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
.tablist { display: flex; flex-wrap: wrap; }
.tablist > input { position: absolute; opacity: 0; pointer-events: none; }
.tablist > label { position: relative; z-index: 1; padding: .5rem 1.4rem .8rem; font-size: 1.5rem; font-weight: 600; color: var(--muted); cursor: pointer; letter-spacing: -0.02em; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tablist > input:checked + label { color: var(--ink); font-weight: 800; border-bottom-color: var(--ink); }
.tablist > input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.panels { flex-basis: 100%; padding-top: 22px; border-top: 2px solid var(--line); margin-top: -2px; }
.panel { display: none; }
#tab-claude:checked ~ .panels .panel-claude, #tab-chatgpt:checked ~ .panels .panel-chatgpt, #tab-autre:checked ~ .panels .panel-autre { display: block; }
.howto { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 12px; }
.howto li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 18px; font-size: 1.1rem; font-weight: 600; }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.inside .checks svg { background: var(--ok); }

/* ---------- 6. compte ---------- */
main.wide { max-width: 1320px; }
.hat-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.hat-row { display: flex; gap: 24px; align-items: center; padding: 16px 28px; }
.hat-info h3 { font-size: 1.7rem; }
.hat-info p { margin: .2rem 0; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.account-grid h2 { font-size: 1.5rem; }
.account-grid form { margin-top: .6rem; }
.account-grid form + h2 { margin-top: 1.6rem; }
.grant { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.grant form { margin: 0; }

/* ---------- téléphone et tablette ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1.2rem; }
  .jobs { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .pricing .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .top { padding: 16px; flex-wrap: wrap; }
  .nav { display: none; }
  .top-steps .stepper { order: 3; width: 100%; justify-content: center; }
  .stepper li { width: 33%; font-size: .9rem; }
  .top-right { min-width: 0; }
  main { padding: 4px 16px 48px; }
  .card { padding: 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-caps { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps3, .pricing, .jobs, .spec, .content-grid, .ready-grid, .account-grid, .side, .howto { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .job a { padding: 10px 14px 14px; }
  .job-name { font-size: 1.1rem; }
  .job-tag { font-size: .88rem; }
  .pill { position: static; align-self: flex-start; margin-top: .5rem; font-size: .8rem; background: var(--bg); }
  .badge { width: 30px; height: 30px; top: 10px; right: 10px; }
  .spec-cap { position: static; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 0 16px; padding: 16px 20px; }
  .spec-cap .cap { grid-row: span 2; }
  .spec-cap h2 { margin: 0; font-size: 1.6rem; }
  .spec-cap p { font-size: 1rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile img, .patch-blank { width: 72px; height: auto; }
  .patch-blank { height: 72px; }
  .summary { flex-wrap: wrap; padding: 16px 20px; gap: 14px; }
  .summary .cap-sm { width: 100px; }
  .summary-text { border-left: 0; padding-left: 0; flex-basis: calc(100% - 120px); }
  .summary-action { flex-basis: 100%; }
  .summary-action .btn { width: 100%; }
  .notify { grid-template-columns: 1fr; }
  .notify-cap { width: 180px; margin: 0 auto; }
  .checkout { flex-direction: column; align-items: stretch; }
  .checkout .cap-md { width: 200px; margin: 0 auto; }
  .checkout .btn { width: 100%; }
  .urlbox { flex-direction: column; align-items: stretch; padding: 16px; }
  .urlbox input { font-size: .95rem; }
  .tablist > label { font-size: 1.15rem; padding: .5rem .8rem .7rem; }
  .hat-row { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .hat-row .cap-sm { width: 120px; }
  .actions .btn { flex: 1; }
  .title-row { margin: 4px 0 18px; }
  .search { flex-basis: 100%; }
}
.checkout h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
