/* Observatoire.quebec — section Modèles d'IA */

:root {
    --ia-primary: #0052A5;
    --ia-primary-dark: #003d7a;
    --ia-primary-soft: #e8f0fa;
    --ia-ink: #0f1a2b;
    --ia-text: #1f2a3c;
    --ia-text-light: #4b5668;
    --ia-muted: #7a8494;
    --ia-bg: #f5f7fb;
    --ia-surface: #ffffff;
    --ia-surface-2: #f8fafc;
    --ia-border: #e4e8ef;
    --ia-border-strong: #d5dbe5;
    --ia-radius: 16px;
    --ia-shadow-sm: 0 1px 2px rgba(15, 26, 43, 0.04), 0 1px 1px rgba(15, 26, 43, 0.03);
    --ia-shadow: 0 1px 2px rgba(15, 26, 43, 0.04), 0 8px 24px rgba(15, 26, 43, 0.06);
    --ia-shadow-hover: 0 2px 4px rgba(15, 26, 43, 0.05), 0 16px 36px rgba(15, 26, 43, 0.10);
    --ia-serif: 'Source Serif 4', Georgia, serif;
    --ia-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ia-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

a[href],
button:not(:disabled),
summary,
select,
label[for] {
    cursor: pointer;
}

.ia-body {
    font-family: var(--ia-sans);
    font-size: 16px;
    background: var(--ia-bg);
    color: var(--ia-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--ia-primary); }

.ia-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ia-ico {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

.ia-mono { font-family: var(--ia-mono); font-size: 0.92em; }

/* ---------------------------------------------------------------- En-tête */

.ia-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--ia-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.ia-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ia-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ia-ink);
}

.ia-logo svg { width: 28px; height: 28px; color: var(--ia-primary); }

.ia-logo-text {
    font-family: var(--ia-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ia-logo-text span { color: var(--ia-primary); }

.ia-nav { display: flex; flex-wrap: wrap; gap: 2px; }

.ia-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ia-text-light);
    font-size: 14.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    user-select: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ia-nav-link:hover { color: var(--ia-ink); background: var(--ia-surface-2); }

.ia-nav-link.is-active { background: var(--ia-primary-soft); color: var(--ia-primary); }

.ia-nav-rss { color: #b45309; }
.ia-nav-rss .ia-ico { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- Mise en page */

.ia-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 28px 72px;
}

.ia-hero { margin-bottom: 32px; }

.ia-kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ia-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.ia-hero h1 {
    font-family: var(--ia-serif);
    font-weight: 700;
    color: var(--ia-ink);
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.ia-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ia-text-light);
    max-width: 760px;
}

.ia-hero-actions { margin-top: 20px; }

.ia-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 28px;
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    box-shadow: var(--ia-shadow-sm);
    width: fit-content;
    max-width: 100%;
}

.ia-stats > div {
    padding: 16px 28px;
    border-left: 1px solid var(--ia-border);
}

.ia-stats > div:first-child { border-left: 0; }

.ia-stats dt {
    font-size: 12px;
    font-weight: 600;
    color: var(--ia-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ia-stats dd {
    font-family: var(--ia-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--ia-ink);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.ia-stats dd.ia-stats-date { font-size: 18px; font-family: var(--ia-sans); font-weight: 600; padding-top: 8px; }

.ia-section { margin-top: 64px; }

.ia-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ia-section-head h2 {
    font-family: var(--ia-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ia-ink);
    letter-spacing: -0.01em;
}

.ia-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ia-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.ia-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.ia-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ia-primary);
    color: #fff;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    user-select: none;
    cursor: pointer;
}

.ia-btn:hover { background: var(--ia-primary-dark); }

.ia-btn-ghost {
    background: var(--ia-surface);
    color: var(--ia-primary);
    border: 1px solid var(--ia-border-strong);
}

.ia-btn-ghost:hover { background: var(--ia-primary-soft); }

/* ---------------------------------------------------------------- Bascule de vue */

.ia-switch {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    background: #e9edf4;
    border-radius: 14px;
    margin-bottom: 14px;
}

.ia-switch-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ia-text-light);
    font-weight: 600;
    font-size: 15.5px;
    user-select: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.ia-switch-item:hover { color: var(--ia-ink); }

