/* Onavir, site public. Tokens repris du thème « onavir » de l'app (data-o-theme). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --o-bg: #f7f8fa;
  --o-surface: #ffffff;
  --o-ink: #0f1b2d;
  --o-muted: #5b6779;
  --o-line: #e3e7ee;
  --o-brand: #1d4ed8;
  --o-brand-dark: #1e40af;
  --o-brand-ink: #ffffff;
  --o-brand-soft: #e8efff;
  --o-accent: #f59e0b;
  --o-success: #15803d;
  --o-success-soft: #e8f6ee;
  --o-danger: #b91c1c;
  --o-danger-soft: #fdecec;
  --radius: 0.625rem;
  --radius-card: 1rem;
  --radius-big: 1.5rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px -12px rgba(15, 27, 45, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--o-ink);
  background: var(--o-surface);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--o-brand); text-underline-offset: 3px; }
a:hover { color: var(--o-brand-dark); }
:focus-visible { outline: 3px solid var(--o-brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right)); }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--o-ink); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--o-line); padding-top: env(safe-area-inset-top); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); } }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .625rem; color: var(--o-ink); text-decoration: none; }
.logo:hover { color: var(--o-ink); }
.logo-tile { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: var(--o-brand); color: #fff; }
.logo-word { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { color: var(--o-ink); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: .625rem .75rem; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { background: var(--o-bg); }
.nav a[aria-current="page"]:not(.btn) { color: var(--o-brand); }
@media (max-width: 479px) { .nav-hide-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.375rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--o-brand); color: var(--o-brand-ink); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .12s ease;
}
.btn:hover { background: var(--o-brand-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 1.125rem; font-size: .9375rem; }
.btn-ghost { background: var(--o-surface); color: var(--o-ink); border-color: var(--o-line); }
.btn-ghost:hover { background: var(--o-bg); color: var(--o-ink); }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
.section-alt { background: var(--o-bg); border-top: 1px solid var(--o-line); border-bottom: 1px solid var(--o-line); }
.eyebrow { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--o-brand); margin-bottom: .75rem; }
.lead { font-size: 1.125rem; color: var(--o-muted); margin-top: 1rem; max-width: 40rem; }
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 3rem; } }
.muted { color: var(--o-muted); }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 3rem; }
@media (min-width: 768px) { .hero { padding: 4.5rem 0 5rem; } }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.hero h1 { max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-big); background: var(--o-brand-soft); }
.hero-badge {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem;
  display: flex; gap: .75rem; align-items: center;
  background: rgba(255, 255, 255, .95); border-radius: var(--radius-card); padding: .75rem 1rem; box-shadow: var(--shadow);
  font-size: .875rem; font-weight: 500;
}
@media (min-width: 640px) { .hero-badge { left: auto; right: 1rem; bottom: 1rem; max-width: 20rem; } }
.hero-badge .ico { flex: none; }

/* ---------- icons ---------- */
.ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: var(--o-brand-soft); color: var(--o-brand); }
.ico svg { width: 1.375rem; height: 1.375rem; }

/* ---------- Stripe callout ---------- */
.callout {
  display: grid; gap: 1rem; align-items: start;
  background: var(--o-ink); color: #fff; border-radius: var(--radius-big); padding: 1.5rem;
}
@media (min-width: 768px) { .callout { grid-template-columns: auto 1fr; gap: 1.5rem; padding: 2.25rem 2.5rem; align-items: center; } }
.callout .ico { background: rgba(255, 255, 255, .12); color: #fff; width: 3.25rem; height: 3.25rem; }
.callout-title { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.callout p + p { margin-top: .5rem; color: #c9d2df; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--radius-card); padding: 1.5rem; }
.card h3 { margin-top: 1rem; }
.card p { margin-top: .5rem; color: var(--o-muted); font-size: .9375rem; }
.card-wide { grid-column: 1 / -1; }
@media (min-width: 960px) { .card-wide { grid-column: auto; } }

.audience { display: flex; gap: 1rem; align-items: flex-start; }
.audience .ico { flex: none; }
.audience h3 { margin: 0; }
.audience p { margin-top: .25rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--o-brand); color: #fff; font-weight: 700; font-size: .9375rem;
}

.cta-band { text-align: center; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- pricing ---------- */
.price-card { max-width: 34rem; margin: 0 auto; padding: 2rem 1.5rem; border: 2px solid var(--o-brand); border-radius: var(--radius-big); background: var(--o-surface); box-shadow: var(--shadow); }
@media (min-width: 640px) { .price-card { padding: 2.5rem; } }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .375rem; margin-top: 1rem; }
.price-amount { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-unit { font-size: 1.125rem; color: var(--o-muted); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .75rem; border-radius: 999px; background: var(--o-success-soft); color: var(--o-success); font-weight: 600; font-size: .875rem; margin-top: 1rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .625rem; }
.checks li { display: flex; gap: .625rem; align-items: flex-start; }
.checks svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--o-brand); margin-top: .2rem; }
.small { font-size: .875rem; color: var(--o-muted); }

.faq { max-width: 46rem; display: grid; gap: .75rem; }
.faq details { background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--radius-card); padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--o-brand-soft); color: var(--o-brand); font-weight: 600; font-size: 1.125rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--o-line); }
.faq details p { padding: 1rem 0; color: var(--o-muted); }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 2.5rem 0 1.5rem; background: var(--o-bg); border-bottom: 1px solid var(--o-line); }
@media (min-width: 768px) { .page-head { padding: 4rem 0 2.5rem; } }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .375rem; }
.prose dl { display: grid; gap: .25rem 1.5rem; }
@media (min-width: 640px) { .prose dl { grid-template-columns: 13rem 1fr; } }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 .5rem; color: var(--o-ink); }
.prose .note { background: var(--o-bg); border: 1px solid var(--o-line); border-radius: var(--radius-card); padding: 1rem 1.25rem; }
.meta-date { margin-top: .75rem; color: var(--o-muted); font-size: .9375rem; }

