/* 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; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/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(2.1rem, 4.6vw, 3.4rem); }
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: 14px 22px; 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: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; 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; }
.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: 300px; }
.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: 16px; }
  .nav { display: none; }
  .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; }
}
