/* Public site, redesign ("table lumineuse"). One stylesheet for the homepage,
   the free tool pages, the blog, the sign-in pages and the error pages; the
   logged-in app has app-shell.css. Colours and type come from the tokens
   below only. */

:root {
    --ink: #0E1626;
    --ink-2: #22293A;
    --ink-soft: #3B4558;
    --ink-faint: #5D6778;
    --line: #D5DAE1;
    --line-soft: #E3E7ED;
    --field: #9AA4B2;
    --paper: #FFFFFF;
    --canvas: #F1F3F5;
    --action: #2340D8;
    --action-hover: #1A31A8;
    --action-tint: #EEF1FC;
    --night: #0E1626;
    --night-2: #1C2740;
    --night-line: #3A4660;
    --night-ink: #E8ECF2;
    --night-soft: #C3CBD8;
    --night-faint: #A9B3C4;
    --verdict-ai: #C42B32;
    --verdict-human: #137A48;
    --verdict-mixed: #8A4B06;
    --danger-ink: #A1262C;
    --danger-bg: #FDF3F3;
    --danger-line: #E3B3B6;
    --warn-bg: #FFF7E8;
    --warn-line: #E8C98A;
    --radius: 0.625rem;
    --radius-sm: 0.375rem;
    --wrap: 75rem;
    --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The design's overall scale. Every size below is in rem, so this one value
   shrinks or grows the whole site in proportion (100% = the original mockup
   sizes). A percentage, not px, so a visitor's own browser text size still
   applies. */
html { font-size: 82%; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--canvas);
}
/* Tabular figures on numbers only: in this font they also widen , and . */
.pct, .price { font-variant-numeric: tabular-nums; }
/* Components set their own display; `hidden` must still win. */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 0.1875rem solid var(--action); outline-offset: 2px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
    border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; min-height: 3rem;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--action); color: #FFFFFF; }
