/* Facteur — Le Catalogue Facteur (story catalogue.1)
 * Page /catalogue et fiches /catalogue/<slug>, générées par scripts/catalogue.py.
 * Tokens repris de comparaison.css (accueil) et de l'app (theme.dart) ;
 * l'étiquette Media-Score reprend celle de la méthodologie et de l'app. Mobile d'abord. */

:root {
    --ct-bg: #faf8f5;
    --ct-bg-alt: #f0ece6;
    --ct-surface: #ffffff;
    --ct-ink: #1a1a1a;
    --ct-text: #2c2a29;
    --ct-muted: #6b6560;
    --ct-faint: #959392;
    --ct-accent: #d4652a;
    --ct-accent-dark: #b8541f;
    --ct-accent-soft: #fdf0e9;
    --ct-line: #e0dbd5;
    --ct-line-soft: #ece7e0;
    --ct-radius: 16px;
    --ct-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0;
    background: var(--ct-bg);
    color: var(--ct-text);
    font-family: var(--font-sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ct-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-muted { color: var(--ct-muted); font-weight: 400; }
.ct-hl {
    background-image: linear-gradient(104deg, rgba(212, 101, 42, 0) 0.9%, rgba(212, 101, 42, 0.15) 2.4%, rgba(212, 101, 42, 0.12) 5.8%, rgba(212, 101, 42, 0.08) 93%, rgba(212, 101, 42, 0.15) 96%, rgba(212, 101, 42, 0) 98%);
    background-repeat: no-repeat;
    background-size: 100% 92%;
    background-position: 0 100%;
    border-radius: 4px;
    padding: 1px 6px;
    margin: 0 -6px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ── Boutons ─────────────────────────────── */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 150ms, border-color 150ms, color 150ms;
}
.ct-btn--accent { background: var(--ct-accent); color: #fff; }
.ct-btn--accent:hover { background: var(--ct-accent-dark); color: #fff; }
.ct-btn--dark { background: #3d3935; color: #fff; }
.ct-btn--dark:hover { background: var(--ct-ink); color: #fff; }
.ct-btn--ghost { background: var(--ct-surface); border-color: var(--ct-line); color: var(--ct-text); }
.ct-btn--ghost:hover { border-color: var(--ct-accent); color: var(--ct-accent-dark); }
.ct-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.ct-btn[disabled] { opacity: 0.55; cursor: default; }
.ct-link { all: unset; cursor: pointer; color: var(--ct-accent-dark); font-weight: 600; font-size: 14px; }
.ct-link:hover { text-decoration: underline; }

/* ── En-tête et pied ──────────────────────── */
.ct-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ct-ink); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none !important; }
.ct-brand img { border-radius: 999px; display: block; }
/* En-tête : commun au site (css/header.css, scripts/site_header.py). */

.ct-footer { background: var(--ct-bg-alt); margin-top: 48px; }
.ct-footer__inner { max-width: 1120px; margin: 0 auto; padding: 28px 16px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.ct-footer__links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.ct-footer__links a { color: var(--ct-muted); }

/* ── Mise en page ─────────────────────────── */
.ct-main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ct-hero { padding: 32px 0 20px; max-width: 760px; }
.ct-kicker {
    display: inline-block;
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--ct-accent-dark);
    border: 1.5px solid rgba(212, 101, 42, 0.6);
    border-radius: 4px;
    padding: 3px 9px;
    transform: rotate(-2deg);
}
.ct-title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(30px, 7.5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ct-ink); text-wrap: balance; }
.ct-lede { margin: 14px 0 0; font-size: clamp(16px, 2.2vw, 18.5px); color: var(--ct-muted); max-width: 620px; }
.ct-stats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-stats li { display: flex; align-items: baseline; gap: 6px; background: var(--ct-surface); border: 1px solid var(--ct-line-soft); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--ct-muted); }
.ct-stats b { font-size: 16px; color: var(--ct-ink); }
.ct-h2 { margin: 0 0 16px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ct-ink); }

/* ── Outils : recherche, filtres, tri ─────── */
.ct-tools { position: relative; z-index: 30; margin: 0 -16px; padding: 10px 16px; background: rgba(250, 248, 245, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ct-line-soft); }
.ct-tools__inner { display: grid; gap: 10px; }
.ct-search { position: relative; display: block; }
.ct-search svg { position: absolute; left: 13px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ct-faint); pointer-events: none; }
.ct-search input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--ct-line);
    border-radius: 12px;
    background: var(--ct-surface);
    font: 500 16px/1 var(--font-sans);
    color: var(--ct-ink);
    -webkit-appearance: none;
    appearance: none;
}
.ct-search input:focus { outline: none; border-color: var(--ct-accent); }
.ct-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.ct-chips::-webkit-scrollbar { display: none; }
.ct-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px 0 5px;
    border: 1.5px solid var(--ct-line);
    border-radius: 999px;
    background: var(--ct-surface);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--ct-muted);
}
.ct-chip .cf-sq { width: 26px; height: 26px; font-size: 14px; border-radius: 999px; }
.ct-chip[aria-pressed="true"] { border-color: var(--ct-ink); background: var(--ct-ink); color: #fff; }
.ct-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-selects label { min-width: 0; }
.ct-selects select {
    width: 100%;
    height: 40px;
    padding: 0 30px 0 12px;
    border: 1.5px solid var(--ct-line);
    border-radius: 10px;
    background: var(--ct-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236b6560' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 8px center / 18px;
    font: 500 14px/1 var(--font-sans);
    color: var(--ct-ink);
    -webkit-appearance: none;
    appearance: none;
    text-overflow: ellipsis;
}
.ct-selects select.is-set { border-color: var(--ct-ink); }
/* Mobile : les outils défilent avec la page ; un bouton flottant les ramène. */
.ct-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ct-ink);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.ct-fab svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
    .ct-fab { display: none !important; }
    .ct-tools { position: sticky; top: 64px; }
    .ct-tools__inner { grid-template-columns: minmax(260px, 1fr) auto; align-items: center; }
    .ct-chips { margin: 0; padding: 0; }
    .ct-selects { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 0 10px; }
.ct-count { margin: 0; font-weight: 700; font-size: 15px; color: var(--ct-ink); }
.ct-bar__actions { margin-left: auto; display: flex; gap: 8px; }

/* ── Liste ────────────────────────────────── */
.ct-head { display: none; }
.ct-list { list-style: none; margin: 0; padding: 0; background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow); overflow: hidden; }
.ct-item + .ct-item { border-top: 1px solid var(--ct-line-soft); }
.ct-item__link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: "logo main score" "logo bias score" "logo owner score";
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none !important;
}
.ct-item__link:hover, .ct-item__link:focus-visible { background: #fcfaf7; }
.ct-item__logo { grid-area: logo; width: 36px; height: 36px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); object-fit: contain; }
.ct-item__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
.ct-item__name { font-weight: 700; font-size: 16px; color: var(--ct-ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-item__meta { display: none; font-size: 12.5px; color: var(--ct-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-item__bias, .ct-item__owner { font-size: 12.5px; color: var(--ct-muted); line-height: 1.3; min-width: 0; }
.ct-item__bias { grid-area: bias; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-item__owner b { font-weight: 600; color: var(--ct-text); }
.ct-item__owner small { display: block; font-size: 12px; color: var(--ct-faint); }
.ct-item__score { grid-area: score; }
.ct-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 999px; background: var(--dot); }
/* Mobile : bord puis propriétaire, sous le nom. */
.ct-item__owner { grid-area: owner; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-item__owner small { display: inline; margin-left: 4px; }
.ct-item__owner small::before { content: "· "; }
@media (min-width: 720px) {
    .ct-head {
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1.2fr) 150px;
        gap: 16px;
        padding: 0 18px 8px 66px;
        font-weight: 600;
        font-size: 13px;
        color: var(--ct-muted);
    }
    .ct-head span:last-child { text-align: right; }
    .ct-item__link {
        grid-template-columns: 36px minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1.2fr) 150px;
        grid-template-areas: "logo main bias owner score";
        column-gap: 16px;
        padding: 12px 18px;
    }
    .ct-item__meta { display: block; }
    .ct-item__bias { grid-area: bias; font-size: 14px; }
    .ct-item__owner { grid-area: owner; font-size: 14px; white-space: normal; }
    .ct-item__owner small { display: block; margin-left: 0; }
    .ct-item__owner small::before { content: none; }
    .ct-item__score { justify-self: end; }
}
.ct-empty { margin: 24px 0; text-align: center; color: var(--ct-muted); }

/* ── Étiquette Media-Score (app, méthodologie) ─ */
.is { display: inline-flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 11px; padding: 5px 7px 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.is__title { padding-left: 2px; font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: 0.77px; color: var(--ct-faint); }
.is__cells { display: flex; align-items: center; height: 44px; }
.is__cell { width: 30px; height: 32px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; line-height: 1; color: rgba(255, 255, 255, 0.6); }
.is__cell:first-child { border-radius: 8px 0 0 8px; }
.is__cell:last-child { border-radius: 0 8px 8px 0; }
.is__cell.is--on { position: relative; z-index: 1; width: 40px; height: 44px; margin: 0 -5px; border: 3px solid #fff; border-radius: 10px !important; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); font-size: 27px; color: #fff; }
.is-a { background: #038141; } .is-b { background: #85BB2F; } .is-c { background: #FECB02; } .is-d { background: #EE8100; } .is-e { background: #E63E11; }
.is--none .is__cell { background: #d9d5d0; color: rgba(255, 255, 255, 0.8); }
/* Taille S : la liste. */
.is--s { padding: 3px 4px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.is--s .is__cells { height: 26px; }
.is--s .is__cell { width: 16px; height: 19px; font-size: 10.5px; }
.is--s .is__cell:first-child { border-radius: 5px 0 0 5px; }
.is--s .is__cell:last-child { border-radius: 0 5px 5px 0; }
.is--s .is__cell.is--on { width: 23px; height: 26px; margin: 0 -3px; border-width: 2px; border-radius: 6px !important; font-size: 15px; }
.is--l { zoom: 1.2; }

/* Pastille de lettre (critères, filtres, échelle) */
.cf-sq { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.cf-sq--none { background: #e4e0db; color: var(--ct-muted); }

/* ── Comment lire ─────────────────────────── */
.ct-about { margin-top: 48px; }
.ct-about__grid { display: grid; gap: 12px; }
.ct-card { background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow); padding: 18px 18px 20px; }
.ct-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--ct-ink); }
.ct-card p { margin: 0 0 10px; font-size: 14.5px; color: var(--ct-muted); }
.ct-card a { font-weight: 600; font-size: 14px; }
.ct-scale { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ct-muted); }
.ct-scale li { display: flex; align-items: center; gap: 10px; }
.ct-scale .cf-sq { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
.ct-scale b { color: var(--ct-ink); }
.ct-open { margin-top: 16px; padding: 16px 18px; border: 1.5px dashed var(--ct-line); border-radius: var(--ct-radius); font-size: 14.5px; color: var(--ct-muted); }
.ct-open p { margin: 0; }
.ct-open p + p { margin-top: 8px; }
.ct-open b { color: var(--ct-ink); }
@media (min-width: 900px) { .ct-about__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ── Encart app ───────────────────────────── */
.ct-app { margin-top: 32px; display: grid; grid-template-columns: 56px 1fr; gap: 14px 16px; align-items: center; background: var(--ct-ink); color: #f6efe7; border-radius: 20px; padding: 20px; }
.ct-app img { border-radius: 999px; }
.ct-app__title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 21px; line-height: 1.2; color: #fff; }
.ct-app__lede { margin: 4px 0 0; font-size: 14px; color: rgba(246, 239, 231, 0.75); }
.ct-app__badges { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.ct-app__badges .ct-btn { flex: 1; background: #fff; color: var(--ct-ink); }
@media (min-width: 720px) {
    .ct-app { grid-template-columns: 56px 1fr auto; padding: 24px 28px; }
    .ct-app__badges { grid-column: auto; }
    .ct-app__badges .ct-btn { flex: none; }
}

/* ── Fiche ────────────────────────────────── */
.cf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.cf-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.cf-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); object-fit: contain; }
.cf-id { min-width: 0; }
.cf-name { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: clamp(24px, 6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ct-ink); overflow-wrap: anywhere; }
.cf-site { font-size: 14px; color: var(--ct-muted); }
.cf-score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 16px 0 4px; padding: 16px; background: var(--ct-bg); border-radius: var(--ct-radius); }
.cf-verdict { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 22px; line-height: 1.15; color: var(--ct-ink); }
.cf-sub { margin: 3px 0 0; font-size: 14px; color: var(--ct-muted); }
.cf-origin { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ct-muted); }
.cf-sec { margin-top: 18px; }
.cf-h3 { margin: 0 0 10px; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ct-ink); }
/* « Détails de la note » sur une ligne, le logo du média à droite (story 7.12). */
.cf-h3--logo { display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.cf-h3__logo { flex: none; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: var(--ct-surface); }
.cf-crits { list-style: none; margin: 0; padding: 0; background: var(--ct-surface); border: 1px solid var(--ct-line-soft); border-radius: 14px; }
/* Une grille commune : nom à gauche, niveau puis lettre puis « Pourquoi ? » en
   colonnes fixes, pour que les lettres de tous les critères tombent l'une sous l'autre. */
.cf-crit { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 52px; box-sizing: border-box; }
.cf-crit + .cf-crit { border-top: 1px solid var(--ct-line-soft); }
.cf-crit__name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ct-ink); }
.cf-crit__level { flex: none; width: 96px; text-align: right; white-space: nowrap; font-size: 14px; color: var(--ct-muted); }
/* « Pourquoi cette note ? » (story 7.11) : un critère noté se déplie sur ses faits sourcés. */
.cf-crit--why { display: block; padding: 0; min-height: 0; }
.cf-crit__sum { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 52px; box-sizing: border-box; cursor: pointer; list-style: none; border-radius: 14px; }
.cf-crit__sum::-webkit-details-marker { display: none; }
.cf-crit__sum:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: -2px; }
.cf-why { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex: none; width: 84px; font-size: 13px; font-weight: 600; color: var(--ct-muted); }
.cf-why--none { visibility: hidden; }
.cf-why__caret { transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
details[open] > .cf-crit__sum .cf-why__caret { transform: rotate(180deg); }
.cf-crit__sum:hover .cf-why { color: var(--ct-ink); }
/* Les faits dépliés : un encart teinté rattaché à son critère, un fait par
   ligne, séparés par un filet ; la source sous le texte, en petit. */
.cf-pts { list-style: none; margin: 0 12px 12px; padding: 4px 14px; background: var(--ct-bg); border-radius: 10px; }
.cf-pt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.cf-pt + .cf-pt { border-top: 1px solid var(--ct-line-soft); }
.cf-pt__ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.cf-pt__body { flex: 1; min-width: 0; }
.cf-pt p, .cf-pts--none p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ct-text); overflow-wrap: break-word; }
.cf-pt--strength .cf-pt__ico { color: #1e7e45; }
.cf-pt--concern .cf-pt__ico { color: #c2560f; }
.cf-pt__src { display: inline-block; margin-top: 4px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--ct-muted); }
.cf-pt__src:hover { color: var(--ct-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.cf-pts--none { padding: 12px 14px 4px; }
.cf-pts--none p { color: var(--ct-muted); }
/* Story 7.12 : « Proposer une source » discret, à droite. */
.cf-pts--none a { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; font-size: 13px; font-weight: 500; color: var(--ct-muted); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cf-why__caret { transition: none; } }
/* Mobile : « Pourquoi ? » se réduit au chevron, le niveau passe sous le nom
   pour que les noms longs (« Indépendance de la rédaction ») tiennent sur une ligne. */
@media (max-width: 480px) {
    .cf-crit, .cf-crit__sum { display: grid; grid-template-columns: 1fr auto 18px; grid-template-areas: "name sq why" "level sq why"; column-gap: 12px; row-gap: 1px; padding: 10px 14px; }
    .cf-crit--why { display: block; padding: 0; }
    .cf-crit__name { grid-area: name; }
    .cf-crit__level { grid-area: level; width: auto; text-align: left; font-size: 13px; }
    .cf-crit .cf-sq, .cf-crit__sum .cf-sq { grid-area: sq; }
    .cf-why { grid-area: why; width: 18px; font-size: 0; gap: 0; }
    .cf-why__caret { width: 14px; height: 14px; }
    .cf-pts { margin: 0 10px 10px; padding: 2px 12px; }
    .cf-pt { gap: 10px; }
}
.cf-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ct-muted); }
.cf-more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; }
/* Repères : un tableau à deux colonnes, intitulé à gauche, valeur à droite. */
.cf-kvs { margin: 0; background: var(--ct-surface); border: 1px solid var(--ct-line); border-radius: 14px; overflow: hidden; }
.cf-kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.cf-kv + .cf-kv { border-top: 1px solid var(--ct-line-soft); }
.cf-kv dt { padding: 12px 14px; background: var(--ct-bg); font-weight: 600; font-size: 14px; line-height: 1.45; color: var(--ct-muted); }
.cf-kv dd { margin: 0; padding: 12px 14px; min-width: 0; display: grid; gap: 4px; }
.cf-kv__v { display: block; font-size: 15px; line-height: 1.5; color: var(--ct-ink); }
.cf-kv__v .ct-dot { width: 11px; height: 11px; margin-right: 8px; vertical-align: 0; }
.cf-kv__x { font-size: 14px; line-height: 1.5; color: var(--ct-muted); }
/* Mobile : l'intitulé au-dessus de la valeur, toute la largeur pour le texte. */
@media (max-width: 519px) {
    .cf-kv { grid-template-columns: minmax(0, 1fr); }
    .cf-kv dt { padding: 10px 14px 0; background: none; font-size: 14px; }
    .cf-kv dd { padding: 2px 14px 12px; }
}
.cf-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ct-text); }
.cf-siblings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cf-siblings a { display: inline-block; padding: 5px 11px; border: 1px solid var(--ct-line); border-radius: 999px; background: var(--ct-surface); font-size: 13.5px; font-weight: 600; color: var(--ct-text); }
.cf-siblings a:hover { border-color: var(--ct-accent); color: var(--ct-accent-dark); text-decoration: none; }
.cf-actions { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px -2px 0; padding: 10px 2px; background: linear-gradient(rgba(255, 255, 255, 0), var(--cf-bg, #fff) 30%); }
.cf-actions .ct-btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
.cf-actions [data-share="image"] { flex-basis: 100%; }
@media (min-width: 720px) { .cf-actions [data-share="image"] { flex: 1.4 1 0; } }
.cf-share { margin-top: 8px; display: grid; gap: 10px; justify-items: center; padding: 14px; background: var(--ct-bg); border-radius: var(--ct-radius); }
.cf-share img { width: min(100%, 300px); border-radius: 12px; box-shadow: var(--ct-shadow); }
.cf-share__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cf-share__hint { margin: 0; font-size: 12.5px; color: var(--ct-muted); text-align: center; }
.cf-feedback { margin: 6px 0 0; min-height: 1.4em; font-size: 13.5px; font-weight: 600; color: #2d8a4e; text-align: center; }
.cf-scale { margin-top: 14px; font-size: 14px; color: var(--ct-muted); }
.cf-scale p { margin: 0; font-size: 14px; }

/* Page d'une fiche */
.ct-main--fiche { max-width: 640px; }
.ct-crumbs { padding: 18px 0 10px; font-size: 14px; font-weight: 600; }
.ct-fiche-page { background: var(--ct-surface); border-radius: 20px; box-shadow: var(--ct-shadow); padding: 20px 18px 16px; --cf-bg: #fff; }
.ct-fiche-page .cf-head { padding-right: 0; }
.ct-explore { text-align: center; margin: 22px 0 0; }

/* ── Surimpression (fiche ouverte depuis la liste) ── */
.ct-modal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.ct-modal::backdrop { background: rgba(26, 26, 26, 0.45); }
.ct-modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.ct-modal__sheet {
    position: relative;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 22px 18px calc(8px + env(safe-area-inset-bottom));
    animation: ct-up 260ms cubic-bezier(.16, 1, .3, 1);
    --cf-bg: #fff;
}
.ct-modal__sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ct-line); }
.ct-modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--ct-bg-alt); cursor: pointer; font-size: 15px; }
.ct-modal__loading { padding: 40px 0; text-align: center; color: var(--ct-muted); }
@keyframes ct-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
    .ct-modal[open] { align-items: center; }
    .ct-modal__sheet { width: min(600px, calc(100% - 48px)); max-height: 88vh; border-radius: 22px; padding: 28px 28px 12px; }
    .ct-modal__sheet::before { display: none; }
}
body.ct-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .ct-modal__sheet { animation: none; } * { transition: none !important; } }

