/* Trustio — feuille de style. Police auto-hébergée, aucun appel externe. */
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --encre: #0B1B33;
  --encre-2: #43506A;
  --encre-3: #6B7890;
  --marine: #0A1B33;
  --marine-2: #132B4F;
  --bleu: #1554D1;
  --bleu-fonce: #0F419F;
  --bleu-pale: #EAF1FD;
  --fond: #FFFFFF;
  --fond-2: #F5F7FA;
  --trait: #E1E6EE;
  --trait-fort: #C9D1DE;
  --critique: #C4122F;
  --elevee: #D9541A;
  --moyenne: #A86E00;
  --faible: #2A6FBF;
  --conseil: #5F6A88;
  --ok: #107A46;
  --ok-pale: #E6F4EC;
  --err-pale: #FCEBEE;
  --warn-pale: #FFF3D6;
  --rayon: 12px;
  --rayon-s: 8px;
  --texte: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ombre: 0 12px 32px -12px rgba(10, 27, 51, .28), 0 2px 6px rgba(10, 27, 51, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--texte); font-size: 1rem; line-height: 1.55; color: var(--encre); background: var(--fond); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; color: var(--encre); }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
h2, .h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -.02em; }
h3, .h3 { font-size: 1.14rem; letter-spacing: -.005em; }
h4, .h4 { font-size: .93rem; font-weight: 600; margin-bottom: .3em; }
p { margin: 0 0 1em; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
small { font-size: .82em; font-weight: 500; color: var(--encre-3); }
code { font-family: var(--mono); font-size: .86em; background: var(--fond-2); border: 1px solid var(--trait); padding: .1em .4em; border-radius: 5px; overflow-wrap: anywhere; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #7FA8F5; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--encre); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--encre-3); }
.center { text-align: center; }
.inline { display: inline; }

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

/* ---------- En-tête ---------- */
.top { background: var(--fond); border-bottom: 1px solid var(--trait); position: relative; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; color: var(--encre); text-decoration: none; }
.brand:hover { color: var(--encre); }
.brand .mark { flex: none; }
.brand-tag { font: 500 .72rem var(--texte); letter-spacing: 0; color: var(--encre-2); background: var(--fond-2); border: 1px solid var(--trait); border-radius: 6px; padding: .15em .55em; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 4px 14px; justify-content: flex-end; font-size: .9rem; }
.nav-link, .link-btn { color: var(--encre-2); text-decoration: none; background: none; border: 0; padding: .4em 0; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .link-btn:hover { color: var(--bleu); }
.nav-wide { display: none; }
.top-nav .nav-cta { display: none; }

.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .7em .9em; font-weight: 500; font-size: .94rem; color: var(--encre-2); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--encre); }
.tabs a[aria-current] { color: var(--bleu); border-bottom-color: var(--bleu); font-weight: 600; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs a { padding: .35em .8em; border-radius: var(--rayon-s); border: 1px solid var(--trait-fort); background: var(--fond); color: var(--encre-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.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: .5em 1.15em; border-radius: var(--rayon-s); border: 1px solid var(--bleu); background: var(--bleu); color: #fff; font: 600 .97rem var(--texte); text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.btn-lg { min-height: 50px; font-size: 1.02rem; padding: .55em 1.5em; }
.btn-small { min-height: 36px; font-size: .88rem; padding: .3em .85em; }
.btn-ghost { background: var(--fond); color: var(--encre); border-color: var(--trait-fort); }
.btn-ghost:hover { background: var(--fond-2); color: var(--encre); border-color: var(--encre-3); }
.btn-danger { background: var(--fond); color: var(--critique); border-color: #E3A5AF; }
.btn-danger:hover { background: var(--critique); border-color: var(--critique); color: #fff; }

.field { display: grid; gap: 6px; }
.field label, legend { font-weight: 500; font-size: .9rem; color: var(--encre); }
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: .5em .8em; font: inherit; font-size: 1rem; color: var(--encre); background: var(--fond); border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); }
textarea { min-height: 110px; resize: vertical; }
input::placeholder { color: #9AA5B8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
.hint, .form-note { font-size: .86rem; color: var(--encre-3); margin: 0; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 14px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--bleu); }
fieldset { border: 0; margin: 0; min-width: 0; }
legend { font-size: 1.1rem; font-weight: 600; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
legend + * { clear: both; }

.notice { padding: .75em 1em; border-radius: var(--rayon-s); margin: 16px 0; font-size: .95rem; border: 1px solid; }
.notice-ok { background: var(--ok-pale); border-color: #B5DCC5; color: #0B5B34; }
.notice-err { background: var(--err-pale); border-color: #F0BCC4; color: #8C0C21; }
.notice-info { background: var(--bleu-pale); border-color: #C3D6F7; color: #123C8C; }
.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-3); background: var(--fond-2); border: 1px dashed var(--trait-fort); border-radius: var(--rayon); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tint { background: var(--fond-2); border-block: 1px solid var(--trait); }
.section-lead, .lead { font-size: 1.08rem; color: var(--encre-2); max-width: 64ch; }
.center .lead { margin-inline: auto; }
.two-col { display: grid; gap: 28px; margin-top: 24px; }
.two-col > div { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.defs { margin: 0; }
.defs dt { font-weight: 600; margin-top: 14px; }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: 2px 0 0; color: var(--encre-2); font-size: .96rem; }
.aside-note { margin: 18px 0 0; font-size: .92rem; padding: .75em 1em; background: var(--bleu-pale); border-radius: var(--rayon-s); color: #123C8C; }
.crumb { font-size: .9rem; margin-bottom: 10px; }
.crumb a { text-decoration: none; font-weight: 500; }
.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; }
.area-admin .section, .area-client .section, .area-auth .section, .area-scan .section { padding-top: 20px; }
.section h2.h3 { margin-top: 28px; }
.card h2.h3, .toolbar h2.h3 { margin-top: 0; }

/* ---------- Accueil ---------- */
.hero { background: var(--marine); background-image: radial-gradient(900px 420px at 85% 0%, #1B3F78 0%, rgba(27, 63, 120, 0) 70%); color: #fff; padding: 36px 0 44px; }
.hero-in { display: grid; gap: 30px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: #C4D0E4; }
.scan-form { display: grid; gap: 14px; margin-top: 24px; padding: 20px; background: var(--fond); color: var(--encre); border-radius: var(--rayon); box-shadow: var(--ombre); max-width: 520px; }
.section .scan-form { border: 1px solid var(--trait); box-shadow: none; }

.bulletin { background: var(--fond); color: var(--encre); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.hero-bulletin { border: 0; box-shadow: var(--ombre); }
.bulletin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.bulletin-kicker { font-size: .84rem; font-weight: 500; color: var(--encre-3); margin: 0 0 2px; }
.bulletin-domain { font-weight: 600; font-size: clamp(1.2rem, 4vw, 1.55rem); letter-spacing: -.02em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.bulletin-meta { font-size: .85rem; color: var(--encre-3); margin: 6px 0 0; }
.bulletin-head .pill { margin: 10px 0 0; }

.trust { border-bottom: 1px solid var(--trait); background: var(--fond); }
.trust-in { display: grid; grid-template-columns: 1fr; gap: 0; }
.trust-in > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--trait); }
.trust-in > div:first-child { border-top: 0; }
.trust .icon { flex: none; color: var(--bleu); margin-top: 2px; }
.trust p { margin: 0; font-size: .9rem; color: var(--encre-2); line-height: 1.45; }
.trust strong { display: block; color: var(--encre); font-weight: 600; font-size: .95rem; }

/* Jauge de note */
.gauge { flex: none; width: 116px; height: 116px; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge-md { width: 92px; height: 92px; }
.gauge-sm { width: 48px; height: 48px; }
.gauge-track { fill: none; stroke: var(--trait); stroke-width: 10; }
.gauge-arc { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.gauge-letter { font-family: var(--texte); font-weight: 700; font-size: 46px; fill: currentColor; }
.gauge-sm .gauge-letter { font-size: 52px; }
.gauge-score { font-family: var(--texte); font-weight: 500; font-size: 14px; fill: var(--encre-3); }
.g-A, .g-B { color: var(--ok); }
.g-C { color: #B37A00; }
.g-D { color: var(--elevee); }
.g-E, .g-F { color: var(--critique); }
.gauge-empty { display: grid; place-items: center; border: 2px dashed var(--trait-fort); border-radius: 50%; color: var(--encre-3); font-weight: 600; font-size: 1.1rem; }

.sev-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--trait); border-radius: var(--rayon-s); overflow: hidden; }
.sev { text-align: center; padding: 10px 2px 9px; min-width: 0; border-left: 1px solid var(--trait); background: var(--fond); }
.sev:first-child { border-left: 0; }
.sev strong { display: block; font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.sev span { font-size: .72rem; font-weight: 500; color: var(--encre-3); }
.sev-critical strong { color: var(--critique); } .sev-high strong { color: var(--elevee); } .sev-medium strong { color: var(--moyenne); } .sev-low strong { color: var(--faible); } .sev-info strong { color: var(--conseil); }
.sev.sev-zero strong { color: #B4BDCC; }
.sev-tag, .state-tag { display: inline-block; padding: .12em .6em; border-radius: 6px; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; }
.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); }
.state-new { background: var(--err-pale); color: #8C0C21; }
.state-still { background: var(--fond-2); color: var(--encre-2); border: 1px solid var(--trait); }

.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: .95rem; }
.check-label { font-weight: 500; }
.check-state { flex: none; font-size: .85rem; font-weight: 600; 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(--encre-3); font-weight: 500; }
.check-locked .check-label { color: var(--encre-3); font-weight: 400; }

.steps { list-style: none; counter-reset: etape; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: etape; padding-left: 52px; position: relative; }
.steps li::before { content: counter(etape); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; font-size: 1rem; background: var(--bleu-pale); color: var(--bleu); }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--encre-2); font-size: .96rem; }

.plans { display: grid; gap: 16px; margin-top: 26px; }
.plan { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; }
.plan-main { border: 2px solid var(--bleu); padding: 23px; }
.plan h3 { font-size: 1.05rem; color: var(--encre-2); font-weight: 500; margin-bottom: .5em; }
.plan-price { font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.plan-price small { font: 500 .85rem var(--texte); letter-spacing: 0; }
.plan-tag { color: var(--encre-2); margin: 4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--trait); font-size: .95rem; }
.plan ul, .ticks, .offer ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: .95rem; }
.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: .4em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px 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 34px 16px 0; font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--encre-3); border-bottom: 2px solid var(--encre-3); transform: rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq p { color: var(--encre-2); max-width: 68ch; }

/* ---------- Résultat du scan ---------- */
.result-in { display: grid; gap: 28px; align-items: start; }
.result-side h2 { margin-top: 4px; }
.pulse { width: 72px; height: 72px; margin: 24px auto 26px; border-radius: 50%; border: 5px solid var(--bleu-pale); border-top-color: var(--bleu); 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(--bleu); 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; } }

.locked-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; counter-reset: point 1; }
.locked-list li { counter-increment: point; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 12px 16px 12px 52px; position: relative; }
.locked-list li::before { content: counter(point); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--fond-2); border: 1px solid var(--trait); color: var(--encre-2); font-weight: 600; font-size: .82rem; }
.locked-title { font-weight: 600; grid-column: 1 / -1; order: -1; }
.locked-list .sev-tag { justify-self: start; }
.locked-note { font-size: .85rem; color: var(--encre-3); }
.locked-more { margin: 16px 0 0; font-size: .92rem; color: var(--encre-2); max-width: 75ch; }
.deep-list { display: grid; gap: 14px; margin-top: 20px; }
.deep { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; }
.deep h3 { font-size: 1.02rem; margin-bottom: .7em; }
.deep ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; color: var(--encre-2); }
.deep li { padding-left: 18px; position: relative; }
.deep li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--critique); }
.cta-row { margin-top: 26px; }
.sample { max-width: 880px; }
.sample-next { margin: 36px 0 0; }

/* ---------- Cartes, fiches, replis ---------- */
.card { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; margin: 16px 0; }
.card-ok { border-color: #B5DCC5; border-left: 4px solid var(--ok); }
.card-muted { background: var(--fond-2); }
.card-muted p { color: var(--encre-2); margin: 0; }
.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: .84rem; font-weight: 500; color: var(--encre-3); margin-top: 10px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.fold { margin: 14px 0; background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); }
.fold > summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:not(.btn)::after { content: ""; position: absolute; right: 20px; top: 20px; width: 8px; height: 8px; border-right: 2px solid var(--encre-3); border-bottom: 2px solid var(--encre-3); transform: rotate(-45deg); transition: transform .15s; }
.fold[open] > summary:not(.btn)::after { transform: rotate(45deg); }
.fold > summary.btn { margin: 12px; display: inline-flex; }
.fold-body { padding: 4px 18px 18px; }
.card .fold { background: var(--fond-2); }
.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); border-color: #B5DCC5; color: var(--ok); }
.code-block { display: block; padding: .7em .9em; font-size: .8rem; line-height: 1.5; }
.qr { border: 1px solid var(--trait); border-radius: var(--rayon-s); }
.test-mail { margin-top: 14px; }
.seal-img { display: block; }