.ia-switch-item.is-active {
    background: var(--ia-surface);
    color: var(--ia-ink);
    box-shadow: 0 1px 3px rgba(15, 26, 43, 0.12);
}

.ia-switch-count {
    font-size: 12.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 26, 43, 0.07);
    color: var(--ia-text-light);
    font-variant-numeric: tabular-nums;
}

.ia-switch-item.is-active .ia-switch-count { background: var(--ia-primary-soft); color: var(--ia-primary); }

.ia-view-intro,
.ia-result-count {
    color: var(--ia-muted);
    font-size: 15px;
    margin: 6px 0 22px;
}

.ia-result-count span:first-child { font-weight: 700; color: var(--ia-text); }

/* ---------------------------------------------------------------- Cartes */

.ia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ia-card {
    display: flex;
    flex-direction: column;
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    padding: 22px 22px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ia-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    cursor: pointer;
    min-width: 0;
}

.ia-card[hidden] { display: none; }

.ia-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ia-shadow-hover);
    border-color: var(--ia-border-strong);
}

.ia-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 40px;
}

.ia-card-top .ia-type-tile { margin-left: auto; }

.ia-prov {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ia-text-light);
    min-width: 0;
}

.ia-prov-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c, var(--ia-primary));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--ia-primary)) 18%, transparent);
    flex: 0 0 auto;
    display: inline-block;
}

.ia-prov-dot-lg { width: 14px; height: 14px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }

.ia-type-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--c) 12%, #fff);
    color: var(--c);
    flex: 0 0 auto;
}

.ia-type-tile .ia-ico { width: 20px; height: 20px; }

.ia-type-tile-xl { width: 76px; height: 76px; border-radius: 20px; }
.ia-type-tile-xl .ia-ico { width: 38px; height: 38px; }

.ia-card-title {
    font-family: var(--ia-serif);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ia-ink);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.ia-card-version {
    background: var(--ia-surface-2);
    border: 1px solid var(--ia-border);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 14px;
}

.ia-card-version-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ia-muted);
    margin-bottom: 2px;
}

.ia-card-version-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ia-card-version-name {
    font-family: var(--ia-mono);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ia-ink);
    overflow-wrap: anywhere;
}

.ia-card-version-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--ia-primary);
    white-space: nowrap;
}

.ia-card-excerpt {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ia-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.ia-card-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ia-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ia-muted);
}

.ia-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ia-primary);
    font-weight: 600;
}

.ia-card-more .ia-ico { width: 15px; height: 15px; transition: transform 0.2s; }
.ia-card:hover .ia-card-more .ia-ico { transform: translateX(3px); }

/* ---------------------------------------------------------------- Pastilles */

.ia-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ia-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c, #64748b) 9%, #fff);
    border: 1px solid color-mix(in srgb, var(--c, #64748b) 22%, #fff);
    color: var(--ia-text);
    white-space: nowrap;
}

.ia-chip .ia-ico { width: 14px; height: 14px; color: var(--c); }

.ia-chip-more { padding: 4px 10px; color: var(--ia-muted); background: var(--ia-surface-2); border-color: var(--ia-border); }

.ia-badge-sov,
.ia-badge-frontier {
    display: inline-flex;
    align-items: center;
    font-family: var(--ia-sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 9px;
    line-height: 1.4;
    white-space: nowrap;
}

.ia-badge-sov { background: var(--ia-primary); color: #fff; }
.ia-badge-frontier { background: #fff4e5; color: #b45309; border: 1px solid #fcd9a8; }

/* ---------------------------------------------------------------- Catalogue : outils */

.ia-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 14px;
}

.ia-search {
    flex: 1 1 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ia-surface);
    border: 1px solid var(--ia-border-strong);
    border-radius: 12px;
    padding: 0 14px;
    box-shadow: var(--ia-shadow-sm);
}

.ia-search:focus-within { border-color: var(--ia-primary); box-shadow: 0 0 0 3px var(--ia-primary-soft); }

.ia-search .ia-ico { color: var(--ia-muted); width: 18px; height: 18px; }

.ia-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15.5px;
    color: var(--ia-text);
    padding: 12px 0;
    min-width: 0;
}

.ia-select select {
    height: 100%;
    min-height: 48px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--ia-text);
    background: var(--ia-surface);
    border: 1px solid var(--ia-border-strong);
    border-radius: 12px;
    padding: 0 40px 0 14px;
    box-shadow: var(--ia-shadow-sm);
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7a8494 50%), linear-gradient(135deg, #7a8494 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.ia-select select:focus { outline: 0; border-color: var(--ia-primary); box-shadow: 0 0 0 3px var(--ia-primary-soft); }

.ia-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ia-type-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--ia-text-light);
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    cursor: pointer;
}