.btn-primary:hover { background: var(--action-hover); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #22293A; color: #FFFFFF; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--field); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { background: #C9D0DB; color: var(--ink-soft); border-color: transparent; cursor: not-allowed; }
.link-btn { font: inherit; font-weight: 700; background: none; border: 0; padding: 0.5rem 0; color: var(--action); cursor: pointer; }
.link-btn:hover { color: var(--action-hover); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 0.75rem 2rem; padding-top: 0.875rem; padding-bottom: 0.875rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 1.5rem; flex: 1 1 auto; font-size: 1rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 0.625rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.375rem; text-decoration-thickness: 2px; }
/* Homepage: the tool links are the hero switch, so the active one reads as selected. */
.site-nav a[aria-current="true"] { font-weight: 700; text-decoration-color: var(--action); text-decoration-thickness: 3px; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .login { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.625rem 0.5rem; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
    .site-header .wrap { flex-wrap: wrap; justify-content: space-between; column-gap: 0.75rem; }
    .header-actions { gap: 0.25rem; }
    .header-actions .login { padding: 0.625rem 0.375rem; }
    .menu-toggle {
        display: inline-flex; align-items: center; gap: 0.375rem; font: inherit; font-weight: 700;
        background: none; border: 1px solid var(--field); border-radius: var(--radius-sm);
        min-height: 2.75rem; padding: 0 0.75rem; cursor: pointer; color: var(--ink);
    }
    .header-actions .signup { display: none; }
    .site-nav { display: none; order: 3; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav.open { display: flex; }
    .site-nav a { font-weight: 700; font-size: 1.125rem; color: var(--ink); padding: 0.75rem 0; border-top: 1px solid var(--line-soft); }
}

/* ---------- Hero ---------- */
.hero { padding: 1.25rem 0 3rem; }
/* Room for the score badge that sits over the top edge of a text result. */
.hero-visual.text-result { margin-top: 0.75rem; }
/* The switch row is for phones; on wider screens the header links switch. */
@media (min-width: 861px) { .mode-switch-wrap { display: none; } }
@media (max-width: 860px) { .mode-switch-wrap + .hero { padding-top: 1.5rem; } }
.hero-grid { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.hero-copy { flex: 1 1 30rem; min-width: 0; max-width: 40rem; }
.hero-visual { flex: 1 1 28rem; min-width: 0; margin: 0; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.875rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 1.25rem; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 1.75rem; }
.fine { font-size: 0.9375rem; color: var(--ink-soft); }
.mode-switch { display: inline-flex; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.25rem; gap: 0.25rem; margin: 2.5rem 0 0; }
.mode-switch button {
    font: inherit; font-weight: 700; font-size: 1rem; border: 0; border-radius: 0.4375rem;
    padding: 0.625rem 1.125rem; min-height: 2.75rem; cursor: pointer; background: transparent; color: var(--ink-soft);
}
.mode-switch button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
@media (max-width: 600px) {
    .mode-switch { display: flex; margin-top: 1.25rem; }
    .mode-switch button { flex: 1 1 0; padding: 0.5rem 0.25rem; font-size: 0.9375rem; }
    .hero { padding-bottom: 2.5rem; }
    .hero-grid { gap: 2rem; }
}
.slide-right { animation: fromRight .38s cubic-bezier(.2,.8,.2,1); }
.slide-left { animation: fromLeft .38s cubic-bezier(.2,.8,.2,1); }
@keyframes fromRight { from { opacity: 0; transform: translateX(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-2.5rem); } to { opacity: 1; transform: none; } }

/* ---------- Image tool ---------- */
.dropzone {
    background: var(--paper); border: 2px dashed var(--field); border-radius: var(--radius);
    padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem;
}
.dropzone.dragover { border-color: var(--action); background: var(--action-tint); }
.dropzone-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dropzone-row .text { flex: 1 1 12.5rem; }
.dropzone-title { font-weight: 700; font-size: 1.125rem; }
.dropzone-hint { color: var(--ink-faint); font-size: 0.9375rem; }
.camera-btn { display: none; }
@media (max-width: 600px) {
    .dropzone { padding: 1.125rem; }
    .dropzone-row svg, .dropzone-row .text { display: none; }
    .dropzone-row .btn { flex: 1 1 100%; }
    .camera-btn { display: inline-flex; flex: 1 1 100%; }
}
.samples { margin-top: 1rem; }
.samples-row { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.sample { display: block; width: 4rem; height: 4rem; border-radius: var(--radius-sm); overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--line-soft); }
.sample img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .samples-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .sample { width: auto; height: auto; aspect-ratio: 1; } }

.selected { background: var(--paper); border-radius: var(--radius); padding: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.selected img { width: 10rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.selected .info { flex: 1 1 12.5rem; min-width: 0; }
.selected .name { font-weight: 700; overflow-wrap: anywhere; }
.selected .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.625rem; }

.notice { border-radius: var(--radius); padding: 0.875rem 1rem; font-size: 1rem; }
.notice-error { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--ink); }
.notice-error strong { color: var(--danger-ink); }
.notice-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }

/* ---------- Result card (the "light table") ---------- */
.result-frame { padding: 1.125rem; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; }
.result-frame .stage { position: relative; }
.result-frame .stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage.scanning img { filter: grayscale(.5); }
.scanline { position: absolute; inset: 0; animation: scan 1.4s linear infinite; pointer-events: none; }
.scanline::before { content: ""; display: block; height: 2px; background: var(--action); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(100%); } }
.verdict-badge {
    position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); border-radius: 0.5rem;
    padding: 0.75rem 1rem 0.75rem 0.875rem; display: flex; align-items: center; gap: 0.875rem;
    box-shadow: 0 2px 0 rgba(14,22,38,0.25);
}
.verdict-badge .pct { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.verdict-badge .label { font-weight: 700; line-height: 1.2; font-size: 1rem; }
.verdict-ai { color: var(--verdict-ai); }
.verdict-human { color: var(--verdict-human); }
.verdict-mixed { color: var(--verdict-mixed); }
@media (max-width: 600px) {
    .result-frame { padding: 0.75rem; }
    .verdict-badge { left: 0.625rem; bottom: 0.625rem; padding: 0.5rem 0.75rem 0.5rem 0.625rem; gap: 0.625rem; }
    .verdict-badge .pct { font-size: 2rem; }
    .verdict-badge .label { font-size: 0.875rem; }
}
.clues {
    margin: 0; background: var(--night); color: var(--night-ink); border-radius: 0 0 var(--radius) var(--radius);
    padding: 1.25rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(11.875rem, 1fr)); gap: 0.875rem 1.75rem; font-size: 0.9375rem;
}
.clues dt { color: var(--night-faint); }
.clues dd { margin: 0; font-weight: 700; }
@media (max-width: 600px) {
    .clues { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; gap: 0.75rem 1rem; }
}
.result-caption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-faint); }
.result-next { margin-top: 1.25rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.result-next h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.375rem; line-height: 1.25; }
.result-next p { color: var(--ink-soft); margin-bottom: 0.875rem; }
.result-next .row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* ---------- Text hero document ---------- */
.doc { background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; padding: 2.25rem 2.5rem 2rem; position: relative; }
.doc .badge-top {
    position: absolute; right: 1.5rem; top: -1.125rem; background: var(--paper); border-radius: 0.5rem;
    padding: 0.625rem 0.875rem 0.625rem 0.75rem; display: flex; align-items: center; gap: 0.75rem;
    box-shadow: 0 2px 0 rgba(14,22,38,0.25), 0 0 0 1px var(--line);
}
.doc .badge-top .pct { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.doc .meta { font-size: 0.875rem; color: var(--ink-faint); margin-bottom: 0.375rem; }
.doc .title { font-size: 1.375rem; font-weight: 800; margin-bottom: 0.875rem; }
.doc p.body { line-height: 1.7; color: var(--ink-2); }
.doc p.body + p.body { margin-top: 0.875rem; }
mark.ai { background: rgba(196,43,50,.14); color: inherit; border-bottom: 2px solid var(--verdict-ai); padding: 0 1px; }
mark.copy { background: rgba(35,64,216,.10); color: inherit; border-bottom: 2px solid var(--action); padding: 0 1px; }
@media (max-width: 600px) { .doc { padding: 40px 18px 22px; } .doc .badge-top { right: 12px; } }
.text-form { background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius); padding: 1.125rem; display: flex; flex-direction: column; gap: 0.75rem; }
.text-form label { font-weight: 700; }
.text-form textarea { font: inherit; resize: vertical; border: 0; background: var(--canvas); border-radius: var(--radius-sm); padding: 0.75rem; color: var(--ink); min-height: 8.5rem; }
.text-form .row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; padding: 0.5rem 0.875rem; cursor: pointer; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-white { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.875rem, 3.4vw, 2.375rem); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 0.75rem; }
.section .intro { color: var(--ink-soft); max-width: 42em; margin-bottom: 2.25rem; }
.ruled-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); border-top: 2px solid var(--ink); }
.ruled-grid > * { padding: 1.375rem 2rem 0.5rem 0; }
.ruled-grid h3 { font-size: 1.3125rem; font-weight: 800; margin-bottom: 0.5rem; }
.ruled-grid p { color: var(--ink-soft); }
.ruled-grid .link-btn, .ruled-grid a.more { display: inline-block; margin-top: 0.625rem; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .section { padding: 48px 0; } }

