/* ==========================================================================
   YouPrompt — design system
   Principe : le produit est du texte. Typographie d'abord, une seule couleur
   d'accent, des filets plutôt que des ombres, un mouvement bref et utile.
   ========================================================================== */

/* ---------- Tokens ---------------------------------------------------- */
:root {
    color-scheme: light dark;

    --paper: #F5F2EB;
    --paper-2: #EDE9DF;
    --surface: #FCFBF8;
    --ink: #16150F;
    --ink-2: #47443B;
    --ink-3: #6B675C;
    --line: rgba(22, 21, 15, .10);
    --line-2: rgba(22, 21, 15, .20);
    --accent: #C73E17;
    --accent-soft: rgba(199, 62, 23, .09);
    --on-accent: #FFFFFF;
    --ok: #2E6A3A;
    --danger: #B42318;
    --shadow: 0 1px 2px rgba(22, 21, 15, .04), 0 18px 40px -22px rgba(22, 21, 15, .28);

    --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-std: cubic-bezier(.2, 0, 0, 1);
    --t-fast: 140ms;
    --t: 220ms;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --gutter: clamp(16px, 4vw, 40px);
    --max: 1240px;
    --header-h: 64px;

    /* Encres de la marque (impression : identiques en clair et en sombre) */
    --brand: #E4492E;
    --moutarde: #F0B323;
    --cobalt: #2A4FD6;
    --print-paper: #F4F0E6;
    --print-ink: #16150F;
    --hl: color-mix(in srgb, var(--moutarde) 72%, transparent);
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #121110;
        --paper-2: #0B0A09;
        --surface: #1A1917;
        --ink: #EEEBE3;
        --ink-2: #BDB9AE;
        --ink-3: #8F8B80;
        --line: rgba(238, 235, 227, .10);
        --line-2: rgba(238, 235, 227, .20);
        --accent: #FF7447;
        --accent-soft: rgba(255, 116, 71, .12);
        --on-accent: #121110;
        --ok: #7CC48A;
        --danger: #FF8A7A;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .7);
        --hl: color-mix(in srgb, var(--moutarde) 38%, transparent);
    }
}

