/* Guides : s'appuient sur legal.css (jetons, nav, pied) et n'ajoutent que
   ce qu'une page éditoriale demande de plus. Statique, sans JS. */

.guide {
  max-width: 48rem;
}

.guide .summary {
  margin: 0 0 1.2rem;
  padding: 0.7rem 0.9rem;
  border: var(--edge) solid var(--ink);
  background: var(--well);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.guide h1 {
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 0.6rem;
}

.guide .lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}

.guide section,
.guide aside {
  margin-top: 2.8rem;
}

.guide h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.7rem;
}

.guide p,
.guide li {
  max-width: 68ch;
}

.guide ol {
  padding-left: 1.3rem;
}

.guide strong {
  color: var(--ink);
}

.guide a {
  text-underline-offset: 0.18em;
}

.guide ::selection {
  background: var(--sight);
  color: var(--ink);
}

/* Tableaux : défilent seuls sur mobile, jamais la page. */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.2rem;
  border: var(--edge) solid var(--ink);
  background: var(--well);
}

.guide table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.45;
}

.guide th,
.guide td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #12121233;
}

.guide thead th {
  background: var(--ink);
  color: var(--sight);
  font-family: "Archivo Black", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 0;
}

.guide tbody th {
  color: var(--ink);
  font-weight: 700;
  min-width: 9rem;
}

.guide tbody td {
  color: var(--ink-soft);
}

.guide tbody tr:last-child th,
.guide tbody tr:last-child td {
  border-bottom: 0;
}

.guide figure {
  margin: 1rem 0 1.2rem;
}

.guide figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--edge) solid var(--ink);
  background: #111;
}

.guide figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Quand ce n'est pas le bon outil : posé à part, au trait rouge. */
.not-for-you {
  border: var(--edge) solid var(--signal);
  background: var(--well);
  padding: 1rem 1.1rem 0.4rem;
}

.not-for-you h2 {
  color: var(--signal);
}

.guide h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 1.4rem 0 0.35rem;
}

.cta {
  border: var(--edge) solid var(--ink);
  background: var(--ink);
  padding: 1.2rem 1.2rem 1.3rem;
}

.cta h2 {
  color: var(--sight);
}

.cta p {
  color: var(--paper);
}

.cta-button {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.65rem 1.1rem;
  border: var(--edge) solid var(--sight);
  background: var(--sight);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--ink);
  color: var(--sight);
}

.cta-button:focus-visible,
.guide a:focus-visible {
  outline: 3px solid var(--sight);
  outline-offset: 3px;
}