/* ---------- Cards that show the product ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section-white .card { background: var(--canvas); border-color: var(--line-soft); }
.card-preview { background: var(--canvas); border-bottom: 1px solid var(--line-soft); padding: 1.25rem; height: 12.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.625rem; }
.section-white .card-preview { background: var(--paper); }
.card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.375rem; flex: 1 1 auto; }
.card-body h3 { font-size: 1.3125rem; font-weight: 800; }
.card-body p { color: var(--ink-soft); }
.card-body .cost { color: var(--ink); font-weight: 700; font-size: 0.9375rem; }
.card-body .more { margin-top: auto; padding-top: 0.5rem; font-weight: 700; text-decoration: none; }

.mini-photo { position: relative; border-radius: var(--radius-sm); overflow: hidden; flex: 1 1 auto; min-height: 0; }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-photo.scanning img { filter: grayscale(.5); }
.mini-scanline { position: absolute; left: 0; right: 0; top: 45%; height: 2px; background: var(--action); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.mini-badge { background: var(--paper); border-radius: var(--radius-sm); padding: 0.375rem 0.625rem; font-size: 0.8125rem; font-weight: 700; display: inline-flex; align-items: baseline; gap: 0.375rem; box-shadow: 0 1px 0 rgba(14,22,38,0.25); }
.mini-badge b { font-size: 1.25rem; letter-spacing: -0.02em; }
.mini-photo .mini-badge { position: absolute; left: 0.5rem; bottom: 0.5rem; }
.mini-badge.corner { align-self: flex-end; margin-bottom: 0.5rem; box-shadow: 0 1px 0 rgba(14,22,38,0.25), 0 0 0 1px var(--line); }
.mini-clues { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; font-size: 0.8125rem; }
.mini-clues dt { color: var(--ink-faint); }
.mini-clues dd { margin: 0; font-weight: 700; }
.mini-clues.dark { background: var(--night); color: var(--night-ink); border-radius: var(--radius-sm); padding: 1rem 1.125rem; gap: 0.625rem 1rem; font-size: 0.875rem; }
.mini-clues.dark dt { color: var(--night-faint); }
.mini-doc { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0.75rem 1rem 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.section-white .mini-doc { background: var(--canvas); }
.mini-source { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--ink-faint); }
.mini-drop { border: 2px dashed var(--field); border-radius: var(--radius-sm); background: var(--paper); flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 700; color: var(--ink-soft); }

.steps { counter-reset: none; list-style: none; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-size: 0.9375rem; margin-right: 0.375rem; vertical-align: 0.125rem; }

.extras { list-style: none; margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem 2rem; }
.extras li { display: flex; gap: 0.875rem; align-items: flex-start; }
.extras svg { flex: 0 0 auto; margin-top: 0.125rem; color: var(--action); }
.extras h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.125rem; }
.extras p { color: var(--ink-soft); font-size: 0.9375rem; }

.who .card-body { padding: 1.5rem; gap: 0.5rem; }
.tool-tag { align-self: flex-start; font-size: 0.8125rem; font-weight: 700; color: var(--action); background: var(--action-tint); border-radius: 0.25rem; padding: 0.125rem 0.5rem; }

/* ---------- Free text tools ---------- */
.text-form .count { font-size: 0.9375rem; color: var(--ink-faint); }
.text-form .count.over { color: var(--danger-ink); font-weight: 700; }
.text-form .actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.try { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.try .fine { margin-right: 0.25rem; }
.text-result { position: relative; }
.text-result .doc-body { line-height: 1.7; color: var(--ink-2); max-height: 22rem; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.text-result.loading .doc { opacity: .55; }
.text-result.loading .doc::after {
    content: "Analyse en cours…"; position: absolute; inset: auto 0 1rem; text-align: center; font-weight: 700; color: var(--ink);
}
.sources { background: var(--night); color: var(--night-ink); padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; border-radius: 0 0 var(--radius) var(--radius); margin-top: -0.5rem; }
.sources-head { color: var(--night-faint); padding-top: 0.75rem; border-top: 1px solid var(--night-line); margin-bottom: 0.5rem; }
.sources ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }
.sources a { color: #FFFFFF; font-weight: 700; }
.sources .host, .sources .share { color: var(--night-faint); }
.has-sources .clues { border-radius: 0; }
.gate { position: absolute; inset: 0; background: rgba(241, 243, 245, .92); display: flex; align-items: center; justify-content: center; padding: 1.25rem; border-radius: var(--radius); z-index: 2; }
.gate form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 24rem; width: 100%; display: flex; flex-direction: column; gap: 0.75rem; box-shadow: 0 0.5rem 1.5rem -0.75rem rgba(14,22,38,.4); }
.gate h2 { font-size: 1.375rem; font-weight: 800; }
.gate p { color: var(--ink-soft); }
.gate input { font: inherit; padding: 0.75rem; border: 1px solid var(--field); border-radius: var(--radius-sm); min-height: 3rem; }

/* ---------- Visual content blocks (free pages) ---------- */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.section-white .feature-card { background: var(--canvas); border-color: var(--line-soft); }
.feature-card .ico { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); background: var(--action-tint); color: var(--action); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.feature-card h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; }
.feature-card p { color: var(--ink-soft); font-size: 0.9375rem; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; counter-reset: flow; }
.flow li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 3.75rem; counter-increment: flow; }
.section-white .flow li { background: var(--canvas); border-color: var(--line-soft); }
.flow li::before { content: counter(flow); position: absolute; left: 1.25rem; top: 1.25rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 0.9375rem; display: flex; align-items: center; justify-content: center; }
.flow h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.25rem; }
.flow p { color: var(--ink-soft); font-size: 0.9375rem; }