/* ---------- forms ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; } }
.form { display: grid; gap: 1.125rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--o-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--o-ink); background: var(--o-surface);
  border: 1px solid #c3cad6; border-radius: var(--radius); padding: .75rem .875rem; min-height: 48px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 0; border-color: var(--o-brand); }
.field-help { font-size: .875rem; color: var(--o-muted); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; }
.consent input { flex: none; width: 1.375rem; height: 1.375rem; margin: .125rem 0 0; accent-color: var(--o-brand); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: var(--radius-card); padding: 1rem 1.25rem; font-weight: 500; }
.status:empty { display: none; }
.status-error { background: var(--o-danger-soft); color: var(--o-danger); border: 1px solid #f3c4c4; }
.status-error a { color: var(--o-danger); font-weight: 700; }
.aside-card { background: var(--o-bg); border: 1px solid var(--o-line); border-radius: var(--radius-card); padding: 1.5rem; }
.aside-card h2 { font-size: 1.125rem; }
.aside-card p { margin-top: .5rem; }
.email-big { font-size: 1.125rem; font-weight: 600; }

/* ---------- 404 / merci ---------- */
.center-page { text-align: center; padding: 4rem 0 5rem; }
.center-page .ico { margin: 0 auto 1.25rem; width: 3.5rem; height: 3.5rem; }
.center-page .lead { margin-left: auto; margin-right: auto; }
.center-page .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--o-bg); border-top: 1px solid var(--o-line); padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer-in { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-in { grid-template-columns: 1.4fr 1fr; } }
.footer-brand p { margin-top: .75rem; color: var(--o-muted); max-width: 26rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; align-content: start; }
.footer-nav a { color: var(--o-ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-nav a:hover { color: var(--o-brand); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; color: var(--o-muted); font-size: .875rem; }
.footer-bottom p { padding-top: 1.25rem; border-top: 1px solid var(--o-line); }
.price-card .small { margin-top: 1rem; }
.price-card .hero-cta { margin-top: 1.5rem; }

/* ---------- pricing (formule + options) ---------- */
.pricing-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 960px) { .pricing-grid { grid-template-columns: 1.5fr 1fr; gap: 1.5rem; } }
.pricing-grid .price-card { max-width: none; margin: 0; }
.pricing-side { display: grid; gap: 1rem; }
.price-plus { margin-top: .5rem; font-size: 1.125rem; font-weight: 600; color: var(--o-ink); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pills .pill { margin-top: 0; }
.pill svg { width: 1rem; height: 1rem; }
.included-title { margin-top: 1.75rem; }
.checks-2 { margin-top: .875rem; }
@media (min-width: 640px) { .checks-2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.side-price { color: var(--o-ink) !important; font-size: 1rem !important; }
.notes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; color: var(--o-muted); font-size: .9375rem; }
.notes li { padding-left: 1rem; position: relative; }
.notes li::before { content: "•"; position: absolute; left: 0; color: var(--o-brand); }

/* ---------- tarif (accueil) ---------- */
.price-summary { display: grid; gap: 1.25rem; align-items: center; background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--radius-big); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 768px) { .price-summary { grid-template-columns: 1fr auto; padding: 2rem 2.5rem; } }
.price-summary .price { margin-top: .5rem; }
.price-summary .small { margin-top: .75rem; }
.price-card .tva { margin-top: .5rem; }
.pricing-side .card .small { margin-top: .5rem; font-size: .8125rem; }

/* ---------- bandeau d'ouverture ---------- */
.announce { background: var(--o-brand-soft); border-bottom: 1px solid #d3defb; font-size: .9375rem; }
.announce-in { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding-top: .625rem; padding-bottom: .625rem; }
.announce-tag { font-weight: 600; color: var(--o-brand-dark); }
.announce a { color: var(--o-brand-dark); font-weight: 600; }
