/* Accueil : compte à rebours, frise de la campagne, programmes, journal de la machine. */
.compte { display: grid; justify-items: end; line-height: 1; color: var(--marine); }
.compte .chiffre { font-size: clamp(44px, 6vw, 68px); letter-spacing: -0.02em; }
.compte span:last-child { font-size: 15px; color: var(--encre-2); margin-top: 6px; }

/* Frise : le temps de la campagne, avec aujourd'hui et les jalons */
.frise { margin-bottom: 20px; }
.frise__piste { position: relative; height: 118px; margin: 4px 28px 8px; }
.frise__piste::before {
  content: ''; position: absolute; left: 0; right: 0; top: 78px; height: 4px; border-radius: 2px; background: var(--filet);
}
.frise__fait { position: absolute; left: 0; width: var(--aujourdhui); top: 78px; height: 4px; border-radius: 2px; background: var(--marine); }
.frise__mois { position: absolute; top: 92px; transform: translateX(-50%); font-size: 13px; color: var(--encre-2); }
.frise__jalons { list-style: none; padding: 0; }
.frise__jalon { position: absolute; top: 0; height: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 132px; text-align: center; }
.frise__jalon::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--feuille); border: 2px solid var(--filet-fort); margin-top: 8px; flex: none; }
.frise__jalon strong { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--encre); }
.frise__jalon span { font-size: 13px; color: var(--encre-2); }
.frise__jalon--passe::after { background: var(--marine); border-color: var(--marine); }
.frise__jalon--aujourdhui::after { width: 16px; height: 16px; background: var(--cyan); border: 3px solid var(--feuille); box-shadow: 0 0 0 2px var(--cyan); margin-top: 6px; }
.frise__jalon--aujourdhui strong { color: var(--cyan-texte); }
.frise__jalon--aujourdhui span { color: var(--marine); font-weight: 700; }
.frise__jalon:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.frise__jalon:last-child::after { margin-right: -6px; }
.frise__jalon:first-child { width: 150px; }

.portefeuille__grille { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }

/* Programmes */
.tableau--programmes td { vertical-align: middle; }
.programme__client { display: block; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--marine); }
a.programme__client:hover { text-decoration: underline; }
.programme__nom { display: block; color: var(--encre-2); font-size: 14px; }
.programme__detail { display: block; font-size: 14px; margin-bottom: 4px; }
.programme--vedette { background: linear-gradient(90deg, var(--cyan-voile), transparent 70%); }
.programme--vedette td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
.programme__ouvrir { min-height: 36px; padding: 6px 14px; font-size: 14px; margin-top: 8px; }
.jauge { display: inline-flex; gap: 3px; vertical-align: middle; }
.jauge i { width: 16px; height: 6px; border-radius: 2px; background: var(--filet); }
.jauge i.fait { background: var(--marine); }
.jauge i.encours { background: var(--cyan); }
.jauge__nom { display: block; font-size: 13px; color: var(--encre-2); margin-top: 4px; white-space: nowrap; }

/* Journal de la machine et décisions */
.portefeuille__cote { display: grid; gap: 20px; }
.journal__liste, .adecider__liste { list-style: none; padding: 0 20px; display: grid; gap: 14px; }
.journal__liste li { display: grid; gap: 2px; }
.journal__liste strong { font-weight: 600; }
.journal__liste span { color: var(--encre-2); font-size: 14px; }
.adecider__liste a { font-weight: 600; color: var(--marine); text-decoration: none; }
.adecider__liste a:hover { text-decoration: underline; }
.journal__pied { padding: 14px 20px 16px; }

@media (max-width: 1080px) {
  .portefeuille__grille { grid-template-columns: 1fr; }
  .portefeuille__cote { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .compte { justify-items: start; }
  .frise__piste { height: auto; margin: 0 20px 18px; padding-left: 18px; }
  .frise__piste::before, .frise__fait { left: 5px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
  .frise__fait { bottom: auto; height: 34%; }
  .frise__mois { display: none; }
  .frise__jalons { display: grid; gap: 12px; }
  .frise__jalon, .frise__jalon:first-child, .frise__jalon:last-child {
    position: relative; left: auto !important; top: auto; height: auto; width: auto; transform: none;
    flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; text-align: left;
  }
  .frise__jalon::after, .frise__jalon:last-child::after { position: absolute; left: -19px; top: 5px; margin: 0; width: 10px; height: 10px; }
  .frise__jalon--aujourdhui::after { left: -21px; top: 3px; width: 14px; height: 14px; margin: 0; }
  .portefeuille__cote { grid-template-columns: 1fr; }
  .tableau--programmes thead { display: none; }
  .tableau--programmes, .tableau--programmes tbody, .tableau--programmes tr, .tableau--programmes td { display: block; width: 100%; }
  .tableau--programmes tr { padding: 12px 16px; border-bottom: 1px solid var(--filet); }
  .tableau--programmes td, .tableau--programmes td.nombre { padding: 4px 0; border: 0; text-align: left; }
  .tableau--programmes td.nombre::before { content: 'Prime 2026 : '; color: var(--encre-2); font-size: 14px; }
}
