/* Guides de la réforme de la facturation électronique (2026-10-27) — pages en français, tools/build-guides.py.
   S'appuie sur style.css (nav, boutons, pied de page, couleurs). */

.guide-page .brand { flex-shrink: 0; }
.guide-nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.guide-nav-link { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.guide-nav-link:hover { color: var(--primary-dark); }
.guide-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.guide-lang a { padding: 6px 11px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.guide-lang a[aria-current="true"] { background: var(--primary-light); color: var(--primary-dark); }
.guide-lang a:focus-visible, .guide-nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.guide { padding-bottom: 56px; }
.guide .container { max-width: 760px; }
.guide-head { padding-top: 40px; padding-bottom: 8px; }
.guide-crumb { margin: 0 0 12px; font-size: 0.88rem; }
.guide-crumb a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.guide-crumb a:hover { text-decoration: underline; }
.guide-head h1 {
  font-size: clamp(1.75rem, 5.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px;
  text-wrap: balance;
}
.guide-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 14px; }
.guide-meta { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

.guide-body { font-size: 1.04rem; line-height: 1.7; }
.guide-body h2 {
  font-size: 1.4rem; line-height: 1.3; margin: 40px 0 12px; letter-spacing: -0.01em; text-wrap: balance;
}
.guide-body h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul, .guide-body ol { margin: 0 0 16px; padding-left: 1.3em; }
.guide-body li { margin: 0 0 8px; }
.guide-body a { color: var(--primary-dark); text-underline-offset: 2px; }
.guide-body strong { font-weight: 650; }

.guide-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; min-width: 520px; }
.guide-table th, .guide-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.guide-table thead th { background: var(--paper-soft); font-weight: 650; }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { font-weight: 600; white-space: nowrap; }

.guide-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.guide-faq summary { cursor: pointer; font-weight: 650; list-style-position: outside; }
.guide-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.guide-faq details p { margin: 10px 0 0; color: var(--ink-soft); }

.guide-shefy {
  margin: 40px 0 0; padding: 24px; border-radius: var(--radius-lg); background: var(--primary-light);
}
.guide-shefy h2 { margin-top: 0; }
.guide-shefy p:last-child { margin-bottom: 0; }
.guide-shefy .btn { text-decoration: none; }
.guide-body a.btn-primary { color: #fff; }

.guide-sources { margin-top: 40px; font-size: 0.92rem; color: var(--ink-soft); }
.guide-sources h2 { font-size: 1.1rem; color: var(--ink); }
.guide-sources a { word-break: break-word; }

.guide-related ul { list-style: none; padding: 0; }
.guide-related li { margin: 0 0 10px; }

.guide-index .container { max-width: 980px; }
.guide-cards { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.guide-card a {
  display: block; height: 100%; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: inherit; text-decoration: none; background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.guide-card a:hover { border-color: var(--primary); box-shadow: var(--shadow-soft); }
.guide-card a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.guide-card h2 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 8px; text-wrap: balance; }
.guide-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.guide-card-more { font-size: 0.88rem; font-weight: 650; color: var(--primary-dark); }
.guide-index-note { color: var(--ink-soft); font-size: 0.95rem; }
.guide-index-note a { color: var(--primary-dark); }

@media (min-width: 760px) {
  .guide-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .guide-nav-link { display: none; }
  .guide-nav-actions { gap: 8px; }
  .guide-lang { display: none; } /* guides en français seulement : pas la place à côté du logo */
  .guide-head { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card a { transition: none; }
}

/* Téléphone : chaque ligne du tableau devient une fiche (libellé de colonne au-dessus de chaque valeur). */
@media (max-width: 560px) {
  .guide-table-wrap { border: 0; overflow: visible; }
  .guide-table, .guide-table tbody { display: block; width: 100%; min-width: 0; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide-table tr { display: block; border: 1px solid var(--border); border-radius: var(--radius-md); margin: 0 0 12px; padding: 6px 0; }
  .guide-table td, .guide-table td:first-child { display: block; border: 0; padding: 6px 14px; white-space: normal; }
  .guide-table td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 650; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
  .guide-table tbody tr:last-child td { border-bottom: 0; }
}