.pill { display: inline-block; flex: none; padding: .2em .7em; border-radius: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--ok-pale); color: #0B5B34; }
.pill-wait { background: var(--warn-pale); color: #7A4F00; }
.pill-todo { background: var(--bleu-pale); color: #123C8C; }
.pill-off { background: #ECEFF4; color: var(--encre-2); }
.pill-bad { background: var(--err-pale); color: #8C0C21; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 0; border: 1px solid var(--trait); border-radius: var(--rayon-s); overflow: hidden; }
.stats > div { padding: 12px 14px; border-left: 1px solid var(--trait); background: var(--fond); min-width: 0; }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: .78rem; font-weight: 500; color: var(--encre-3); line-height: 1.3; }
.stats dd { margin: 4px 0 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.stat-ok { color: var(--ok); } .stat-bad { color: var(--critique); }
.upbar { display: flex; gap: 3px; height: 28px; margin: 4px 0 10px; }
.upbar span { flex: 1 1 0; border-radius: 3px; background: var(--trait); }
.upbar .d-ok { background: #35A46C; } .upbar .d-warn { background: #E0A21A; } .upbar .d-bad { background: var(--critique); }
.incidents { font-size: .93rem; }
.progress-box { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px 20px; margin: 18px 0; background: var(--fond-2); }
.progress-box .stats { background: var(--fond); }
.progress-title { font-weight: 600; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.delta { font-size: .85rem; font-weight: 600; padding: .15em .6em; border-radius: 6px; background: #ECEFF4; color: var(--encre-2); }
.delta-up { background: var(--ok-pale); color: #0B5B34; } .delta-down { background: var(--err-pale); color: #8C0C21; }
.fixed-list { margin: 4px 0 0 !important; }

.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(--fond); border: 1px 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-weight: 600; font-size: 1.1rem; color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
.domain-meta { font-size: .87rem; color: var(--encre-3); 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: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond-2); }
.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-weight: 600; font-size: 1.05rem; margin: 0; color: var(--encre-2); }
.card.order h2.h3 { margin-top: 28px; }
.order-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: .84rem; color: var(--encre-3); }

/* ---------- Rapport ---------- */
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.report h2 { margin-top: 40px; }
.findings { display: grid; gap: 14px; }
.finding { background: var(--fond); border: 1px solid var(--trait); border-left: 4px solid var(--conseil); border-radius: var(--rayon-s); padding: 20px; 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: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--fond-2); border: 1px solid var(--trait); color: var(--encre-2); font-weight: 600; font-size: .85rem; }
.finding h3 { margin: 2px 0 7px; }
.finding-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .85rem; color: var(--encre-3); margin: 0; }
.finding-body { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--trait); }
.finding-body p, .finding-body ol { margin: 0; }
.finding-body ol { display: grid; gap: 6px; }
.finding-body h4 { color: var(--encre-2); }
.who { margin-top: 10px !important; font-size: .9rem; font-weight: 500; color: var(--encre-2); }
.history { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.history li { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 6px 12px; font-size: .9rem; }
.mini { font-weight: 700; font-size: 1.05rem; margin-right: 4px; }
.report-foot { margin-top: 36px; font-size: .85rem; color: var(--encre-3); }

/* ---------- Tableaux (cartes empilées sur mobile) ---------- */
.table { width: 100%; border-collapse: collapse; }
.table thead { display: none; }
.table tr { display: block; background: var(--fond); border: 1px 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: .93rem; text-align: right; overflow-wrap: anywhere; }
.table td[data-label]::before { content: attr(data-label); flex: none; font-weight: 500; color: var(--encre-3); font-size: .84rem; 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.2rem; margin-top: 1.8em; }
.prose p, .prose li { max-width: 70ch; }
.auth-alt { margin-top: 18px; font-size: .95rem; color: var(--encre-2); }
.area-auth .wrap.auth { background: var(--fond); }

/* ---------- Pied de page ---------- */
.foot { background: var(--marine); color: #B4C1D8; margin-top: 0; padding: 40px 0 0; font-size: .92rem; }
.foot-in { display: grid; gap: 28px; padding-bottom: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.foot p { margin: 0 0 8px; max-width: 42ch; }
.foot a { color: #DCE5F3; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot nav { display: grid; gap: 9px; align-content: start; }
.foot-title { color: #fff; font-weight: 600; font-size: .9rem; margin: 0 0 2px !important; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 20px; font-size: .84rem; color: #8FA0BD; }

/* ---------- É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: 8px 0; border-top: 1px solid var(--trait); }
  .kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; }
  .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.6fr 1fr 1fr; }
  .top-nav { font-size: .93rem; gap: 4px 20px; }
  .sev span { font-size: .8rem; }
  .stats dd { font-size: 1.25rem; }
  .locked-list li { grid-template-columns: auto 1fr auto; }
  .locked-title { grid-column: auto; order: 0; }
  .trust-in { grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .trust-in > div:nth-child(2) { border-top: 0; }
  .top-nav .nav-cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .section { padding: 72px 0; }
  .area-admin .section, .area-client .section, .area-auth .section, .area-scan .section { padding-top: 36px; }
  .hero { padding: 72px 0 80px; }
  .hero-in { grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
  .trust-in { grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
  .trust-in > div { border-top: 0; padding: 22px 0; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding: 52px 0 0; }
  .steps li::after { content: ""; position: absolute; left: 48px; right: -20px; top: 15px; height: 1px; background: var(--trait-fort); }
  .steps li:last-child::after { content: none; }
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .result-in { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .result-side { position: sticky; top: 24px; }
  .deep-list { grid-template-columns: repeat(3, 1fr); }
  .nav-wide { display: inline; }
  .table thead { display: table-header-group; }
  .table tr { display: table-row; border: 0; border-radius: 0; padding: 0; background: none; }
  .table { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); border-collapse: separate; border-spacing: 0; overflow: hidden; }
  .table th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--encre-3); padding: 10px 14px; background: var(--fond-2); border-bottom: 1px solid var(--trait); }
  .table td { display: table-cell; text-align: left; padding: 11px 14px; border-top: 1px solid var(--trait); vertical-align: middle; overflow-wrap: break-word; }
  .table tbody tr:first-child td { border-top: 0; }
  .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; }
  .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; }
}

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

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

.seal-card h2.h3 { margin-top: 26px; }
.card h3.h4 { margin: 18px 0 6px; }

.tech-list { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li { background: var(--fond-2); border: 1px solid var(--trait); border-radius: 6px; padding: .3em .7em; font-size: .9rem; }

.vuln-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.vuln-list li { padding: 10px 12px; background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-s); }
.vuln-list strong { display: block; }
.legal-notice { margin-top: 10px !important; font-size: .72rem; line-height: 1.45; color: var(--encre-3); }

/* ---------- Page d'accueil, version 3 ---------- */
.hero-origin { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: .3em .8em .3em .6em; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; font-size: .84rem; font-weight: 500; color: #D5DEEE; }
.hero-origin .icon { width: 16px; height: 16px; color: #8FB4FF; }
.hero-visual { position: relative; }
.hero-alert { display: flex; gap: 12px; align-items: flex-start; background: var(--fond); color: var(--encre); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; margin: 12px 0 0; }
.hero-alert p { margin: 0; font-size: .84rem; color: var(--encre-3); line-height: 1.4; }
.hero-alert strong { display: block; color: var(--encre); font-size: .93rem; font-weight: 600; margin-bottom: 2px; }
.cases { display: grid; gap: 16px; margin-top: 26px; }
.case { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; background: var(--fond); display: flex; flex-direction: column; }
.case-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--err-pale); color: var(--critique); margin-bottom: 16px; }
.case h3 { font-size: 1.12rem; margin-bottom: .45em; }
.case p { color: var(--encre-2); font-size: .96rem; }
.case-cause { margin: auto 0 0 !important; padding-top: 14px; border-top: 1px solid var(--trait); font-size: .86rem !important; font-weight: 500; color: var(--encre) !important; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.tile { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; }
.tile .icon { color: var(--bleu); margin-bottom: 10px; }
.tile h3 { font-size: 1rem; margin-bottom: .3em; }
.tile p { margin: 0; font-size: .88rem; color: var(--encre-2); line-height: 1.45; }
.tiles-note { margin: 18px 0 0; font-size: .88rem; color: var(--encre-3); }
.report-demo { display: grid; gap: 28px; align-items: start; }
.report-demo .sample { max-width: none; }
.report-demo .ticks { margin-top: 18px; }
.features { display: grid; gap: 16px; margin-top: 26px; }
.feature { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; background: var(--fond); }
.feature-visual { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 16px; margin-bottom: 18px; min-height: 104px; display: grid; align-content: center; }
.feature-visual .stats { margin: 0; }
.feature-visual .upbar { margin: 0 0 8px; }
.feature-caption { margin: 0; font-size: .8rem; color: var(--encre-3); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--encre-2); font-size: .96rem; margin: 0; }
.seal-demo { display: inline-flex; align-items: center; gap: 12px; background: var(--fond); border: 1px solid var(--trait-fort); border-radius: 10px; padding: 8px 16px 8px 10px; justify-self: start; }
.seal-demo p { margin: 0; font-size: .8rem; color: var(--encre-3); line-height: 1.35; }
.seal-demo strong { display: block; color: var(--encre); font-size: .95rem; }
.cta-band { background: var(--marine); color: #fff; padding: 44px 0; }
.cta-band-in { display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #C4D0E4; }
.btn-light { background: #fff; color: var(--marine); border-color: #fff; justify-self: start; }
.btn-light:hover { background: #E8EEF9; border-color: #E8EEF9; color: var(--marine); }
.foot { border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cta-band-in { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .cases, .features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .report-demo { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .report-demo-copy { position: sticky; top: 24px; }
  .hero-alert { position: absolute; left: -36px; bottom: -28px; width: 330px; margin: 0; }
  .hero-visual { padding-bottom: 36px; }
  .cta-band { padding: 64px 0; }
}

/* ---------- Bouton WhatsApp ---------- */
.wa-btn { position: fixed; right: 16px; bottom: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 13px; border-radius: 99px; background: #0F7A4B; color: #fff; font-weight: 600; font-size: .93rem; text-decoration: none; box-shadow: 0 8px 22px -8px rgba(10, 27, 51, .5); }
.wa-btn:hover { background: #0B6039; color: #fff; }
.nav-lang { font-weight: 600; }

/* ---------- Version arabe : police et sens de lecture ---------- */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", var(--texte); line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] h1 { font-size: clamp(1.9rem, 4.800vw, 2.800rem); max-width: 18ch; }
[dir="rtl"] .btn, [dir="rtl"] input, [dir="rtl"] .gauge-letter, [dir="rtl"] .gauge-score { font-family: "IBM Plex Sans Arabic", var(--texte); }
[dir="rtl"] .gauge-letter, [dir="rtl"] .gauge-score { font-family: var(--texte); }
[dir="rtl"] .check-state { text-align: left; }
[dir="rtl"] .sev { border-left: 0; border-right: 1px solid var(--trait); }
[dir="rtl"] .sev:first-child { border-right: 0; }
[dir="rtl"] .stats > div { border-left: 0; border-right: 1px solid var(--trait); }
[dir="rtl"] .stats > div:first-child { border-right: 0; }
[dir="rtl"] .steps li { padding-left: 0; padding-right: 52px; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] .plan li, [dir="rtl"] .ticks li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .plan li::before, [dir="rtl"] .ticks li::before { left: auto; right: 3px; }
[dir="rtl"] .faq summary { padding: 16px 0 16px 34px; }
[dir="rtl"] .faq summary::after { right: auto; left: 8px; }
[dir="rtl"] .wa-btn { right: auto; left: 16px; padding: 0 13px 0 16px; }
[dir="rtl"] [dir="ltr"] { font-family: var(--texte); line-height: 1.55; }
[dir="rtl"] [dir="ltr"] h3 { letter-spacing: -.005em; line-height: 1.2; }
[dir="rtl"] input[dir="ltr"] { text-align: left; }
@media (min-width: 900px) {
  [dir="rtl"] .steps li { padding: 52px 0 0; }
  [dir="rtl"] .steps li::after { left: -20px; right: 48px; }
  [dir="rtl"] .hero-alert { left: auto; right: -36px; }
}
@media print { .wa-btn { display: none !important; } }
[dir="rtl"] .plan-price small { display: block; margin-top: 6px; }
@media (max-width: 639px) {
  .wa-btn { width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; }
  [dir="rtl"] .wa-btn { padding: 0; }
  .wa-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
