/* 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;
  /* Comparatif : toujours avec une icône (coche, croix, tiret) et le texte, jamais la couleur seule. AA sur blanc. */
  --yes: #15803d;
  --no: #b42318;
  --partial: #b45309;
  /* Teinte du métier : neutre hors contexte de métier ; un bloc [data-tint] la reçoit de /caps.css (catalog.ts). */
  --hat: var(--ink);
  --hat-soft: var(--card);
  --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; }
[hidden] { display: none !important; }
.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); }
.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; }
/* Écussons : gabarit commun ; emplacements par casquette dans /caps.css (généré depuis catalog.ts). */
.cap-patches { position: absolute; inset: 0; pointer-events: none; }
.patch { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #1d2a4a; color: #efe7d4; container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(10, 14, 28, .55), 0 1px 1.5px rgba(0, 0, 0, .45), 0 2px 5px rgba(0, 0, 0, .2); }
.patch img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.2; }
.patch::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: max(1px, 2.4cqw) dashed rgba(239, 231, 212, .78); }
.patch-letter { font: 700 54cqw/1 Georgia, "Times New Roman", serif; }
.patch-more span { font: 800 36cqw/1 var(--font); letter-spacing: -0.03em; }
.cap .patch { position: absolute; left: var(--x); top: var(--y); width: var(--patch);
  transform: translate(-50%, -50%) rotate(var(--r)) scaleX(.92); transition: left .25s ease, top .25s ease; }
