/* Guides jipup.com : même charte que /hubspot et /pricing (Inter, vert Jipup). */
:root {
  --canvas: #ffffff; --soft: #fafafa; --hairline: #dfdfdf; --cool: #ededed; --cool-2: #d4d4d4;
  --ink: #171717; --mute: #5f5f5f; --mute-2: #8a8a8a;
  --primary: #3ecf8e; --primary-deep: #24b47e; --on-primary: #171717; --good: #157f5b;
  --night: #1c1c1c;
  --prose: 44rem; --wide: 64rem; --pad: clamp(1.25rem, 5vw, 2.5rem);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 2px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .85em; background: var(--soft); border: 1px solid var(--cool); border-radius: 4px; padding: .05rem .35rem; overflow-wrap: anywhere; }

/* ---------- en-tête ---------- */
.masthead {
  padding: 1rem var(--pad); border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 20;
}
.wordmark { text-decoration: none; font-weight: 500; letter-spacing: -.02em; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: .5rem; }
.topnav { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--mute); }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--primary); color: var(--on-primary) !important; text-decoration: none; font-weight: 500; font-size: .9375rem; padding: .625rem 1.125rem; border-radius: 6px; }
.btn:hover { background: var(--primary-deep); }
.btn--sm { font-size: .8125rem; padding: .4rem .8rem; }
.btn--ghost { background: var(--canvas); color: var(--ink) !important; border: 1px solid var(--hairline); font-weight: 400; }
.btn--ghost:hover { background: var(--soft); }

/* ---------- article ---------- */
.wrap { max-width: var(--wide); margin-inline: auto; padding: 0 var(--pad); }
.crumbs { font-size: .8125rem; color: var(--mute); padding-top: 1.75rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.crumbs li + li::before { content: "/"; margin-right: .375rem; color: var(--cool-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero { max-width: var(--prose); padding: 1.25rem 0 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; }
.lede { font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); color: var(--mute); margin: 0; }
.byline { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--mute); flex-wrap: wrap; }
.byline a { color: var(--ink); text-decoration: none; font-weight: 500; }
.byline a:hover { text-decoration: underline; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: 500; flex: none; }
img.avatar { display: block; object-fit: cover; background: none; }
.avatar-lg { width: 96px; height: 96px; }

.layout { display: grid; grid-template-columns: minmax(0, var(--prose)) minmax(0, 15rem); gap: 3rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 60rem) { .layout { grid-template-columns: minmax(0, 1fr); } .toc { order: -1; } }
.toc { position: sticky; top: 5rem; font-size: .8125rem; border-left: 1px solid var(--hairline); padding-left: 1rem; }
.toc p { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2); margin: 0 0 .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.toc a { text-decoration: none; color: var(--mute); }
.toc a:hover { color: var(--ink); }
@media (max-width: 60rem) { .toc { position: static; border-left: 0; padding: 1rem; background: var(--soft); border-radius: 10px; } }

.article { min-width: 0; }
.article > * + * { margin-top: 1.125rem; }
.article h2 { font-size: clamp(1.4rem, 3.2vw, 1.75rem); margin-top: 2.75rem; scroll-margin-top: 5rem; }
.article h3 { font-size: 1.1875rem; margin-top: 1.75rem; scroll-margin-top: 5rem; }
.article p, .article li { color: #333; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li + li { margin-top: .375rem; }
.article strong { font-weight: 600; color: var(--ink); }
.answer { border: 1px solid var(--hairline); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: var(--soft); padding: 1rem 1.25rem; }
.answer p { margin: 0; color: var(--ink) !important; }
.answer p + p { margin-top: .5rem; }
.note { font-size: .9375rem; border-left: 2px solid var(--cool-2); padding: .125rem 0 .125rem 1rem; color: var(--mute); }
.note p { margin: 0; }
.tbl { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 10px; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--cool); line-height: 1.45; }
thead th { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-2); background: var(--soft); }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
figure { margin: 1.5rem 0; }
figure img { border: 1px solid var(--hairline); border-radius: 10px; display: block; }
figcaption { font-size: .8125rem; color: var(--mute); margin-top: .5rem; }

.cta { border-radius: 14px; background: var(--night); color: #fff; padding: 1.5rem 1.5rem 1.625rem; display: flex; flex-direction: column; gap: .75rem; margin: 2.25rem 0 !important; }
.cta p { color: rgba(255,255,255,.78) !important; margin: 0; }
.cta strong { color: #fff !important; font-size: 1.125rem; font-weight: 500; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.cta .btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.3); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.08); }

.faq h3 { font-size: 1.0625rem; }
.faq-item { border-top: 1px solid var(--hairline); padding: 1rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item h3 { margin: 0 0 .375rem; }
.faq-item p { margin: 0; color: var(--mute) !important; }

.author { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--hairline); border-radius: 12px; padding: 1.125rem 1.25rem; margin-top: 2.5rem !important; }
.author p { margin: .25rem 0 0; font-size: .9375rem; color: var(--mute) !important; }
.author a { font-weight: 500; text-decoration: none; }
.related { font-size: .9375rem; }

/* ---------- index des guides ---------- */
.cards { list-style: none; padding: 0; margin: 0 0 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--hairline); border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; background: var(--canvas); }
.card:hover { border-color: var(--cool-2); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.card a { text-decoration: none; }
.card h2 { font-size: 1.125rem; }
.card p { margin: 0; font-size: .9375rem; color: var(--mute); }
.card .meta { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-2); }
.empty { color: var(--mute); padding-bottom: 4rem; }

footer { padding: 1.75rem var(--pad) 3rem; border-top: 1px solid var(--hairline); }
.foot { max-width: var(--wide); margin-inline: auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8125rem; color: var(--mute); }
.foot nav { display: flex; gap: 1rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media print { .masthead { position: static; } .toc, .cta { display: none; } }
