/* Argent IA — bandeau d'en-tête vert profond, colonne de lecture avec sommaire fixe, repères 01-02-03 pour les trois étapes */
:root {
  color-scheme: light;
  --paper: #f8faf7;
  --surface: #edf2ed;
  --card: #ffffff;
  --ink: #14211c;
  --muted: #55655e;
  --line: #d5ddd7;
  --accent: #0f5c46;
  --deep: #0c3f31;
  --on-deep: #eef5f0;
  --on-deep-muted: #b9cfc5;
  --gold: #e9b949;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --measure: 68ch;
  --radius: 0.6rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--font-body); }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; z-index: 20; }

/* en-tête du site */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--deep); color: var(--on-deep); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1.5rem; padding-block: 0.7rem; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 1.2rem/1 var(--font-display); color: inherit; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 0.4rem; background: var(--gold); color: var(--deep); font-size: 1.05rem; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.1rem; font-size: 0.94rem; }
.main-nav a { color: var(--on-deep); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.main-nav .nav-cta { background: var(--gold); color: var(--deep); font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 0.35rem; border-bottom: 0; }
.main-nav .nav-cta:hover { filter: brightness(1.08); }

/* en-tête de page */
.page-head { background: var(--deep); color: var(--on-deep); padding-block: 2.2rem 2.4rem; }
.page-head a { color: var(--on-deep); }
.crumbs { font-size: 0.875rem; color: var(--on-deep-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--on-deep-muted); }
.eyebrow { margin: 0 0 0.5rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); margin: 0 0 0.9rem; letter-spacing: -0.01em; max-width: 26ch; }
.type-home h1 { max-width: 18ch; }
.lead { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1rem; max-width: 60ch; color: var(--on-deep); }
.byline { font-size: 0.88rem; color: var(--on-deep-muted); margin: 0; }
.byline a { color: var(--on-deep-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 0.7rem 1.15rem; border-radius: 0.4rem; border: 2px solid transparent; }
.button:hover { filter: brightness(1.1); }
.page-head .button { background: var(--gold); color: var(--deep); }
.page-head .button.ghost { background: transparent; color: var(--on-deep); border-color: var(--on-deep-muted); }

/* schéma du parcours sur l'accueil */
.flow { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; counter-reset: flow; }
.flow li { position: relative; counter-increment: flow; }
.flow li span { display: block; padding: 0.6rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 0.5rem; background: rgba(255, 255, 255, 0.07); font-size: 0.95rem; }
.flow li span::before { content: counter(flow); display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: 0.5rem; border-radius: 50%; background: var(--gold); color: var(--deep); font-size: 0.78rem; font-weight: 700; }
.flow li + li::before { content: "→"; position: absolute; left: -1.6rem; top: 50%; transform: translateY(-50%); color: var(--gold); }

/* corps */
.body-grid { padding-block: 2.2rem 1rem; }
.prose { max-width: var(--measure); }
.layout-with-toc .body-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) {
  .layout-with-toc .body-grid { grid-template-columns: 16rem minmax(0, var(--measure)); }
  .toc { position: sticky; top: 4.6rem; align-self: start; max-height: calc(100vh - 6rem); overflow: auto; }
}
h2 { font-size: 1.55rem; margin: 2.6rem 0 0.8rem; }
.prose > h2 { padding-top: 1.2rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.18rem; margin: 1.7rem 0 0.45rem; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }

