/* Les moments (semaine/<clé>/) : une page par grand rendez-vous. Même direction que la une : le rendez-vous et ses issues sur
   le film, ce qu'il faut regarder sur le papier. Les couleurs des issues sont celles des familles de futurs de la une (même
   sens : le climat de marché), validées par validate_palette.js sur le film (#000000) le 29/09 ; hausse et baisse gardent
   leurs teintes de thème sombre sur le film, où celles du thème clair tombaient sous 4,5:1. La baisse est celle de la une
   (#ff7a45, ichor.css), plus l'ambre #e69f00 qui voisinait le jaune du premier test (plan C42, 29/09). */

.mo-tete, .mo-scene { --mo-hausse: #3fc7c0; --mo-baisse: #ff7a45; --mo-rien: #a1a1a6; }

/* ---------- 1. Le rendez-vous ---------- */
.mo-tete { padding: 36px 0 12px; }
@media (min-width: 1024px) { .mo-tete { padding: 88px 0 24px; } }
.mo-tete .sourcil { color: var(--film-encre-2); }
.mo-quand { display: flex; flex-wrap: wrap; column-gap: .35em; row-gap: 2px; align-items: baseline; }
.mo-quand::first-letter { text-transform: uppercase; }
.mo-fuseau { font-weight: 500; }
.mo-quand .dans:not(:empty)::before { content: "· "; }
.mo-quand .dans { color: var(--film-encre); }
.mo-role { display: inline-block; margin: 4px 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--film-carte-2);
  color: var(--film-encre); font-size: 15px; font-weight: 600; }
.mo-role .mot { padding: 12px; margin: -8px -12px; } /* 44 px de haut (plan D72 : 40) */
.mo-titre {
  font-size: clamp(34px, 9.6vw, 44px); line-height: 1.12; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance; max-width: 18ch;
  /* 30/09, version 22 (plan SM5) : césure française (la page porte lang="fr"), jamais un mot coupé sans trait d'union */
  overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto;
}
.mo-titre::first-letter { text-transform: uppercase; }
@media (min-width: 768px) { .mo-titre { font-size: clamp(44px, 7vw, 80px); line-height: 1.05; } }
.mo-quoi, .mo-chapeau, .mo-scene .chapeau, .mo-fait-dit, .mo-repli > summary { overflow-wrap: anywhere; }
.mo-quoi { margin-top: 18px; font-size: clamp(19px, 2vw, 23px); line-height: 1.42; letter-spacing: -.016em; color: var(--film-encre-2);
  max-width: 44ch; text-wrap: pretty; }