.ia-type-filter .ia-ico { width: 15px; height: 15px; color: var(--c, var(--ia-muted)); }

.ia-type-filter span {
    font-size: 12px;
    color: var(--ia-muted);
    font-variant-numeric: tabular-nums;
}

.ia-type-filter:hover { border-color: var(--ia-border-strong); color: var(--ia-ink); }

.ia-type-filter.is-active {
    background: var(--ia-ink);
    border-color: var(--ia-ink);
    color: #fff;
}

.ia-type-filter.is-active span { color: rgba(255, 255, 255, 0.7); }
.ia-type-filter.is-active .ia-ico { color: #fff; }

.ia-noresult {
    text-align: center;
    color: var(--ia-muted);
    padding: 48px 0;
    font-size: 16px;
}

/* ---------------------------------------------------------------- Fiche modèle */

.ia-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ia-muted);
    margin-bottom: 20px;
}

.ia-crumb a { color: var(--ia-primary); text-decoration: none; font-weight: 600; }
.ia-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ia-model-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--ia-shadow);
    overflow: hidden;
    margin-bottom: 28px;
}

.ia-model-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--p), color-mix(in srgb, var(--c) 70%, var(--p)));
}

.ia-model-prov {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ia-text-light);
    margin-bottom: 8px;
}

.ia-model-prov a { color: var(--ia-text); text-decoration: none; }
.ia-model-prov a:hover { color: var(--ia-primary); }
.ia-sep { color: var(--ia-border-strong); }

.ia-model-hero h1 {
    font-family: var(--ia-serif);
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ia-ink);
    margin-bottom: 12px;
}

.ia-model-hero .ia-lead { font-size: 18.5px; }

.ia-model-keys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 24px;
    border-top: 1px solid var(--ia-border);
}

.ia-model-keys > div { padding: 16px 20px 0 0; }

.ia-model-keys dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ia-muted);
}

.ia-model-keys dd {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ia-ink);
    overflow-wrap: anywhere;
}

.ia-model-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.ia-model-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.ia-block {
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    padding: 30px 32px;
    box-shadow: var(--ia-shadow-sm);
    scroll-margin-top: 90px;
}

.ia-block > h2 {
    font-family: var(--ia-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--ia-ink);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.ia-block-intro { color: var(--ia-muted); font-size: 15px; margin-bottom: 20px; }

.ia-prose { font-size: 17px; line-height: 1.7; color: var(--ia-text); }
.ia-prose > *:first-child { margin-top: 0; }
.ia-prose p, .ia-prose ul, .ia-prose ol { margin: 12px 0 0; }
.ia-prose h2, .ia-prose h3 { font-family: var(--ia-serif); color: var(--ia-ink); margin: 26px 0 6px; line-height: 1.3; }
.ia-prose h2 { font-size: 21px; }
.ia-prose h3 { font-size: 18px; }
.ia-prose ul, .ia-prose ol { padding-left: 22px; }
.ia-prose li + li { margin-top: 4px; }
.ia-prose strong { color: var(--ia-ink); }
.ia-prose code, .ia-facts code, .ia-tl-id code {
    font-family: var(--ia-mono);
    font-size: 12.5px;
    background: #eef2f7;
    color: var(--ia-ink);
    padding: 2px 6px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}

.ia-caps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.ia-cap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--ia-border);
    border-radius: 14px;
    background: var(--ia-surface-2);
}

.ia-cap.is-type {
    background: color-mix(in srgb, var(--c) 7%, #fff);
    border-color: color-mix(in srgb, var(--c) 25%, #fff);
}

.ia-cap-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--c) 13%, #fff);
    color: var(--c);
    flex: 0 0 auto;
}

.ia-cap-ico .ia-ico { width: 20px; height: 20px; }

