/* Page Données de marché. */
.ib-donnees-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--ib-rule); border: 1px solid var(--ib-rule); margin-bottom: 40px; }
.ib-donnees-nav a { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ib-muted); }
.ib-donnees-nav strong { font-family: var(--ib-serif); font-weight: 500; font-size: 22px; color: var(--ib-ink); }
.ib-donnees-nav a:hover strong { color: var(--ib-accent); }
.ib-donnees-intro { margin-bottom: 40px; }
.ib-donnee { padding: 32px 0; border-top: 2px solid var(--ib-ink); scroll-margin-top: 16px; }
.ib-donnee:target { background: linear-gradient(var(--ib-accent-tint), transparent 140px); }
.ib-donnee__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ib-donnee__head h2 { font-family: var(--ib-serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin: 0 0 4px; }
.ib-donnee__head .ib-meta { margin: 0; }
.ib-donnee__val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ib-donnee__val strong { font-family: var(--ib-serif); font-weight: 500; font-size: 44px; line-height: 1; }
.ib-donnee__val span { font-family: var(--ib-mono); font-size: 12px; }
.ib-courbe { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--ib-rule); }
.ib-courbe__grille { stroke: var(--ib-rule-3); stroke-width: 1; }
.ib-courbe__axe { font-family: var(--ib-mono); font-size: 11px; fill: var(--ib-muted); }
.ib-courbe__ligne { fill: none; stroke: var(--ib-accent); stroke-width: 2.5; stroke-linejoin: round; }
.ib-courbe__point { fill: var(--ib-accent); stroke: #fff; stroke-width: 2; }
.ib-donnee__table { margin-top: 12px; font-size: 14px; }
.ib-donnee__table summary { cursor: pointer; font-weight: 500; color: var(--ib-accent); padding: 6px 0; }
.ib-donnee__table table, .ib-taux--l { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 8px; }
.ib-donnee__table th, .ib-donnee__table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--ib-rule); font-weight: 400; }
.ib-donnee__table td + td, .ib-donnee__table th + th { text-align: right; font-family: var(--ib-mono); }
.ib-donnee__src { font-size: 12px; color: var(--ib-muted); margin: 10px 0 0; }
.ib-donnee__sub { font-size: 16px; font-weight: 600; margin: 28px 0 4px; }
.ib-taux--l { font-size: 14px; }
.ib-taux--l th, .ib-taux--l td { padding: 9px 0; border-bottom: 1px solid var(--ib-rule); text-align: right; }
.ib-taux--l th:first-child, .ib-taux--l td:first-child { text-align: left; }
.ib-taux--l th { font-weight: 400; color: var(--ib-muted); }
.ib-taux--l td { font-family: var(--ib-mono); }
.ib-taux--l .ib-taux__x { color: var(--ib-accent); }