.mo-debut { margin-top: 10px; font-size: 15px; color: var(--film-encre-2); }
.mo-faits { margin-top: 26px; display: grid; gap: 12px; }
@media (min-width: 768px) { .mo-faits { grid-template-columns: auto 1fr; gap: 12px 40px; align-items: start; } }
.mo-fait { display: grid; gap: 6px; }
.mo-fait-nom { font-size: 13px; font-weight: 600; color: var(--film-encre-2); letter-spacing: .01em; }
.mo-fait-dit { font-size: 17px; font-weight: 600; }
.mo-puces { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* « Dans votre vie », replié sous « Pourquoi ça compte » (plan D72) */
.mo-tete .mo-vie { margin-top: 12px; max-width: 62ch; border-top-color: var(--film-trait); }
.mo-tete .mo-vie > summary { color: #2997ff; padding: 12px 0; }
.mo-tete .mo-vie .mo-texte { color: var(--film-encre); }
/* pourquoi ça compte, en mots simples : ouvert, avant les issues (plan C39) */
.mo-pourquoi { margin-top: 18px; display: grid; gap: 4px; max-width: 62ch; }
.mo-pourquoi-titre { font-size: 17px; font-weight: 650; letter-spacing: -.012em; color: var(--film-encre); }
.mo-pourquoi .mo-texte { color: var(--film-encre); }
.mo-puces li { padding: 4px 11px; border-radius: 999px; background: var(--film-carte); box-shadow: inset 0 0 0 1px var(--film-trait);
  font-size: 15px; line-height: 1.35; }

/* ---------- 2. Ce qui peut se passer ---------- */
.mo-scene { padding-top: 36px; }
.mo-scene .titre-chapitre { color: var(--film-encre); }
.mo-scene .chapeau { color: var(--film-encre-2); max-width: 46ch; }
.mo-barre { display: flex; gap: 3px; height: 30px; margin-top: 28px; border-radius: 10px; overflow: hidden; }
.mo-seg { display: block; min-width: 3px; height: 100%; background: var(--f); transition: opacity .3s var(--courbe); }
.mo-seg.f-autre, .mo-cle.f-autre { background: repeating-linear-gradient(135deg, var(--f-residuelle) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1.5px var(--f-residuelle); }
.mo-scene .f-choc { --f: var(--f-choc); }
@media (prefers-reduced-motion: no-preference) {
  .mo-seg { transform-origin: left center; animation: mo-pousse .8s var(--ressort) both; animation-delay: calc(var(--r) * 50ms); }
  @keyframes mo-pousse { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
/* une issue dépliée allume sa part de la barre, sans script */
.mo-scene:has(.mo-issue[open]) .mo-seg { opacity: .28; }
.mo-scene:has(.mo-issue[data-r="0"][open]) .mo-seg[data-r="0"],
.mo-scene:has(.mo-issue[data-r="1"][open]) .mo-seg[data-r="1"],
.mo-scene:has(.mo-issue[data-r="2"][open]) .mo-seg[data-r="2"],
.mo-scene:has(.mo-issue[data-r="3"][open]) .mo-seg[data-r="3"],
.mo-scene:has(.mo-issue[data-r="4"][open]) .mo-seg[data-r="4"],
.mo-scene:has(.mo-issue[data-r="5"][open]) .mo-seg[data-r="5"],
.mo-scene:has(.mo-issue[data-r="6"][open]) .mo-seg[data-r="6"],
.mo-scene:has(.mo-issue[data-r="7"][open]) .mo-seg[data-r="7"],
.mo-scene:has(.mo-issue[data-r="8"][open]) .mo-seg[data-r="8"],
.mo-scene:has(.mo-issue[data-r="9"][open]) .mo-seg[data-r="9"] { opacity: 1; }
/* plan SM1 (v22) : UNE clé sur une rangée, le climat puis ▲ ▼ · */
.mo-scene .mo-legende { margin-top: 14px; font-size: 15px; line-height: 1.4; }
.mo-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--film-encre); }
.mo-legende li { display: inline-flex; align-items: first baseline; gap: 7px; }
.mo-legende li.mo-rien { color: var(--film-encre-2); }
/* en em : le carré grandit avec le texte (plan D72) */
.mo-cle { display: inline-block; flex: none; width: .8em; height: .8em; border-radius: .27em; background: var(--f); }
.mo-p-n .mo-cle { width: .4em; height: .4em; border-radius: .14em; }

.mo-issues { margin-top: 18px; display: grid; gap: 10px; }
.mo-issue { border-radius: var(--rayon-2); background: var(--film-carte); }
.mo-issue > summary { list-style: none; cursor: pointer; display: grid; gap: 12px; padding: 16px 16px 14px; min-height: 44px; }
.mo-issue > summary::-webkit-details-marker { display: none; }
.mo-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; gap: 4px 14px; align-items: baseline; }
.mo-p { display: inline-grid; justify-items: start; gap: 6px; }
/* au téléphone, le mot du climat sur la ligne du nombre : la page garde ses quatre écrans */
@media (max-width: 399px) { .mo-p { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px 8px; } }
.mo-p-n { display: inline-flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; min-width: 2.2em; }
/* le climat de l'issue dit en mot, lu par le lecteur d'écran : la couleur du carré n'est plus seule (plan C05) */
.mo-climat { font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: 0; color: var(--film-encre-2); }
.mo-nom { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; color: var(--film-encre); overflow-wrap: anywhere; min-width: 0; }
.mo-nom::first-letter { text-transform: uppercase; }
/* neuf pistes pour neuf cases : la piste vaut le neuvième de la rangée (moins une marge d'arrondi), jamais moins que ce que le
   texte demande ; un texte agrandi repasse donc sur plusieurs rangées (plan D36 : onze pistes pour neuf cases à 390) */
.mo-carte { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(2.3em, calc((100% - 32px) / 9)), 1fr)); gap: 3px; font-size: 13px; }
@media (min-width: 768px) { .mo-carte { grid-template-columns: repeat(9, 2.6em); } }
.mo-c { display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 4px 0; border-radius: 8px;
  background: var(--film-carte-2); font-size: 13px; line-height: 1.2; }