/* ── v2 : travail en cours, liens, correction, comparateur, propriétaires ── */
.ct-stats a { display: flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none !important; }
.ct-stats a:hover b { color: var(--ct-accent-dark); }
.ct-wip { margin: 14px 0 0; max-width: 640px; font-size: 13.5px; line-height: 1.5; color: var(--ct-muted); padding-left: 12px; border-left: 3px solid var(--ct-accent); }
.ct-answer { margin: 14px 0 0; max-width: 700px; font-size: 16.5px; line-height: 1.55; color: var(--ct-text); }
.ct-source { margin: 24px 0 0; font-size: 13px; line-height: 1.55; color: var(--ct-faint); }

.cf-fix { margin-top: 16px; padding: 16px; border: 1.5px dashed var(--ct-line); border-radius: var(--ct-radius); }
.cf-fix__title { margin: 0 0 4px; font-size: 16px; color: var(--ct-ink); }
.cf-fix p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ct-muted); }
.cf-fix__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cf-fix__method { font-size: 13.5px; font-weight: 600; }
/* Story 7.12 : « Proposer une correction » discret, à droite. */
.cf-fix__btn { margin-left: auto; font-size: 13px; color: var(--ct-muted); text-decoration: underline; text-underline-offset: 2px; }
.cf-fix__btn:hover { color: var(--ct-ink); }

