/* Réseau « Je suis en règle » : feuille commune, --accent défini par site */
:root {
  --ink: #16202a;
  --ink-2: #3d4b58;
  --muted: #66727e;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --ok: #1e7a4a;
  --ok-bg: #e8f5ee;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --ko: #b42318;
  --ko-bg: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 6px 24px rgba(16, 24, 32, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --accent-ink: color-mix(in srgb, var(--accent) 80%, black);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex-shrink: 1; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M18 33l9 9 19-20' fill='none' stroke='%23fff' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; flex: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-brand { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.logo-niche { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--accent-ink); }
.nav a.btn { color: #fff; }
@media (max-width: 920px) {
  .nav a:not(.btn) { display: none; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 10px; padding: 10px 18px; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-big { padding: 14px 22px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--accent-ink); }

/* Accueil */
.hero { background: linear-gradient(180deg, var(--accent-soft), #fff); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--accent-ink); margin: 0 0 8px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.updated { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.hero-aside .bref { margin: 0; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 32px; } }

/* Contenu */
.content-wrap { padding-top: 32px; padding-bottom: 48px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 8px; letter-spacing: -.01em; }
.prose h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin: 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

.bref { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; background: var(--bg-soft); }
.bref-title { font-weight: 700; margin: 0 0 6px; }
.bref ul { margin: 0; padding-left: 20px; }
.bref li { margin: 6px 0; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, white); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.cta-title { margin: 0; font-weight: 650; font-size: 18px; }

/* Cartes */
.related, .faq, .sources { max-width: 760px; margin-top: 48px; }
.related { max-width: none; }
.related h2, .faq h2, .sources h2 { font-size: 24px; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.card-title { font-weight: 650; line-height: 1.3; }
.card-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 14px; color: var(--ink-2); }
.sources ul { padding-left: 20px; font-size: 15px; }

/* Formulaire */
.lead { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0; scroll-margin-top: 72px; }
.lead-in { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.lead h2 { font-size: 28px; margin: 0 0 8px; }
.lead-intro { color: var(--ink-2); margin: 0 0 20px; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea, .tool input:not([type=radio]):not([type=checkbox]), .tool select { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #c9d0d6; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .tool input:not([type=radio]):not([type=checkbox]):focus, .tool select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 22%, white); }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } .lead-form { padding: 18px; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.form-status { color: var(--ko); font-weight: 600; margin: 12px 0 0; min-height: 0; }
.form-status:empty { display: none; }
.form-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.form-success { background: var(--ok-bg); border: 1px solid #b7dfc7; border-radius: var(--radius); padding: 24px; }
.success-title { font-weight: 700; font-size: 20px; color: var(--ok); margin: 0 0 6px; }
.hp { position: absolute; left: -9999px; }

/* Outils interactifs (classes partagées par tous les sites) */
.tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 8px 0 32px; background: #fff; box-shadow: var(--shadow); }
.tool h2:first-child, .tool h3:first-child { margin-top: 0; }
.tool .q { margin: 0 0 18px; }
.tool .q > label, .tool .q-label { display: block; font-weight: 600; margin-bottom: 8px; }
.tool .hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .tool .row { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c9d0d6; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: 15px; }
.choices input { accent-color: var(--accent); margin: 0; }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.result { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.result:empty { display: none; }
.result.ok { background: var(--ok-bg); border-color: #b7dfc7; }
.result.warn { background: var(--warn-bg); border-color: #f3d29b; }
.result.ko { background: var(--ko-bg); border-color: #f4b8b2; }
.result-title { font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.result-big { font-size: 32px; font-weight: 800; line-height: 1.1; margin: 4px 0 8px; color: var(--accent-ink); }
.result ul { margin: 8px 0 0; padding-left: 20px; }
.result p:last-child { margin-bottom: 0; }

/* Pied de page */
.site-footer { background: #10181f; color: #c8d0d7; padding: 40px 0 28px; font-size: 15px; }
.site-footer a { color: #e6ebef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 5px 0; }
.site-footer .muted { color: #9aa6b1; }
.disclaimer { border-top: 1px solid #26323c; margin-top: 28px; padding-top: 18px; color: #9aa6b1; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; margin: 8px 0 0; }

.tool input[type=radio], .tool input[type=checkbox] { width: auto; accent-color: var(--accent); }