/* ---------- Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.6 var(--sans);
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
main { flex: 1; }
body { overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

.icon { width: 1.125em; height: 1.125em; flex: none; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: var(--gutter); top: -100px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm);
    font-weight: 600; transition: top var(--t) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }

/* ---------- Typographie ----------------------------------------------- */
.display, .h1, .h2, .prose h1, .prose h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-optical-sizing: auto;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1; letter-spacing: -.03em; }
.h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.04; }
.h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.08; }
.h3 { font: 600 1.125rem/1.35 var(--sans); letter-spacing: -.01em; }
.display em, .h1 em, .h2 em { font-style: italic; }
.dot { color: var(--accent); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 38rem; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .num { color: var(--accent); }
.meta { font: 400 .8125rem/1.4 var(--mono); color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

.link {
    color: var(--ink);
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: color var(--t-fast), background-size var(--t) var(--ease-out);
}
.link:hover { color: var(--accent); }
.link-quiet {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size var(--t) var(--ease-out), color var(--t-fast);
}
.link-quiet:hover { background-size: 100% 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; }
.link-arrow .icon { transition: transform var(--t) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Boutons --------------------------------------------------- */
.btn {
    --h: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: var(--h); padding: 0 1.125rem;
    border: 1px solid transparent; border-radius: var(--r-sm);
    font: 600 .9375rem/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
    transition: background-color var(--t-fast) var(--ease-std), color var(--t-fast) var(--ease-std),
                border-color var(--t-fast) var(--ease-std), transform var(--t-fast) var(--ease-std);
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .icon { transition: transform var(--t) var(--ease-out); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-inverse { background: var(--paper); color: var(--ink); }
.btn-inverse:hover { background: var(--accent); color: var(--on-accent); }
.btn-sm { --h: 34px; padding: 0 .8rem; font-size: .875rem; }
.btn-lg { --h: 52px; padding: 0 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- En-tête --------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t) var(--ease-std);
    view-transition-name: site-header;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner {
    height: var(--header-h);
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
}

.wordmark {
    display: inline-flex; align-items: center; gap: 10px;
    font: 700 1.3125rem/1 var(--sans); letter-spacing: -.04em; color: var(--ink);
}
.wordmark .mark { width: 28px; height: 28px; flex: none; transition: transform .6s var(--ease-out); }
.wordmark:hover .mark { transform: rotate(-8deg) scale(1.04); }
.caret {
    display: inline-block; width: .5em; height: .95em; margin-left: .12em;
    background: var(--accent); border-radius: 1px; transform: translateY(.04em);
}
@media (prefers-reduced-motion: no-preference) {
    .caret { animation: blink 1.1s steps(1, end) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.search { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.search .icon-search { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
    width: 100%; height: 40px; padding: 0 40px 0 38px;
    background: var(--paper-2); border: 1px solid transparent; border-radius: 999px;
    font-size: .9375rem; color: var(--ink);
    transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; background: var(--surface); border-color: var(--line-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.kbd {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
    font: 500 .6875rem/1 var(--mono); color: var(--ink-3);
    border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface);
    transition: opacity var(--t-fast);
}
.search input:focus + .kbd, .search input:not(:placeholder-shown) + .kbd { opacity: 0; }

.nav { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 10px;
    font-size: .9375rem; color: var(--ink-2); border-radius: var(--r-sm);
    background: none; border: 0; transition: color var(--t-fast);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: var(--ink);
}
.nav-links .btn { margin-left: 8px; }
.nav-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; }
.avatar {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--ink); color: var(--paper); font: 600 .75rem/1 var(--sans); letter-spacing: .02em;
}
.avatar-lg { width: 44px; height: 44px; font-size: .9375rem; }
.menu-btn, .search-btn {
    display: none; width: 40px; height: 40px; place-items: center;
    background: none; border: 0; border-radius: var(--r-sm); color: var(--ink);
}
.menu-btn:hover, .search-btn:hover { background: var(--paper-2); }
.menu-btn .icon, .search-btn .icon { width: 22px; height: 22px; }

/* ---------- Pied de page ---------------------------------------------- */
.site-footer { margin-top: clamp(72px, 10vw, 128px); padding-bottom: 28px; }
.site-footer > .wrap { border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 26rem; color: var(--ink-2); font-size: .9375rem; }
.footer-title { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-list { display: grid; gap: 10px; font-size: .9375rem; }
.footer-list a { color: var(--ink-2); transition: color var(--t-fast); }
.footer-list a:hover { color: var(--ink); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
    font: 400 .8125rem/1 var(--mono); color: var(--ink-3);
}

/* ---------- Notices (flash) ------------------------------------------- */
.flash-zone { padding-top: 20px; display: grid; gap: 10px; }
.notice {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 16px; border-radius: var(--r); border: 1px solid;
    font-size: .9375rem; line-height: 1.5; color: var(--ink);
}
.notice .icon { margin-top: .15em; }
.notice-success { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.notice-success .icon { color: var(--ok); }
.notice-error { background: color-mix(in srgb, var(--danger) 7%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.notice-error .icon { color: var(--danger); }
.notice-info { background: var(--surface); border-color: var(--line-2); }
.notice-info .icon { color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
    .flash-zone .notice { animation: notice-in .5s var(--ease-out) both; }
}
@keyframes notice-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Sections -------------------------------------------------- */
/* Les filets entre sections suivent la grille (pas de ligne bord à bord) */
.section > .wrap { padding-block: clamp(56px, 8vw, 104px); }
.section + .section > .wrap { border-top: 1px solid var(--line); }
.hero + .section > .wrap { padding-top: clamp(32px, 5vw, 64px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-note { max-width: 24rem; color: var(--ink-2); font-size: .9375rem; text-wrap: pretty; }
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 36px); }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font: 400 .8125rem/1 var(--mono); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* ---------- Hero ------------------------------------------------------ */
.hero {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center;
    padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-copy { grid-column: 1 / span 7; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.hero-aside { grid-column: 9 / span 4; }
.facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--line);
}
.facts > div { padding: 18px 16px 0 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font: 500 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font: 400 clamp(1.75rem, 1.4rem + 1vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }

/* Specimen : un vrai extrait, tel qu'un acheteur le voit */
.specimen {
    position: relative; display: block;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.specimen:hover { transform: translateY(-3px); }
.specimen-head, .specimen-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 18px; font: 400 .75rem/1.2 var(--mono); color: var(--ink-3);
}
.specimen-head { border-bottom: 1px solid var(--line); }
.specimen-head .tag { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.specimen-body { padding: 20px 20px 8px; font: 400 .875rem/1.75 var(--mono); color: var(--ink); min-height: 11.5em; }
.specimen-body .caret { width: .55em; height: 1.1em; transform: translateY(.2em); margin-left: 1px; }
.redacted { position: relative; padding: 4px 20px 22px; }
.redacted i { display: block; height: .62em; margin: .78em 0; border-radius: 2px; background: var(--paper-2); }
.redacted i:nth-child(1) { width: 94%; } .redacted i:nth-child(2) { width: 81%; }
.redacted i:nth-child(3) { width: 88%; } .redacted i:nth-child(4) { width: 56%; }
.redacted-label {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
    font: 500 .75rem/1 var(--sans); color: var(--ink-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.specimen-foot { border-top: 1px solid var(--line); padding-block: 14px; }
.specimen-foot strong { font: 600 .9375rem/1.3 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.specimen-foot .price { font: 600 .9375rem/1 var(--sans); color: var(--ink); }

/* ---------- Index des catégories -------------------------------------- */
.cat-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 64px); border-top: 1px solid var(--line); }
.cat-row {
    display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto 20px; align-items: baseline; gap: 12px;
    padding: 20px 2px; border-bottom: 1px solid var(--line);
}
.cat-row .num { font: 400 .8125rem/1 var(--mono); color: var(--ink-3); }
.cat-row .name {
    font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.2 var(--serif); letter-spacing: -.015em;
    transition: transform .45s var(--ease-out), color var(--t-fast);
}
.cat-row .count { font: 400 .8125rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.cat-row .icon { align-self: center; color: var(--ink-3); opacity: 0; transform: translateX(-6px); transition: opacity var(--t), transform .45s var(--ease-out), color var(--t-fast); }
.cat-row:hover .name { transform: translateX(6px); }
.cat-row:hover .icon { opacity: 1; transform: none; color: var(--accent); }

/* ---------- Cartes prompt --------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: transform .45s var(--ease-out), border-color var(--t), box-shadow .45s var(--ease-out);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; color: var(--ink-2); }
.card-top .price { font: 600 1rem/1 var(--sans); letter-spacing: -.01em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-title {
    margin: 10px 0 8px; font: 600 1.0625rem/1.35 var(--sans); letter-spacing: -.012em; text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt {
    font: 400 .8125rem/1.65 var(--mono); color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 45%, transparent);
    mask-image: linear-gradient(#000 45%, transparent);
}
.card-foot {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-size: .8125rem; color: var(--ink-3);
}
.card-foot .by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .card-excerpt { margin-bottom: 16px; }
.badge-new { display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.badge-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rating-inline { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink-2); }
.rating-inline .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; color: var(--accent); }

/* ---------- Étapes & bandeau ------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid var(--ink); }
.step-num { font: 400 .8125rem/1 var(--mono); color: var(--accent); }
.step h3 { margin: 28px 0 10px; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }
.step p { color: var(--ink-2); font-size: .9375rem; text-wrap: pretty; }

.band {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
    padding: clamp(32px, 6vw, 72px); border-radius: var(--r-lg);
    background: var(--ink); color: var(--paper);
}
.band .h2 { max-width: 20ch; }
.band p { margin-top: 16px; color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 34rem; }
.band .eyebrow { color: color-mix(in srgb, var(--paper) 60%, transparent); margin-bottom: 20px; }

/* ---------- Barre d'outils (catégorie) -------------------------------- */
.toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
    padding: 12px 0; margin-bottom: 28px; border-block: 1px solid var(--line);
}
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: var(--r); background: var(--paper-2); overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a {
    padding: 7px 12px; border-radius: 7px; font-size: .875rem; color: var(--ink-2); white-space: nowrap;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.result-count { font: 400 .8125rem/1 var(--mono); color: var(--ink-3); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a {
    min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px;
    border-radius: var(--r-sm); font: 500 .875rem/1 var(--mono); color: var(--ink-2); border: 1px solid transparent;
}
.pagination a:hover { border-color: var(--line-2); color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Texte éditorial de rayon */
.about {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(24px, 5vw, 72px);
    margin-top: clamp(64px, 8vw, 104px); padding-top: 32px; border-top: 1px solid var(--line);
}
.about-title { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }
.about .prose { max-width: 42rem; font-size: 1rem; }

/* Page de recherche */
.search-page { justify-self: start; max-width: 640px; margin-top: 28px; }
.search-page input { height: 52px; padding-left: 46px; font-size: 1.0625rem; background: var(--surface); border-color: var(--line-2); }
.search-page .icon-search { left: 16px; width: 20px; height: 20px; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .875rem; }
.chip {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line-2); color: var(--ink-2); transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Formulaires ----------------------------------------------- */
.field { display: grid; gap: 8px; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 16px; align-items: start; }
.field-row > .field { margin-top: 0; }
.label { font: 500 .875rem/1.3 var(--sans); color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.label .opt { font-weight: 400; color: var(--ink-3); font-size: .8125rem; }
.hint { font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.hint a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.input, .textarea, .select select {
    width: 100%; min-height: 44px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    font-size: 1rem; color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; min-height: 120px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input:hover, .textarea:hover, .select select:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.input:focus, .textarea:focus, .select select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.input:disabled { background: var(--paper-2); color: var(--ink-3); cursor: not-allowed; }
.input-mono, .textarea-mono { font-family: var(--mono); font-size: .875rem; }
.input-code { font-family: var(--mono); letter-spacing: .3em; font-size: 1.125rem; text-align: center; }
.textarea-mono { line-height: 1.75; tab-size: 2; }

.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer; }
.select::after {
    content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
    border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-sm select { min-height: 36px; font-size: .875rem; padding-left: 12px; }

.input-group { position: relative; }
.input-group .input { padding-right: 46px; }
.input-group .toggle {
    position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px; display: grid; place-items: center;
    background: none; border: 0; border-radius: 4px; color: var(--ink-3);
}
.input-group .toggle:hover { color: var(--ink); background: var(--paper-2); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input {
    -webkit-appearance: none; appearance: none; flex: none;
    width: 18px; height: 18px; margin: .15em 0 0; border: 1.5px solid var(--line-2); border-radius: 4px;
    background: var(--surface); display: grid; place-items: center; cursor: pointer;
    transition: background-color var(--t-fast), border-color var(--t-fast);
}
.check input::after {
    content: ""; width: 5px; height: 9px; margin-top: -2px;
    border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
    transition: transform var(--t) var(--ease-out);
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9375rem; }
.switch input {
    -webkit-appearance: none; appearance: none; flex: none; position: relative;
    width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); cursor: pointer; margin: 0;
    transition: background-color var(--t) var(--ease-std);
}
.switch input::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--t) var(--ease-out);
}
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); }

/* Formulaires d'authentification */
.auth { display: grid; place-items: center; padding: clamp(40px, 8vw, 96px) 0; }
.auth-card { width: min(100%, 420px); }
.auth-card .h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.auth-card .lead { margin-top: 12px; font-size: 1rem; }
.auth-card form { margin-top: 32px; }
.auth-card .btn-block { margin-top: 28px; }
.auth-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }

/* Formulaire de publication */
.form-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.form-toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; font-size: .875rem; }
.form-toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-3); transition: color var(--t-fast); }
.form-toc a:hover { color: var(--ink); }
.form-toc .num { font-family: var(--mono); font-size: .75rem; color: var(--accent); padding-top: .2em; }
.fieldset { border: 0; margin: 0; padding: 0 0 40px; }
.fieldset + .fieldset { padding-top: 40px; border-top: 1px solid var(--line); }
.fieldset-head { margin-bottom: 24px; }
.fieldset-head .eyebrow { margin-bottom: 10px; }
.fieldset-head h2 { font: 400 1.625rem/1.2 var(--serif); letter-spacing: -.015em; }
.fieldset-head p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.token-meter { font: 400 .8125rem/1 var(--mono); color: var(--ink-3); }
.form-actions {
    position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 8px; padding: 16px 0; background: var(--paper);
    background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

/* ---------- Fiche prompt ---------------------------------------------- */
.prompt-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head aside" "main aside";
    column-gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(24px, 4vw, 48px);
}
.prompt-head { grid-area: head; padding-bottom: 36px; }
.prompt-main { grid-area: main; }
.prompt-aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 24px); }
.prompt-head .meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.prompt-head .lead { margin-top: 20px; }
.seller-line { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: .9375rem; }
.seller-line .who { display: grid; gap: 2px; line-height: 1.3; }
.seller-line .who small { font-size: .8125rem; color: var(--ink-3); }
.verified { display: inline-flex; align-items: center; gap: 4px; font: 500 .75rem/1 var(--sans); color: var(--ok); }
.verified .icon { width: 14px; height: 14px; }

.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.block-title { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }

.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.doc-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px 0 18px;
    border-bottom: 1px solid var(--line); font: 400 .75rem/1 var(--mono); color: var(--ink-3);
}
.doc-head .tag { display: inline-flex; align-items: center; gap: 8px; }
.doc-body {
    padding: 22px 24px; font: 400 .875rem/1.8 var(--mono); color: var(--ink);
    white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
}
.doc-locked { position: relative; }
.doc-locked .redacted { padding: 0 24px 72px; }
.doc-locked .redacted-label { top: auto; bottom: 22px; transform: translateX(-50%); }
.copy-btn[data-state="done"] { color: var(--ok); }

.output {
    max-height: 30rem; overflow: auto; padding: 22px 24px; border-radius: var(--r-lg);
    background: var(--paper-2); font: 400 .8125rem/1.75 var(--mono); color: var(--ink-2);
    white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin;
}
.output-img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.output + .output-img, .output-img + .output { margin-top: 16px; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.specs > div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { font-size: .9375rem; }

.buy {
    padding: 28px; border-radius: var(--r-lg); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.buy-price { font: 400 3rem/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.buy-sub { margin-top: 10px; font: 400 .8125rem/1.4 var(--mono); color: var(--ink-3); }
.buy form, .buy > .btn { margin-top: 24px; }
.buy .check { margin-bottom: 16px; }
.assurances { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.assurances li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.assurances .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--ink-3); }
.owner-note { margin-top: 16px; font-size: .875rem; color: var(--ink-2); }

.reviews { display: grid; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .875rem; }
.review-head .name { font-weight: 600; }
.review p { color: var(--ink-2); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 14px; height: 14px; }
.stars .on { fill: currentColor; }
.stars .off { color: var(--line-2); }
.empty-note { padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-3); font-size: .9375rem; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; color: var(--line-2); transition: color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.rating-input label .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--accent); }
.rating-input label:active { transform: scale(.9); }
.rating-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.report { margin-top: 32px; font-size: .875rem; }
.report summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-3); list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--ink); }
.report form { margin-top: 14px; max-width: 460px; display: grid; gap: 10px; justify-items: start; }

/* ---------- Tableau de bord ------------------------------------------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px) 0 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    position: relative; padding: 12px 12px 14px; font-size: .9375rem; color: var(--ink-3); white-space: nowrap;
    transition: color var(--t-fast);
}
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); }
.tabs a:first-child[aria-current="page"]::after { left: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-block: 1px solid var(--line); margin-bottom: 48px; }
.stat { padding: 22px 20px 22px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-label { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { margin-top: 10px; font: 400 2.25rem/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }

.callout {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 32px;
    padding: 24px 28px; margin-bottom: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.callout h2 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }
.callout p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; max-width: 40rem; }
.callout-warn { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }

.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); max-width: 560px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; margin-bottom: 8px; }
.panel .divider { height: 1px; background: var(--line); margin: 24px 0; }
.code-box {
    padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper-2);
    font: 500 .9375rem/1.8 var(--mono); letter-spacing: .06em; overflow-wrap: anywhere;
}
.code-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }

.subhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 48px 0 16px; }
.subhead:first-child { margin-top: 0; }
.subhead h2 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.015em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th {
    text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line);
    font: 500 .6875rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-fast); }
.table tbody tr:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .title-cell a { font-weight: 500; }
.table .title-cell a:hover { color: var(--accent); }
.table .actions { display: flex; gap: 8px; justify-content: flex-end; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status-published::before { background: var(--ok); }
.status-flagged::before, .status-removed::before { background: var(--danger); }
.pill-warn { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 500; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

.empty {
    display: grid; justify-items: start; gap: 12px; padding: 32px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
    color: var(--ink-2);
}
.empty h3 { font: 400 1.375rem/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; }

/* ---------- Blog & texte long ----------------------------------------- */
.post-list { border-top: 1px solid var(--line); }
.post-row {
    display: grid; grid-template-columns: 10rem minmax(0, 1fr) 24px; gap: 24px; align-items: baseline;
    padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-row time { font: 400 .8125rem/1.4 var(--mono); color: var(--ink-3); }
.post-row h2 { font: 400 clamp(1.375rem, 1.2rem + .7vw, 1.875rem)/1.2 var(--serif); letter-spacing: -.015em; transition: color var(--t-fast); }
.post-row p { margin-top: 10px; color: var(--ink-2); max-width: 44rem; }
.post-row .icon { color: var(--ink-3); transition: transform .45s var(--ease-out), color var(--t-fast); }
.post-row:hover h2 { color: var(--accent); }
.post-row:hover .icon { transform: translateX(4px); color: var(--accent); }

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.05; color: var(--ink); margin-bottom: .6em; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.2; color: var(--ink); margin-top: 2.2em; }
.prose h3 { font: 600 1.125rem/1.4 var(--sans); color: var(--ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose code { font: 400 .875em/1 var(--mono); padding: .15em .4em; border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.prose blockquote { padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.25em; color: var(--ink); }
.prose-article { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose-article h3 { font: 400 clamp(1.375rem, 1.2rem + .6vw, 1.75rem)/1.25 var(--serif); letter-spacing: -.015em; margin-top: 2em; }
.prose-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; font: 400 .8125rem/1 var(--mono); color: var(--ink-3); }
.article-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- 404 ------------------------------------------------------- */
.not-found { padding: clamp(64px, 12vw, 160px) 0; }
.mark-xl { width: 72px; height: 72px; margin-bottom: 32px; transform: rotate(-6deg); }
.not-found .display { font-size: clamp(5rem, 3rem + 10vw, 11rem); }
.not-found p { margin-top: 20px; }
.not-found .hero-actions { margin-top: 32px; }

/* ---------- Identité : fiches --------------------------------------- */
/* Une fiche = le titre composé comme une couverture d'éditeur, sur un aplat très
   clair de l'encre du rayon, signé du guillemet de la marque. Le visuel EST le contenu. */
.face {
    --tint: 9%;
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    padding: 18px 20px 22px;
    background: color-mix(in srgb, var(--c, var(--brand)) var(--tint), var(--surface));
    transition: background-color var(--t) var(--ease-std);
}
@media (prefers-color-scheme: dark) { .face { --tint: 14%; } }
.face-top {
    position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px;
    font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.face-title {
    position: relative; z-index: 1; margin-top: 22px; padding-right: 44px;
    font: 400 1.4375rem/1.13 var(--serif); letter-spacing: -.018em; color: var(--ink); text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.face-mark {
    position: absolute; right: 12px; bottom: -.24em; pointer-events: none;
    font: 400 7rem/1 var(--serif); color: var(--c, var(--brand));
    transition: transform .6s var(--ease-out);
}
.cat-dot { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-dot::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }

/* Carte prompt */
.card-face { aspect-ratio: 3 / 2; border-bottom: 1px solid var(--line); }
.card-face .face-title { font-size: 1.5rem; padding-right: 36px; -webkit-line-clamp: 4; }
.card-face .face-mark { font-size: 4.25rem; right: 16px; bottom: -.16em; }
.card-body .card-excerpt { margin-top: 10px; }
.card:hover .face { --tint: 13%; }
.card:hover .face-mark, .post-row:hover .face-mark { transform: translateX(5px); }

/* Surligneur du titre du hero : trait fin, posé sous la ligne de base */
.hl {
    background: linear-gradient(transparent 74%, var(--hl) 74%, var(--hl) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
    .hl { background-size: 0% 100%; animation: highlight 1.1s var(--ease-out) .75s forwards; }
}
@keyframes highlight { to { background-size: 100% 100%; } }

/* Bandeau des modèles */
.marquee {
    overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); }
.marquee-group span { font: italic 400 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.marquee-group i { font: 400 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1 var(--serif); font-style: normal; color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
    .marquee-track { animation: marquee 52s linear infinite; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tuiles de rayons : le nom et ce qu'on y trouve vraiment */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
    min-height: 248px; border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color var(--t);
}
.tile:hover { --tint: 13%; transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-name { position: relative; z-index: 1; margin-top: 22px; font: 400 1.75rem/1.1 var(--serif); letter-spacing: -.02em; }
.tile-list { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.tile-list li { display: flex; gap: 8px; min-width: 0; }
.tile-list li::before { content: "–"; color: var(--c); flex: none; }
.tile-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bandeau auteur : aperçu de la fiche que recevra ton prompt */
.band { position: relative; overflow: hidden; align-items: center; }
.band .btn { margin-top: 28px; }
.band-face {
    justify-self: end; width: 340px; max-width: 100%; aspect-ratio: 5 / 4; color: var(--ink);
    border-radius: var(--r-lg); transform: rotate(-3deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.band-face .face-top, .band-face .face-title { color: var(--ink); }

/* En-tête de rayon : bandeau à l'encre du rayon */
.cat-band {
    position: relative; overflow: hidden; margin-bottom: 28px;
    background: color-mix(in srgb, var(--c) 8%, var(--paper));
    border-bottom: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
}
@media (prefers-color-scheme: dark) { .cat-band { background: color-mix(in srgb, var(--c) 12%, var(--paper)); } }
.cat-band .page-head { position: relative; z-index: 1; }
.cat-band .face-mark { font-size: clamp(9rem, 6rem + 9vw, 15rem); right: max(var(--gutter), calc((100vw - var(--max)) / 2)); bottom: -.28em; opacity: .22; }

/* Blog : vignettes typographiques au nom du modèle */
.post-row { grid-template-columns: 200px minmax(0, 1fr) 24px; align-items: center; }
.post-face { aspect-ratio: 16 / 10; border-radius: var(--r); padding: 14px 16px; }
.post-face .face-title { margin-top: auto; padding-right: 36px; font-style: italic; font-size: 1.5rem; }
.post-face .face-mark { font-size: 4.5rem; right: 8px; }
.post-row .post-date { display: block; margin-bottom: 8px; font: 400 .8125rem/1.4 var(--mono); color: var(--ink-3); }

/* Nuancier du pied de page */
.inks { display: flex; gap: 6px; align-items: center; }
.inks span { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Mouvement ------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms + 40ms); }
    .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
    .reveal-ready [data-reveal] { transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
    .reveal-ready [data-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(14px); }
    .reveal-ready [data-stagger] > * {
        transition: opacity .7s var(--ease-out), transform .9s var(--ease-out),
                    border-color var(--t), box-shadow .45s var(--ease-out);
        transition-delay: calc(min(var(--i, 0), 10) * 55ms);
    }
    .reveal-ready [data-stagger].is-in > *:hover { transition-delay: 0s; }
    html:focus-within { scroll-behavior: smooth; }

    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: 160ms var(--ease-std) both vt-out; }
    ::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1080px) {
    .hero-copy { grid-column: 1 / -1; }
    .hero-aside { grid-column: 1 / -1; max-width: 560px; margin-top: 24px; }
    .prompt-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 880px) {
    :root { --header-h: 60px; }
    .header-inner { grid-template-columns: auto 1fr; gap: 8px; }
    .nav { grid-column: 2; gap: 2px; }
    .search { display: none; }
    .search-btn, .menu-btn { display: grid; }
    .search-btn { justify-self: end; }
    .nav-links {
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .25);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity var(--t) var(--ease-std), transform var(--t) var(--ease-out), visibility 0s linear var(--t);
    }
    [data-menu-open] .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav-link { height: 52px; padding: 0; font-size: 1.125rem; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-link[aria-current="page"]::after { display: none; }
    .nav-links form { display: contents; }
    .nav-links .btn { margin: 20px 0 0; height: 48px; }
    .nav-sep { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cat-index { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .band { grid-template-columns: 1fr; align-items: start; }
    .prompt-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "aside" "main"; }
    .prompt-aside { position: static; margin-bottom: 36px; }
    .form-layout { grid-template-columns: 1fr; }
    .form-toc { display: none; }
    .post-row { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
    .post-row > .icon { display: none; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band-face { display: none; }
    .about { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .facts > div { padding-right: 10px; }
    .facts > div + div { padding-left: 12px; }
    .facts dt { letter-spacing: .05em; }
    .specs { grid-template-columns: 1fr; }
    .callout { grid-template-columns: 1fr; }
    .code-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .toolbar { align-items: stretch; flex-direction: column; }
    .filters .select { flex: 1; }
    .buy { padding: 22px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .tiles { grid-template-columns: 1fr; gap: 12px; }
    .tile { min-height: 0; }
    .tile-name { font-size: 1.625rem; }
    .post-row { grid-template-columns: 1fr; }
    .post-face { max-width: 280px; }
}

@media print {
    .site-header, .site-footer, .prompt-aside, .report { display: none; }
    body { background: #fff; color: #000; }
}