.toc { font-size: 0.92rem; border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; }
.toc p { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.points { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.3rem 0.5rem; margin-bottom: 1.6rem; }
.points-title { font-weight: 700; margin: 0 0 0.6rem; }
.points ul { padding-left: 1.2rem; }

.answer { border-left: 4px solid var(--accent); background: var(--surface); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.2rem; }
.answer p:last-child { margin-bottom: 0; }

.example { background: #fbf6e6; border: 1px solid #ead9a4; border-radius: var(--radius); padding: 1rem 1.25rem 0.2rem; margin: 0 0 1.3rem; }
.example-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5a06; margin: 0 0 0.4rem; }
.compare { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: 1rem; }
.compare > div { background: var(--card); border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.8rem 0.95rem; font-size: 0.96rem; }
.compare strong { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1.3rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; font-variant-numeric: tabular-nums; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
tbody td:first-child { font-weight: 600; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.steps { list-style: none; padding: 0; margin: 1.3rem 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { margin: 0; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; background: var(--card); display: flex; flex-direction: column; gap: 0.4rem; }
.steps .num { font: 700 1.6rem/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0; font-size: 1.2rem; }
.steps p { margin: 0; font-size: 0.97rem; }
.steps a { font-weight: 600; margin-top: auto; padding-top: 0.4rem; }
.type-home .prose { max-width: none; }
.type-home .prose > p, .type-home .prose > ul, .type-home .prose > h2 { max-width: var(--measure); }
.twocol { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-bottom: 1.2rem; }
.twocol > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 0.3rem; }
.twocol h3 { margin-top: 0; }

.offer { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.4rem 1.3rem; margin-bottom: 1.3rem; }
.offer-price { font: 700 1.5rem/1.2 var(--font-display); margin: 0 0 0.5rem; }

.cta { margin-top: 2.6rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--deep); color: var(--on-deep); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta p { margin: 0; flex: 1 1 18rem; }
.cta .button { background: var(--gold); color: var(--deep); }

.related { padding-block: 1rem 0.5rem; }
.related h2 { margin-top: 1.2rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem 1.1rem; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.card-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.card-title { font: 700 1.1rem/1.25 var(--font-display); }
.card-text { font-size: 0.92rem; color: var(--muted); }

.stepnav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1.5rem 0 0; }
.stepnav a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; }
.stepnav a:hover { border-color: var(--accent); }
.stepnav span { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem; }
.stepnav .next { text-align: right; }

main { padding-bottom: 3.5rem; }
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: 2.2rem 2rem; font-size: 0.93rem; }
.site-footer a { color: var(--on-deep); }
.footer-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-brand { color: var(--on-deep); margin: 0 0 0.6rem; }
.footer-grid p { margin: 0; }
.footer-title { font-weight: 700; color: var(--on-deep); margin: 0 0 0.5rem !important; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.footer-note { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.15); max-width: 80ch; font-size: 0.85rem; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-header { position: static; }
  .main-nav { gap: 0.2rem 0.9rem; font-size: 0.9rem; }
  .flow { flex-direction: column; gap: 1.4rem; }
  .flow li + li::before { content: "↓"; left: 1.2rem; top: -1.05rem; transform: none; }
  .stepnav .next { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .toc, .cta, .site-footer, .related { display: none; } }

/* conversion */
.trust { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.92rem; color: var(--on-deep-muted); }
.trust li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 0.4rem; }
.midcta { margin: 2rem 0; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--card); border: 2px solid var(--accent); }
.midcta p { margin: 0 0 0.8rem; }
.midcta-title { font: 700 1.2rem/1.25 var(--font-display); }
.optin { margin: 2.6rem 0 0.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--deep); color: var(--on-deep); display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.optin p { margin: 0 0 0.6rem; }
.optin a { color: var(--on-deep); }
.optin-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.optin-title { font: 700 1.35rem/1.25 var(--font-display); }
.optin-form { display: grid; gap: 0.55rem; }
.optin-form label { font-size: 0.9rem; }
.optin-form input[type="email"] { font: inherit; padding: 0.7rem 0.8rem; border-radius: 0.4rem; border: 1px solid var(--on-deep-muted); background: #fff; color: var(--ink); width: 100%; }
.optin-form .consent { font-size: 0.8rem; color: var(--on-deep-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.optin-form .consent input { margin-top: 0.2rem; }
.optin-form .button { background: var(--gold); color: var(--deep); border: 0; font-size: 1rem; cursor: pointer; }
.hp { position: absolute; left: -999rem; }
.offer { scroll-margin-top: 5rem; }
.offer-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.3rem; }
.offer-small { font-size: 0.85rem; color: var(--muted); margin: 0.8rem 0 0; }
.button.big { font-size: 1.1rem; padding: 0.85rem 1.4rem; margin-top: 0.4rem; }
.guarantee { margin: 1rem 0 0; padding: 0.8rem 1rem; background: var(--surface); border-radius: 0.4rem; font-size: 0.95rem; }
.ticks { list-style: none; padding: 0; margin: 0.6rem 0 1rem; display: grid; gap: 0.35rem; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 0.5rem; }
.beforeafter { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-bottom: 1.3rem; }
.beforeafter > div { border-radius: var(--radius); padding: 1.1rem 1.25rem 0.3rem; border: 1px solid var(--line); background: var(--card); }
.beforeafter > div:last-child { border: 2px solid var(--accent); }
.beforeafter h3 { margin-top: 0; }
.stickybar { position: sticky; bottom: 0; z-index: 9; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; background: var(--deep); color: var(--on-deep); box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
.stickybar .button { background: var(--gold); color: var(--deep); padding: 0.55rem 1rem; }
@media (min-width: 62rem) { .stickybar { display: none; } }