.model-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.model-chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; padding: 0.375rem 0.875rem; font-weight: 700; font-size: 0.9375rem; }

.two-col { display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: flex-start; }
.two-col > :first-child { flex: 1 1 18rem; }
.two-col > :last-child { flex: 2 1 28rem; min-width: 0; }
.two-col h2 { margin-bottom: 0.75rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list li::before { content: ""; flex: 0 0 1.25rem; height: 1.25rem; margin-top: 0.125rem; border-radius: 50%; background: var(--verdict-human) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 0.875rem no-repeat; }

/* "Conçu en France" band: the trust signals in one place */
.trust { background: var(--night); color: var(--night-soft); padding: 4rem 0; }
.trust h2 { color: #FFFFFF; font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.trust .flag { display: inline-flex; width: 2rem; height: 1.375rem; border-radius: 0.1875rem; overflow: hidden; flex: 0 0 auto; }
.trust .flag span { flex: 1 1 0; }
.trust .lede-dark { max-width: 40em; margin-bottom: 2rem; }
.trust-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; border-top: 1px solid var(--night-line); padding-top: 1.5rem; }
.trust-points h3 { color: #FFFFFF; font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.25rem; }
.trust-points p { font-size: 0.9375rem; }

/* Long-form content (SEO pages): readable column, plain hierarchy */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.625rem, 3vw, 2rem); margin: 3rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; font-weight: 800; margin: 1.75rem 0 0.5rem; line-height: 1.25; }
.prose p { color: var(--ink-2); margin-bottom: 0.875rem; }
.prose ol, .prose ul { padding-left: 1.375rem; color: var(--ink-2); margin: 0 0 0.875rem; }
.prose li { margin-bottom: 0.5rem; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--paper); margin: 0.5rem 0 1.125rem; }
.compare th, .compare td { padding: 0.75rem 0.875rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.faq > h2 { flex: 1 1 17.5rem; }
.faq-list { flex: 2 1 35rem; min-width: 0; }
.faq details { border-top: 1px solid var(--line); padding: 0.25rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1875rem; padding: 0.875rem 0; list-style-position: outside; }
.faq details p { color: var(--ink-soft); padding: 0 0 1rem; }

/* ---------- Pricing (dark band) ---------- */
.pricing { background: var(--night); color: var(--night-ink); padding: 5rem 0; }
.pricing h2 { color: #FFFFFF; font-size: clamp(2rem, 3.6vw, 2.625rem); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 0.75rem; }
.pricing .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.pricing .head p { color: var(--night-soft); max-width: 36em; }
.billing { display: flex; background: var(--night-2); border-radius: 0.5rem; padding: 0.25rem; }
.billing button { font: inherit; font-weight: 700; border: 0; border-radius: 0.375rem; padding: 0.625rem 1rem; min-height: 2.75rem; cursor: pointer; background: transparent; color: var(--night-ink); }
.billing button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); border-top: 1px solid var(--night-line); }
.plan { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.375rem; border-radius: 0 0 var(--radius) var(--radius); }
.plan.featured { background: var(--night-2); }
.plan h3 { font-size: 1.25rem; font-weight: 700; color: #FFFFFF; }
.plan .tag { min-height: 1.375rem; }
.plan .tag span { font-size: 0.875rem; font-weight: 600; color: var(--ink); background: #8FB0FF; border-radius: 0.25rem; padding: 2px 0.5rem; }
.plan .price { margin-top: 0.25rem; }
.plan .price strong { font-size: 3.25rem; font-weight: 800; letter-spacing: -0.03em; color: #FFFFFF; }
.plan .price span { color: var(--night-soft); }
.plan .billed { color: var(--night-faint); font-size: 0.9375rem; min-height: 1.375rem; }
.plan .volume { margin-top: 0.375rem; font-weight: 700; color: #FFFFFF; }
.plan .credits { color: var(--night-faint); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.plan .btn { margin-top: auto; border-color: var(--night-soft); color: #FFFFFF; background: transparent; }
.plan.featured .btn { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.pricing .included { margin-top: 2rem; color: var(--night-soft); max-width: 52em; }

/* ---------- Footer ---------- */
/* Dark closing band: echoes the pricing section and ends on one last action. */
.site-footer { background: var(--night); color: var(--night-soft); }
.site-footer .wrap { padding-top: 4rem; padding-bottom: 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 3rem 4rem; justify-content: space-between; padding-bottom: 3rem; border-bottom: 1px solid var(--night-line); }
.footer-pitch { flex: 1 1 22rem; max-width: 28rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.site-footer .brand, .site-footer .brand:hover { color: #FFFFFF; margin-bottom: 0.75rem; }
.footer-title { color: #FFFFFF; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.btn-light { background: #FFFFFF; color: var(--ink); margin-top: 0.5rem; }
.btn-light:hover { background: var(--night-ink); color: var(--ink); }
.footer-cols { flex: 2 1 30rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem; }
.footer-head { color: #FFFFFF; font-weight: 700; margin-bottom: 0.75rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-footer a:not(.btn):not(.brand) { color: var(--night-soft); text-decoration: none; display: inline-block; padding: 0.25rem 0; }
.site-footer a:not(.btn):not(.brand):hover, .site-footer a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 0.25rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; font-size: 0.875rem; color: var(--night-faint); }

/* Scaled down, controls still need a finger-sized target on touch screens. */
@media (pointer: coarse) {
    .btn, .mode-switch button, .menu-toggle, .billing button, .sample { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .slide-right, .slide-left, .scanline { animation: none; }
}

/* Four steps beside a text column: two by two, never three plus one. */
.flow-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .flow-2 { grid-template-columns: 1fr; } }

/* ---------- Legal page ---------- */
.legal h1 { font-size: clamp(2.25rem, 4vw, 3rem); letter-spacing: -0.03em; font-weight: 800; margin-bottom: 0.75rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.legal-nav a { background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; padding: 0.5rem 1rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.legal-nav a:hover { border-color: var(--ink); }
.legal-section { padding-top: 3rem; scroll-margin-top: 1rem; max-width: 52rem; }
.legal-section > h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 1.25rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.legal-summary { margin-bottom: 1.5rem; }
.legal .prose h3 { margin-top: 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
