/* B·SET – pages légales et contact (charge /home/base.css avant).
   Colonne de lecture ~68 caractères, mêmes titres et dégradé que la vitrine. */

.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px var(--gutter-r) 72px var(--gutter-l); }
.doc h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.06; margin: 0 0 12px; }
.doc h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc h2 { font-size: clamp(19px, 2.6vw, 22px); line-height: 1.25; margin: 48px 0 12px; letter-spacing: .01em; }
.doc h3 { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 26px 0 6px; color: var(--lilac); }
.doc section, .doc h2 { scroll-margin-top: 84px; }
.doc p, .doc ul, .doc ol, .doc dl { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 600; color: #fff; }
.doc a { color: var(--lilac); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { color: var(--text); }
.doc .meta { color: var(--muted); font: 500 13px/1.4 var(--mono); margin-bottom: 28px; }
.doc .lead { color: var(--soft); font-size: 18px; margin-bottom: 28px; max-width: 38ch; }

.doc dl dt { font-weight: 600; margin-top: 12px; }
.doc dl dd { margin: 2px 0 0; color: var(--soft); }

.doc .summary {
  border: 2px solid transparent; border-radius: 22px; padding: 18px 20px; margin: 0 0 26px;
  background: linear-gradient(160deg, #1a1222, #121018 60%) padding-box, var(--grad) border-box;
}
.doc .summary p { margin: 0; }

.doc .toc { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 16px 20px; font-size: 15px; }
.doc .toc ol { margin: 0; padding-left: 22px; }
.doc .toc li { margin: 4px 0; break-inside: avoid; }
.doc .toc a { color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--text); }
@media (min-width: 640px) { .doc .toc ol { columns: 2; column-gap: 36px; } }

.doc .table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface); color: var(--muted); font: 600 11px/1.3 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.doc tr:last-child td { border-bottom: 0; }

.email-btn {
  font: inherit; color: var(--lilac); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.email-btn:hover { color: var(--text); }

/* Contact form */
.doc .form {
  border-radius: 24px; padding: 22px 18px; margin-bottom: 8px; display: grid; gap: 18px;
  border: 2px solid transparent;
  background: linear-gradient(160deg, #1a1222, #121018 60%) padding-box, var(--grad) border-box;
}
@media (min-width: 640px) { .doc .form { padding: 26px; } }
.doc .field { display: grid; gap: 7px; }
.doc label { font-weight: 600; font-size: 15px; }
.doc input[type="text"], .doc input[type="email"], .doc select, .doc textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; appearance: none; -webkit-appearance: none;
}
.doc select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px;
}
.doc input:focus, .doc select:focus, .doc textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(201, 173, 223, .2); }
.doc textarea { resize: vertical; min-height: 150px; }
.doc .hint { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.doc .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.doc .check input { margin-top: 4px; accent-color: var(--pink); }
.doc .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.doc .form .btn { width: 100%; }
@media (min-width: 640px) { .doc .form .btn { width: auto; justify-self: start; } }
.doc .btn:disabled { opacity: .6; cursor: wait; }
.doc .status { margin: 0; min-height: 1.5em; font-size: 15px; }
.doc .status.ok { color: var(--live); }
.doc .status.err { color: #ff9a9a; }

/* Guides (/guides/) : même colonne de lecture que les pages légales */
.guide .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.guide .crumbs a { color: var(--muted); text-decoration: none; }
.guide .crumbs a:hover { color: var(--text); }
.guide .eyebrow-doc { font: 600 12px/1.3 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--lilac); margin: 0 0 12px; }
.guide .lead { max-width: 60ch; }
.guide table caption { caption-side: bottom; text-align: left; padding: 11px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.guide .compare { min-width: 680px; }
.guide .compare tbody th { background: none; color: var(--text); font: 600 15px/1.4 var(--body); text-transform: none; letter-spacing: 0; }
.guide .compare td { color: var(--soft); }
.guide .compare tr.us th, .guide .compare tr.us td { background: var(--surface); }
.guide .compare tr:last-child th { border-bottom: 0; }
.guide .cards { display: grid; gap: 14px; margin: 0 0 16px; }
@media (min-width: 640px) { .guide .cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.guide .card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.guide .card h2, .guide .card h3 { margin: 0; font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--text); }
.guide .card p { margin: 0; color: var(--soft); font-size: 15px; }
.guide .card .card-step { font: 500 12px/1.3 var(--mono); text-transform: uppercase; color: var(--lilac); }
.guide a.card-link { text-decoration: none; color: inherit; transition: border-color .2s; }
.guide a.card-link:hover { border-color: var(--lilac); }
.guide .faq { border-top: 1px solid var(--line); }
.guide .faq details { border-bottom: 1px solid var(--line); }
.guide .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
.guide .faq summary::-webkit-details-marker { display: none; }
.guide .faq summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.guide .faq details[open] summary::after { transform: rotate(45deg); }
.guide .faq .answer { padding: 0 0 18px; color: var(--soft); }
.guide .faq .answer p { margin: 0; }
.guide .cta-doc { margin-top: 56px; border: 2px solid transparent; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: linear-gradient(160deg, #1a1222, #121018 60%) padding-box, var(--grad) border-box; }
.guide .cta-doc h2 { margin: 0; }
.guide .cta-doc p { margin: 0; color: var(--soft); }
.guide .cta-doc .btn { color: #fff; text-decoration: none; }
