/*
 * FormSolver — site public et espace « Mes fiches ».
 * Couleurs reprises du thème de l'application (form-solver-theme-react-native).
 */
:root {
    --ink: #1e272e;
    --slate: #485460;
    --muted: #5f6b76;
    --line: #d5dade;
    --page: #eceff1;
    --paper: #ffffff;
    --mist: #f0f0f0;
    --closed: #1f9d55;
    --closed-bg: #e3f6ea;
    --draft: #a8620a;
    --draft-bg: #fdf0db;
    --danger: #c0392b;
    --focus: #2d7ff9;
    --radius-s: 6px;
    --radius-m: 12px;
    --font: "Public Sans", "Avenir Next", Avenir, "Segoe UI", Roboto, system-ui, sans-serif;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--page);
}
table, .stats, .plan__price, .packs, .doc__date, .fiche-head__facts { font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
    padding: 14px 20px; border-radius: 10px; border: 1.5px solid var(--ink);
    background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--slate); border-color: var(--slate); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--small { padding: 9px 14px; font-size: 15px; border-radius: 8px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.store {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px;
    background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15; min-width: 170px;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 12px; opacity: .75; }
.store strong { font-size: 17px; }
.store:hover { background: var(--slate); }
.store--soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--line); cursor: default; }
.store--soon:hover { background: transparent; }

/* ---------- En-tête ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand__mark svg { width: 18px; height: 18px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Héros : la fiche ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } .hero { padding: 88px 0 104px; } }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; }
.hero__lead { font-size: 19px; color: var(--slate); margin-top: 20px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__login { margin-top: 20px; font-size: 15px; color: var(--muted); }
.hero__login a { font-weight: 600; color: var(--ink); }

.scene { position: relative; min-height: 470px; }
.sheet {
    position: relative; background: var(--paper); border-radius: 4px; padding: 26px 26px 22px;
    box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(30, 39, 46, .45);
    margin-left: 0; max-width: 470px; transform: rotate(-1.4deg);
    animation: sheet-out .9s cubic-bezier(.2, .8, .2, 1) .15s both;
}
@media (min-width: 560px) { .sheet { margin-left: 168px; } }
.sheet__head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.sheet__head strong { font-size: 18px; letter-spacing: -0.01em; }
.sheet__head span { font-size: 13px; color: var(--muted); text-align: right; }
.sheet__room { font-weight: 700; font-size: 14px; margin: 14px 0 4px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet th { text-align: left; font-weight: 600; color: var(--muted); padding: 5px 0; border-bottom: 1px solid var(--line); }
.sheet td { padding: 6px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.sheet td:first-child { font-weight: 600; width: 32%; }
.sheet__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.sheet__sign div { border-top: 1px solid var(--line); padding-top: 6px; }
.sheet__sign svg { width: 100%; height: 34px; margin-top: 2px; }
.stamp {
    position: absolute; right: 18px; bottom: 62px; transform: rotate(-9deg);
    border: 2.5px solid var(--closed); color: var(--closed); border-radius: 8px;
    padding: 4px 10px; font-weight: 800; font-size: 15px; letter-spacing: .02em; background: rgba(255, 255, 255, .85);
    animation: stamp .35s ease-out 1.05s both;
}
.phone {
    position: absolute; left: 0; bottom: -44px; width: 176px; border-radius: 30px; padding: 9px;
    background: var(--ink); box-shadow: 0 30px 50px -25px rgba(30, 39, 46, .7); display: none;
}
@media (min-width: 560px) { .phone { display: block; } }
.phone__screen { background: var(--mist); border-radius: 22px; overflow: hidden; font-size: 11px; }
.phone__bar { background: var(--paper); padding: 14px 12px 10px; font-weight: 700; font-size: 12px; border-bottom: 1px solid var(--line); }
.phone__list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.phone__list li { background: var(--paper); border-radius: 8px; padding: 8px 9px; display: flex; justify-content: space-between; gap: 6px; }
.phone__list li span { color: var(--muted); }
.phone__list li.is-current { outline: 2px solid var(--ink); }
.phone__cta { margin: 4px 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; padding: 9px; text-align: center; font-weight: 700; }

@keyframes sheet-out { from { opacity: 0; transform: translate(-60px, 30px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.4deg); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .sheet, .stamp { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section__head { max-width: 40em; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.section__head p { margin-top: 12px; color: var(--slate); font-size: 18px; }

.features { display: grid; gap: 0; margin: 0; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature svg { width: 26px; height: 26px; grid-row: span 2; margin-top: 2px; color: var(--slate); }
.feature dt { font-weight: 700; font-size: 18px; }
.feature dd { margin: 0; color: var(--slate); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--ink); font-weight: 800; margin-bottom: 16px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--slate); }

.web { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .web { grid-template-columns: 1fr 1.1fr; } }
.web ul { margin: 20px 0 28px; padding-left: 20px; color: var(--slate); display: grid; gap: 6px; }
.browser { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--mist); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--mist); font-size: 15px; }
.browser__row span { color: var(--muted); font-size: 13px; }

.pricing { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius-m); overflow: hidden; font-size: 16px; }
.pricing-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.pricing th, .pricing td { padding: 14px 16px; border-bottom: 1px solid var(--mist); text-align: center; }
.pricing th:first-child, .pricing td:first-child { text-align: left; }
.pricing thead th { font-size: 18px; border-bottom: 2px solid var(--ink); }
.pricing thead th.is-featured { background: var(--ink); color: #fff; }
.pricing tbody tr:last-child td { border-bottom: 0; }
.pricing .yes { color: var(--closed); font-weight: 700; }
.pricing .no { color: #9aa3ab; }
.pricing-note { margin-top: 14px; color: var(--muted); font-size: 15px; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--slate); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--slate); }

.footer { background: var(--ink); color: #c9d0d6; padding: 40px 0; font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Pages simples (connexion, légal) ---------- */
.narrow { max-width: 760px; padding: 48px 0 72px; }
.narrow h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p { white-space: pre-line; color: var(--slate); }
.legal__review { border: 1px solid var(--draft); border-left-width: 6px; background: var(--draft-bg); color: var(--ink); border-radius: var(--radius-s); padding: 14px 16px; margin-bottom: 24px; }
.legal__version { color: var(--slate); font-size: 15px; margin-top: -12px; }
.legal__history { color: var(--slate); padding-left: 20px; }
.legal__history li { margin: 4px 0; }