/* Graphique interactif (donnees.js). */
.ib-graph { margin: 0 0 8px; }
.ib-graph__titre { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.ib-graph__barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ib-graph__legende, .ib-graph__periodes { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-graph__serie { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid var(--ib-rule); background: #fff; color: var(--ib-ink); cursor: pointer; }
.ib-graph__serie:disabled { cursor: default; border-color: transparent; padding-left: 0; background: transparent; }
.ib-graph__serie[aria-pressed="false"] { color: var(--ib-faint); }
.ib-graph__serie[aria-pressed="false"] i { background: var(--ib-rule) !important; }
.ib-graph__serie i, .ib-graph__bulle i { width: 14px; height: 3px; display: inline-block; background: currentColor; flex: none; }
.ib-graph__periodes { gap: 0; border: 1px solid var(--ib-rule); background: #fff; }
.ib-graph__periodes button { font: inherit; font-family: var(--ib-mono); font-size: 12px; padding: 6px 10px; border: 0; background: none; color: var(--ib-muted); cursor: pointer; }
.ib-graph__periodes button + button { border-left: 1px solid var(--ib-rule); }
.ib-graph__periodes button[aria-pressed="true"] { background: var(--ib-ink); color: #fff; }
.ib-graph__zone { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ib-graph.is-mesure .ib-graph__zone { touch-action: none; }
.ib-graph__svg { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--ib-rule); cursor: crosshair; }
.ib-graph__grille { stroke: var(--ib-rule-3); stroke-width: 1; }
.ib-graph__axe { font-family: var(--ib-mono); font-size: 11px; fill: var(--ib-muted); }
.ib-graph__ligne { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.ib-graph__pt { fill: currentColor; }
.ib-graph__fin, .ib-graph__marque { fill: currentColor; stroke: #fff; stroke-width: 2; }
.ib-graph__curseur { stroke: var(--ib-ink); stroke-width: 1; stroke-dasharray: 3 3; }
.ib-graph__bande { fill: var(--ib-sand); opacity: .6; }
.ib-graph__bande.is-bon { fill: var(--ib-accent-light); }
.ib-graph__bande.is-mauvais { fill: var(--ib-red-tint); opacity: .9; }
.ib-graph__c0 { color: var(--ib-accent); }
.ib-graph__c1 { color: var(--ib-blue); }
.ib-graph__c2 { color: var(--ib-amber); }
.ib-graph__c3 { color: var(--ib-plum); }
.ib-graph__bulle { position: absolute; z-index: 2; pointer-events: none; min-width: 170px; max-width: min(300px, 80%); background: #fff; border: 1px solid var(--ib-ink); box-shadow: 0 6px 18px rgba(22, 24, 26, .12); padding: 9px 11px; font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.ib-graph__bulle[hidden] { display: none; }
.ib-graph__bulle > strong { font-weight: 600; font-size: 12px; }
.ib-graph__bulle span { display: flex; align-items: center; gap: 7px; color: var(--ib-ink); }
.ib-graph__bulle span i { color: inherit; }
.ib-graph__bulle span.ib-graph__c0 i { background: var(--ib-accent); }
.ib-graph__bulle span.ib-graph__c1 i { background: var(--ib-blue); }
.ib-graph__bulle span.ib-graph__c2 i { background: var(--ib-amber); }
.ib-graph__bulle span.ib-graph__c3 i { background: var(--ib-plum); }
.ib-graph__bulle em { font-style: normal; color: var(--ib-muted); font-size: 12px; }
.ib-graph__bulle b { margin-left: auto; padding-left: 10px; font-family: var(--ib-mono); font-weight: 500; }
.ib-graph__aide { font-size: 12px; color: var(--ib-muted); margin: 8px 0 0; }
.ib-graph:not(.is-pret) .ib-graph__aide { display: none; }

/* Page indicateur. */
.ib-indic__kpi .ib-rubrique__kpi-delta { font-family: var(--ib-mono); font-size: 13px; }
.ib-indic__corps { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; max-width: var(--ib-max); }
.ib-indic__corps > * { min-width: 0; }
.ib-indic__series { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--ib-rule); border: 1px solid var(--ib-rule); }
.ib-indic__serie, .ib-indic__autres a, .ib-indic__villes a { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ib-indic__serie span, .ib-indic__autres span, .ib-indic__villes span { font-size: 13px; color: var(--ib-muted); }
.ib-indic__serie strong, .ib-indic__autres strong, .ib-indic__villes strong { font-family: var(--ib-serif); font-weight: 500; font-size: 28px; line-height: 1.05; color: var(--ib-ink); }
.ib-indic__serie em, .ib-indic__autres em { font-style: normal; font-family: var(--ib-mono); font-size: 12px; }
.ib-indic__lecture { background: var(--ib-panel); border-left: 3px solid var(--ib-accent); padding: 20px 24px; }
.ib-indic__lecture .ib-label { margin-top: 0; }
.ib-indic__lecture p { font-family: var(--ib-serif); font-size: 19px; line-height: 1.5; margin: 0 0 10px; max-width: 75ch; }
.ib-indic__lecture p:last-child { margin-bottom: 0; }
.ib-indic__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ib-indic__table th, .ib-indic__table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ib-rule); text-align: right; font-weight: 400; white-space: nowrap; }
.ib-indic__table th:first-child, .ib-indic__table td:first-child { text-align: left; }
.ib-indic__table thead th { color: var(--ib-muted); font-size: 12px; }
.ib-indic__table td { font-family: var(--ib-mono); }
.ib-indic__src { font-size: 12px; color: var(--ib-muted); margin: 10px 0 0; }
.ib-indic__src a, .ib-indic__sources a { color: var(--ib-accent); }
.ib-indic__histo summary { cursor: pointer; font-weight: 600; color: var(--ib-accent); padding: 8px 0; }
.ib-indic__histo .ib-table { max-height: 480px; overflow: auto; margin-top: 8px; }
.ib-indic__histo .ib-indic__table { max-width: 560px; }
.ib-indic__sources ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.ib-indic__villes, .ib-indic__autres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1px; padding: 1px; }
.ib-indic__villes a, .ib-indic__autres a { outline: 1px solid var(--ib-rule); }
.ib-indic__villes a:hover strong, .ib-indic__autres a:hover strong { color: var(--ib-accent); }
.ib-indic__villes strong { font-size: 22px; }
.ib-indic__texte { max-width: 72ch; }
a.ib-rubrique__kpi { color: inherit; }
a.ib-rubrique__kpi:hover .ib-rubrique__kpi-val { color: var(--ib-accent); }
.ib-indic__table th a { color: var(--ib-ink); text-decoration: underline; text-decoration-color: var(--ib-rule); text-underline-offset: 3px; }
.ib-indic__table th a:hover { color: var(--ib-accent); }
.ib-indic__table--tous th:first-child, .ib-indic__table--cal th, .ib-indic__table--cal td { white-space: normal; }
.ib-indic__table--cal td { font-family: inherit; text-align: left; }
.ib-indic__table--cal th { text-align: left; }
.ib-indic__table-src { font-family: inherit !important; font-size: 12px; color: var(--ib-muted); white-space: normal !important; }
.ib-indic__theme { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 16px; }
.ib-indic__theme-titre { font-family: var(--ib-serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; margin: 0; padding-top: 16px; border-top: 3px solid var(--ib-ink); }
.ib-indic__fiche { padding-top: 20px; border-top: 1px solid var(--ib-rule); }
.ib-indic__theme-titre + .ib-indic__fiche { border-top: 0; padding-top: 0; }
.ib-indic__fiche-tete { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.ib-indic__fiche-tete h3 { font-family: var(--ib-serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 0; }
.ib-indic__fiche-tete h3 a { color: var(--ib-ink); }
.ib-indic__fiche-tete h3 a:hover, .ib-indic__plus { color: var(--ib-accent); }
.ib-indic__plus { font-size: 14px; font-weight: 600; }
.ib-indic__resume { font-size: 16px; line-height: 1.55; color: var(--ib-ink-2); margin: 10px 0 16px; max-width: 80ch; }
