/* Suivi épuré, comme l'app ((tabs)/suivi.tsx) : un chiffre en braises, une phrase, sept
   points ; la relecture en barre noire ; les candidatures en lignes fines avec leurs cinq
   points d'étapes. Sur ordinateur, deux colonnes : le chiffre reste, la liste défile.
   Puis l'écran de partage (partage-suivi.js). */
html.dans-app:not(.vitrine) #app-list.se-on, html.dans-app #app-list.se-on { display: block; }
html.dans-app #app-list.se-on > .se { grid-column: 1 / -1; margin: 0; }
.se { --se-feu: #c2410c; max-width: 560px; margin: 0 auto; display: grid; gap: 0; }
.se-gauche, .se-droite { display: grid; gap: 22px; align-content: start; min-width: 0; }
.se-droite { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--app-ligne); gap: 6px; }

.se-tete { display: flex; align-items: center; gap: 12px; }
.se-tete h1 { flex: 1; margin: 0; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: 0; text-transform: none; color: var(--app-encre); }
.se-portes { display: flex; gap: 2px; }
.se-portes button, .se-filtres button { text-transform: none; letter-spacing: 0; padding: 6px 10px; border: 0; border-radius: 999px; background: none; font: 400 13px/17px var(--sans); color: var(--app-gris); cursor: pointer; }
.se-portes button.actif, .se-filtres button.actif { color: var(--app-encre); font-weight: 500; background: var(--app-releve); }
.se-partager { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--app-releve); color: var(--app-encre); cursor: pointer; transition: transform 120ms ease; }
.se-partager:active { transform: scale(0.94); }
.se-partager svg { width: 17px; height: 17px; }

