/* SecuFlow — feuille de style unique. Polices auto-hébergées, aucun appel externe. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --encre: #0E1A3A;
  --encre-2: #45506E;
  --cobalt: #2540D9;
  --cobalt-fonce: #1A2EA6;
  --cobalt-pale: #E8ECFD;
  --safran: #F0A81C;
  --papier: #F3F5FB;
  --blanc: #FFFFFF;
  --trait: #D5DBEC;
  --critique: #C4122F;
  --elevee: #D9541A;
  --moyenne: #A86E00;
  --faible: #2A6FBF;
  --conseil: #5F6A88;
  --ok: #107A46;
  --ok-pale: #E3F4EA;
  --err-pale: #FCE9EC;
  --rayon: 14px;
  --rayon-s: 8px;
  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --texte: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--texte); font-size: 1rem; line-height: 1.55; color: var(--encre); background: var(--papier); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); letter-spacing: -.03em; }
h2, .h2 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); }
h3, .h3 { font-size: 1.2rem; }
h4 { font-size: .95rem; font-family: var(--texte); letter-spacing: 0; margin-bottom: .25em; }
p { margin: 0 0 1em; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-fonce); }
small { font-size: .82em; font-weight: 500; color: var(--encre-2); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--cobalt-pale); padding: .12em .4em; border-radius: 5px; overflow-wrap: anywhere; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--conseil); }
.center { text-align: center; }
.inline { display: inline; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.wrap.auth { max-width: 460px; }

/* ---------- En-tête ---------- */
.top { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--encre); text-decoration: none; }
.brand .mark { color: var(--cobalt); flex: none; }
.brand-tag { font: 600 .72rem var(--texte); font-style: normal; letter-spacing: 0; color: var(--encre-2); border: 1px solid var(--trait); border-radius: 99px; padding: .15em .6em; }
.brand-tag { white-space: nowrap; }
.nav-link, .link-btn { white-space: nowrap; }
.top-nav { font-size: .88rem; }
.section h2.h3 { margin-top: 28px; }
.card h2.h3, .toolbar h2.h3 { margin-top: 0; }
.area-admin .section, .area-client .section, .area-auth .section, .area-scan .section { padding-top: 20px; }
.top-nav { display: flex; align-items: center; gap: 4px 12px; justify-content: flex-end; }
.nav-link, .link-btn { color: var(--encre); text-decoration: none; font-weight: 600; background: none; border: 0; padding: .4em 0; font: inherit; font-weight: 600; cursor: pointer; }
.nav-link:hover, .link-btn:hover { color: var(--cobalt); }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .65em .9em; font-weight: 600; font-size: .95rem; color: var(--encre-2); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs a { padding: .35em .8em; border-radius: 99px; border: 1px solid var(--trait); background: var(--blanc); color: var(--encre-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.subtabs a[aria-current] { background: var(--encre); border-color: var(--encre); color: #fff; }

/* ---------- Boutons et formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .55em 1.15em; border-radius: var(--rayon-s); border: 1.5px solid var(--cobalt); background: var(--cobalt); color: #fff; font: 600 1rem var(--texte); text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--cobalt-fonce); border-color: var(--cobalt-fonce); color: #fff; }
.btn-lg { min-height: 52px; font-size: 1.06rem; padding: .6em 1.5em; }
.btn-small { min-height: 36px; font-size: .9rem; padding: .3em .85em; }
.btn-ghost { background: var(--blanc); color: var(--cobalt); border-color: var(--trait); }
.btn-ghost:hover { background: var(--cobalt-pale); color: var(--cobalt-fonce); border-color: var(--cobalt); }
.btn-danger { background: var(--blanc); color: var(--critique); border-color: var(--critique); }
.btn-danger:hover { background: var(--critique); border-color: var(--critique); color: #fff; }

.field { display: grid; gap: 6px; }
.field label, legend { font-weight: 600; font-size: .93rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: .55em .8em; font: inherit; font-size: 1rem; color: var(--encre); background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon-s); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-pale); }
.hint, .form-note { font-size: .87rem; color: var(--encre-2); margin: 0; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 14px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--cobalt); }
fieldset { border: 0; margin: 0; min-width: 0; }
legend { font-family: var(--display); font-size: 1.15rem; font-weight: 700; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
legend + * { clear: both; }

.notice { padding: .8em 1em; border-radius: var(--rayon-s); margin: 16px 0; font-size: .96rem; border: 1px solid; }
.notice-ok { background: var(--ok-pale); border-color: #A9D9BD; color: #0B5B34; }
.notice-err { background: var(--err-pale); border-color: #F0B5BF; color: #8C0C21; }
.notice-info { background: var(--cobalt-pale); border-color: #BAC5F5; color: #17257F; }
.notice a { color: inherit; font-weight: 600; }
.ok-line { color: var(--ok); font-weight: 600; }
.empty { padding: 28px 20px; text-align: center; color: var(--encre-2); background: var(--blanc); border: 1.5px dashed var(--trait); border-radius: var(--rayon); }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-tint { background: var(--blanc); border-block: 1px solid var(--trait); }
.section-lead, .lead { font-size: 1.1rem; color: var(--encre-2); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.two-col { display: grid; gap: 32px; margin-top: 24px; }
.defs { margin: 0; }
.defs dt { font-weight: 700; margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--cobalt); }
.defs dd { margin: 2px 0 0; padding-left: 17px; color: var(--encre-2); }
.aside-note { margin-top: 18px; font-size: .93rem; padding: .8em 1em; background: var(--cobalt-pale); border-radius: var(--rayon-s); }
.crumb { font-size: .92rem; margin-bottom: 10px; }
.crumb a { text-decoration: none; font-weight: 600; }
.crumb a::before { content: "‹ "; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Accueil ---------- */
.hero { padding: 28px 0 44px; }
.hero-in { display: grid; gap: 28px; }
.hero h1 { max-width: 14ch; }
.scan-form { display: grid; gap: 14px; margin-top: 22px; padding: 20px; background: var(--blanc); border: 1.5px solid var(--encre); border-radius: var(--rayon); box-shadow: 6px 6px 0 var(--encre); max-width: 520px; }

.bulletin { background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.bulletin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.bulletin-kicker { font-size: .85rem; font-weight: 600; color: var(--encre-2); margin: 0 0 2px; }
.bulletin-domain { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 4vw, 1.6rem); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.bulletin-meta { font-size: .85rem; color: var(--encre-2); margin: 6px 0 0; }
.bulletin-foot { font-size: .9rem; color: var(--encre-2); margin: 14px 0 0; }
.score-line { font-size: 1rem; color: var(--encre-2); margin: 0 0 12px; }
.score-line strong { font-family: var(--display); font-size: 2rem; color: var(--encre); letter-spacing: -.03em; }

/* Tampon de note : l'élément signature */
.stamp { flex: none; width: 112px; height: 112px; transform: rotate(-7deg); }
.stamp svg { width: 100%; height: 100%; display: block; }
.stamp-md { width: 84px; height: 84px; }
.stamp-sm { width: 52px; height: 52px; transform: rotate(-5deg); }
.st-outer { fill: none; stroke: currentColor; stroke-width: 5; }
.st-inner { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 4; }
.st-letter { font-family: var(--display); font-weight: 800; font-size: 62px; fill: currentColor; }
.g-A, .g-B { color: var(--ok); }
.g-C { color: #B37A00; }
.g-D { color: var(--elevee); }
.g-E, .g-F { color: var(--critique); }
.stamp-empty { display: grid; place-items: center; border: 2px dashed var(--trait); border-radius: 50%; color: var(--conseil); font: 700 1.3rem var(--display); transform: none; }

.sev-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sev { text-align: center; padding: 8px 2px; border-radius: var(--rayon-s); background: var(--papier); border-top: 4px solid; min-width: 0; }
.sev strong { display: block; font: 800 1.35rem var(--display); line-height: 1.1; }
.sev span { font-size: .72rem; font-weight: 600; color: var(--encre-2); }
.sev-critical { border-color: var(--critique); } .sev-critical strong { color: var(--critique); }
.sev-high { border-color: var(--elevee); } .sev-high strong { color: var(--elevee); }
.sev-medium { border-color: var(--moyenne); } .sev-medium strong { color: var(--moyenne); }
.sev-low { border-color: var(--faible); } .sev-low strong { color: var(--faible); }
.sev-info { border-color: var(--conseil); } .sev-info strong { color: var(--conseil); }
.sev-zero { border-color: var(--trait); } .sev.sev-zero strong { color: #A3ABC2; }
.sev-tag { display: inline-block; padding: .1em .6em; border-radius: 99px; font-size: .8rem; font-weight: 700; color: #fff; }
.sev-tag.sev-critical { background: var(--critique); } .sev-tag.sev-high { background: var(--elevee); } .sev-tag.sev-medium { background: var(--moyenne); } .sev-tag.sev-low { background: var(--faible); } .sev-tag.sev-info { background: var(--conseil); }

.checks { list-style: none; padding: 0; margin: 0; }
.check { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--trait); font-size: .96rem; }
.check-label { font-weight: 600; }
.check-state { flex: none; font-size: .86rem; font-weight: 700; text-align: right; }
.check-ok .check-state { color: var(--ok); }
.check-problem .check-state { color: var(--critique); }
.check-unknown .check-state, .check-locked .check-state { color: var(--conseil); }
.check-locked .check-label { color: var(--encre-2); font-weight: 500; }
.check-locked .check-state::before { content: ""; display: inline-block; width: 9px; height: 8px; margin-right: 6px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 -2px var(--blanc), 0 -5px 0 0 currentColor; }

.steps { list-style: none; counter-reset: etape; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: etape; padding-left: 58px; position: relative; }
.steps li::before { content: counter(etape); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--encre); border-radius: 50%; font: 800 1.2rem var(--display); background: var(--blanc); box-shadow: 3px 3px 0 var(--safran); }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--encre-2); }

.plans { display: grid; gap: 16px; margin-top: 24px; }
.plan { background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; }
.plan-main { border-color: var(--encre); box-shadow: 6px 6px 0 var(--safran); }
.plan-price { font: 800 1.9rem var(--display); letter-spacing: -.03em; margin: 0; }
.plan-price small { font: 500 .85rem var(--texte); letter-spacing: 0; }
.plan-tag { color: var(--encre-2); margin: 2px 0 14px; }
.plan ul, .ticks, .offer ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.plan li, .ticks li, .offer li { padding-left: 26px; position: relative; }
.plan li::before, .ticks li::before, .offer li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.faq { border-top: 1px solid var(--trait); }
.faq:last-of-type { border-bottom: 1px solid var(--trait); }
.faq summary { padding: 16px 30px 16px 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 1.5rem var(--display); color: var(--cobalt); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--encre-2); max-width: 65ch; }

/* ---------- Résultat du scan ---------- */
.result-in { display: grid; gap: 28px; align-items: start; }
.result-side h2 { margin-top: 4px; }
.pulse { width: 86px; height: 86px; margin: 20px auto 26px; border-radius: 50%; border: 5px solid var(--cobalt-pale); border-top-color: var(--cobalt); animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.progress-list { list-style: none; padding: 0; margin: 20px auto 0; max-width: 320px; text-align: left; display: grid; gap: 8px; color: var(--encre-2); }
.progress-list li { padding-left: 22px; position: relative; }
.progress-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); animation: clignote 1.4s ease-in-out infinite; }
.progress-list li:nth-child(2)::before { animation-delay: .2s; } .progress-list li:nth-child(3)::before { animation-delay: .4s; } .progress-list li:nth-child(4)::before { animation-delay: .6s; } .progress-list li:nth-child(5)::before { animation-delay: .8s; }
@keyframes clignote { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Cartes, fiches, replis ---------- */
.card { background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 20px; margin: 16px 0; }
.card-ok { border-color: #A9D9BD; background: linear-gradient(var(--ok-pale), var(--blanc) 70%); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar h2 { margin: 0; flex: 1 1 auto; }
.card > .toolbar:first-child { margin-bottom: 14px; }
.card > .toolbar:last-child { margin-top: 14px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0; }
.kv dt { font-size: .85rem; font-weight: 600; color: var(--encre-2); margin-top: 10px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.fold { margin: 14px 0; background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); }
.fold > summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:not(.btn)::after { content: "›"; float: right; font-size: 1.3rem; line-height: 1; color: var(--cobalt); transition: transform .15s; }
.fold[open] > summary:not(.btn)::after { transform: rotate(90deg); }
.fold > summary.btn { margin: 12px; display: inline-flex; }
.fold-body { padding: 4px 18px 18px; }
.card .fold { background: var(--papier); }
.row-form { display: grid; gap: 12px; align-items: end; }
.consent { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trait); }
.copy { cursor: copy; }
.copy.copied { background: var(--ok-pale); color: var(--ok); }
.qr { border: 1px solid var(--trait); border-radius: var(--rayon-s); }

.pill { display: inline-block; flex: none; padding: .2em .7em; border-radius: 99px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-pale); color: #0B5B34; }
.pill-wait { background: #FFF1D0; color: #7A4F00; }
.pill-todo { background: var(--cobalt-pale); color: #17257F; }
.pill-off { background: #E9ECF4; color: var(--encre-2); }

.domain-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.domain-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; }
.domain-row .pill { justify-self: start; grid-column: 2; }
.domain-row .btn { grid-column: 1 / -1; }
.domain-name { font: 700 1.15rem var(--display); color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
.domain-meta { font-size: .88rem; color: var(--encre-2); margin: 0; }
.domain-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.domain-head h1 { margin: 0; overflow-wrap: anywhere; }

.offer-list { display: grid; gap: 14px; margin: 14px 0; }
.offer { display: grid; gap: 14px; padding: 18px; border: 1.5px solid var(--trait); border-radius: var(--rayon); background: var(--papier); }
.offer h3 { margin-bottom: .1em; } .offer p { color: var(--encre-2); margin-bottom: .6em; } .offer ul { margin: 0; }
.offer-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.order-ref { font: 700 1.1rem var(--display); margin: 0; }
.order h2 { margin-top: 24px; }
.order-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: .85rem; color: var(--encre-2); }

/* ---------- Rapport ---------- */
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.report h2 { margin-top: 40px; }
.findings { display: grid; gap: 14px; }
.finding { background: var(--blanc); border: 1.5px solid var(--trait); border-left: 6px solid var(--conseil); border-radius: var(--rayon); padding: 18px; break-inside: avoid; }
.finding-critical { border-left-color: var(--critique); } .finding-high { border-left-color: var(--elevee); } .finding-medium { border-left-color: var(--moyenne); } .finding-low { border-left-color: var(--faible); }
.finding header { display: flex; gap: 12px; align-items: flex-start; }
.finding-num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--encre); color: #fff; font: 700 .9rem var(--display); }
.finding h3 { margin: 2px 0 6px; }
.finding-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .86rem; color: var(--encre-2); margin: 0; }
.finding-body { display: grid; gap: 14px; margin-top: 14px; }
.finding-body p, .finding-body ol { margin: 0; }
.finding-body ol { display: grid; gap: 6px; }
.who { margin-top: 8px !important; font-size: .9rem; font-weight: 600; }
.history { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.history li { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 6px 12px; font-size: .9rem; }
.mini { font: 800 1.05rem var(--display); margin-right: 4px; }
.report-foot { margin-top: 36px; font-size: .85rem; color: var(--encre-2); }

/* ---------- Tableaux (cartes empilées sur mobile) ---------- */
.table { width: 100%; border-collapse: collapse; }
.table thead { display: none; }
.table tr { display: block; background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 10px; }
.table td { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: .94rem; text-align: right; overflow-wrap: anywhere; }
.table td[data-label]::before { content: attr(data-label); flex: none; font-weight: 600; color: var(--encre-2); font-size: .85rem; text-align: left; }
.table td:empty { display: none; }
.table .cell-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.search input { min-height: 36px; padding: .3em .7em; }

.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose p, .prose li { max-width: 68ch; }

/* ---------- Pied de page ---------- */
.foot { background: var(--encre); color: #C9D0E6; margin-top: 20px; padding: 32px 0; font-size: .93rem; }
.foot-in { display: grid; gap: 20px; }
.foot-brand { font: 800 1.2rem var(--display); color: #fff; margin-bottom: 4px; }
.foot p { margin: 0 0 6px; }
.foot a { color: #fff; }
.foot nav { display: grid; gap: 8px; align-content: start; }

/* ---------- Écrans larges ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: minmax(150px, 220px) 1fr; }
  .kv dt, .kv dd { margin-top: 0; padding: 7px 0; border-top: 1px solid var(--papier); }
  .row-form { grid-template-columns: 1fr auto; }
  .domain-row { grid-template-columns: auto 1fr auto auto; }
  .domain-row .pill, .domain-row .btn { grid-column: auto; }
  .offer { grid-template-columns: 1fr auto; align-items: center; }
  .offer-buy { flex-direction: column; align-items: flex-end; }
  .foot-in { grid-template-columns: 1.4fr 1fr; }
  .top-nav { font-size: .95rem; gap: 4px 18px; }
  .sev span { font-size: .8rem; }
}
@media (min-width: 860px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .hero-bulletin { transform: rotate(1.5deg); box-shadow: 10px 10px 0 var(--cobalt-pale); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 56px 0 0; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .result-in { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .result-side { position: sticky; top: 24px; }
  .table thead { display: table-header-group; }
  .table tr { display: table-row; border: 0; border-radius: 0; padding: 0; background: none; }
  .table { background: var(--blanc); border: 1.5px solid var(--trait); border-radius: var(--rayon); border-collapse: separate; border-spacing: 0; overflow: hidden; }
  .table th { text-align: left; font-size: .82rem; font-weight: 700; color: var(--encre-2); padding: 10px 14px; background: var(--papier); border-bottom: 1.5px solid var(--trait); }
  .table td { display: table-cell; text-align: left; padding: 11px 14px; border-top: 1px solid var(--papier); vertical-align: middle; overflow-wrap: break-word; }
  .table td[data-label="Date"], .table td[data-label="Référence"], .table td[data-label="Total TTC"], .table td[data-label="Mission"], .table td[data-label="Inscrit le"], .table td[data-label="Domaine"] { white-space: nowrap; }
  .table-log td { white-space: normal !important; }
  .area-admin .section, .area-client .section, .area-auth .section, .area-scan .section { padding-top: 36px; }
  .table td[data-label]::before { content: none; }
  .table td:empty { display: table-cell; }
  .table .cell-actions { white-space: nowrap; padding-top: 11px; }
  .table .cell-actions form + form { margin-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Impression (export PDF) ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .top, .foot, .no-print, .skip, .notice-ok { display: none !important; }
  .section { padding: 0; }
  .card, .finding, .bulletin { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  .report h2 { margin-top: 22pt; }
  .kv { grid-template-columns: 160px 1fr; }
}