.ia-cap h3 { font-size: 15.5px; font-weight: 700; color: var(--ia-ink); line-height: 1.3; margin-bottom: 2px; }
.ia-cap p { font-size: 14px; line-height: 1.5; color: var(--ia-text-light); }

/* Historique */

.ia-timeline { list-style: none; position: relative; }

.ia-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--ia-border);
}

.ia-tl-item { position: relative; padding: 0 0 22px 36px; }
.ia-tl-item:last-child { padding-bottom: 0; }

.ia-tl-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ia-surface);
    border: 3px solid var(--ia-border-strong);
}

.ia-tl-item.is-latest::before { border-color: var(--ia-primary); background: var(--ia-primary); box-shadow: 0 0 0 4px var(--ia-primary-soft); }

.ia-tl-date {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ia-muted);
    margin-bottom: 6px;
}

.ia-tl-item.is-latest .ia-tl-date { color: var(--ia-primary); }

.ia-tl-card {
    border: 1px solid var(--ia-border);
    border-radius: 14px;
    padding: 16px 18px;
    background: var(--ia-surface);
}

.ia-tl-item.is-latest .ia-tl-card { border-color: color-mix(in srgb, var(--ia-primary) 35%, #fff); box-shadow: var(--ia-shadow-sm); }

.ia-tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ia-tl-head h3 { font-family: var(--ia-serif); font-size: 19px; font-weight: 700; color: var(--ia-ink); line-height: 1.3; }

.ia-tl-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ia-primary);
    background: var(--ia-primary-soft);
    border-radius: 999px;
    padding: 2px 9px;
}

.ia-tl-id { margin: 6px 0 0; }
.ia-tl-text { font-size: 15px; color: var(--ia-text-light); margin-top: 10px; }
.ia-tl-card .ia-chips { margin: 12px 0 0; }

.ia-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.ia-specs > div { background: var(--ia-surface-2); border: 1px solid var(--ia-border); border-radius: 10px; padding: 8px 12px; }
.ia-specs dt { font-size: 11px; font-weight: 700; color: var(--ia-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ia-specs dd { font-size: 14.5px; font-weight: 600; color: var(--ia-ink); overflow-wrap: anywhere; }

.ia-tl-price { font-size: 14.5px; color: var(--ia-text-light); margin-top: 12px; }
.ia-tl-price strong { color: var(--ia-ink); }

.ia-tl-more { margin-top: 22px; }

.ia-tl-more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--ia-primary);
    border: 1px solid var(--ia-border-strong);
    border-radius: 10px;
    padding: 9px 16px;
    margin-bottom: 22px;
    user-select: none;
    cursor: pointer;
}

.ia-tl-more summary::-webkit-details-marker { display: none; }
.ia-tl-more summary:hover { background: var(--ia-primary-soft); }
.ia-tl-more[open] summary { margin-bottom: 22px; }

.ia-sources { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ia-sources li { display: flex; flex-direction: column; }
.ia-sources a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.ia-sources a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ia-sources .ia-ico { width: 14px; height: 14px; }

/* Colonne latérale */

.ia-model-aside {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ia-panel {
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    padding: 22px;
    box-shadow: var(--ia-shadow-sm);
}

.ia-panel h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ia-muted);
    margin-bottom: 12px;
}

.ia-facts > div { padding: 10px 0; border-top: 1px solid var(--ia-border); }
.ia-facts > div:first-child { border-top: 0; padding-top: 0; }
.ia-facts dt { font-size: 13px; color: var(--ia-muted); }
.ia-facts dd { font-size: 15px; font-weight: 600; color: var(--ia-ink); overflow-wrap: anywhere; }
.ia-facts dd a { text-decoration: none; }
.ia-facts .ia-muted { display: block; font-weight: 400; }

.ia-toc { display: flex; flex-direction: column; }

.ia-toc a {
    text-decoration: none;
    color: var(--ia-text-light);
    font-weight: 600;
    font-size: 15px;
    padding: 7px 0 7px 12px;
    border-left: 2px solid var(--ia-border);
}

.ia-toc a:hover { color: var(--ia-primary); border-left-color: var(--ia-primary); }

/* ---------------------------------------------------------------- Nouveautés */

.ia-news { display: flex; flex-direction: column; gap: 36px; }

.ia-news-month h2 {
    font-family: var(--ia-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ia-ink);
    margin-bottom: 14px;
}