/* Propriétaires */
.ct-group { margin-top: 36px; }
.ct-group__lede { margin: -6px 0 14px; font-size: 15px; line-height: 1.55; color: var(--ct-muted); max-width: 680px; }
/* Fiche milliardaire : de l'air avant l'avertissement qui suit les faits. */
.ct-facts + .ct-group__lede { margin: 18px 0 0; }
.ct-owners { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .ct-owners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ct-owners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ct-owner { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--ct-surface); box-shadow: var(--ct-shadow); color: inherit; text-decoration: none !important; }
.ct-owner:hover { box-shadow: 0 0 0 1.5px var(--ct-accent), var(--ct-shadow); }
.ct-owner__name { font-weight: 700; font-size: 16px; color: var(--ct-ink); }
.ct-owner__n { font-size: 13px; color: var(--ct-muted); }
.ct-owner__grades { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ct-owner__grades .cf-sq { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
.ct-owner-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0; font-size: 14px; color: var(--ct-muted); }
.ct-owner-facts p { margin: 0; }
.ct-dist { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.ct-dist li { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ct-ink); }
.ct-dist .cf-sq { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.ct-list--static { margin-top: 8px; }
.cf-siblings span { display: inline-block; padding: 5px 11px; border: 1px solid var(--ct-line-soft); border-radius: 999px; background: var(--ct-bg-alt); font-size: 13.5px; color: var(--ct-muted); }

/* Comparateur */
.ct-main--compare { max-width: 820px; }
.cp-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-pick { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ct-muted); }
.cp-pick select {
    width: 100%;
    height: 46px;
    padding: 0 30px 0 12px;
    border: 1.5px solid var(--ct-line);
    border-radius: 12px;
    background: var(--ct-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236b6560' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 8px center / 18px;
    font: 600 15px/1 var(--font-sans);
    text-transform: none;
    letter-spacing: 0;
    color: var(--ct-ink);
    -webkit-appearance: none;
    appearance: none;
}
.cp-result { margin-top: 16px; }
.cp-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--ct-muted); background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow); }
.cp-heads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-head { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 10px; border-radius: var(--ct-radius); background: var(--ct-surface); box-shadow: var(--ct-shadow); color: inherit; text-align: center; text-decoration: none !important; }
.cp-head img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); background: #fff; }
.cp-head__name { font-family: var(--font-serif); font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--ct-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cp-head__verdict { font-size: 13px; font-weight: 600; color: var(--ct-muted); }
.cp-rows { margin-top: 12px; background: var(--ct-surface); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow); overflow: hidden; }
.cp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 6px; padding: 12px 14px; }
.cp-row + .cp-row { border-top: 1px solid var(--ct-line-soft); }
.cp-row__label { grid-column: 1 / -1; font-weight: 600; font-size: 14px; color: var(--ct-muted); }
.cp-cell { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--ct-text); }
.cp-cell > span:last-child { flex: 1; min-width: 0; }
.cp-cell small { display: block; font-size: 12px; color: var(--ct-faint); }
.cf-sq.is-best { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ct-ink); }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cp-actions .ct-btn { flex: 1 1 200px; }
@media (min-width: 720px) {
    .cp-row { grid-template-columns: 200px repeat(2, minmax(0, 1fr)); align-items: center; }
    .cp-row__label { grid-column: auto; }
    .cp-heads { grid-template-columns: 200px repeat(2, minmax(0, 1fr)); }
    .cp-heads::before { content: ""; }
}
.ct-list--static .ct-item__owner { display: none; }
@media (min-width: 720px) { .ct-list--static .ct-item__link { grid-template-columns: 36px minmax(0, 1.6fr) minmax(0, 1fr) 150px; grid-template-areas: "logo main bias score"; } }