.mo-code { color: var(--film-encre-2); font-weight: 600; letter-spacing: 0; }
.mo-code abbr { text-decoration: none; cursor: help; }
.mo-s { font-size: 13px; }
.mo-hausse .mo-s, .mo-legende .mo-hausse { color: var(--mo-hausse); }
.mo-baisse .mo-s, .mo-legende .mo-baisse { color: var(--mo-baisse); }
.mo-c.mo-hausse { box-shadow: inset 0 0 0 1.5px var(--mo-hausse); }
.mo-c.mo-baisse { box-shadow: inset 0 0 0 1.5px var(--mo-baisse); }
.mo-c.mo-rien .mo-s { color: var(--mo-rien); }
.mo-c-or { margin-left: 6px; }
.mo-amps { display: grid; gap: 4px; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .mo-amps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
.mo-amps .mo-s { display: inline-block; width: 1em; }
.mo-amps li.mo-rien .mo-s { color: var(--mo-rien); }
.mo-amp-nom { color: var(--film-encre-2); }
/* les chances qu'une monnaie gagne du terrain : une jauge sur cent, remplie à ses chances, dans la teinte de « monte » */
.mo-fortes { margin-top: 22px; display: grid; gap: 16px; max-width: 560px; }
.mo-forte-dit { font-size: 17px; line-height: 1.45; color: var(--film-encre); text-wrap: pretty; overflow-wrap: anywhere; }
.mo-forte-dit [data-v] { font-weight: 700; }
.mo-jauge { display: block; margin-top: 8px; height: 8px; border-radius: 4px; background: var(--film-carte-2); overflow: hidden; }
.mo-jauge-plein { display: block; height: 100%; width: var(--x); border-radius: 4px; background: var(--mo-hausse); }
/* la jauge se remplit quand elle entre dans la vue, pas au chargement hors de la vue (plan C102) */
@media (prefers-reduced-motion: no-preference) {
  .mo-jauge-plein { transform-origin: left center; }
  .anime .mo-fortes:not(.vu) .mo-jauge-plein { transform: scaleX(0); }
  .anime .mo-fortes .mo-jauge-plein { transition: transform .8s var(--ressort) .1s; }
}
.mo-plus::before { content: "+"; color: #2997ff; font-size: 1.3em; font-weight: 500; line-height: 1; }
.mo-issue[open] .mo-plus::before { content: "−"; }
.mo-ouvrir { font-size: 15px; font-weight: 500; color: #2997ff; }
.mo-ouvrir::after { content: " +"; }
.mo-issue[open] .mo-ouvrir::after { content: " −"; }
.mo-detail { display: grid; gap: 6px; padding: 0 16px 18px; max-width: 70ch; }
.mo-etiq { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--film-encre-2); }
.mo-texte { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.mo-texte::first-letter, .mo-carte-texte::first-letter { text-transform: uppercase; }
.mo-liens { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mo-liens a, .mo-liens li { display: inline-block; min-height: 44px; padding: .6em 0; line-height: 1.4; }
.mo-scene .mo-liens a { color: #2997ff; }
/* plan V13 : la chance de la semaine rappelée sous celle du rendez-vous, lisible sans repli */
.mo-forte-sem { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--film-encre-2); text-wrap: pretty; overflow-wrap: anywhere; }
.mo-forte-sem [data-v] { font-weight: 650; color: var(--film-encre); }
/* plan V14 : posé caché, montré par assets/ichor.js après l'heure du rendez-vous ; aucune règle `display` ici, pour que
   l'attribut `hidden` garde la main */
.moment-passe { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--rayon-2); background: var(--film-carte-2);
  color: var(--film-encre); font-size: 15px; line-height: 1.45; max-width: 62ch; }
/* une fois le rendez-vous passé, « la journée commence dès … » n'a plus rien à annoncer : la place va au message */
.moment-passe:not([hidden]) ~ .mo-debut { display: none; }
@media (min-width: 768px) {
  .mo-issue > summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 18px 22px; }
  .mo-ouvrir { grid-column: 1 / -1; }
  .mo-detail { padding: 0 22px 22px; }
}

/* « Touchez » au toucher, « Cliquez » au pointeur fin (plan C102) */
.si-pointeur { display: none; }
@media (hover: hover) and (pointer: fine) { .si-toucher { display: none; } .si-pointeur { display: inline; } }

/* Sous 400 px : neuf cases sur une rangée à 13 px (le plancher du banc des écrans ; le plan demandait 11 px), le nombre au-dessus du titre de l'issue (plans C44, C102) ; la largeur d'une case
   suit la taille du texte, donc un texte agrandi repasse sur plusieurs rangées au lieu de déborder */
@media (max-width: 399px) {
  .mo-issue > summary { padding-left: 10px; padding-right: 10px; }
  .mo-carte { grid-template-columns: repeat(auto-fill, minmax(max(2.1em, calc((100% - 20px) / 9)), 1fr)); gap: 2px; }
  .mo-c { padding: 4px 0; }
  .mo-code { letter-spacing: -.02em; }
  .mo-c-or { margin-left: 0; }
  .mo-ligne { grid-template-columns: minmax(0, 1fr) 20px; }
  .mo-ligne > .mo-p { grid-column: 1; grid-row: 1; }
  .mo-ligne > .mo-nom { grid-column: 1 / -1; grid-row: 2; }
  .mo-ligne > .mo-plus { grid-column: 2; grid-row: 1; }
}
/* 30/09, version 22 (plan SM3) : sous 360 px, neuf pistes fixes, « Or » ne passe plus seul à la ligne ; le code reste à 13 px
   (le plancher du banc des écrans refuse 11 px) et gagne sa place sur la marge de l'issue et l'approche des lettres */
@media (max-width: 359px) {
  .mo-issue > summary { padding-left: 6px; padding-right: 6px; }
  .mo-carte { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1px; }
  /* vu sur la capture du banc à 320 : en 600 et à -0,05 em, « USD » touchait son liseré ; en 500 et à -0,06 em les codes
     se séparent un peu, mais « USD » remplit encore presque sa case : à 13 px, le plancher du banc, la case ne peut pas
     s'élargir davantage sur neuf pistes */
  .mo-code { letter-spacing: -.06em; font-weight: 500; }
}

/* ---------- 3. Ce qu'il faut regarder ---------- */
.mo-chapeau { max-width: 52ch; }
.mo-grille { margin-top: 26px; display: grid; gap: 12px; }
@media (min-width: 768px) { .mo-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.mo-bloc { padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; border-radius: var(--rayon-2); }
@media (min-width: 768px) { .mo-bloc { padding: 26px 28px; } }
.mo-bloc-titre { font-size: 15px; font-weight: 600; color: var(--encre-2); letter-spacing: -.005em; }
.mo-carte-texte { font-size: 17px; line-height: 1.47; overflow-wrap: anywhere; }
.mo-repli { margin-top: 12px; border-top: 1px solid var(--trait); }
.mo-repli > summary { list-style: none; cursor: pointer; min-height: 44px; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--action); }
.mo-repli > summary::-webkit-details-marker { display: none; }
.mo-repli > summary::after { content: " +"; }
.mo-repli[open] > summary::after { content: " −"; }
.mo-repli .mo-detail { padding: 0 0 16px; }
.mo-repli .mo-etiq { color: var(--encre-2); }
.mo-programme { display: grid; gap: 10px; font-size: 16px; line-height: 1.45; }
.mo-programme li { padding-left: 16px; position: relative; overflow-wrap: anywhere; }
.mo-programme li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--encre-2); }