.se-hero { display: grid; justify-items: center; text-align: center; padding: 0 0 4px; }
.se-feu { display: flex; justify-content: center; min-height: 226px; margin: -24px 0 -36px; }
.se-phrase { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 36px; color: var(--app-encre); }
.se-sous { margin: 8px 0 0; font-size: 13.5px; line-height: 18px; color: var(--app-gris); }
.se-jours { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.se-jours button { text-transform: none; letter-spacing: 0; display: grid; justify-items: center; gap: 7px; min-width: 38px; padding: 6px 0; border: 0; background: none; font: 400 11px/14px var(--sans); color: var(--app-gris); cursor: pointer; border-radius: 12px; }
.se-jours button i { width: 9px; height: 9px; border-radius: 50%; background: var(--app-releve); transition: transform 160ms ease; }
.se-jours button.chaud i { background: var(--se-feu); }
.se-jours button.ici { color: var(--app-encre); font-weight: 500; }
.se-jours button.ici i { box-shadow: 0 0 0 3px var(--app-fond, #fff), 0 0 0 4.5px var(--app-encre); }
.se-jours button.actif { background: var(--app-releve); color: var(--app-encre); }
.se-jours button.actif i { transform: scale(1.25); }
.se-grille { width: 100%; max-width: 340px; margin-top: 18px; }

.se-relire { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--app-encre); color: #fff; text-decoration: none; font-size: 14px; line-height: 19px; }
.se-relire span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-relire b { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--app-encre); font-weight: 500; font-size: 13px; }
.se-compte { margin: -8px 0 0; text-align: center; font-size: 12.5px; color: var(--app-gris); }

.se-filtres { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -10px 4px; }
.se-filtres button.pouls::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; vertical-align: 2px; border-radius: 50%; background: var(--se-feu); animation: pastille-pouls 1.4s ease-in-out infinite; }
.se-liste { list-style: none; margin: 0; padding: 0; }
.se-liste li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--app-ligne); cursor: pointer; }
.se-liste li:last-child { border-bottom: 0; }
.se-liste li:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.se-logo { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--app-ligne); overflow: hidden; font-style: normal; }
.se-logo em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--app-encre); }
.se-logo img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain; opacity: 0; transition: opacity 240ms ease; }
.se-logo.a-logo img { opacity: 1; }
.se-logo.a-logo em { opacity: 0; }
.se-liste li > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.se-liste li b { font-weight: 500; font-size: 15px; line-height: 20px; color: var(--app-encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-liste li div span { font-size: 12.5px; line-height: 17px; color: var(--app-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-pts { flex: none; display: flex; gap: 4px; }
.se-pts i { width: 6px; height: 6px; border-radius: 50%; background: #e4e4e7; }
.se-pts i.f { background: var(--app-encre); }
.se-pts i.v { background: var(--app-ok, #1f8a4c); }
.se-pts i.k { background: var(--app-mauvais, #c73f37); }
.se-pts i.a { background: var(--se-feu); }
.se-liste li.vit .se-pts i.a { animation: pastille-pouls 1.4s ease-in-out infinite; }

@media (min-width: 901px) {
  html.dans-app #view-apps .track-page:has(#app-list.se-on) { padding-top: 40px; }
  .se { max-width: 1080px; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 64px; align-items: start; }
  .se-gauche { position: sticky; top: 28px; }
  .se-droite { margin-top: 0; padding-top: 0; border-top: 0; }
  .se-tete h1 { font-size: 20px; }
  .se-phrase { font-size: 36px; line-height: 40px; }
}

/* ---- l'écran de partage ---- */
html.ps-on, html.ps-on body { overflow: hidden; }
.ps { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px); background: rgba(10, 10, 12, 0.96); color: #fff; font-family: var(--sans);
  opacity: 0; transition: opacity 200ms ease; -webkit-tap-highlight-color: transparent; }
.ps.in { opacity: 1; }
.ps button { font: inherit; text-transform: none; letter-spacing: 0; border: 0; margin: 0; cursor: pointer; color: inherit; background: none; }
.ps-fermer { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 14px; width: 40px; height: 40px; padding: 9px !important; border-radius: 50%; background: rgba(255, 255, 255, 0.1) !important; }
.ps-fermer svg { display: block; width: 100%; height: 100%; }
.ps-scene { flex: 0 1 auto; min-height: 0; display: flex; justify-content: center; }
.ps-apercu { display: block; height: min(56vh, 620px); width: auto; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55); background: #1c1c1e; }
.ps-reglages { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 420px; }
.ps-choix { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.ps-choix button { padding: 8px 14px !important; border-radius: 999px; font-size: 13px !important; color: rgba(255, 255, 255, 0.65) !important; }
.ps-choix button.on { background: #fff !important; color: #0d0d0d !important; font-weight: 500 !important; }
.ps-teintes { display: grid; justify-items: center; gap: 9px; }
.ps-lab { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.ps-lab b { font-weight: 500; color: #fff; }
.ps-teintes > div { display: flex; gap: 12px; }
.ps-pastille { width: 30px; height: 30px; padding: 0 !important; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 140ms ease; }
.ps-pastille.on { box-shadow: 0 0 0 2px #0d0d0d, 0 0 0 4px #fff; transform: scale(1.06); }
.t-creme { background: #faf8f5 !important; }
.t-nuit { background: #0d0d0d !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important; }
.t-nuit.on { box-shadow: 0 0 0 2px #0d0d0d, 0 0 0 4px #fff !important; }
.t-feu { background: radial-gradient(circle at 50% 0%, #fdba74, #f97316 45%, #c2410c 80%) !important; }
.t-bleu { background: linear-gradient(210deg, #5b7cff, #1f4bdb 50%, #1532a0) !important; }
.t-rose { background: #f6e3df !important; }
.t-sauge { background: #e6ece3 !important; }
.ps-noms { display: flex; align-items: center; gap: 10px; padding: 4px 6px !important; font-size: 13px !important; color: rgba(255, 255, 255, 0.75) !important; }
.ps-bascule { position: relative; width: 36px; height: 21px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); transition: background 160ms ease; }
.ps-bascule::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 160ms ease; }
.ps-noms[aria-checked="true"] .ps-bascule { background: #f97316; }
.ps-noms[aria-checked="true"] .ps-bascule::after { transform: translateX(15px); }
.ps-actes { display: flex; gap: 10px; width: 100%; justify-content: center; }
.ps-go, .ps-enr { flex: 1; max-width: 200px; padding: 14px 18px !important; border-radius: 999px; font-size: 15px !important; font-weight: 500 !important; }
.ps-go { background: #fff !important; color: #0d0d0d !important; }
.ps-enr { background: rgba(255, 255, 255, 0.12) !important; color: #fff !important; }
.ps-enr.seul { background: #fff !important; color: #0d0d0d !important; }
@media (max-height: 700px) { .ps-apercu { height: 48vh; } .ps { gap: 12px; } }
@media (min-width: 901px) {
  .ps { flex-direction: row; gap: 56px; }
  .ps-apercu { height: min(80vh, 760px); }
  .ps-reglages { justify-items: start; max-width: 340px; gap: 22px; }
  .ps-teintes { justify-items: start; }
  .ps-actes { justify-content: flex-start; }
}
