/* Guides : mêmes couleurs, police et en-tête que l'accueil (64 px, logo de 22 px). */
:root {
  --ink: #111; --muted: #5f5f5f; --line: #e4e4e4; --bg: #f6f6f5; --panel: #fff;
  --red: #FF5442; --blue: #0083C3; --blue-soft: #e3f2fa;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 350 17px/1.7 var(--font); color: var(--ink); background: var(--panel); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: block; font: 600 .74rem/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 30px; height: 63px; max-width: none; }
.top .logo { height: 22px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-size: .9rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .login { font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 0 12px; border: 1px solid var(--ink); border-radius: 7px; }
.top .login:hover { background: var(--ink); color: #fff; }
/* Comme l'accueil : « Créer mon dossier » avec son dossier, collé à la connexion, et les deux boutons de même hauteur. */
.top .cta { margin-left: -20px; display: inline-flex; align-items: center; gap: 9px; font: 600 .72rem/1 var(--font); letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; padding: 0 14px; border: 1px solid var(--blue); border-radius: 7px;
  background: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(0,131,195,.2); transition: background .2s; }
.top .cta:hover { background: #006fa6; border-color: #006fa6; }
.top .cta .ico { width: 15px; height: 15px; flex: none; transition: transform .25s; }
.top .cta:hover .ico { transform: translateY(-2px) rotate(-6deg); }
.top .login, .top .cta { box-sizing: border-box; height: 36px; display: inline-flex; align-items: center; }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); padding: 22px 0 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Article */
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; padding-bottom: 72px; }
.guide h1, .hub h1 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 14px; }
.meta { color: var(--muted); font-size: .86rem; margin: 0 0 28px; }
.prose { max-width: 720px; }
.prose > p:first-child, .prose .lead, .hub .lead { font-size: 1.12rem; color: #333; }
.prose h2 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -.01em; margin: 48px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #2a2a2a; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong, .prose b { font-weight: 600; }
.keypoints { background: var(--bg); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.prose .keypoints h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 8px; }
.keypoints ul { margin: 0; }
.callout { border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 22px 0; }
.callout.warn { border-left-color: var(--red); background: #fff1ef; }
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--bg); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 300; font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { margin: 10px 0 0; }
.disclaimer { color: var(--muted); font-size: .84rem; max-width: 720px; }

/* Sommaire et appel à l'action latéral */
.g-side { position: sticky; top: 88px; display: grid; gap: 20px; }
.toc p { font: 600 .74rem/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol, .toc-mobile ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem; line-height: 1.4; }
.toc a, .toc-mobile a { text-decoration: none; color: #333; }
.toc a:hover { color: var(--blue); }
.toc-mobile { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 24px; }
.toc-mobile summary { font-weight: 600; cursor: pointer; }
.toc-mobile ol { margin-top: 10px; }
.side-cta { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.side-cta p { font-size: .88rem; color: var(--muted); margin: 6px 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; text-decoration: none;
  font: 600 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 14px 18px; border-radius: 8px; }
.btn:hover { background: #006fa6; }
.prose a.btn { color: #fff; text-decoration: none; }   /* les liens du texte sont bleus, pas ce bouton */
.side-cta .btn { width: 100%; }
.cta-inline { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 36px 0; }
.cta-inline p { margin: 0; font-size: .94rem; }
.cta-inline .btn { flex: none; }
.cta-end { background: var(--ink); color: #fff; border-radius: 16px; padding: 30px; margin: 48px 0 24px; max-width: 720px; }
.cta-end .eyebrow { color: #7cc4e8; }
.cta-end h2 { font-size: 1.5rem; margin: 8px 0 10px; }
.cta-end p, .cta-end li { color: #d7d7d7; }
.cta-end ul { padding-left: 20px; margin: 10px 0 20px; }
.cta-end b { color: #fff; }

/* Cartes de guides (guides liés, page des guides) */
.related { margin-top: 48px; }
.related h2, .hub-cat h2 { font-size: 1.3rem; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none;
  transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card b { font-size: 1.02rem; line-height: 1.3; }
.card > span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* Page des guides */
.hub { padding-bottom: 72px; }
.hub .lead { max-width: 760px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chips a { text-decoration: none; font-size: .86rem; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.chips a:hover { border-color: var(--ink); }
.hub-cat { margin-top: 44px; scroll-margin-top: 84px; }
.hub .cta-end { margin-top: 56px; }

/* Pages légales */
.legal .prose { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
mark.todo { background: #fff1c2; color: #6b4e00; border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.legal-more { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; }
.legal-more a { color: var(--blue); }

@media (max-width: 960px) {
  .top nav { display: none; }
  .top .wrap > a:first-child { margin-right: auto; }
  .g-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-side { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .top .wrap { padding: 0 16px; }
  .top .cta { display: none; }   /* comme l'accueil : seul le bouton de connexion reste dans l'en-tête */
  .cta-inline { flex-direction: column; align-items: stretch; }
  .cta-end { padding: 24px 20px; }
  .cta-end .btn { width: 100%; }
  .prose h2 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Offre de lancement : prix habituel barré */
.cta-end .launch { display: inline-block; margin: 4px 0 0; padding: 5px 11px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.cta-end s, .cta-inline s { color: #9a9a9a; font-weight: 400; }