/* ── v3 : E-E-A-T et pages milliardaires ── */
.cf-app { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid var(--ct-accent); border-radius: var(--ct-radius); background: #fff; }
.cf-app__title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--ct-text); }
.cf-app__lede { margin: 4px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ct-muted, #6b6560); }
.cf-app__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cf-summary { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ct-accent-soft); font-size: 15px; line-height: 1.55; color: var(--ct-text); }
.cf-summary__k { font-weight: 700; color: var(--ct-accent-dark); }
.cf-summary__k::after { content: "\00a0:"; }
.ct-byline { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ct-muted); }
.ct-main--fiche .ct-byline { text-align: center; }
.ct-faq { display: grid; gap: 8px; }
.ct-faq__item { background: var(--ct-surface); border-radius: 14px; box-shadow: var(--ct-shadow); padding: 0 16px; }
.ct-faq__item summary { padding: 14px 0; font-weight: 700; font-size: 15px; color: var(--ct-ink); }
.ct-faq__item p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ct-text); }
.ct-eeat__who { display: flex; gap: 14px; align-items: flex-start; }
.ct-eeat__who img { flex: none; border-radius: 999px; object-fit: cover; }
.ct-eeat__who p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.ct-eeat__list { margin: 16px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ct-text); }
.ct-h3 { margin: 18px 0 8px; font-size: 16px; color: var(--ct-ink); }
.ct-h2--list { margin-top: 28px; }
.ct-table-wrap { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--ct-line, #e8e2da); border-radius: 12px; }
.ct-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; line-height: 1.4; background: #fff; }
.ct-table caption { text-align: left; padding: 10px 12px 4px; font-size: 13px; color: var(--ct-muted); }
.ct-table th, .ct-table td { padding: 8px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--ct-line, #e8e2da); }
.ct-table thead th { font-size: 12.5px; color: var(--ct-muted); font-weight: 600; border-top: 0; }
.ct-table th[scope="row"] { font-weight: 600; min-width: 110px; }
.ct-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.ct-rows a { font-weight: 600; }
.ct-owner { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.ct-owner img { grid-row: span 3; width: 48px; height: 48px; object-fit: contain; }
.ct-owner > span { grid-column: 2; }
.ct-hero--owner { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; }
.ct-portrait { flex: none; margin: 0; width: 96px; text-align: center; }
.ct-portrait img { width: 96px; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }
.ct-portrait figcaption { font-size: 9.5px; line-height: 1.3; color: var(--ct-faint); }
@media (min-width: 720px) { .ct-portrait { width: 140px; } .ct-portrait img { width: 140px; } }
.ct-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-facts li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 14px; background: var(--ct-surface); border-radius: 12px; box-shadow: var(--ct-shadow); font-size: 14.5px; line-height: 1.55; }
.ct-facts__year { font-family: var(--font-mono); color: var(--ct-accent-dark); }
.ct-cites { display: block; margin-top: 4px; font-size: 12.5px; }
.ct-cites a { color: var(--ct-muted); text-decoration: underline; }
.ct-int { padding: 14px 16px; border-radius: 14px; background: var(--ct-surface); box-shadow: var(--ct-shadow); border-left: 4px solid var(--ct-line); font-size: 14.5px; line-height: 1.55; }
.ct-int--documented, .ct-int--alleged { border-left-color: #EE8100; }
.ct-int--none { border-left-color: #85BB2F; }
.ct-int p { margin: 0; }
.ct-int p + p { margin-top: 8px; }
.ct-int__title { font-weight: 700; color: var(--ct-ink); }
.ct-dist-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ct-dist__total { font-size: 13px; font-weight: 600; color: var(--ct-muted); }
.ct-owner__n b { color: var(--ct-ink); }
.ct-owner__grades .ct-dist .cf-sq { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
.ct-owner__grades .ct-dist li { font-size: 13px; }
.ct-owner__grades .ct-dist__total { display: none; }


/* ── v4 (retours PO du 04/11) ───────────────────────── */

/* Flèche des blocs dépliables (FAQ, « Ce qu'en dit Facteur », échelle) : un chevron net. */
.ct-faq__item summary, .cf-fold > summary, .cf-scale > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    list-style: none; cursor: pointer;
}
.ct-faq__item summary::-webkit-details-marker, .cf-fold > summary::-webkit-details-marker, .cf-scale > summary::-webkit-details-marker { display: none; }
.ct-faq__item summary::after, .cf-fold > summary::after, .cf-scale > summary::after {
    content: ""; flex: none; width: 28px; height: 28px; border-radius: 999px;
    background: var(--ct-bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%232c2a29' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
    transition: transform 200ms;
}
.ct-faq__item[open] summary::after, .cf-fold[open] > summary::after, .cf-scale[open] > summary::after { transform: rotate(180deg); }
.cf-scale > summary { font-weight: 600; color: var(--ct-text); }
.cf-fold { padding: 12px 14px; border: 1px solid var(--ct-line); border-radius: 14px; }
.cf-fold > summary.cf-h3 { margin: 0; }
.cf-fold[open] > summary.cf-h3 { margin-bottom: 10px; }

/* Tuiles d'exploration : comparateur et « Qui possède ? », bien visibles. */
.ct-tiles { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .ct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-tile {
    position: relative; display: grid; gap: 4px; padding: 16px 48px 16px 18px;
    border-radius: 16px; background: var(--ct-ink); color: #f6efe7; text-decoration: none !important;
    transition: transform 150ms, box-shadow 150ms;
}
.ct-tile:hover { color: #f6efe7; transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.45); }
.ct-tile__t { font-weight: 700; font-size: 17px; line-height: 1.3; color: #fff; }
.ct-tile__d { font-size: 14px; line-height: 1.45; color: rgba(246, 239, 231, 0.75); }
.ct-tile__go {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 999px; background: var(--ct-accent);
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.cf .ct-tiles { margin-top: 18px; }

/* Carte du quiz, comme sur l'accueil */
.ct-quiz {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 14px;
    margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--ct-ink); color: #f6efe7;
    text-decoration: none !important; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.4);
    transition: transform 200ms;
}
.ct-quiz:hover { color: #f6efe7; transform: translateY(-2px); }
.ct-quiz__heads { grid-row: span 2; display: flex; padding-left: 6px; }
.ct-quiz__heads img { width: 40px; height: auto; margin: 0 -6px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35)); }
.ct-quiz__text { display: grid; gap: 2px; min-width: 0; }
.ct-quiz__k { font-size: 13px; font-weight: 700; color: #f4a06f; }
.ct-quiz__t { font-family: var(--font-serif); font-weight: 700; font-size: 19px; line-height: 1.2; color: #fff; }
.ct-quiz__cta { grid-column: 2; justify-self: start; padding: 7px 14px; border-radius: 10px; background: var(--ct-accent); font-weight: 700; font-size: 14px; color: #fff; }
@media (min-width: 720px) {
    .ct-quiz { grid-template-columns: auto minmax(0, 1fr) auto; padding: 16px 22px; }
    .ct-quiz__heads { grid-row: auto; }
    .ct-quiz__t { font-size: 22px; }
    .ct-quiz__cta { grid-column: auto; padding: 9px 16px; }
}
@media (max-width: 719px) { .ct-quiz__heads img:nth-child(n+4) { display: none; } }

/* ── Médias hors sélection (catalogue.2) ─────────────────── */
.ct-item__title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.ct-item__title .ct-item__name { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.ct-tag { flex: none; display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--ct-line); color: var(--ct-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; vertical-align: 2px; white-space: nowrap; }
.cf-outside { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--ct-radius); background: var(--ct-bg-alt); color: var(--ct-muted); font-size: 14px; line-height: 1.5; }
.cf-outside b { color: var(--ct-ink); }