/* ---------- Au téléphone : quatre écrans au plus (banc des écrans), les marges se resserrent ---------- */
@media (max-width: 767px) {
  .mo-tete { padding: 24px 0 4px; }
  .mo-faits { margin-top: 14px; }
  .mo-quoi { margin-top: 14px; font-size: 18px; }
  .mo-pourquoi { margin-top: 14px; }
  .mo-pourquoi .mo-texte { font-size: 15px; line-height: 1.45; }
  .mo-scene { padding: 24px 0 24px; }
  .mo-barre { margin-top: 20px; }
  .mo-issues { margin-top: 14px; gap: 8px; }
  .mo-issue > summary { padding: 12px 14px; gap: 10px; }
  .mo-p { font-size: 28px; }
  .mo-fortes { margin-top: 14px; gap: 12px; }
  .mo-forte-sem { margin-top: 6px; font-size: 14px; }
  .moment-passe { margin-bottom: 8px; padding: 6px 10px; font-size: 14px; }
  .mo-regarder { padding: 24px 0 16px; }
  .mo-suite { padding: 16px 0 20px; }
  .mo-voisin { padding: 14px 18px; }
}

/* ---------- 4. La suite ---------- */
.mo-replis { margin-top: 20px; }
.mo-regarder .mo-grille { margin-top: 22px; }
@media (min-width: 768px) { .mo-regarder .mo-grille { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }
.mo-suite { padding-top: 32px; }
.mo-voisins { display: grid; gap: 12px; }
@media (min-width: 768px) { .mo-voisins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mo-voisin { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--rayon-2); background: var(--papier-2); color: var(--encre); }
.mo-voisin:hover { text-decoration: none; background: var(--trait-2); }
@media (prefers-color-scheme: dark) { .mo-voisin { background: var(--carte); } }
.mo-apres { text-align: right; }
@media (max-width: 767px) { .mo-apres { text-align: left; } }
.mo-voisin-dit { font-size: 13px; font-weight: 600; color: var(--encre-2); }
.mo-voisin-nom { font-size: 19px; font-weight: 650; letter-spacing: -.02em; color: var(--action); overflow-wrap: anywhere; }
.mo-voisin-nom::first-letter { text-transform: uppercase; }
.mo-retours { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; }

/* ---------- L'échelle du chiffre (30/09, version 22, plan SM2) : l'attendu et le précédent de la ligne du calendrier qui titre
   le moment, seulement quand les deux sont des nombres de même unité. L'attendu au centre, le précédent du côté où il est : un
   ordre calculé, pas une échelle (les deux nombres sont écrits dessous). ---------- */
.mo-echelle { margin: 22px 0 0; padding: 16px 18px; border-radius: var(--rayon-2); background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--trait-2); display: grid; gap: 10px; max-width: 560px; }
.me-titre { font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--encre); }
.me-titre::first-letter { text-transform: uppercase; }
.me-axe { position: relative; height: 26px; }
.me-axe::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--trait); }
.me-att, .me-pre { position: absolute; transform: translateX(-50%); }
.me-att { left: 50%; top: 1px; width: 4px; height: 24px; border-radius: 2px; background: var(--encre); }
.me-pre { top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--carte); box-shadow: inset 0 0 0 2.5px var(--encre-2); }
.me-p-bas .me-pre { left: 20%; }
.me-p-haut .me-pre { left: 80%; }
.me-p-egal .me-pre { left: 50%; }
.me-bouts { display: flex; justify-content: space-between; margin-top: -4px; font-size: 13px; color: var(--encre-2); }
.me-valeurs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.me-valeurs > div { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.me-valeurs dt { display: inline-flex; align-items: center; gap: 7px; color: var(--encre-2); }
.me-valeurs dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.me-k-att { display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: var(--encre); }
.me-k-pre { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--encre-2); }
.me-dit { font-size: 15px; line-height: 1.45; color: var(--encre-2); max-width: 52ch; }
@media (forced-colors: active) { .me-att, .me-pre, .me-k-att, .me-k-pre, .me-axe::before { forced-color-adjust: none; } }