.ia-news-list {
    list-style: none;
    background: var(--ia-surface);
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    box-shadow: var(--ia-shadow-sm);
    overflow: hidden;
}

.ia-news-item {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    border-top: 1px solid var(--ia-border);
}

.ia-news-item .ia-type-tile { flex: 0 0 auto; }
.ia-news-item .ia-chips { margin: 8px 0 0; }
.ia-news-company { font-weight: 700; }
.ia-news-model { font-weight: 650; }

.ia-news-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff4e5;
    color: #d97706;
    flex: 0 0 auto;
}

.ia-news-ico.is-version { background: var(--ia-primary-soft); color: var(--ia-primary); }
.ia-news-ico .ia-ico { width: 18px; height: 18px; }

.ia-news-body { min-width: 0; }

.ia-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: var(--ia-muted);
    margin-bottom: 2px;
}

.ia-news-kind { font-weight: 700; color: var(--ia-text-light); }

.ia-news-item h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.ia-news-item h3 a { color: var(--ia-ink); text-decoration: none; }
.ia-news-item h3 a:hover { color: var(--ia-primary); }
.ia-news-text { font-size: 15px; color: var(--ia-text-light); margin-top: 4px; }

.ia-news-compact .ia-news-item { padding: 14px 20px; align-items: center; }

/* ---------------------------------------------------------------- Attribution et pied de page */

.ia-attrib {
    border-top: 1px solid var(--ia-border);
    background: linear-gradient(180deg, #fff, var(--ia-surface-2));
}

.ia-attrib-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    flex-wrap: wrap;
    text-align: center;
}

.ia-attrib-text { font-size: 16px; color: var(--ia-text); font-weight: 500; }

.ia-attrib-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: var(--ia-primary);
    border: 1px solid var(--ia-border-strong);
    background: var(--ia-surface);
    border-radius: 999px;
    padding: 6px 14px;
}

.ia-attrib-link:hover { background: var(--ia-primary-soft); }
.ia-attrib-link .ia-ico { width: 14px; height: 14px; }

.ia-footer {
    border-top: 1px solid var(--ia-border);
    background: #fff;
    padding: 32px 28px 40px;
}

.ia-footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.ia-footer-legal {
    font-size: 13px;
    color: var(--ia-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.ia-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

.ia-footer-nav a { color: var(--ia-primary); text-decoration: none; font-weight: 600; }
.ia-footer-copy { font-size: 13px; color: var(--ia-muted); }
.ia-footer-copy a { color: inherit; }

.ia-muted { color: var(--ia-muted); font-size: 13.5px; }
.ia-empty { padding: 48px 0; color: var(--ia-muted); }

.brand-lock { white-space: nowrap; }
.brand-ia {
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ux-typo-nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- Adaptation */

@media (max-width: 1000px) {
    .ia-model-layout { grid-template-columns: minmax(0, 1fr); }
    .ia-model-aside { position: static; }
    .ia-toc { display: none; }
}

@media (max-width: 720px) {
    .ia-header-inner { padding: 10px 16px; }
    .ia-nav-link { padding: 7px 10px; font-size: 14px; }
    .ia-main { padding: 28px 16px 56px; }
    .ia-lead { font-size: 17px; }
    .ia-stats { width: 100%; }
    .ia-stats > div { flex: 1 1 45%; padding: 12px 16px; }
    .ia-stats > div:nth-child(3) { border-left: 0; }
    .ia-stats > div:nth-child(n+3) { border-top: 1px solid var(--ia-border); }
    .ia-stats dd { font-size: 24px; }
    .ia-switch { display: flex; }
    .ia-switch-item { flex: 1; justify-content: center; padding: 10px 8px; gap: 8px; font-size: 14.5px; white-space: nowrap; }
    .ia-switch-count { font-size: 11.5px; padding: 1px 7px; }
    .ia-grid { grid-template-columns: minmax(0, 1fr); }
    .ia-model-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 16px; }
    .ia-type-tile-xl { width: 56px; height: 56px; border-radius: 16px; }
    .ia-type-tile-xl .ia-ico { width: 28px; height: 28px; }
    .ia-block { padding: 22px 18px; }
    .ia-select { flex: 1 1 100%; }
    .ia-select select { width: 100%; }
    .ia-news-item { padding: 16px; }
}