.patch-in { animation: patch-in .32s cubic-bezier(.2, .8, .3, 1.2); }
.patch-out { animation: patch-out .2s ease-in forwards; }
@keyframes patch-in { from { scale: 1.6; opacity: 0; } 55% { opacity: 1; } }
@keyframes patch-out { to { scale: .55; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .patch-in, .patch-out { animation: none; } .cap .patch { transition: none; } }
.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-cap .cap-lg { width: min(500px, 100%); }
.intents-label { font-weight: 800; margin: .4rem 0 .5rem; }
.intents { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.intents a { display: inline-block; padding: .55em 1.05em; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.intents li:first-child a, .intents a:hover { background: var(--ink); color: #fff; }
.hero .small { margin: 0 0 1rem; }
.home-sec { margin: 80px 0; }
.home-sec > h2, .patches-sec h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.05; margin: 0 0 .35em; }
.home-sec > .lead, .patches-sec .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #2c2c31; max-width: 40rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare h3 { font-size: 1.35rem; margin: 0; }
.compare .muted { margin: 0; }
.chat { background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 12px; margin: 14px 0; }
.bubble { margin: 0; padding: .7em 1em; border-radius: 14px; background: var(--bg); max-width: 88%; }
.bubble.me { justify-self: end; background: var(--card); }
.bubble.ai p { margin: 0 0 .5em; }
.code-lines i { display: block; height: 9px; border-radius: 5px; background: var(--card-2); margin: 8px 0; width: 82%; }
.code-lines i:nth-child(2) { width: 64%; }
.code-lines i:nth-child(3) { width: 74%; }
.questions { margin: 0; padding-left: 1.3em; display: grid; gap: .3rem; }
.demo { display: grid; gap: 14px; background: #fff; }
.demo .chat { margin: 0; padding: 0; }
.demo-tag { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--muted); margin: 0; }
.demo-tag img { width: 44px; height: 44px; }
.demo-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 6px; }
.demo-steps li { counter-increment: s; display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: 14px; font-weight: 700; }
.demo-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.demo-steps li > span:first-child { flex: 1; }
.demo-steps li.doing { background: var(--bg); }
.demo-steps li.todo { color: var(--muted); }
.demo-state.done svg { display: block; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; }
.demo-state.doing { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-state.doing { animation: none; } }
.hat-cards { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hat-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; border: 2.5px solid transparent; }
.hat-card:hover { border-color: var(--line); }
.hat-card img { width: 72%; height: auto; margin: 0 auto 6px; }
.hat-procs { margin: .9rem 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: .2rem; }
.patches-sec { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 18px 24px; }
.faq summary { font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.faq p { margin: .6rem 0 0; color: var(--muted); }
.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.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; }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.who-card img { width: 140px; height: auto; display: block; margin: -6px 0 4px -8px; }
.who-card h3 { font-size: 1.5rem; margin: 0 0 .3em; }
.who-card p { color: var(--muted); }
.chat-sm { margin-bottom: 0; }
.lang-note { color: var(--muted); font-size: .92rem; font-weight: 600; margin: .7rem 0 0; }
.home-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px 34px; margin: 64px 0; }
.home-band p { margin: 0; font: 800 clamp(1.3rem, 2.6vw, 2rem)/1.15 var(--font); letter-spacing: -0.03em; max-width: 34rem; }
.home-band .btn { background: #fff; color: var(--ink); border-color: #fff; flex: none; }
.doc { background: #fff; display: grid; gap: 20px; }
.doc-head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .2em 0; }
.doc-head .muted { margin: 0 0 .6rem; max-width: 52rem; }
.doc-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.doc-cols section { background: var(--bg); border-radius: 16px; padding: 16px 18px; }
.doc-cols h4 { margin: 0 0 .6rem; font-size: 1rem; }
.doc-cols ol, .doc-cols ul { margin: 0; padding-left: 1.2em; display: grid; gap: .35rem; font-size: .93rem; }
.doc-cols .more { list-style: none; margin-left: -1.2em; color: var(--muted); font-weight: 600; }
.doc-cols .srcs { color: var(--muted); }
.doc-cols .refuse { background: #f6ecec; }
.data-card { background: #fff; }
.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--card); flex-wrap: wrap; }
.data-list li:last-child { border-bottom: 0; }
.data-name { flex: 1; min-width: 14rem; }
.data-meta { color: var(--muted); font-size: .9rem; font-weight: 600; }
.memory { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.memory .when { margin: 0; font-weight: 800; }
.saved, .from-memory { display: flex; gap: .5rem; align-items: flex-start; font-weight: 700; }
.saved svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; }
.from-memory { background: var(--card); border-radius: 10px; padding: .45em .7em; font-size: .92rem; }
.memory-notes { margin-top: 18px; }
.hat-count { margin-top: auto; padding-top: .8rem; font-size: .9rem; font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; }
.vs { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.vs th, .vs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--card); vertical-align: top; }
.vs thead th { font-size: 1rem; }
.vs tbody th { font-weight: 800; width: 18%; }
.vs .us { background: #fff; font-weight: 700; border-inline: 2px solid var(--yes); }
.vs thead .us { background: var(--yes); color: #fff; border-color: var(--yes); border-radius: 14px 14px 0 0; }
.vs tbody tr:last-child .us { border-bottom: 2px solid var(--yes); }
.vs td[class*="mark-"] > span:last-child { display: block; overflow: hidden; }
.vs .mark { float: left; display: grid; place-items: center; width: 22px; height: 22px; margin: -1px .5rem 0 0; border-radius: 50%; color: #fff; }
.vs tbody .us { border-radius: 0; }
.vs .mark svg { width: 14px; height: 14px; }
.vs .mark-yes .mark { background: var(--yes); }
.vs .mark-no .mark { background: var(--no); }
.vs .mark-partial .mark { background: var(--partial); }
.tools, .privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool h3, .privacy h3 { font-size: 1.4rem; margin: 0 0 .4em; }
.tool-how { font-weight: 700; }
.tool p:not(.tool-how) { color: var(--muted); }
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.nots li { display: flex; gap: .7rem; align-items: flex-start; }
.nots .x { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-weight: 800; }
.address { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 4px; flex-wrap: wrap; }
.address code { background: #fff; border-radius: 12px; padding: .7em 1em; flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .98rem; }
.guide-cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; color: var(--ink); text-decoration: none; border: 2.5px solid transparent; }
.guide-card:hover { border-color: var(--line); }
.guide-card .tag { align-self: flex-start; }
.guide-card .muted { font-size: .93rem; }
/* ---------- pied de page ---------- */
.foot { background: var(--card); margin-top: 40px; padding: 44px 24px 28px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.foot-brand p { color: var(--muted); max-width: 22rem; margin: .8rem 0 0; }
.foot h2 { font-size: .95rem; margin: .3rem 0 .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a:not(.logo) { color: var(--ink); text-decoration: none; }
.foot a:not(.logo):hover { text-decoration: underline; }
.foot-copy { max-width: 1240px; margin: 28px auto 0; color: var(--muted); font-size: .88rem; }

/* ---------- 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-elsewhere { font-size: 18px; margin: 0 0 14px; color: var(--muted, #555); font-weight: 600; }
.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%; }
.patch-tile { width: 96px; }
.h-count .count { font-size: .55em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: .3em; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .3rem 0 .4rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .35em .9em; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .95rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.js .nojs { display: none; }
.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; }
  .doc-cols { grid-template-columns: 1fr 1fr; }
}
@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-cap { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .compare, .patches-sec, .who, .memory, .tools, .privacy, .guide-cards { grid-template-columns: 1fr; }
  .doc-cols { grid-template-columns: 1fr; }
  .home-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .patches-sec { gap: 8px; }
  .home-sec { margin: 56px 0; }
  .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; }
  .patch-tile { width: 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); }
.top-right { gap: 1.1rem; align-items: center; }
.lang-switch { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--muted); }
.lang-switch:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-note { color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }

/* ---------- teinte du métier (catalog.ts → /caps.css) ---------- */
[data-tint] .link, [data-tint].link, p[data-tint] .link { color: var(--hat); }
.intents li[data-tint] a { background: #fff; color: var(--hat); box-shadow: inset 0 0 0 2px var(--hat); }
.intents li[data-tint]:first-child a, .intents li[data-tint] a:hover { background: var(--hat); color: #fff; }
.hero-cap[data-tint] { position: relative; }
.hero-cap[data-tint]::before { content: ""; position: absolute; inset: 8% 4% 4% 8%; border-radius: 50%; background: var(--hat-soft); z-index: -1; }
.hero { position: relative; z-index: 0; }
.who-card[data-tint], .hat-card[data-tint], .job[data-tint] a, .demo[data-tint], .doc[data-tint] { box-shadow: inset 0 5px 0 var(--hat); }
.hat-card[data-tint]:hover { border-color: var(--hat-soft); }
.compare .with-hat { background: var(--hat-soft); }
.compare .with-hat h3 { color: var(--hat); }
[data-tint] .demo-tag { color: var(--hat); }
[data-tint] .demo-state.done svg { background: var(--hat); }
[data-tint] .demo-state.doing { border-top-color: var(--hat); }
.job-active[data-tint] a { border-color: var(--hat); background: #fff; }
.job[data-tint] .badge { background: var(--hat); }
.spec[data-tint] .tile input:checked + .tile-body { border-color: var(--hat); background: var(--hat-soft); }
.spec[data-tint] .badge, .spec[data-tint] .skills .tick { background: var(--hat); }
.spec[data-tint] .btn:not(.btn-ghost), .summary[data-tint] .btn:not(.btn-ghost) { background: var(--hat); border-color: var(--hat); }
.spec[data-tint] .btn:not(.btn-ghost):hover, .summary[data-tint] .btn:not(.btn-ghost):hover { filter: brightness(.9); }
.spec[data-tint] .spec-cap { box-shadow: inset 0 5px 0 var(--hat); }
.summary[data-tint] .chip input:checked + span { background: var(--hat); border-color: var(--hat); }
.summary[data-tint] .summary-text { border-left-color: var(--hat); }
.content-grid[data-tint] .timeline::before, .content-grid[data-tint] .timeline li::before { background: var(--hat); }
.patches-sec[data-tint] .cap { background: radial-gradient(closest-side, var(--hat-soft) 70%, transparent 71%); }

/* Bouton de l'en-tête : libellé long, version courte sur petit écran (l'en-tête reste sur une ligne). */
.cta-short { display: none; }
@media (max-width: 560px) { .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .cta-short { display: inline; } }
