/* =========================================================
   A.S.I.M.O.V. · Carrousel « La robotique en 2025 »
   Composant autonome, classes préfixées .ac-
   Deux modes, selon la largeur du conteneur (pas de l'écran) :
   · 560 px et plus (site) : slides paysage 16:9, tout est proportionnel
     à la largeur du cadre (unités cqw), comme une présentation.
   · moins de 560 px (téléphone) : version empilée.
   Pour l'intégration : remplacer les valeurs des variables par
   celles du site (polices et couleurs).
   ========================================================= */

.ac-carousel {
  /* Les trois familles du site. Les valeurs de repli sont celles d'origine,
     pour que le composant tienne debout meme sans la feuille du site. */
  --ac-serif: var(--serif, "Source Serif 4", Georgia, "Times New Roman", serif);
  --ac-sans: var(--sans, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif);
  --ac-mono: var(--mono, "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace);

  /* Les couleurs qui ont un equivalent exact sur le site sont branchees
     dessus. Les autres gardent la valeur fournie : le site n'a pas de
     bleu nuit de fond, pas de gris de legende, pas de fond de piste. */
  --ac-surface: #e9e6e0;
  --ac-card: #f6f4ef;
  --ac-card-hi: #f1e9de;
  --ac-ink: var(--encre, #1c2a3a);
  --ac-ink-soft: var(--encre-douce, #4b5a6a);
  --ac-muted: #7b8591;
  --ac-steel: var(--acier, #3f6890);
  --ac-navy: #1d2c44;
  --ac-ochre: var(--ocre, #b07436);
  --ac-ochre-soft: #e9dccb;
  --ac-line: var(--filet, #d9d2c6);
  --ac-track: #e4ded3;

  max-width: 960px;
  margin-inline: auto;
  container-type: inline-size;
  container-name: ac;
  font-family: var(--ac-sans);
  color: var(--ac-ink);
  -webkit-font-smoothing: antialiased;
}
.ac-carousel *, .ac-carousel *::before, .ac-carousel *::after { box-sizing: border-box; }
.ac-carousel :focus-visible { outline: 2px solid var(--ac-steel); outline-offset: 3px; border-radius: 2px; }
.ac-carousel p, .ac-carousel h3, .ac-carousel h4, .ac-carousel ul, .ac-carousel ol, .ac-carousel figure { margin: 0; }

.ac-frame {
  background: var(--ac-surface);
  border-top: 3px solid var(--ac-steel);
  border-radius: 2px;
}

/* ---------- Piste ---------- */
.ac-viewport { display: grid; overflow: hidden; touch-action: pan-y; }
.ac-slide {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.ac-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.ac-slide.is-before { transform: translateX(-12px); }

/* =========================================================
   BASE : version empilée (petits conteneurs)
   ========================================================= */
.ac-slide { display: none; }
.ac-slide.is-active { display: flex; }

.ac-head { display: flex; flex-direction: column-reverse; gap: 6px; }
.ac-title { font-family: var(--ac-serif); font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: -0.005em; text-wrap: balance; }
.ac-title em { font-style: normal; color: var(--ac-ochre); white-space: nowrap; }
.ac-count { font-family: var(--ac-mono); font-size: 12px; letter-spacing: .14em; color: var(--ac-muted); }
.ac-lede { font-size: 15px; line-height: 1.5; color: var(--ac-ink-soft); }
.ac-lede strong { color: var(--ac-ink); font-weight: 600; }

.ac-card { background: var(--ac-card); border: 1px solid var(--ac-line); border-radius: 6px; padding: 16px; min-width: 0; }
.ac-kicker { font-family: var(--ac-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ac-ochre); margin-bottom: 10px; }
.ac-kicker--light { color: #d9a46b; }
.ac-big { font-family: var(--ac-serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.01em; color: var(--ac-ink); margin-bottom: 8px; font-variant-numeric: lining-nums; }
.ac-big--ochre { color: var(--ac-ochre); }
.ac-big--mid { font-size: 28px; }
.ac-text { font-size: 15px; line-height: 1.45; }
.ac-small { font-size: 13.5px; line-height: 1.45; color: var(--ac-ink-soft); }
.ac-small--gap { margin-top: 6px; }
.ac-meta { display: block; font-family: var(--ac-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-muted); }
.ac-rule { border: 0; border-top: 1px solid var(--ac-line); margin: 14px 0; }
.ac-note { font-size: 12px; line-height: 1.45; color: var(--ac-muted); margin-top: 10px; }

.ac-bar { height: 8px; border-radius: 8px; background: var(--ac-track); overflow: hidden; margin: 12px 0 6px; }
.ac-bar > span { display: block; height: 100%; min-width: 8px; border-radius: 8px; background: var(--ac-ochre); transform-origin: left center; }
.ac-slide.is-active .ac-bar > span, .ac-slide.is-active .ac-hbar > span { animation: ac-grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ac-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ac-photo { position: relative; border-radius: 5px; overflow: hidden; background: #cfc8bc; aspect-ratio: 16 / 9; }
.ac-photo picture, .ac-photo img { display: block; width: 100%; height: 100%; }
.ac-photo img { object-fit: cover; }
.ac-photo figcaption {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  font-family: var(--ac-mono); font-size: 10.5px; letter-spacing: .03em; line-height: 1.35;
  color: #f4efe6; background: rgba(20, 28, 40, .74); padding: 4px 8px; border-radius: 3px;
}

.ac-brief { background: var(--ac-card); border: 1px solid var(--ac-line); border-left: 3px solid var(--ac-ochre); border-radius: 6px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; }
.ac-brief b { display: block; font-family: var(--ac-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ac-ochre); margin-bottom: 3px; }

.ac-foot { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--ac-line); padding-top: 10px; margin-top: auto; font-family: var(--ac-mono); font-size: 10.5px; line-height: 1.45; color: var(--ac-muted); }

/* Grilles en colonne unique par défaut */
.ac-grid-3, .ac-split { display: grid; gap: 12px; }
.ac-family { display: flex; flex-direction: column; }
.ac-family .ac-small { margin: 8px 0 12px; }

/* Page 2 */
.ac-chart svg { display: none; }
.ac-forecast-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.ac-forecast-list li { background: #fbfaf7; border: 1px solid var(--ac-line); border-left: 4px solid var(--c, var(--ac-steel)); border-radius: 5px; padding: 12px 14px; }
.ac-forecast-list h4 { font-family: var(--ac-serif); font-weight: 400; font-size: 19px; margin-bottom: 4px; }
.ac-forecast-list p { font-size: 14px; line-height: 1.45; }
.ac-forecast-list strong { font-family: var(--ac-serif); font-weight: 400; font-size: 23px; color: var(--ac-ochre); margin-right: 6px; }
.ac-chart-note { margin-top: 10px; font-family: var(--ac-mono); font-size: 10.5px; line-height: 1.45; color: var(--ac-muted); }

/* Page 3 */
.ac-hrows { list-style: none; padding: 0; display: grid; gap: 12px; }
.ac-hrow { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "l v c" "b b b"; align-items: center; column-gap: 10px; row-gap: 5px; font-size: 14.5px; }
.ac-hlabel { grid-area: l; font-weight: 500; }
.ac-hrow--sub .ac-hlabel { padding-left: 12px; color: var(--ac-ink-soft); }
.ac-hrow--sub .ac-hlabel::before { content: "· "; color: var(--ac-muted); }
.ac-hbar { grid-area: b; height: 10px; background: var(--ac-track); border-radius: 3px; overflow: hidden; }
.ac-hbar > span { display: block; height: 100%; min-width: 3px; background: var(--ac-ink); transform-origin: left; border-radius: 3px; }
.ac-hbar--ochre > span { background: var(--ac-ochre); }
.ac-hbar--steel > span { background: var(--ac-steel); }
.ac-hbar--hatch > span { background: repeating-linear-gradient(135deg, var(--ac-steel) 0 4px, transparent 4px 8px); border: 1px solid var(--ac-steel); }
.ac-hval { grid-area: v; font-family: var(--ac-serif); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.ac-chip { grid-area: c; justify-self: end; font-family: var(--ac-mono); font-size: 11.5px; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.ac-up { color: #2e5a84; background: #dde6ee; }
.ac-down { color: #9a5a22; background: var(--ac-ochre-soft); }
.ac-hrows--density .ac-hrow { grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; }
.ac-sublabel { margin: -4px 0 12px; }
.ac-stat { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ac-line); }
.ac-stat .ac-big { margin: 0; white-space: nowrap; }
.ac-stat-t { font-size: 14px; line-height: 1.45; color: var(--ac-ink-soft); }

/* Page 4 */
.ac-urows { list-style: none; padding: 0; display: grid; gap: 6px; }
.ac-urow { display: grid; grid-template-columns: 32px 1fr auto; grid-template-areas: "i n v" "b b b"; align-items: center; column-gap: 10px; row-gap: 7px; padding: 9px 10px; border-radius: 6px; border: 1px solid transparent; }
.ac-urow.is-hi { background: var(--ac-card-hi); border-color: #dcc3a4; }
.ac-urow.is-muted { opacity: .72; }
.ac-icon { grid-area: i; width: 32px; height: 32px; border-radius: 50%; background: #e7e2d9; display: grid; place-items: center; color: var(--ac-ink); }
.ac-urow.is-hi .ac-icon { background: #ead7c1; color: #8a531f; }
.ac-icon svg { width: 17px; height: 17px; }
.ac-uname { grid-area: n; font-weight: 500; font-size: 14.5px; line-height: 1.25; }
.ac-usub { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ac-ink-soft); margin-top: 2px; font-weight: 400; }
.ac-urow .ac-hbar { height: 9px; }
.ac-uval { grid-area: v; text-align: right; }
.ac-uval strong { display: block; font-family: var(--ac-serif); font-weight: 400; font-size: 19px; font-variant-numeric: tabular-nums lining-nums; }
.ac-uval small { display: block; font-family: var(--ac-mono); font-size: 10.5px; color: #9a5a22; margin-top: 2px; white-space: nowrap; }
.ac-makers { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.ac-makers h4 { margin-bottom: 4px; font-family: var(--ac-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ac-ochre); }
.ac-makers p { font-family: var(--ac-serif); font-size: 15px; line-height: 1.45; }
.ac-makers ul { list-style: none; padding: 0; }
.ac-makers li { font-family: var(--ac-serif); font-size: 15.5px; line-height: 1.4; border-bottom: 1px solid var(--ac-line); padding: 2px 0; }
.ac-makers li:last-child { border-bottom: 0; }

/* Page 5 */
.ac-stack { display: grid; gap: 12px; }
.ac-duo { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.ac-duo .ac-big { margin-bottom: 3px; }
.ac-duo .ac-small { max-width: 14em; }
.ac-vs { font-family: var(--ac-mono); font-size: 12px; color: var(--ac-muted); padding-bottom: 24px; }
.ac-inline-big { font-family: var(--ac-serif); font-weight: 400; font-size: 21px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.ac-tags li { font-family: var(--ac-mono); font-size: 11.5px; letter-spacing: .03em; border: 1px solid var(--ac-line); background: #fbfaf7; border-radius: 3px; padding: 3px 8px; }
.ac-photo--tall { aspect-ratio: 4 / 3; }
.ac-photo--tall img { object-position: 50% 40%; }

/* Page 6 */
.ac-dark { background: var(--ac-navy); border-color: var(--ac-navy); color: #eef1f5; }
.ac-dark .ac-text { color: #dfe5ec; }
.ac-dark .ac-rule { border-top-color: rgba(255,255,255,.18); }
.ac-dark .ac-big { color: #d9a46b; }
.ac-bullet { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.ac-bullet::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 7px; background: var(--ac-ochre); transform: rotate(45deg); }
.ac-ratio { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0 6px; }
.ac-ratio div { flex: 1; text-align: center; }
.ac-ratio i { display: block; margin: 0 auto 5px; width: 64%; height: calc(var(--v) * 0.9px); background: var(--ac-steel); border-radius: 3px 3px 0 0; }
.ac-ratio div:last-child i { background: var(--ac-ochre); }
.ac-ratio strong { display: block; font-family: var(--ac-serif); font-weight: 400; font-size: 21px; line-height: 1; }
.ac-ratio span { display: block; font-family: var(--ac-mono); font-size: 11px; color: var(--ac-muted); margin-top: 3px; }
.ac-photo--labor { aspect-ratio: 16 / 9; }

/* ---------- Navigation ---------- */
.ac-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 12px 4px; }
.ac-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ac-line); background: var(--ac-card); color: var(--ac-ink); border-radius: 4px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.ac-arrow:hover { background: #fff; border-color: var(--ac-steel); }
.ac-arrow:active { transform: scale(.96); }
.ac-arrow[disabled] { opacity: .35; cursor: default; }
.ac-arrow svg { width: 17px; height: 17px; }
.ac-dots { display: flex; gap: 4px; padding: 0; list-style: none; }
.ac-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.ac-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3bcb0; transition: width .3s, background .3s, border-radius .3s; }
.ac-dot[aria-current="true"]::before { width: 24px; border-radius: 4px; background: var(--ac-ink); }

.ac-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   VERSION SITE : SLIDES PAYSAGE 16:9 (conteneur de 560 px et plus)
   Toutes les tailles sont en cqw (1cqw = 1 % de la largeur du cadre),
   donc chaque slide garde exactement les mêmes proportions à toutes
   les largeurs. Calibrage de référence : cadre de 720 px
   (texte courant ≈ 12,6 px). Au-delà, tout grandit en proportion.
   ========================================================= */
@container ac (min-width: 560px) {
  .ac-viewport { aspect-ratio: 16 / 9; }
  .ac-slide, .ac-slide.is-active { display: flex; }
  .ac-slide { padding: 2.6cqw 3cqw 1.4cqw; gap: 1.45cqw; overflow: hidden; }
  .ac-hide-l { display: none !important; }

  .ac-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 2cqw; }
  .ac-title { font-size: 2.4cqw; line-height: 1.15; white-space: nowrap; }
  .ac-count { white-space: nowrap; }
  .ac-count { font-size: 1.25cqw; }
  .ac-lede { font-size: 1.45cqw; margin-top: -.6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .ac-card { padding: 1.7cqw 1.9cqw; border-radius: .7cqw; }
  .ac-kicker { font-size: 1.3cqw; letter-spacing: .14em; margin-bottom: .9cqw; }
  .ac-big { font-size: 3.5cqw; margin-bottom: .5cqw; }
  .ac-big--mid { font-size: 3cqw; }
  .ac-text { font-size: 1.72cqw; line-height: 1.4; }
  .ac-small { font-size: 1.55cqw; line-height: 1.4; }
  .ac-small--gap { margin-top: .4cqw; }
  .ac-meta { font-size: 1.15cqw; }
  .ac-rule { margin: 1.2cqw 0; }
  .ac-note { font-size: 1.32cqw; line-height: 1.4; margin-top: .9cqw; }
  .ac-bar { height: .9cqw; margin: 1cqw 0 .6cqw; }
  .ac-photo { border-radius: .55cqw; }
  .ac-photo figcaption { font-size: 1.15cqw; left: .9cqw; bottom: .9cqw; padding: .35cqw .8cqw; }

  .ac-brief { font-size: 1.68cqw; line-height: 1.42; padding: 1cqw 1.8cqw; border-radius: .7cqw; }
  .ac-brief b { display: inline; font-size: 1.2cqw; margin: 0 1.1cqw 0 0; }
  .ac-foot { flex-direction: row; justify-content: space-between; gap: 2.5cqw; padding-top: .8cqw; font-size: 1.12cqw; line-height: 1.35; }

  .ac-slide > .ac-grid-3, .ac-slide > .ac-split, .ac-slide > .ac-chart { flex: 1 1 0; min-height: 0; }
  .ac-grid-3, .ac-split { gap: 1.6cqw; }
  .ac-split > .ac-card, .ac-grid-3 > .ac-card { display: flex; flex-direction: column; min-height: 0; }

  /* Page 1 : les trois familles côte à côte */
  .ac-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ac-family .ac-text { min-height: 2.8em; }
  .ac-family .ac-small { margin: .6cqw 0 1.1cqw; min-height: 2.8em; }
  .ac-family .ac-photo { margin-top: auto; flex: 1 1 0; min-height: 0; aspect-ratio: auto; }

  /* Page 2 */
  .ac-chart { display: flex; flex-direction: column; }
  .ac-chart svg { display: block; flex: 1 1 0; min-height: 0; width: 100%; height: 100%; overflow: visible; }
  .ac-forecast-list { display: none; }
  .ac-chart-note { font-size: 1.15cqw; margin-top: .5cqw; }
  .ac-chart .ac-kicker { margin-bottom: .2cqw; }

  /* Page 3 */
  .ac-split { grid-template-columns: 1.3fr 1fr; }
  .ac-hrows { gap: 0; flex: 1 1 0; align-content: space-evenly; }
  .ac-hrow { grid-template-columns: 9.2em 1fr 4.6em 3.9em; grid-template-areas: "l b v c"; column-gap: 1cqw; font-size: 1.62cqw; }
  .ac-hrows--density .ac-hrow { grid-template-columns: 9.2em 1fr 2.4em; grid-template-areas: "l b v"; }
  .ac-hrow--sub .ac-hlabel { padding-left: 1cqw; }
  .ac-hbar { height: 1.35cqw; border-radius: .3cqw; }
  .ac-hval { font-size: 1.95cqw; }
  .ac-chip { font-size: 1.2cqw; padding: .15cqw .55cqw; }
  .ac-sublabel { margin: -.5cqw 0 0; }
  .ac-stat { flex-direction: row; align-items: center; gap: 1.8cqw; margin-top: .8cqw; padding-top: 1.1cqw; }
  .ac-stat-t { font-size: 1.5cqw; line-height: 1.4; }
  .ac-split > .ac-card > .ac-note:last-child { margin-top: .9cqw; }

  /* Page 4 */
  .ac-split--service { grid-template-columns: 1.55fr 1fr; }
  .ac-urows { gap: .35cqw; flex: 1 1 0; align-content: space-evenly; }
    .ac-urow { grid-template-columns: 3cqw minmax(0, 1.6fr) minmax(0, 1fr) 6.2em; grid-template-areas: "i n b v"; column-gap: 1.2cqw; padding: .45cqw 1cqw; border-radius: .6cqw; }
  .ac-icon { width: 3cqw; height: 3cqw; }
  .ac-icon svg { width: 1.7cqw; height: 1.7cqw; }
  .ac-uname { font-size: 1.5cqw; line-height: 1.2; white-space: nowrap; }
  .ac-urow .ac-hbar { height: 1.15cqw; }
  .ac-uval { font-size: 1.6cqw; }
  .ac-uval strong { font-size: 2cqw; }
  .ac-uval small { font-size: 1.12cqw; margin-top: .1cqw; }
  .ac-makers { grid-template-columns: 1fr; gap: .8cqw; margin-top: 1cqw; }
  .ac-makers h4 { font-size: 1.12cqw; margin-bottom: .3cqw; }
  .ac-makers p { font-size: 1.36cqw; line-height: 1.3; }
  .ac-makers { gap: .6cqw; }

  /* Page 5 */
  .ac-split--humanoid { grid-template-columns: 1.75fr 1fr; }
  .ac-stack { gap: .9cqw; min-height: 0; grid-template-rows: 1fr 1fr 1fr; }
  .ac-stack > .ac-card { display: flex; flex-direction: column; justify-content: center; padding-block: 1cqw; }
  .ac-stack .ac-kicker { margin-bottom: .45cqw; }
  .ac-stack .ac-big { font-size: 3.1cqw; }
  .ac-duo { gap: 2.2cqw; margin-bottom: 0; flex-wrap: nowrap; }
  .ac-duo .ac-big { margin-bottom: .2cqw; }
  .ac-duo .ac-small { max-width: 16em; }
  .ac-vs { font-size: 1.25cqw; padding-bottom: 2.6cqw; }
  .ac-inline-big { font-size: 1.9cqw; }
  .ac-tags { gap: .6cqw; margin-top: .8cqw; }
  .ac-tags li { font-size: 1.2cqw; padding: .2cqw .7cqw; }
  .ac-photo--tall { aspect-ratio: auto; height: 100%; min-height: 0; }

  /* Page 6 */
  .ac-grid-3--labor { grid-template-columns: 1.05fr 1.05fr .9fr; }
  .ac-grid-3--labor > .ac-card { justify-content: flex-start; }
  .ac-bullet { font-size: 1.55cqw; gap: 1cqw; }
  .ac-bullet::before { flex-basis: .9cqw; height: .9cqw; margin-top: .75cqw; }
  .ac-ratio { gap: 1cqw; margin: .7cqw 0 .4cqw; }
  .ac-ratio i { height: calc(var(--v) * .048cqw); margin-bottom: .35cqw; }
  .ac-ratio strong { font-size: 2.2cqw; }
  .ac-ratio span { font-size: 1.15cqw; margin-top: .2cqw; }
  .ac-photo--labor { aspect-ratio: auto; height: 100%; min-height: 0; }
  .ac-grid-3--labor .ac-card { padding-block: 1.4cqw; }
  .ac-dark .ac-big--mid { font-size: 2.8cqw; }
  .ac-grid-3--labor .ac-big { font-size: 3.1cqw; }
  .ac-grid-3--labor .ac-rule { margin: .9cqw 0; }

  .ac-nav { padding-top: 1.4cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-slide, .ac-slide.is-active { transition: none; transform: none; }
  .ac-slide.is-active .ac-bar > span, .ac-slide.is-active .ac-hbar > span { animation: none; }
}

/* Graphique de la page 2 (unités du viewBox, 1020 de large) */
.ac-chart .t-row { font-family: var(--ac-serif); font-size: 31px; fill: var(--ac-ink); }
.ac-chart .t-sub { font-family: var(--ac-mono); font-size: 18px; fill: var(--ac-muted); }
.ac-chart .t-val { font-family: var(--ac-sans); font-weight: 600; font-size: 23px; fill: var(--ac-ink); }
.ac-chart .t-year { font-family: var(--ac-mono); font-size: 16px; fill: var(--ac-ink-soft); }
.ac-chart .t-mult { font-family: var(--ac-serif); font-size: 21px; fill: var(--ac-ink); }
.ac-chart .t-mult-s { font-family: var(--ac-mono); font-size: 15.5px; fill: var(--ac-ink-soft); }
.ac-chart .t-mid { font-family: var(--ac-sans); font-weight: 500; font-size: 15.5px; fill: var(--ac-ink-soft); }
.ac-chart .t-axis { font-family: var(--ac-mono); font-size: 17px; fill: var(--ac-ink-soft); }
.ac-chart .t-x10 { font-family: var(--ac-mono); font-size: 16px; fill: var(--ac-muted); }
.ac-chart .grid { stroke: #ddd5c8; stroke-width: 1.4; }
.ac-chart .band { fill: #efebe4; }

/* -------------------------------------------------------------------------
   Sans JavaScript, le script ne pose jamais .is-ready sur le cadre. Les six
   pages s'empilent alors les unes sous les autres, et la barre de navigation
   disparait puisqu'elle ne servirait a rien. Aucune taille, aucune
   proportion ne change : seule la mise en pile differe.
   ------------------------------------------------------------------------- */
.ac-carousel:not(.is-ready) .ac-viewport {
  display: block; overflow: visible; aspect-ratio: auto;
}
.ac-carousel:not(.is-ready) .ac-slide,
.ac-carousel:not(.is-ready) .ac-slide.is-active {
  display: flex; grid-area: auto; opacity: 1; visibility: visible;
  transform: none;
}
/* Chaque page garde son cadre 16:9 : les tailles sont en cqw, donc la
   geometrie reste exactement celle du carrousel, page apres page. */
@container ac (min-width: 560px) {
  .ac-carousel:not(.is-ready) .ac-slide { aspect-ratio: 16 / 9; }
}
.ac-carousel:not(.is-ready) .ac-slide + .ac-slide {
  border-top: 1px solid var(--ac-line);
}
.ac-carousel:not(.is-ready) .ac-nav { display: none; }