.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 0; }
.auth__card { background: var(--paper); border-radius: var(--radius-m); padding: 32px 24px; width: 100%; max-width: 420px; border: 1px solid var(--line); }
@media (min-width: 560px) { .auth__card { padding: 40px; } }
.auth__card h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.auth__card > p { color: var(--slate); margin: 8px 0 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.input {
    font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(45, 127, 249, .25); }
.auth .btn { width: 100%; margin-top: 8px; }
.auth__help { margin-top: 20px; font-size: 14px; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.alert--error { background: #fdecea; color: var(--danger); }
.alert--info { background: var(--mist); color: var(--slate); }

/* ---------- Espace « Mes fiches » ---------- */
.space-bar { display: flex; align-items: center; gap: 16px; }
.space-bar__user { display: none; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) { .space-bar__user { display: inline; } }
.page-head { padding: 36px 0 20px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.filters .input { max-width: 360px; flex: 1 1 220px; padding: 10px 14px; }
.tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs a { text-decoration: none; padding: 7px 12px; border-radius: 7px; font-size: 15px; font-weight: 600; color: var(--slate); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

.doc-list { list-style: none; margin: 0 0 32px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); }
.doc { display: grid; gap: 10px 24px; padding: 18px 20px; border-bottom: 1px solid var(--mist); position: relative; }
.doc:last-child { border-bottom: 0; }
@media (min-width: 800px) { .doc { grid-template-columns: 1fr 190px auto; align-items: center; } }
.doc:hover { background: #fafbfb; }
.doc__title { font-weight: 700; font-size: 18px; text-decoration: none; }
.doc__title::after { content: ""; position: absolute; inset: 0; }
.doc__meta { color: var(--muted); font-size: 15px; margin-top: 2px; }
.doc__date { font-size: 15px; color: var(--slate); }
.doc__actions { display: flex; gap: 8px; position: relative; z-index: 1; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--closed { color: var(--closed); background: var(--closed-bg); }
.status--draft { color: var(--draft); background: var(--draft-bg); }

.empty { background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 40px 24px; max-width: 640px; }
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--slate); }
.empty ol { color: var(--slate); padding-left: 20px; margin: 14px 0 0; display: grid; gap: 4px; }

.pager { display: flex; gap: 12px; align-items: center; margin-bottom: 48px; color: var(--muted); font-size: 15px; }

/* Fiche */
.crumb { padding-top: 24px; font-size: 15px; }
.crumb a { color: var(--slate); }
.fiche-head { padding: 12px 0 24px; display: grid; gap: 16px; }
@media (min-width: 900px) { .fiche-head { grid-template-columns: 1fr auto; align-items: end; } }
.fiche-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.fiche-head__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--slate); font-size: 15px; align-items: center; }
.fiche-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.fiche { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 1000px) { .fiche { grid-template-columns: 220px 1fr; gap: 40px; } }
.toc { font-size: 15px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 88px; align-self: start; } }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
@media (min-width: 1000px) { .toc ol { display: grid; gap: 2px; } }
.toc a { display: block; text-decoration: none; padding: 7px 10px; border-radius: 8px; color: var(--slate); white-space: nowrap; background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 1000px) { .toc a { background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; } .toc a:hover { border-left-color: var(--ink); color: var(--ink); } }
.toc__toggle { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

.fpage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px 20px; scroll-margin-top: 88px; }
@media (min-width: 720px) { .fpage { padding: 28px 32px; } }
.fpage + .fpage { margin-top: 20px; }
.fpage > h2 { font-size: 24px; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.fpage__note { color: var(--muted); margin-top: 12px; }
.fblock { padding: 18px 0 6px; }
.fblock + .fblock { border-top: 1px solid var(--mist); }
.fblock h3 { font-size: 17px; margin-bottom: 10px; }
.fblock__help { color: var(--muted); font-size: 15px; margin: -6px 0 10px; }
.fields { margin: 0; display: grid; }
.frow { display: grid; gap: 2px 20px; padding: 8px 0; border-bottom: 1px dashed var(--mist); }
.frow:last-child { border-bottom: 0; }
@media (min-width: 640px) { .frow { grid-template-columns: minmax(160px, 34%) 1fr; } }
.frow dt { color: var(--muted); font-size: 15px; }
.frow dd { margin: 0; overflow-wrap: anywhere; }
.frow dd.is-empty { color: #a4acb3; }
.frow--child { padding-left: 16px; border-left: 2px solid var(--mist); }
.multiline { white-space: pre-line; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -3px; margin-right: 6px; }
.yes { color: var(--closed); font-weight: 600; }
.group { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 8px; margin-top: 12px; }
.group h4 { font-size: 16px; padding: 10px 0 4px; }

.room { padding: 20px 0 8px; }
.room + .room { border-top: 1px solid var(--mist); }
.room > h3 { font-size: 20px; margin-bottom: 10px; }
.room-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.room-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.room-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.room-table td:first-child { font-weight: 700; width: 24%; }
@media (max-width: 639px) {
    .room-table thead { display: none; }
    .room-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--mist); }
    .room-table td { display: block; border: 0; padding: 2px 0; width: auto !important; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 14px; padding: 2px 9px; border-radius: 999px; background: var(--mist); }
.chip--remark { background: var(--draft-bg); color: #7a4708; }
.charge { font-size: 14px; color: var(--danger); margin-top: 4px; }
.room h4 { font-size: 15px; margin: 18px 0 6px; color: var(--slate); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery a { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery--sign a { aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--line); }
.gallery--sign img { object-fit: contain; }

.share { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; margin-bottom: 20px; }
.share img { width: 84px; height: 84px; flex: none; }
.share code { font-size: 13px; overflow-wrap: anywhere; color: var(--slate); }

@media print {
    .topbar, .toc, .fiche-head__actions, .crumb, .footer, .share { display: none !important; }
    body { background: #fff; }
    .fiche { display: block; }
    .fpage { border: 0; padding: 0; break-inside: avoid-page; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 559px) {
    .brand small { display: none; }
    .scene { min-height: 0; }
}

/* =====================================================================
   Page de présentation complète (v2)
   ===================================================================== */
.ico { flex: none; }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.topbar__cta { display: none; }
@media (min-width: 560px) { .topbar__cta { display: inline-flex; } }

.hero__points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 16px; }
.hero__points li { display: flex; align-items: center; gap: 6px; }
.hero__points .ico { color: var(--closed); }
.hero__login { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.hero__login a { font-weight: 600; color: var(--ink); }
.hero__login span { color: var(--line); }

/* Réassurance */
.assure { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.assure__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 32px; }
@media (min-width: 700px) { .assure__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .assure__list { grid-template-columns: repeat(4, 1fr); } }
.assure__list li { display: flex; gap: 14px; align-items: flex-start; }
.assure__list .ico { color: var(--slate); margin-top: 2px; }
.assure__list strong { display: block; font-size: 16px; }
.assure__list span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--mist); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.stats dt { color: var(--muted); font-size: 15px; }

/* Pour qui */
.audiences { display: grid; gap: 16px; }
@media (min-width: 720px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .audiences { grid-template-columns: repeat(4, 1fr); } }
.audience { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px 22px; background: var(--paper); }
.audience .ico { color: var(--ink); }
.audience h3 { font-size: 19px; margin: 14px 0 8px; }
.audience p { color: var(--slate); font-size: 16px; }
.audience ul { margin: 14px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--mist); color: var(--slate); font-size: 15px; display: grid; gap: 6px; }

/* Parcours en 4 étapes */
@media (min-width: 860px) { .steps--four { grid-template-columns: repeat(4, 1fr); position: relative; } }
@media (min-width: 860px) {
    .steps--four::before { content: ""; position: absolute; top: 20px; left: 40px; right: calc(25% - 16px); border-top: 2px dashed var(--line); z-index: 0; }
    .steps--four li { position: relative; z-index: 1; }
    .steps--four li::before { background: var(--page); }
}

/* Présentations détaillées */
.showcase { display: grid; gap: 32px; align-items: center; padding: 48px 0; }
.showcase + .showcase { border-top: 1px solid var(--mist); }
@media (min-width: 900px) {
    .showcase { grid-template-columns: 1.15fr .85fr; gap: 72px; padding: 64px 0; }
    .showcase--flip .showcase__text { order: 2; }
}
.showcase h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.showcase__text > p { color: var(--slate); font-size: 18px; max-width: 36em; }
.showcase__visual { display: flex; justify-content: center; }

.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--closed); margin-top: 3px; }
.ticks--dense { gap: 8px; font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--slate); vertical-align: 2px; margin-left: 4px; white-space: nowrap; }
.tag--soon { background: var(--draft-bg); color: var(--draft); }

/* Maquettes d'écran */
.device { width: 270px; border-radius: 38px; padding: 11px; background: var(--ink); box-shadow: 0 40px 60px -35px rgba(30, 39, 46, .6); }
.device__screen { background: var(--mist); border-radius: 28px; overflow: hidden; min-height: 500px; font-size: 13px; line-height: 1.35; }
.m-bar { background: var(--paper); padding: 22px 14px 12px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.m-back { font-size: 22px; line-height: .6; color: var(--slate); }
.m-meta { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 12px; }
.m-tabs { display: flex; gap: 6px; padding: 10px 12px 0; }
.m-tabs span { padding: 6px 10px; border-radius: 8px; background: var(--paper); font-weight: 600; font-size: 12px; color: var(--slate); }
.m-tabs .is-on { background: var(--ink); color: #fff; }
.m-body { padding: 12px; display: grid; gap: 8px; }
.m-body--center { justify-items: center; text-align: center; padding-top: 28px; }
.m-card { background: var(--paper); border-radius: 12px; padding: 11px 12px; }
.m-card--muted { color: var(--muted); }
.m-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.m-ok, .m-todo { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.m-ok { background: var(--closed-bg); color: var(--closed); }
.m-todo { background: var(--draft-bg); color: var(--draft); }
.m-label { color: var(--muted); font-size: 11px; margin: 8px 0 5px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.m-chips span { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--slate); }
.m-chips .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.m-chips .is-warn { background: var(--draft); border-color: var(--draft); }
.m-photo { border-radius: 12px; background: linear-gradient(135deg, #c9c2b6, #8f877b 60%, #6e675d); position: relative; }
.m-photo--big { height: 190px; }
.m-photo--big::after { content: ""; position: absolute; left: 46%; top: 42%; width: 46px; height: 24px; border-radius: 50%; background: radial-gradient(#3a2a1c, rgba(58, 42, 28, .2) 70%, transparent); }
.m-photo span { position: absolute; left: 10px; bottom: 10px; background: rgba(30, 39, 46, .85); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.m-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.m-thumbs i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #b9b2a6, #7d766b); }
.m-thumbs i:nth-child(2) { background: linear-gradient(135deg, #d8d4cc, #a29a8d); }
.m-thumbs i:nth-child(3) { background: linear-gradient(135deg, #a7b0b6, #6d777e); }
.m-thumbs .m-add { background: var(--paper); border: 1.5px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: 20px; color: var(--muted); }
.m-text { color: var(--slate); font-size: 13px; }
.m-doc { background: var(--paper); border-radius: 12px; padding: 14px; display: grid; gap: 7px; }
.m-doc i { height: 6px; border-radius: 3px; background: var(--mist); }
.m-doc i.short { width: 60%; }
.m-card svg { width: 100%; height: 44px; }
.m-sign { height: 44px; border: 1.5px dashed var(--line); border-radius: 8px; }
.m-btn { background: var(--ink); color: #fff; border-radius: 10px; padding: 12px; text-align: center; font-weight: 700; margin-top: 4px; }
.m-btn--ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); width: 100%; }
.m-field { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--mist); color: var(--slate); }
.m-field em { font-style: normal; color: var(--ink); font-weight: 600; }
.m-field--card { background: var(--paper); border-radius: 12px; padding: 12px; width: 100%; border: 0; }
.m-switch { width: 32px; height: 18px; border-radius: 999px; background: var(--line); position: relative; }
.m-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.m-switch.is-on { background: var(--closed); }
.m-switch.is-on::after { left: 16px; }
.m-dashed { border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; text-align: center; color: var(--slate); font-weight: 600; background: rgba(255, 255, 255, .5); }
.m-types { display: flex; flex-wrap: wrap; gap: 5px; }
.m-types span { background: var(--paper); border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--slate); }
.m-qr { width: 150px; height: 150px; background: #fff; padding: 10px; border-radius: 12px; }

/* Toutes les fonctions */
.feature-groups { display: grid; gap: 32px; }
@media (min-width: 860px) { .feature-groups { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.feature-groups h3 { font-size: 19px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }

/* Décret */
.section--ink { background: var(--ink); color: #fff; border-top: 0; }
.section--ink h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.decree { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .decree { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.decree > div p { color: #c9d0d6; font-size: 18px; margin-top: 14px; max-width: 34em; }
.decree p.decree__note { font-size: 15px; color: #9aa6b0; }
.decree__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.decree__table th { text-align: left; color: #9aa6b0; font-weight: 600; font-size: 14px; padding: 0 0 10px; border-bottom: 1px solid #3a4651; }
.decree__table td { padding: 12px 12px 12px 0; border-bottom: 1px solid #2f3a44; vertical-align: top; }
.decree__table td:first-child { display: flex; gap: 10px; }
.decree__table td:first-child .ico { color: var(--green, #2ecc71); margin-top: 3px; }
.decree__table td:last-child { color: #c9d0d6; white-space: nowrap; font-weight: 600; }

/* Comparatif papier */
.compare { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--mist); text-align: left; vertical-align: top; }
.compare thead th { font-size: 17px; border-bottom: 2px solid var(--ink); }
.compare thead th.is-featured { background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* Avis */
.quotes { display: grid; gap: 16px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--page); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote blockquote { margin: 0; font-size: 17px; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); font-size: 15px; }

/* Formules */
.plans { display: grid; gap: 16px; margin-bottom: 8px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 24px; position: relative; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--ink); }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan__price { margin: 12px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price strong { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__lead { color: var(--slate); font-size: 16px; }
.plan .ticks { margin-top: 18px; font-size: 16px; }
/* Achat sur le web (LOT-31) : bouton en pied de carte, toujours en bas. */
.plan__actions { margin: auto 0 0; padding-top: 22px; }
.plan__actions .btn { width: 100%; justify-content: center; }
.packs { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--mist); border-radius: 10px; }
.packs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 15px; }
.packs li + li { border-top: 1px solid var(--mist); }
.packs li > span:last-child { text-align: right; }
.packs small { display: block; color: var(--muted); font-size: 13px; }
.pricing-note { margin: 14px 0 32px; }
.pricing tbody th { font-weight: 500; text-align: left; }
.pricing .yes .ico { color: var(--closed); }
.section--paper .section__head + .pricing-wrap, #tarifs .pricing-wrap { background: var(--paper); }

/* FAQ en deux colonnes */
.faq-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-layout .section__head { position: sticky; top: 96px; } }
.faq-layout .faq { max-width: none; }
.section__head--tight { margin-bottom: 0; }

/* Appel final */
.final { background: var(--ink); color: #fff; padding: 64px 0; }
.final__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .final__inner { grid-template-columns: 1fr auto; } }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.final p { color: #c9d0d6; font-size: 18px; margin-top: 8px; }
.final__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store--light { background: #fff; color: var(--ink); }
.store--light:hover { background: var(--mist); }
.store--light.store--soon { background: transparent; color: #c9d0d6; border-color: #4a5661; }

/* Pied de page complet */
.footer { padding: 56px 0 28px; border-top: 1px solid #2f3a44; }
.final + .footer { border-top: 1px solid #2f3a44; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.footer__about p { margin: 14px 0 18px; max-width: 30em; color: #aab4bd; }
.footer__stores { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__stores .store { min-width: 0; padding: 8px 12px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav h2 { font-size: 14px; color: #8d99a4; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2f3a44; color: #8d99a4; font-size: 14px; }
.brand--light { color: #fff; }
.brand--light .brand__mark { background: #fff; }

/* Page Tarifs */
.section--first { border-top: 0; padding-top: 48px; }
.page-title { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
@media (max-width: 639px) {
    .compare thead { display: none; }
    .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
    .compare tr { padding: 14px 16px; border-bottom: 1px solid var(--mist); }
    .compare tbody th, .compare td { padding: 2px 0; border: 0; }
    .compare tbody th { font-size: 17px; margin-bottom: 4px; }
    .compare td::before { content: attr(data-label) " : "; font-weight: 600; color: var(--slate); }
    .decree__table td:last-child { white-space: normal; }
}
.pricing-wrap { position: relative; }
.visually-hidden { margin: -1px; padding: 0; border: 0; }
@media (max-width: 639px) {
    .pricing { font-size: 14px; }
    .pricing th, .pricing td { padding: 10px 6px; }
    .pricing th:first-child, .pricing td:first-child { padding-left: 12px; }
    .pricing thead th { font-size: 14px; }
}

/* Bandeau d'annonce (Réglages du site › Bandeau d'annonce) */
.announce { background: var(--ink); color: #fff; font-size: 15px; padding: 9px 0; text-align: center; }
.announce a { color: #fff; font-weight: 700; margin-left: 6px; }
/* Capture réelle d'une présentation (remplace la maquette) */
.screenshot { width: 270px; max-width: 100%; height: auto; border-radius: 28px; box-shadow: 0 40px 60px -35px rgba(30, 39, 46, .6); }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption img { border-radius: 50%; object-fit: cover; }

/* Offre FormSolver Pro pour les équipes (LOT-28) : site public uniquement. */
.pro-offer { display: grid; gap: 28px; align-items: start; }
.pro-offer__kicker { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.pro-offer__intro h2 { margin-bottom: 8px; }
.pro-offer__card { background: #fff; }
.pro-offer__card .plan__price strong { font-size: 30px; }
.pro-offer__actions { margin: 22px 0 8px; }
.pro-offer__note { color: var(--muted); font-size: 14px; margin: 0; }
.pro-offer__faq { margin-top: 36px; }
.pro-offer__faq h3 { margin-bottom: 8px; }
@media (min-width: 900px) { .pro-offer { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* Questions de l'offre Pro : même présentation que .faq (classe distincte des questions des tarifs). */
.pro-offer__questions { max-width: 760px; }
.pro-offer__questions details { border-top: 1px solid var(--line); padding: 18px 0; }
.pro-offer__questions details:last-child { border-bottom: 1px solid var(--line); }
.pro-offer__questions summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pro-offer__questions summary::-webkit-details-marker { display: none; }
.pro-offer__questions summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--slate); }
.pro-offer__questions details[open] summary::after { content: "−"; }
.pro-offer__questions details p { margin-top: 10px; color: var(--slate); }

/* ---------- Inscription (/inscription) : type de compte en tuiles, comme le profil du studio ---------- */
.auth__card--wide { max-width: 600px; }
.signup__step { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.signup__legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; padding: 0; }
.signup__number {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; flex: none;
}
.account-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-types__card {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
    min-height: 136px; padding: 20px 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-m);
    background: var(--paper); color: var(--muted); text-align: center; cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.account-types__card:hover { border-color: var(--slate); }
.account-types__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.account-types__card:has(.account-types__radio:checked) { border-color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1px var(--ink); }
.account-types__card:has(.account-types__radio:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.account-types__icon { color: var(--muted); margin-bottom: 4px; }
.account-types__card:has(.account-types__radio:checked) .account-types__icon { color: var(--ink); }
.account-types__label { color: var(--ink); font-size: 16px; font-weight: 700; }
.account-types__hint { font-size: 13px; line-height: 1.4; }
@media (max-width: 599px) {
    .account-types { grid-template-columns: 1fr; gap: 10px; }
    .account-types__card {
        display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
        min-height: 0; padding: 14px 16px; text-align: left;
    }
    .account-types__card .account-types__icon { grid-row: span 2; margin: 0; }
}
.signup__name { display: none; margin-top: 16px; }
.signup[data-type="professional"] .signup__name, .signup[data-type="association"] .signup__name { display: block; }
.signup__name .field { margin-bottom: 10px; }
.signup__note { display: none; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--mist); color: var(--slate); font-size: 14px; line-height: 1.45; }
.signup__note svg { flex: none; margin-top: 1px; }
.signup[data-type="professional"] .signup__note--pro { display: flex; }
.password { position: relative; }
.password .input { padding-right: 92px; }
.password__toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    font: inherit; font-size: 14px; font-weight: 600; color: var(--slate); background: transparent;
    border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer;
}
.password__toggle:hover { color: var(--ink); background: var(--mist); }
.field__help { color: var(--muted); font-size: 13px; }
.signup__terms { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--slate); margin: 4px 0 8px; cursor: pointer; }
.signup__terms input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.signup__login { margin-top: 18px; font-size: 15px; text-align: center; }
