/* idprotection.online : styles. Aucune ressource externe (Manrope auto-hebergee). */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #edf1ef;
  --surface: #fbfcfb;
  --ink: #1c2a3a;
  --muted: #56677a;
  --line: #c8d2ce;
  --brand: #1d3557;
  --securite: #1d3557;
  --attention: #7b2d6b;
  --collaboration: #8a6417;
  --eco: #3e6a48;
  --danger: #a3261f;
  --ok: #2f6b3d;
  --focus: #2a6fdb;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 6px;
  --r-lg: 18px;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { font-size: 90%; scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.1vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 680px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 62ch; }
.fine, small { color: var(--muted); font-size: .88rem; }
.warn { background: #fff4d6; border-left: 4px solid var(--collaboration); padding: 12px 16px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 12px 20px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--ink:hover { background: #122640; border-color: #122640; }
.btn--line { background: transparent; }
.btn--small { padding: 9px 14px; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }

/* En-tete */
.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(237, 241, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site__row { display: flex; align-items: center; gap: 22px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand__name { font: 700 1.3rem/1 "Manrope", var(--sans); letter-spacing: -.015em; }
.brand__name span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 600; }
.nav a:hover { text-decoration: underline; }
.cartbtn { font: 600 .95rem var(--sans); border: 2px solid var(--brand); color: var(--brand); background: var(--surface); border-radius: 999px; padding: 7px 8px 7px 16px; display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.cartbtn__n { background: var(--brand); color: #fff; border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: .85rem; }
.cartbtn.bump .cartbtn__n { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__text h1 { max-width: 16ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero__fine { color: var(--muted); font-size: .92rem; }

.idcard { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, #f5f7fb 0%, #eef2f6 45%, #f6eef3 100%); border: 1px solid #b9c6cf; box-shadow: 0 1px 0 #fff inset, 0 24px 48px -28px rgba(29, 53, 87, .45); aspect-ratio: 1.586; min-height: 270px; max-width: 520px; justify-self: end; width: 100%; }
.guilloche { position: absolute; inset: 0; width: 100%; height: 100%; }
.guilloche path { fill: none; stroke-width: .7; vector-effect: non-scaling-stroke; }
.guilloche .g0 { stroke: #9fb3c2; opacity: .5; }
.guilloche .g1 { stroke: var(--securite); opacity: .42; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.guilloche .g2 { stroke: var(--attention); opacity: .36; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .25s cubic-bezier(.4, 0, .2, 1) forwards; }
.guilloche .g3 { stroke: var(--eco); opacity: .34; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.idcard__body { position: relative; padding: 24px 26px 18px; display: flex; flex-direction: column; height: 100%; }
.idcard__kind { font-size: .82rem; color: var(--muted); margin: 0; }
.idcard__who { font: 600 1.3rem var(--serif); margin: 2px 0 14px; }
.idcard__rows { margin: 0; display: grid; gap: 8px; max-width: 330px; }
.idcard__rows div { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px dashed rgba(28, 42, 58, .22); padding-bottom: 6px; font-size: .92rem; }
.idcard__rows dt { color: var(--muted); }
.idcard__rows dd { margin: 0; font-weight: 600; text-align: right; }
.idcard__mrz { margin: auto 0 0; padding-top: 12px; font: .78rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; color: rgba(28, 42, 58, .55); overflow: hidden; white-space: nowrap; }

/* Offre */
.offer { padding-top: 24px; }
.offer__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); padding-top: 28px; }
.offer__head h2 { margin: 0; }
.offer__note { color: var(--muted); font-size: .9rem; margin: 10px 0 8px; max-width: 70ch; }
.cycle { border: 0; margin: 0; padding: 4px; display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.cycle label { position: relative; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.cycle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cycle label:has(input:checked) { background: var(--ink); color: #fff; }
.cycle label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.cat { --c: var(--securite); padding: 44px 0; border-bottom: 1px solid var(--line); }
.cat--attention { --c: var(--attention); }
.cat--collaboration { --c: var(--collaboration); }
.cat--eco { --c: var(--eco); }
.cat__grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2.3fr; gap: 40px; }
.cat__head { position: sticky; top: 96px; align-self: start; border-left: 6px solid var(--c); padding-left: 18px; }
.cat__head h3 { color: var(--c); font-size: 1.6rem; }
.cat__head p { color: var(--muted); }
.prods { list-style: none; margin: 0; padding: 0; }
.prod { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.prod:first-child { border-top: 0; padding-top: 0; }
.prod h4 { margin-bottom: 6px; }
.prod__main p { margin: 0; color: #34465a; max-width: 58ch; }
.prod__side { text-align: right; display: grid; justify-items: end; gap: 8px; min-width: 170px; }
.prod__price { margin: 0; line-height: 1.25; }
.prod__from { display: block; font-size: .8rem; color: var(--muted); }
.prod__price strong { font: 600 1.4rem var(--serif); color: var(--c); }
.prod__price [data-per] { display: block; font-size: .82rem; color: var(--muted); }
.prod__incart { font-size: .85rem; color: var(--ok); font-weight: 600; }
.prod.is-in .btn { border-color: var(--ok); }

/* Etapes */
.steps { padding: 72px 0; }
.steps__list { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__list li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps__list li::before { content: counter(s); font: 600 2.2rem/1 var(--serif); color: var(--brand); display: block; margin-bottom: 10px; }
.steps__list h3 { font-size: 1.15rem; }
.steps__list p { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { padding: 24px 0 88px; }
.faq__wrap { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--serif); color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: #34465a; max-width: 70ch; }

/* Pages simples */
.page { padding: 64px 0 96px; min-height: 55vh; }
.stack { display: grid; gap: 16px; max-width: 420px; }
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal p { max-width: 70ch; }

/* Formulaires */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
input, select { font: inherit; color: var(--ink); }
.field input, .adm-filter input, .adm-filter select, .seats input { padding: 11px 12px; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); background: #fff; width: 100%; }
.field input[aria-invalid="true"], .seats input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.form-err, .field-err { color: var(--danger); font-weight: 600; font-size: .93rem; margin: 0; }
.form-err { background: #fbeceb; border-left: 4px solid var(--danger); padding: 10px 12px; }

/* Dialogues */
.dlg { border: 0; padding: 0; background: var(--surface); color: var(--ink); max-height: 100%; }
.dlg::backdrop { background: rgba(20, 30, 42, .5); }
.dlg__inner { display: flex; flex-direction: column; height: 100%; max-height: inherit; margin: 0; }
.dlg__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px 24px 12px; border-bottom: 1px solid var(--line); }
.dlg__head h2 { font-size: 1.5rem; margin: 0; }
.dlg__x { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.dlg__scroll { overflow-y: auto; padding: 18px 24px; flex: 1; }
.dlg__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.dlg__total { margin: 0; line-height: 1.2; }
.dlg__total span { display: block; font: 600 1.4rem var(--serif); }
.dlg__total small { display: block; }
.dlg__tag { color: #34465a; }
.dlg__note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin-top: 18px; }

.dlg--config { width: min(680px, 100% - 24px); max-height: min(92vh, 900px); border-radius: var(--r-lg); margin: auto; }
.dlg--config .dlg__inner { max-height: min(92vh, 900px); }
.dlg--cart { width: min(480px, 100%); height: 100%; max-height: 100%; margin: 0 0 0 auto; border-radius: 0; }
.dlg--cart[open] { animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } }

.feat { padding-left: 20px; margin: 0 0 18px; color: #34465a; font-size: .95rem; }
.feat li { margin-bottom: 4px; }
.plans, .opts { border: 0; padding: 0; margin: 0 0 18px; }
.plans legend, .opts legend { font: 600 1.05rem var(--serif); margin-bottom: 10px; padding: 0; }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 12px 12px 14px; cursor: pointer; background: #fff; }
.plan input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand) inset; }
.plan:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.plan__name { font-weight: 700; display: block; }
.plan__price { font: 600 1.15rem var(--serif); display: block; margin: 2px 0 6px; }
.plan ul { margin: 0; padding-left: 16px; font-size: .82rem; color: var(--muted); }
.seats { margin: 0 0 18px; display: grid; gap: 6px; max-width: 340px; }
.seats label { font-weight: 600; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; }
.opt input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.opt__name { font-weight: 600; display: block; }
.opt__desc { font-size: .86rem; color: var(--muted); display: block; }
.opt__price { font-weight: 600; font-size: .92rem; white-space: nowrap; text-align: right; }
.opt__price small { display: block; font-weight: 400; }
.opt.is-off { opacity: .45; }
.opt.is-off .opt__desc::after { content: " Non offerte avec ce forfait."; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); background: #fff; }
.qty button { border: 0; background: transparent; width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty button:disabled { color: #b5c0c7; cursor: not-allowed; }
.qty output { min-width: 24px; text-align: center; font-weight: 600; }

.cart__empty { color: var(--muted); }
.cart__lines { list-style: none; margin: 0; padding: 0; }
.cline { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.cline__name { font-weight: 700; }
.cline__meta { font-size: .86rem; color: var(--muted); grid-column: 1 / -1; }
.cline__amt { text-align: right; font-weight: 600; }
.cline__actions { grid-column: 1 / -1; display: flex; gap: 14px; }
.linkbtn { border: 0; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.linkbtn--danger { color: var(--danger); }
.cart__cycle { margin: 16px 0 6px; }
.cart__cycle .cycle { width: 100%; }
.cart__cycle .cycle label { flex: 1; text-align: center; font-size: .86rem; white-space: nowrap; padding: 9px 10px; }
.cart__totals { margin: 12px 0 20px; display: grid; gap: 4px; }
.cart__totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.cart__totals dt { color: var(--muted); }
.cart__totals dd { margin: 0; font-weight: 600; }
.cart__totals .is-total { border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; font-size: 1.08rem; }
.cart__totals .is-total dt { color: var(--ink); font-weight: 600; }
.cart__form { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.cart__fine { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* Admin */
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 28px; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpis dt { font-size: .85rem; color: var(--muted); }
.kpis dd { margin: 4px 0 0; font: 600 1.5rem var(--serif); }
.adm-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.adm-filter label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.adm { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 860px; }
.adm th, .adm td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm th { background: var(--paper); font-weight: 600; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #e3e8ec; }
.pill--active, .pill--paid { background: #dcefe0; color: var(--ok); }
.pill--past_due, .pill--failed, .pill--error { background: #fbe1df; color: var(--danger); }
.pill--canceling, .pill--processing { background: #fff1cc; color: #7a5a00; }

/* Pied */
.foot { background: var(--ink); color: #d8e0e6; padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot a { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; }
.foot__brand { margin-bottom: 14px; }
.foot__brand img { display: block; width: 240px; height: auto; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 60; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .idcard { max-width: 560px; }
  .cat__grid { grid-template-columns: 1fr; gap: 20px; }
  .cat__head { position: static; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav { display: none; }
  .mnav { display: block; }
  .cartbtn { margin-left: auto; }
  .prod { grid-template-columns: 1fr; gap: 12px; }
  .prod__side { text-align: left; justify-items: start; grid-template-columns: 1fr auto; align-items: center; width: 100%; }
  .prod__incart { grid-column: 1 / -1; }
  .plans__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .idcard { aspect-ratio: auto; }
  .idcard__rows div { grid-template-columns: 1fr; gap: 0; }
  .idcard__rows dd { text-align: left; }
  .dlg--config { width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
  .dlg--config .dlg__inner { max-height: 100%; }
  .dlg__foot { flex-direction: column; align-items: stretch; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guilloche path { animation: none !important; stroke-dashoffset: 0 !important; }
  .dlg--cart[open], .cartbtn.bump .cartbtn__n { animation: none; }
}
.hashline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; overflow-x: auto; white-space: pre; font: .85rem/1.4 ui-monospace, Consolas, monospace; user-select: all; }

/* ================= v2 : pages, services, rapport, admin ================= */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; min-width: 220px; box-shadow: 0 12px 30px rgba(20, 30, 42, .18); z-index: 30; }
.mnav nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.mnav nav a[aria-current="page"] { background: var(--paper); font-weight: 600; }
@media (max-width: 960px) { .nav { gap: 14px; font-size: .9rem; } }
@media (max-width: 1080px) and (min-width: 721px) { .nav a:last-child { display: none; } }

.page-head { padding: 44px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3em; }
.offer__bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --c: var(--securite); text-decoration: none; color: var(--c); border: 1.5px solid var(--c); border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 600; background: var(--surface); }
.chip.cat--attention, .fam.cat--attention, .svcs.cat--attention, .rdoc__svc.cat--attention, .exec__svc.cat--attention { --c: var(--attention); }
.chip.cat--collaboration, .fam.cat--collaboration, .svcs.cat--collaboration, .rdoc__svc.cat--collaboration, .exec__svc.cat--collaboration { --c: var(--collaboration); }
.chip.cat--eco, .fam.cat--eco, .svcs.cat--eco, .rdoc__svc.cat--eco, .exec__svc.cat--eco { --c: var(--eco); }
.fam, .svcs, .rdoc__svc, .exec__svc { --c: var(--securite); }

.families { padding: 24px 0 56px; }
.families__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.fam { background: var(--surface); border-top: 5px solid var(--c); border-radius: 0 0 10px 10px; padding: 18px 18px 14px; }
.fam h3 { color: var(--c); font-size: 1.25rem; }
.fam p { color: var(--muted); font-size: .95rem; }
.fam ul { list-style: none; padding: 0; margin: 0; }
.fam li { border-top: 1px solid var(--line); padding: 8px 0; }
.fam a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fam a:hover { color: var(--c); text-decoration: underline; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.band p { color: #34465a; max-width: 52ch; }

.svcs { padding: 36px 0 12px; }
.svcs__head { border-left: 6px solid var(--c); padding-left: 16px; margin-bottom: 24px; }
.svcs__head h2 { color: var(--c); margin-bottom: .2em; }
.svcs__head p { color: var(--muted); margin: 0; }
.svc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; scroll-margin-top: 90px; }
.svc__media img { width: 100%; height: auto; display: block; border-radius: 12px; }
.svc__body h3 { font-size: 1.6rem; margin-bottom: .2em; color: var(--ink); }
.svc__tag { font-size: 1.05rem; color: #34465a; }
.svc__body h4 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 14px 0 4px; color: var(--c); }
.svc__body p { max-width: 70ch; margin-bottom: .6em; }
.svc__plans { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.tier h5 { font: 700 1.05rem var(--sans); margin: 0 0 2px; }
.tier__price { margin: 0 0 8px; }
.tier__price strong { font: 600 1.35rem var(--serif); color: var(--c); }
.tier__price span { color: var(--muted); font-size: .85rem; }
.tier__ideal { font-size: .92rem; color: #34465a; border-left: 3px solid var(--c); padding-left: 10px; }
.tier ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.svc__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.svc__note { flex: 1 1 380px; margin: 0; font-size: .88rem; color: var(--muted); }
.svc__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.svc__cta .prod__price strong { color: var(--c); }
.svc.is-in { border-color: var(--ok); }

.prose { padding: 36px 0 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }

.report-demo { padding: 32px 0 72px; }
.report-demo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.rdoc { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(20, 30, 42, .35); padding: 32px 36px; }
.rdoc__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.rdoc__meta { text-align: right; display: grid; }
.rdoc__meta strong { font-size: 1.1rem; }
.rdoc__meta span { font-size: .85rem; color: var(--muted); }
.rdoc__who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #f1f4f2; padding: 14px 16px; margin: 18px 0; }
.rdoc__who div { display: grid; }
.rdoc__who small { color: var(--muted); }
.rdoc__who span { font-size: .9rem; color: #34465a; }
.rdoc__svc { margin-top: 22px; }
.rdoc__svc h2 { font-size: 1.25rem; color: var(--c); border-left: 4px solid var(--c); padding-left: 10px; margin-bottom: 2px; }
.rdoc__sub { font-size: .85rem; color: var(--muted); margin: 0 0 8px 14px; }
.rdoc__svc table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rdoc__svc th { text-align: left; font-weight: 400; color: #34465a; padding: 7px 12px; }
.rdoc__svc td { text-align: right; font-weight: 700; padding: 7px 12px; }
.rdoc__svc tr:nth-child(odd) { background: #f6f8f7; }
.rdoc__notes { font-size: .9rem; color: #34465a; margin: 10px 12px 0; }
.report-side { position: sticky; top: 90px; }
.report-side h2 { font-size: 1.3rem; }
.report-side p { font-size: .95rem; color: #34465a; }
.foot__fine { font-size: .82rem; color: #b9c6cf; margin-top: 14px; }

/* Admin */
.adm-page { padding-top: 28px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.adm-tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px 8px 0 0; }
.adm-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.adm-tabs__out { margin-left: auto; font-weight: 400 !important; color: var(--muted) !important; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.adm-head h1 { font-size: 2rem; margin-bottom: .2em; }
.adm-h2 { font-size: 1.35rem; margin-top: 28px; }
.flash { padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.flash--ok { background: #dcefe0; color: var(--ok); }
.flash--err { background: #fbe1df; color: var(--danger); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 18px; min-width: 0; }
.card > summary { cursor: pointer; font-weight: 700; }
.card[open] > summary { margin-bottom: 14px; }
fieldset.card > legend { font: 700 1.05rem var(--sans); padding: 0 6px; }
.card h2 { font-size: 1.2rem; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.stack--wide { max-width: none; }
.indent { margin-left: 28px; margin-bottom: 12px; }
textarea, .field select { font: inherit; padding: 10px 12px; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); background: #fff; width: 100%; }
.field input[readonly] { background: var(--paper); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.num { width: 76px !important; padding: 6px 8px !important; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); }
.replist { list-style: none; margin: 0; padding: 0; }
.replist li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.replist__act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.replist__act form, .row-actions form { margin: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.adm--plain { min-width: 0; }
.pick__row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.pick__row:first-child { border-top: 0; }
.pick__cfg { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .9rem; }
.pick__cfg label { display: inline-flex; align-items: center; gap: 6px; }
.pick__cfg select { padding: 6px 8px; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); background: #fff; font: inherit; }
.pick__opt small { color: var(--muted); }
.neworder__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.preview ul { padding-left: 18px; }
.exec__svc { border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 10px; padding: 12px 16px; margin: 14px 0; background: #fff; }
.exec__svc legend { font-weight: 700; color: var(--c); padding: 0 6px; }
.exec__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin-bottom: 10px; }
.narrowfield { max-width: 380px; margin-bottom: 8px; }
@media (max-width: 960px) {
  .families__grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc__media { max-width: 420px; }
  .report-demo .wrap { grid-template-columns: 1fr; }
  .report-side { position: static; }
  .adm-cols, .band__grid { grid-template-columns: 1fr; }
  .pick__row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mnav { display: block; }
  .families__grid, .svc__plans, .grid2, .rdoc__who { grid-template-columns: 1fr; }
  .rdoc { padding: 20px 16px; }
  .idcard { justify-self: stretch; }
}

/* Recherche d'exposition */
.scanrun progress { width: 100%; height: 12px; }
.scantable td { font-size: .88rem; }
.scantable tr.is-web td { background: #fbfaf6; }
.scanhits ul { margin: 0; padding-left: 16px; max-width: 360px; }
.scanhits li { margin-bottom: 3px; word-break: break-word; }
.scanform { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 300px; }
.scanform select, .scanform input { padding: 6px 8px; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); font: inherit; font-size: .85rem; background: #fff; }
.scanform input { flex: 1 1 140px; }
.breaches { font-size: .9rem; padding-left: 18px; }
.pill { white-space: nowrap; }

.conf { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-bottom: 4px; }
.conf--high { background: #dcefe0; color: var(--ok); }
.conf--mid { background: #fff1cc; color: #7a5a00; }
.conf--low { background: #e3e8ec; color: var(--muted); }
.tag { font-size: .75rem; padding: 1px 7px; border-radius: 999px; }
.tag--ok { background: #dcefe0; color: var(--ok); font-weight: 600; }
.bulkbar { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 6px 16px -10px rgba(20,30,42,.3); }
.scantable tr.is-pre td { background: #eef7f0; }
.scantable td:first-child { width: 28px; }
.scantable input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.scanedit { min-width: 230px; }
.scanedit select, .scanedit input { width: 100%; padding: 5px 7px; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); font: inherit; font-size: .82rem; background: #fff; margin-bottom: 4px; }
.warn-card { border-left: 5px solid var(--collaboration); }
.formlist { margin: 0; padding-left: 18px; }
.formlist li { margin-bottom: 4px; }
input.cell { width: 100%; min-width: 180px; padding: 6px 8px; border: 1.5px solid #9aa9b3; border-radius: var(--r-sm); font: inherit; font-size: .85rem; }

.reviewlist { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.reviewlist li { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.reviewlist small a { word-break: break-all; }
.review .consent { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.intake fieldset.card legend { font-weight: 700; }
.form-err p { margin: 0 0 4px; }
