/* ==========================================================================
   IMPRA — LES SCÈNES PRODUIT (27/10/2026)

   Des morceaux d'écran d'IMPRA écrits en HTML (outils/pages/scenes.mjs) et
   animés par js/scenes.impra.js : la liste du stock qui se filtre, la fiche
   qui change d'onglet, le frais qui recalcule la marge. Au téléphone, ils se
   lisent comme l'application : 12 px au moins, des lignes sur deux niveaux.

   Le vocabulaire visuel est celui du produit (V3) : cartes blanches, plaque
   à bande bleue, statut du cycle de vie en teinte neutre, vert pour ce qui
   est favorable, ambre pour ce qui reste à faire. Une seule courbe d'arrivée
   (--sc-ease, exponentielle) ; en mouvement réduit, l'état final, sans trajet.

   Le HTML porte l'état final : sans script, tout est affiché. Le script pose
   [data-sc-pret] sur une scène qu'il va jouer, puis remplit data-passe
   étape par étape ; les règles « avant » ne valent que sous [data-sc-pret].
   ========================================================================== */

.sc {
  --sc-encre: #0F172E;
  --sc-texte: #26314D;
  --sc-doux: #5B6478;
  --sc-pale: #8A94A6;
  --sc-trait: #E6EAF1;
  --sc-fond: #F5F7FB;
  --sc-bleu: #1F74E7;
  --sc-lien: #155FC4;
  --sc-vert: #157347;
  --sc-vert-fond: #EAF6EF;
  --sc-ambre: #B54708;
  --sc-ambre-fond: #FFF6ED;
  --sc-rouge: #B42318;
  --sc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sc-ombre: 0 0 0 1px rgba(15, 23, 46, 0.07), 0 1px 2px rgba(11, 13, 24, 0.04), 0 14px 28px -16px rgba(11, 13, 24, 0.16), 0 40px 80px -40px rgba(29, 52, 99, 0.28);
  position: relative; margin: 0; min-width: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss03";
  font-size: 13.5px; line-height: 1.4; color: var(--sc-texte); text-align: left;
  font-variant-numeric: tabular-nums;
}
.sc b { font-weight: 600; color: var(--sc-encre); }
.sc small { font-size: 12px; line-height: 16px; color: var(--sc-doux); }
.sc-ic { width: 16px; height: 16px; flex: none; }
.sc-doux { color: var(--sc-doux); }
.sc-pos { color: var(--sc-vert) !important; }
.sc-neg { color: var(--sc-rouge) !important; }

/* ── La carte d'écran ───────────────────────────────────────────────────── */
.sc-app { position: relative; container-type: inline-size; padding: 16px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--sc-ombre); }
.sc-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 12px; }
.sc-barre__titre { font-family: "Schibsted Grotesk", "Inter", sans-serif; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--sc-encre); }
.sc-bouton { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sc-bouton .sc-ic { width: 14px; height: 14px; }
.sc-bouton--plein { background: var(--sc-encre); color: #FFFFFF; }
.sc-sous-titre { margin: 14px 0 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--sc-doux); }
.sc-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--sc-lien); }

/* La plaque : bande bleue, lettres serrées, comme dans le produit. */
.sc-plaque { display: inline-flex; align-items: stretch; height: 20px; overflow: hidden; border-radius: 4px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #C9D3E3; font-size: 11px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; color: var(--sc-encre); white-space: nowrap; }
.sc-plaque__ue { display: grid; place-items: end center; width: 11px; padding-bottom: 2px; margin-right: 6px; background: #1F3E8C; color: #FFFFFF; font-size: 7px; line-height: 1; letter-spacing: 0; }
.sc-plaque { padding-right: 6px; }

/* Les statuts du cycle de vie : une teinte neutre, un point. */
.sc-statut { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: #F1F3F7; color: #3A4560; font-size: 12px; font-weight: 500; white-space: nowrap; }
.sc-statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.sc-pastille { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sc-pastille .sc-ic { width: 13px; height: 13px; }
.sc-pastille--vert { background: var(--sc-vert-fond); color: var(--sc-vert); }
.sc-pastille--ambre { background: var(--sc-ambre-fond); color: var(--sc-ambre); }
.sc-pastille--bleu { background: #EEF4FE; color: var(--sc-lien); }
.sc-pastille--neutre { background: #F1F3F7; color: #3A4560; }

/* La photo : celle de la bibliothèque, ou la silhouette « sans photo ». */
.sc-photo { display: block; flex: none; overflow: hidden; border-radius: 8px; background: #EEF1F5; aspect-ratio: 3 / 2; }
.sc-photo picture, .sc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-photo--p { width: 60px; }
.sc-photo--g { width: 132px; border-radius: 10px; }
.sc-photo--sans { display: grid; place-items: center; color: #A3ACBC; }
.sc-photo--sans svg { width: 70%; height: auto; }
/* L'affaire repérée, pas encore achetée : la silhouette pleine de l'application (sourcing), pas l'épure « sans photo ». */
.sc-photo--affaire { display: grid; place-items: center; background: #EEF0F3; color: #8E99AC; }
.sc-photo--affaire svg { width: 78%; height: auto; }

/* Les chiffres en tête d'écran. */
.sc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; border-radius: 12px; background: var(--sc-fond); }
.sc-kpis > div { min-width: 0; padding: 10px 12px; }
.sc-kpis > div + div { box-shadow: inset 1px 0 0 var(--sc-trait); }
.sc-kpis dt { font-size: 12px; line-height: 16px; color: var(--sc-doux); }
.sc-kpis dd { margin: 3px 0 0; font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--sc-encre); white-space: nowrap; }
.sc-kpis dd small { display: block; margin-top: 1px; letter-spacing: 0; font-weight: 400; white-space: normal; }
.sc-kpis--fiche { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 459px) {
  .sc-kpis > div { padding: 9px 10px; }
  .sc-kpis dd { font-size: 16px; line-height: 20px; }
  .sc-kpis--fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-kpis--fiche > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--sc-trait); }
  .sc-kpis--fiche > div:nth-child(4) { box-shadow: inset 1px 0 0 var(--sc-trait), inset 0 1px 0 var(--sc-trait); }
}

/* Les vues : de vrais boutons, 40 px de haut (44 avec la marge du groupe) ; les onglets, 44 px. */
.sc-puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.sc-puce {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px;
  background: #F1F3F7; color: #3A4560; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s var(--sc-ease), color 0.2s var(--sc-ease), box-shadow 0.2s var(--sc-ease);
  -webkit-tap-highlight-color: transparent;
}
.sc-puce__n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #FFFFFF; font-size: 11.5px; line-height: 16px; text-align: center; color: var(--sc-doux); }
.sc-puce[aria-pressed="true"] { background: var(--sc-encre); color: #FFFFFF; }
.sc-puce[aria-pressed="true"] .sc-puce__n { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.sc-puce[data-sc-filtre="surveiller"]:not([aria-pressed="true"]) .sc-puce__n { background: var(--sc-ambre-fond); color: var(--sc-ambre); }
@media (hover: hover) and (pointer: fine) { .sc-puce:hover:not([aria-pressed="true"]) { background: #E6EAF1; } }
@container (max-width: 379px) { .sc-puces { gap: 5px; } .sc-puce { padding: 0 9px; gap: 5px; font-size: 12.5px; } .sc-puce__n { min-width: 18px; padding: 0 5px; font-size: 11px; } }
/* Plus étroit, les vues tiennent sur une ligne qui défile, comme dans l'application : la vue choisie
   est ramenée dans le cadre (js/scenes.impra.js), la dernière dépasse à droite, en fondu. */
@container (max-width: 359px) {
  .sc-puces { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent); }
  .sc-puces::-webkit-scrollbar { display: none; }
  .sc-puce { flex: none; }
}
.sc-puce:focus-visible, .sc-onglet:focus-visible, .sc-vue-btn:focus-visible { outline: 2px solid var(--sc-bleu); outline-offset: 2px; }

/* La liste : une vue met ses véhicules en avant et efface les autres sans les retirer — la carte
   garde sa hauteur, rien ne bouge autour d'elle pendant la démonstration. */
.sc-liste { display: grid; align-content: start; margin: 0; padding: 0; list-style: none; }
.sc-liste__note { padding: 12px 2px 2px; box-shadow: inset 0 1px 0 var(--sc-trait); font-size: 12.5px; line-height: 18px; color: var(--sc-doux); }
.sc-liste__note > span { display: none; }
.sc-liste:not(:has(.sc-li[data-cache])) .sc-liste__note > [data-note="actif"],
.sc:has([data-sc-filtre="surveiller"][aria-pressed="true"]) .sc-liste__note > [data-note="surveiller"],
.sc:has([data-sc-filtre="reserves"][aria-pressed="true"]) .sc-liste__note > [data-note="reserves"] { display: inline; }
.sc:has([data-sc-filtre="surveiller"][aria-pressed="true"]) .sc-liste__note > [data-note="actif"],
.sc:has([data-sc-filtre="reserves"][aria-pressed="true"]) .sc-liste__note > [data-note="actif"] { display: none; }
.sc-li { position: relative; transition: opacity 0.4s var(--sc-ease), filter 0.4s var(--sc-ease); }
.sc-li::before { content: ""; position: absolute; inset: 1px -8px 0; z-index: -1; border-radius: 10px; background: #F3F7FE; opacity: 0; transition: opacity 0.4s var(--sc-ease); }
.sc-liste:has(.sc-li[data-cache]) .sc-li:not([data-cache])::before { opacity: 1; }
.sc-li[data-cache] { opacity: 0.32; filter: grayscale(1); }
.sc-app { isolation: isolate; }
.sc-li + .sc-li > .sc-ligne { box-shadow: inset 0 1px 0 var(--sc-trait); }
.sc-ligne {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: "photo nom prix" "photo meta marge";
  column-gap: 12px; row-gap: 3px; align-items: center; padding: 9px 2px;
}
.sc-ligne > .sc-photo { grid-area: photo; }
.sc-ligne > .sc-ligne__nom { grid-area: nom; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 18px; }
.sc-ligne__version { margin-left: 5px; font-weight: 400; color: var(--sc-doux); }
.sc-ligne__meta { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sc-ligne > .sc-ligne__meta { grid-area: meta; }
.sc-ligne__meta > .sc-plaque { flex: none; }
.sc-ligne__meta > .sc-raison { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sc-ligne__km { color: var(--sc-doux); font-size: 12px; }
.sc-ligne > .sc-ligne__prix { grid-area: prix; justify-self: end; font-size: 14px; line-height: 18px; white-space: nowrap; }
.sc-ligne > .sc-ligne__marge { grid-area: marge; justify-self: end; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.sc-ambre { color: var(--sc-ambre) !important; }
.sc-age { font-size: 12px; color: var(--sc-doux); white-space: nowrap; }
.sc-raison { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--sc-ambre); white-space: nowrap; }
.sc-raison .sc-ic { width: 13px; height: 13px; }
@container (max-width: 519px) {
  .sc-ligne { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 10px; }
  .sc-photo--p { width: 52px; }
  .sc-ligne__version, .sc-ligne__km, .sc-ligne__meta .sc-age { display: none; }
}
/* Au téléphone, une ligne garde le nom, le statut (ou ce qui est à surveiller), le prix et la marge :
   la plaque, qui ne tiendrait qu'à moitié, reste sur la fiche. Rien n'est coupé au milieu d'un mot. */
@container (max-width: 339px) { .sc-li .sc-ligne__meta > .sc-plaque { display: none; } }

/* ── La fiche ───────────────────────────────────────────────────────────── */
.sc-fiche__tete { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sc-fiche__id { display: grid; gap: 4px; min-width: 0; }
.sc-fiche__nom { margin: 0; font-family: "Schibsted Grotesk", "Inter", sans-serif; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; color: var(--sc-encre); }
.sc-fiche__nom span { font-weight: 400; }
.sc-fiche__nom b { font-weight: 700; }
.sc-fiche__version { margin: 0; color: var(--sc-doux); }
.sc-fiche__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; }
.sc-traiter { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--sc-ambre-fond); color: var(--sc-ambre); font-size: 13px; }
.sc-traiter b { color: var(--sc-ambre); margin-right: 4px; }
.sc-onglets { display: flex; gap: 2px; margin: 0 -4px 12px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-kpis dd small.sc-pos { font-weight: 600; }
.sc-onglets::-webkit-scrollbar { display: none; }
.sc-onglet {
  position: relative; flex: none; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--sc-doux);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--sc-ease);
}
.sc-onglet::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--sc-encre); transform: scaleX(0); transition: transform 0.32s var(--sc-ease); }
.sc-onglet[aria-selected="true"] { color: var(--sc-encre); font-weight: 600; }
.sc-onglet[aria-selected="true"]::after { transform: none; }
.sc-onglet__court { display: none; }
@container (max-width: 419px) { .sc-onglet__long { display: none; } .sc-onglet__court { display: inline; } }
.sc-panneau { min-height: 158px; animation: sc-panneau 0.42s var(--sc-ease); }
@keyframes sc-panneau { from { opacity: 0; transform: translateY(6px); } }
@container (max-width: 459px) {
  .sc-fiche__tete { gap: 12px; }
  .sc-photo--g { width: 104px; }
  .sc-fiche__nom { font-size: 19px; }
}

/* Les lignes « libellé · montant ». */
.sc-lignes { display: grid; margin: 0; }
.sc-lignes > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-lignes > div:last-child { box-shadow: none; }
.sc-lignes dt { color: var(--sc-doux); }
.sc-lignes dd { margin: 0; font-weight: 600; color: var(--sc-encre); white-space: nowrap; }
.sc-lignes__total dt { color: var(--sc-encre); font-weight: 600; }
.sc-lignes__total dd { font-size: 16px; }
.sc-barre-marge { display: flex; gap: 3px; height: 10px; margin: 2px 0 8px; }
.sc-barre-marge span { flex: 0 0 var(--p); border-radius: 3px; background: var(--sc-encre); }
.sc-barre-marge span:nth-child(2) { background: #C9D1DE; }
.sc-barre-marge span:nth-child(3) { background: var(--sc-bleu); }

/* Les frais. */
.sc-frais { display: grid; margin: 0; padding: 0; list-style: none; }
.sc-frais > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-frais > li > span:first-child { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: center; min-width: 0; }
.sc-frais > li > span:first-child > :is(svg, .sc-case) { grid-row: span 2; color: var(--sc-doux); }
.sc-frais > li > span:last-child { font-weight: 600; color: var(--sc-encre); white-space: nowrap; }
.sc-frais b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-case { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #B8C1D1; color: transparent !important; transition: background-color 0.3s var(--sc-ease), box-shadow 0.3s var(--sc-ease), color 0.3s var(--sc-ease); }
.sc-case .sc-ic { width: 13px; height: 13px; }
.sc[data-passe~="fait"] .sc-case { background: var(--sc-vert); box-shadow: none; color: #FFFFFF !important; }

/* ── Les pièces du dossier ──────────────────────────────────────────────── */
.sc-pieces { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sc-pieces > li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-pieces > li:last-child { box-shadow: none; }
.sc-pieces > li > .sc-ic { color: var(--sc-vert); }
.sc-pieces > li.est-du > .sc-ic { color: var(--sc-ambre); }
.sc-pieces > li.est-plus-tard > .sc-ic { color: var(--sc-pale); }
.sc-pieces small { grid-column: 2; }
.sc-pieces > li > b + small { grid-row: 2; }
.sc-pieces > li.est-du small { color: var(--sc-ambre); }
.sc-piece__action { grid-row: 1 / span 2; grid-column: 3; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.sc-piece--da .sc-piece__action { background: var(--sc-vert-fond); color: var(--sc-vert); }
.sc-piece--cg .sc-piece__action { background: var(--sc-ambre-fond); color: var(--sc-ambre); }
.sc-mini-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.sc-mini-tete .sc-ligne__id { display: grid; gap: 4px; min-width: 0; }
.sc-mini-tete .sc-ligne__id b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 19px; }
.sc-mini-tete .sc-ligne__meta { flex-wrap: wrap; row-gap: 4px; overflow: visible; white-space: normal; }
.sc-ligne__meta { line-height: 20px; }
.sc-compteur-pieces { display: grid; justify-items: end; max-width: 8.5em; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--sc-ambre); text-align: right; }
.sc-compteur-pieces > span, .sc-lignes--recalcul dd > span, .sc-bascule > span { grid-area: 1 / 1; }
.sc-lignes--recalcul dd, .sc-bascule { display: inline-grid; justify-items: end; }

/* Avant / après : une valeur cède la place à l'autre (le HTML montre l'après). */
.sc-avant { visibility: hidden; opacity: 0; }
.sc--preparation[data-sc-pret]:not([data-passe~="recalcul"]) .sc-avant, .sc--pieces[data-sc-pret]:not([data-passe~="genere"]) .sc-avant { visibility: visible; opacity: 1; }
.sc--preparation[data-sc-pret]:not([data-passe~="recalcul"]) .sc-apres, .sc--pieces[data-sc-pret]:not([data-passe~="genere"]) .sc-apres { visibility: hidden; opacity: 0; }
.sc-avant, .sc-apres { transition: opacity 0.4s var(--sc-ease), visibility 0.4s, transform 0.5s var(--sc-ease); }
.sc[data-sc-pret][data-passe~="recalcul"] .sc-lignes--recalcul .sc-apres { animation: sc-maj 1.1s var(--sc-ease); }
@keyframes sc-maj { 0% { transform: translateY(6px); } 30% { background: #EAF2FE; } 100% { transform: none; background: transparent; } }
.sc-bascule--fait > .sc-statut:first-child { visibility: hidden; opacity: 0; }
.sc[data-sc-pret]:not([data-passe~="fait"]) .sc-bascule--fait > .sc-statut:first-child { visibility: visible; opacity: 1; }
.sc[data-sc-pret]:not([data-passe~="fait"]) .sc-bascule--fait > .sc-statut:last-child { visibility: hidden; opacity: 0; }
.sc-bascule > .sc-statut { transition: opacity 0.35s var(--sc-ease), visibility 0.35s; }

/* La préparation : le frais ajouté arrive ; l'étape se coche. */
.sc-frais__ajout { transition: opacity 0.4s var(--sc-ease), transform 0.5s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="ajout"]) .sc-frais__ajout { opacity: 0; transform: translateY(-8px); }
.sc[data-sc-pret][data-passe~="ajout"]:not([data-passe~="recalcul"]) .sc-frais__ajout { background: #F3F7FE; }
.sc-frais__ajout > span:first-child > svg { color: var(--sc-bleu) !important; }

/* Les pièces : la déclaration d'achat se génère. */
.sc-piece--da > .sc-ic { transition: color 0.3s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="genere"]) .sc-piece--da > .sc-ic { color: var(--sc-ambre); }
.sc[data-sc-pret]:not([data-passe~="genere"]) .sc-piece--da .sc-piece__action { background: var(--sc-encre); color: #FFFFFF; }
.sc[data-sc-pret]:not([data-passe~="genere"]) .sc-piece--da .sc-piece__action::before { content: "Générer"; }
.sc[data-sc-pret]:not([data-passe~="genere"]) .sc-piece--da .sc-piece__action { font-size: 0; }
.sc[data-sc-pret]:not([data-passe~="genere"]) .sc-piece--da .sc-piece__action::before { font-size: 12px; }
.sc[data-sc-pret]:not([data-passe~="genere"]) .sc-piece--da small { color: var(--sc-ambre); }

/* ── L'arrivée d'une scène : les lignes montent, une à une (au plus 8) ─── */
.sc[data-sc-pret]:not([data-passe~="arrivee"]) .sc-li, .sc[data-sc-pret]:not([data-passe~="arrivee"]) .sc-frais > li:not(.sc-frais__ajout), .sc[data-sc-pret]:not([data-passe~="arrivee"]) .sc-pieces > li { opacity: 0; transform: translateY(10px); }
.sc[data-sc-pret] .sc-li, .sc[data-sc-pret] .sc-frais > li:not(.sc-frais__ajout), .sc[data-sc-pret] .sc-pieces > li {
  transition: opacity 0.5s var(--sc-ease) calc(min(var(--i, 0), 8) * 55ms), transform 0.7s var(--sc-ease) calc(min(var(--i, 0), 8) * 55ms), filter 0.4s var(--sc-ease);
}
.sc-frais > li:nth-child(2), .sc-pieces > li:nth-child(2) { --i: 1; }
.sc-frais > li:nth-child(3), .sc-pieces > li:nth-child(3) { --i: 2; }
.sc-pieces > li:nth-child(4) { --i: 3; }
.sc-pieces > li:nth-child(5) { --i: 4; }

/* Sous chaque scène (28/10/2026) : la mention « Illustration · données fictives », puis l'astuce d'une
   scène qu'on peut manipuler. Une seule ligne au bureau ; au téléphone, l'astuce passe dessous. */
.sc-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 14px 2px 0; }
.sc-mention { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.01em; color: var(--s-doux, #5B6478); }
.sc-mention::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 3px; border: 1.4px solid currentColor; opacity: 0.7; background: linear-gradient(135deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
.s-section--encre .sc-mention, [data-entete="sombre"] .sc-mention { color: rgba(244, 247, 250, 0.62); }
/* L'astuce, sous une scène qu'on peut manipuler. */
.sc-astuce { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 13px; line-height: 18px; color: var(--s-doux, #5B6478); text-align: center; }
.sc-astuce::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-bleu); box-shadow: 0 0 0 4px rgba(31, 116, 231, 0.14); }

/* ── Les bénéfices : un petit écran, sur navy ───────────────────────────── */
.sc-mini { position: relative; display: grid; align-content: start; gap: 4px; min-height: 140px; color: rgba(244, 247, 250, 0.72); font-family: "Inter", system-ui, sans-serif; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.sc-mini__valeur { margin: 0; font-family: "Schibsted Grotesk", "Inter", sans-serif; font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; color: #FFFFFF; }
.sc-mini__valeur.sc-pos { color: #5FD39A !important; }
.sc-mini__libelle { margin: 0 0 10px; font-size: 13px; color: rgba(244, 247, 250, 0.66); }
.sc-barres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; height: 92px; margin: 0; padding: 0; list-style: none; }
.sc-barres li { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; }
.sc-barres__b { align-self: end; height: var(--h); min-height: 6px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #4D94F5, #2F6FD0); transform-origin: bottom; }
.sc-barres li.est-alerte .sc-barres__b { background: linear-gradient(180deg, #F2A65A, #C46A1E); }
.sc-barres__nom { font-size: 11.5px; line-height: 14px; color: rgba(244, 247, 250, 0.62); white-space: nowrap; }
.sc-mini--marge .sc-barre-marge { height: 12px; margin-top: 6px; }
.sc-mini--marge .sc-barre-marge span { background: rgba(244, 247, 250, 0.82); }
.sc-mini--marge .sc-barre-marge span:nth-child(2) { background: rgba(244, 247, 250, 0.3); }
.sc-mini--marge .sc-barre-marge span:nth-child(3) { background: #5FD39A; }
.sc-legende-marge { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 12px; color: rgba(244, 247, 250, 0.62); }
.sc-legende-marge span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: rgba(244, 247, 250, 0.82); }
.sc-legende-marge span:nth-child(2)::before { background: rgba(244, 247, 250, 0.3); }
.sc-legende-marge span:nth-child(3)::before { background: #5FD39A; }
.sc-mini .sc-pieces > li { box-shadow: inset 0 -1px 0 rgba(244, 247, 250, 0.1); padding: 9px 0; }
.sc-mini .sc-pieces > li:last-child { box-shadow: none; }
.sc-mini .sc-pieces b { color: #FFFFFF; font-weight: 500; }
.sc-mini .sc-pieces > li > .sc-ic { color: #5FD39A; }
.sc-mini .sc-pieces > li.est-du > .sc-ic, .sc-mini .sc-pieces > li.est-du small { color: #F7B27A; }
.sc-equipe { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-equipe li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.sc-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(77, 148, 245, 0.18); color: #CFE0FB; font-size: 12px; font-weight: 600; }
.sc-equipe b { color: #FFFFFF; font-weight: 500; }
.sc-equipe__vue { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9FC3F9; white-space: nowrap; }
.sc-equipe__vue.est-masque { color: rgba(244, 247, 250, 0.5); }
.sc-equipe__vue .sc-ic { width: 15px; height: 15px; }
/* Les barres montent quand la carte arrive à l'écran (classe posée par le script). */
.js .p-benefice:not(.est-vu) .sc-barres__b { transform: scaleY(0.04); }
.sc-barres__b { transition: transform 0.9s var(--sc-ease) calc(var(--i, 0) * 90ms); }
.js .p-benefice:not(.est-vu) .sc-mini--marge .sc-barre-marge span { transform: scaleX(0); }
.sc-mini--marge .sc-barre-marge span { transform-origin: left; transition: transform 0.8s var(--sc-ease); }
.sc-mini--marge .sc-barre-marge span:nth-child(2) { transition-delay: 0.25s; }
.sc-mini--marge .sc-barre-marge span:nth-child(3) { transition-delay: 0.4s; }

/* ── Le constat : sans IMPRA, avec IMPRA ───────────────────────────────── */
.sc--constat { display: grid; gap: 16px; }
.sc--constat .sc-pied { margin-top: -2px; }
.sc-bascule-vue { justify-self: start; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(244, 247, 250, 0.08); box-shadow: inset 0 0 0 1px rgba(244, 247, 250, 0.1); }
.sc-vue-btn {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: rgba(244, 247, 250, 0.72);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s var(--sc-ease), color 0.3s var(--sc-ease);
}
.sc-vue-btn[aria-pressed="true"] { background: #FFFFFF; color: var(--sc-encre); }
.sc-constat { position: relative; height: 330px; }
.sc-papiers { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.sc-papier {
  --x: 0%; --y: 0%; --r: 0deg;
  position: absolute; left: var(--x); top: var(--y); width: 46%; min-height: 92px; padding: 14px 16px; border-radius: 6px;
  background: #FFFFFF; color: #2A3656; font-size: 14px; line-height: 1.35; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 14px 28px -12px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--r)); transition: transform 0.7s var(--sc-ease) calc(var(--i) * 60ms), opacity 0.45s var(--sc-ease) calc(var(--i) * 60ms);
}
.sc-papier:nth-child(1) { --x: 2%; --y: 4%; --r: -5deg; }
.sc-papier:nth-child(2) { --x: 52%; --y: 0%; --r: 4deg; }
.sc-papier:nth-child(3) { --x: 6%; --y: 52%; --r: 3deg; }
.sc-papier:nth-child(4) { --x: 50%; --y: 56%; --r: -3deg; }
.sc-papier:nth-child(5) { --x: 28%; --y: 30%; --r: 7deg; }
.sc-papier span { position: relative; display: block; }
.sc-papier--carnet { background: #FFFFFF repeating-linear-gradient(180deg, transparent 0 21px, rgba(31, 116, 231, 0.18) 21px 22px); background-position: 0 6px; padding-top: 20px; }
.sc-papier--carnet::before { content: ""; position: absolute; left: 12px; right: 12px; top: 6px; height: 6px; background: radial-gradient(circle, #9AA6BC 2px, transparent 2.5px) 0 0 / 14px 6px repeat-x; }
.sc-papier--tableur { padding: 0; overflow: hidden; background: #FFFFFF linear-gradient(90deg, transparent 0 calc(50% - 0.5px), #DDE6DF calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.sc-papier--tableur::before { content: ""; display: block; height: 22px; background: #E7F2EA; box-shadow: inset 0 -1px 0 #CFE1D4; }
.sc-papier--tableur span { padding: 10px 14px 12px; }
/* Papiers froids (charte : ni beige ni jaune, 28/10/2026) : ils se distinguent par leur forme et leur texture. */
.sc-papier--classeur { background: #E3E8F1; color: #2A3656; border-radius: 4px 10px 6px 6px; box-shadow: inset 0 -3px 0 rgba(42, 54, 86, 0.07), 0 1px 1px rgba(0, 0, 0, 0.12), 0 16px 24px -14px rgba(0, 0, 0, 0.55); }
.sc-papier--classeur::before { content: ""; position: absolute; left: 14px; top: -10px; width: 64px; height: 12px; border-radius: 6px 6px 0 0; background: #D2DAE7; }
.sc-papier--postit { width: 38%; background: #E6F0FD; color: #1D3B6A; border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 16px 24px -14px rgba(0, 0, 0, 0.6); }
.sc-papier--sms { width: 42%; border-radius: 18px 18px 18px 4px; background: #E9EEF6; color: #26314D; }
.sc-dossier { position: absolute; left: 50%; top: 50%; width: min(100%, 420px); transform: translate(-50%, -50%); transition: opacity 0.5s var(--sc-ease), transform 0.8s var(--sc-ease); }
.sc-dossier .sc-lignes { margin-top: 10px; }
.sc-dossier .sc-lignes > div { transition: opacity 0.45s var(--sc-ease) calc(0.3s + var(--i) * 80ms), transform 0.6s var(--sc-ease) calc(0.3s + var(--i) * 80ms); }
.sc-constat[data-vue="avec"] .sc-papier { opacity: 0; transform: translate(calc(50% - var(--x) * 1.4), calc(30% - var(--y) * 1.1)) rotate(0deg) scale(0.55); }
.sc-constat[data-vue="sans"] .sc-dossier { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(0.96); pointer-events: none; }
.sc-constat[data-vue="sans"] .sc-dossier .sc-lignes > div { opacity: 0; transform: translateY(8px); }
/* Au téléphone : deux colonnes de papiers qui se touchent sans se cacher — le désordre se voit,
   chaque note se lit en entier ; un cinquième papier ouvre une troisième rangée. */
@media (max-width: 767px) {
  .sc-constat { height: 292px; }
  .sc-papier { width: 49%; min-height: 84px; padding: 12px 13px; font-size: 13px; }
  .sc-papier--postit, .sc-papier--sms { width: 49%; }
  .sc-papier:nth-child(1) { --x: 0%; --y: 2%; --r: -4deg; }
  .sc-papier:nth-child(2) { --x: 51%; --y: 9%; --r: 3deg; }
  .sc-papier:nth-child(3) { --x: 1%; --y: 53%; --r: 2deg; }
  .sc-papier:nth-child(4) { --x: 51%; --y: 58%; --r: -3deg; }
  .sc-constat:has(.sc-papier:nth-child(5)) { height: 404px; }
  .sc-constat:has(.sc-papier:nth-child(5)) .sc-papier:nth-child(3) { --y: 37%; }
  .sc-constat:has(.sc-papier:nth-child(5)) .sc-papier:nth-child(4) { --y: 42%; }
  .sc-constat:has(.sc-papier:nth-child(5)) .sc-papier:nth-child(5) { --x: 24%; --y: 74%; --r: -2deg; }
}

/* ── Boutons d'écran, groupes, toasts ───────────────────────────────── */
.sc-bouton--contour { background: #FFFFFF; color: var(--sc-encre); box-shadow: inset 0 0 0 1px #D5DCE7; }
.sc-actions-ui { display: flex; gap: 8px; margin: 12px 0 0; }
.sc-groupe { margin: 12px 0 2px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--sc-doux); }
.sc-groupe--retard { color: var(--sc-rouge); }
/* Au téléphone, le numéro et la plaque passent à la ligne entiers, jamais coupés (28/10/2026). */
.sc-barre--carte { margin-bottom: 4px; flex-wrap: wrap; row-gap: 2px; }
.sc-barre--carte > * { white-space: nowrap; }
.sc-barre--carte .sc-barre__titre { font-size: 17px; }
.sc-toast { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--sc-encre); color: #FFFFFF; font-size: 12.5px; font-weight: 600; }
.sc-toast .sc-ic { color: #5FD39A; }
.sc[data-sc-pret]:not([data-passe~="partage"]) .sc-toast { opacity: 0; transform: translateY(6px); }
.sc-toast { transition: opacity 0.4s var(--sc-ease), transform 0.5s var(--sc-ease); }
.sc-avatar--clair { background: #EEF4FE; color: var(--sc-lien); }
/* « Fait » : 34 px dessinés, 44 px au doigt. */
.sc-mini-btn::after { content: ""; position: absolute; inset: -5px -4px; }
.sc-mini-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--sc-encre); color: #FFFFFF; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sc-mini-btn .sc-ic { width: 13px; height: 13px; }
.sc-mini-btn:focus-visible { outline: 2px solid var(--sc-bleu); outline-offset: 2px; }

/* Les bascules de statut : un statut cède la place au suivant à son étape. */
.sc-bascule--police > :first-child, .sc-bascule--reserve > :first-child, .sc-bascule--livre > :first-child { visibility: hidden; opacity: 0; }
.sc[data-sc-pret]:not([data-passe~="police"]) .sc-bascule--police > :first-child,
.sc[data-sc-pret]:not([data-passe~="reserve"]) .sc-bascule--reserve > :first-child,
.sc[data-sc-pret]:not([data-passe~="livre"]) .sc-bascule--livre > :first-child { visibility: visible; opacity: 1; }
.sc[data-sc-pret]:not([data-passe~="police"]) .sc-bascule--police > :last-child,
.sc[data-sc-pret]:not([data-passe~="reserve"]) .sc-bascule--reserve > :last-child,
.sc[data-sc-pret]:not([data-passe~="livre"]) .sc-bascule--livre > :last-child { visibility: hidden; opacity: 0; }
/* Avant / après, pour les relances faites. */
.sc[data-sc-pret]:not([data-passe~="fait"]) .sc-prospect--hugo .sc-prospect__apres,
.sc:not([data-sc-pret]):not([data-passe~="fait"]) .sc-prospect--hugo .sc-prospect__apres { display: none; }
.sc[data-passe~="fait"] .sc-prospect--hugo .sc-mini-btn { display: none; }
.sc[data-passe~="fait"] .sc-prospect--hugo { opacity: 0.55; }
.sc-prospect--hugo { transition: opacity 0.4s var(--sc-ease); }

/* ── Achats : le calculateur ───────────────────────────────────────────── */
.sc-affaire { margin-bottom: 4px; }
.sc-affaire__meta { font-size: 12.5px; line-height: 17px; color: var(--sc-doux); }
.sc-calc__donnees { margin-top: 8px; }
.sc-calc__donnees dt small { display: block; }
.sc-calc__curseur { display: grid; gap: 10px; margin: 14px 0 4px; padding: 14px 14px 26px; border-radius: 12px; background: var(--sc-fond); cursor: pointer; }
.sc-calc__libelle { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: 12.5px; line-height: 16px; font-weight: 600; color: var(--sc-doux); }
.sc-calc__libelle output { font-size: 18px; line-height: 22px; letter-spacing: -0.02em; color: var(--sc-encre); }
.sc-calc__curseur { position: relative; }
.sc-calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; touch-action: pan-y; }
.sc-calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #BFE3CD 0 var(--go, 39%), #F7D9B9 var(--go, 39%) var(--nogo, 80%), #F4C7C3 var(--nogo, 80%)); }
.sc-calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #BFE3CD 0 var(--go, 39%), #F7D9B9 var(--go, 39%) var(--nogo, 80%), #F4C7C3 var(--nogo, 80%)); }
.sc-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15, 23, 46, 0.12), 0 4px 10px -2px rgba(15, 23, 46, 0.35); }
.sc-calc input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15, 23, 46, 0.12), 0 4px 10px -2px rgba(15, 23, 46, 0.35); }
.sc-calc input[type="range"]:focus-visible { outline: 2px solid var(--sc-bleu); outline-offset: 4px; border-radius: 8px; }
.sc-calc__repere { position: absolute; left: calc(14px + (100% - 28px) * var(--x) / 100); bottom: 8px; transform: translateX(-50%); font-size: 11px; line-height: 14px; font-weight: 600; color: var(--sc-vert); white-space: nowrap; }
.sc-calc__repere::before { content: ""; position: absolute; left: 50%; bottom: 16px; width: 1.5px; height: 12px; background: var(--sc-vert); }
.sc-calc__resultat { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sc-trait); }
.sc-calc__resultat .sc-calc__libelle { justify-content: flex-start; }
.sc-calc__nette { margin: 2px 0 0; font-family: "Schibsted Grotesk", "Inter", sans-serif; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--sc-encre); }
.sc-calc__note { margin: 2px 0 0; font-size: 12px; color: var(--sc-doux); }
.sc-verdict { flex: none; display: inline-grid; place-items: center; min-width: 84px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; transition: background-color 0.3s var(--sc-ease), color 0.3s var(--sc-ease); }
.sc-verdict--go { background: var(--sc-vert-fond); color: var(--sc-vert); }
.sc-verdict--seuils { background: var(--sc-ambre-fond); color: var(--sc-ambre); font-size: 13px; letter-spacing: 0; }
.sc-verdict--nogo { background: #FEF3F2; color: var(--sc-rouge); }
.sc-calc__seuils { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12.5px; color: var(--sc-doux); }
.sc-calc__seuils .sc-ic { color: var(--sc-pale); }
@keyframes sc-pouls { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.sc-verdict.est-change { animation: sc-pouls 0.45s var(--sc-ease); }
.sc-encheres__frais dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sc-encheres__frais .sc-pastille { transition: box-shadow 0.4s var(--sc-ease); }
.sc[data-sc-pret][data-passe~="calcul"] .sc-encheres__frais .sc-pastille { animation: sc-pouls 0.6s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="calcul"]) .sc-encheres__frais dd, .sc[data-sc-pret]:not([data-passe~="calcul"]) .sc-encheres .sc-lignes__total dd { opacity: 0.2; }
.sc-encheres .sc-lignes dd { transition: opacity 0.4s var(--sc-ease); }

/* Le suivi : des étapes qui se valident l'une après l'autre. */
.sc-suivi { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.sc-suivi > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 0 0 14px; }
.sc-suivi > li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--sc-trait); }
.sc-suivi__point { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sc-vert); color: #FFFFFF; transition: background-color 0.35s var(--sc-ease), color 0.35s var(--sc-ease), box-shadow 0.35s var(--sc-ease); }
.sc-suivi__point .sc-ic { width: 15px; height: 15px; }
.sc-suivi b { padding-top: 4px; }
.sc[data-sc-pret]:not([data-passe~="cerfa"]) .sc-suivi__cerfa .sc-suivi__point,
.sc[data-sc-pret]:not([data-passe~="recu"]) .sc-suivi__recu .sc-suivi__point,
.sc[data-sc-pret]:not([data-passe~="police"]) .sc-suivi__police .sc-suivi__point { background: #FFFFFF; color: var(--sc-pale); box-shadow: inset 0 0 0 1.5px #CBD3E0; }

/* ── Ventes ─────────────────────────────────────────────────────────── */
.sc-vente__bouton { transition: transform 0.2s var(--sc-ease), opacity 0.3s; }
.sc[data-sc-pret][data-passe~="vendu"] .sc-vente__bouton { animation: sc-appui 0.5s var(--sc-ease); opacity: 0.35; }
.sc:not([data-sc-pret]) .sc-vente__bouton { opacity: 0.35; }
@keyframes sc-appui { 0% { transform: scale(1); } 35% { transform: scale(0.92); } 100% { transform: scale(1); } }
.sc-cycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 0 6px; padding: 0; list-style: none; font-size: 11.5px; line-height: 14px; color: var(--sc-doux); text-align: center; }
.sc-cycle > li { position: relative; display: grid; justify-items: center; gap: 6px; }
.sc-cycle > li > span { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--sc-encre); box-shadow: 0 0 0 3px #FFFFFF; transition: background-color 0.35s var(--sc-ease); }
.sc-cycle > li:not(:last-child)::after { content: ""; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: var(--sc-encre); transition: background-color 0.35s var(--sc-ease); }
.sc-cycle__livre { color: var(--sc-encre); font-weight: 600; }
.sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-cycle__reserve > span, .sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-cycle__vendu_non_livre > span,
.sc[data-sc-pret]:not([data-passe~="livre"]) .sc-cycle__livre > span { background: #D5DCE7; }
.sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-cycle__en_vente::after, .sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-cycle__reserve::after,
.sc[data-sc-pret]:not([data-passe~="livre"]) .sc-cycle__vendu_non_livre::after { background: #D5DCE7; }
.sc-evts { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.sc-evt { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); transition: opacity 0.45s var(--sc-ease) calc(var(--i) * 140ms), transform 0.6s var(--sc-ease) calc(var(--i) * 140ms); }
.sc-evt > .sc-ic { grid-row: span 2; margin-top: 1px; color: var(--sc-vert); }
.sc-evt small { grid-column: 2; }
/* Ce qui reste à venir se lit déjà, en gris : la carte n'est jamais vide, chaque étape s'allume à son tour. */
.sc[data-sc-pret]:not([data-passe~="vendu"]) :is(.sc-evt--facture, .sc-evt--police, .sc-evt--ecritures),
.sc[data-sc-pret]:not([data-passe~="paye"]) .sc-evt--paye,
.sc[data-sc-pret]:not([data-passe~="livre"]) .sc-evt--cession { opacity: 0.32; filter: grayscale(1); transform: translateX(-4px); }
.sc-evt { transition-property: opacity, transform, filter; }
.sc-evt--paye, .sc-evt--cession { --i: 0 !important; }
.sc-vente__marge { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sc-vert-fond); font-weight: 600; color: var(--sc-vert); transition: opacity 0.5s var(--sc-ease), transform 0.6s var(--sc-ease); }
.sc-vente__marge b { font-size: 18px; }
.sc[data-sc-pret]:not([data-passe~="marge"]) .sc-vente__marge { opacity: 0; transform: translateY(8px); }
.sc-resa__acompte { transition: background-color 0.5s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="acompte"]) .sc-resa__acompte dd, .sc[data-sc-pret]:not([data-passe~="acompte"]) .sc--reservation .sc-lignes__total dd { opacity: 0.2; }

/* La facture : sans ligne de TVA, la mention du régime ; le cachet tombe à l'émission. */
.sc-facture { padding: 20px; }
.sc-facture__tete { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-facture__tete > span { display: grid; gap: 2px; }
.sc-facture__num { text-align: right; }
.sc-facture__num b { font-size: 15px; letter-spacing: 0.02em; }
.sc-facture__client { display: grid; gap: 2px; margin: 12px 0; font-weight: 600; color: var(--sc-encre); }
.sc-facture__ligne { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; box-shadow: inset 0 1px 0 var(--sc-trait), inset 0 -1px 0 var(--sc-trait); }
.sc-facture__ligne > span { display: grid; gap: 3px; min-width: 0; }
.sc-facture__ligne > b { white-space: nowrap; }
.sc-facture__total { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--sc-encre); }
.sc-facture__total b { font-size: 18px; }
.sc-facture__mention { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--sc-fond); font-size: 12.5px; font-style: italic; color: var(--sc-texte); }
.sc-facture__cachet { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--sc-encre); color: #FFFFFF; font-size: 12px; font-weight: 600; transition: opacity 0.35s var(--sc-ease), transform 0.5s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="emise"]) .sc-facture__cachet { opacity: 0; transform: scale(1.18); }
.sc[data-sc-pret]:not([data-passe~="lignes"]) :is(.sc-facture__ligne, .sc-facture__total, .sc-facture__mention) { opacity: 0; }
.sc-facture__ligne, .sc-facture__total, .sc-facture__mention { transition: opacity 0.5s var(--sc-ease); }
.sc-pieces > li.est-genere > .sc-ic { color: var(--sc-lien); }
.sc-piece--bon .sc-piece__action, .sc-piece--cession .sc-piece__action { background: var(--sc-vert-fond); color: var(--sc-vert); }
.sc[data-sc-pret]:not([data-passe~="bon"]) .sc-piece--bon .sc-piece__action, .sc[data-sc-pret]:not([data-passe~="cession"]) .sc-piece--cession .sc-piece__action { opacity: 0; }
.sc-piece__action { transition: opacity 0.4s var(--sc-ease); }

/* ── Prospects ──────────────────────────────────────────────────────── */
.sc-prospects { display: grid; margin: 0; padding: 0; list-style: none; }
.sc-prospect { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-prospects > li:last-child { box-shadow: none; }
.sc-prospect .sc-avatar { width: 34px; height: 34px; }
.sc-prospect__id { display: grid; gap: 1px; min-width: 0; }
.sc-prospect__id b, .sc-prospect__id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-prospect__quand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sc-doux); white-space: nowrap; }
.sc-prospect__apres { display: inline-flex; align-items: center; gap: 4px; }
.sc-prospect__apres::before { content: "Relancé ·"; color: var(--sc-vert); }

/* ── Calendrier et À faire ──────────────────────────────────────────── */
.sc-agenda { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-agenda__evt { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: start; }
.sc-agenda__heure { padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--sc-encre); }
.sc-agenda__carte { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--sc-fond); }
.sc-agenda__carte > .sc-ic { grid-row: span 2; margin-top: 1px; color: var(--sc-doux); }
.sc-agenda__carte small { grid-column: 2; }
.sc-agenda__evt--relance .sc-agenda__carte { background: #EEF4FE; }
.sc-agenda__evt--relance .sc-agenda__carte > .sc-ic { color: var(--sc-lien); }
.sc-agenda__evt--essai .sc-agenda__carte, .sc-agenda__evt--livraison .sc-agenda__carte { background: var(--sc-vert-fond); }
.sc-agenda__evt--essai .sc-agenda__carte > .sc-ic, .sc-agenda__evt--livraison .sc-agenda__carte > .sc-ic { color: var(--sc-vert); }
.sc-taches { gap: 0; }
.sc-tache { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 8px 2px; }
.sc-tache > .sc-ic { grid-row: span 2; margin-top: 1px; color: var(--sc-doux); }
.sc-tache small { grid-column: 2; }
.sc-tache b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-wrap: pretty; }
.sc-taches + .sc-groupe { margin-top: 8px; }
.sc--afaire .sc-groupe--retard + .sc-taches .sc-tache > .sc-ic { color: var(--sc-rouge); }
.sc-taches-auto > li > .sc-ic { color: var(--sc-lien); }
.sc-taches-auto .sc-piece__action { background: #F1F3F7; color: var(--sc-doux); font-weight: 500; }

/* ── Pilotage ───────────────────────────────────────────────────────── */
.sc-tdb__marge { display: grid; gap: 2px; margin: 4px 0 10px; font-family: "Schibsted Grotesk", "Inter", sans-serif; font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; color: var(--sc-encre); }
.sc-tdb__marge small { font-family: "Inter", sans-serif; font-size: 12.5px; letter-spacing: 0; font-weight: 500; }
.sc-jauge { position: relative; height: 10px; border-radius: 5px; background: rgba(244, 247, 250, 0.14); overflow: hidden; }
.sc-jauge > span { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #4D94F5, #5FD39A); transform-origin: left; transition: transform 1.2s var(--sc-ease) 0.2s; }
.sc-jauge--clair { background: #EDF0F5; margin-bottom: 14px; }
.sc[data-sc-pret]:not([data-passe~="compte"]) .sc-jauge > span, .js .p-benefice:not(.est-vu) .sc-jauge > span { transform: scaleX(0); }
.sc-kpis--tdb { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sc-histo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; height: 150px; margin: 10px 0 6px; padding: 0; list-style: none; }
.sc-histo > li { display: flex; align-items: flex-end; height: 100%; }
.sc-histo > li > span { width: 100%; height: var(--h); border-radius: 5px 5px 2px 2px; background: #C9D7EE; transform-origin: bottom; transition: transform 0.7s var(--sc-ease) calc(var(--i) * 40ms); }
.sc-histo > li.est-courant > span { background: var(--sc-bleu); }
.sc-panneau:not([hidden]) .sc-histo > li > span { animation: sc-monte 0.8s var(--sc-ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes sc-monte { from { transform: scaleY(0.05); } }
.sc-histo__axe { display: flex; justify-content: space-between; margin: 0; font-size: 11.5px; color: var(--sc-doux); }
.sc-marges { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.sc-marges > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom val" "barre barre"; gap: 4px 12px; align-items: baseline; }
.sc-marges__nom { grid-area: nom; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sc-marges__nom b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-marges__val { grid-area: val; white-space: nowrap; }
.sc-marges__barre { grid-area: barre; height: 6px; border-radius: 3px; background: #EDF0F5; overflow: hidden; }
.sc-marges__barre > span { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--sc-bleu); transform-origin: left; transition: transform 0.9s var(--sc-ease) calc(var(--i) * 80ms); }
.sc-marges > li.est-faible .sc-marges__barre > span { background: #E8A267; }
.sc-marges > li.est-faible .sc-marges__val { color: var(--sc-ambre); }
.sc[data-sc-pret]:not([data-passe~="arrivee"]) .sc-marges__barre > span { transform: scaleX(0); }
.sc-factures { display: grid; margin: 0; padding: 0; list-style: none; }
.sc-factures > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; align-items: center; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-factures > li:last-child { box-shadow: none; }
.sc-factures__id { display: grid; gap: 1px; min-width: 0; }
.sc-factures__id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-factures__etat { display: grid; justify-items: end; gap: 3px; }
.sc-pastille--rouge { background: #FEF3F2; color: var(--sc-rouge); }
.sc-relance { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #EEF4FE; color: var(--sc-lien); font-size: 12.5px; font-weight: 600; transition: opacity 0.45s var(--sc-ease), transform 0.55s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="relance"]) .sc-relance { opacity: 0; transform: translateY(-4px); }
.sc-pieces--compta > li:not(.est-du) { grid-template-columns: 18px minmax(0, 1fr) auto; }
.sc-pieces--compta .sc-case { grid-row: auto; }
.sc-pieces--compta .sc-piece__action { grid-row: auto; background: var(--sc-vert-fond); color: var(--sc-vert); }
.sc-pieces--compta .est-du .sc-piece__action { background: var(--sc-ambre-fond); color: var(--sc-ambre); }
.sc-pieces--compta .sc-case { background: var(--sc-vert); box-shadow: none; color: #FFFFFF !important; }
.sc[data-sc-pret]:not([data-passe~="ventes"]) .sc-compta__ventes .sc-case, .sc[data-sc-pret]:not([data-passe~="achats"]) .sc-compta__achats .sc-case,
.sc[data-sc-pret]:not([data-passe~="police"]) .sc-compta__police .sc-case, .sc[data-sc-pret]:not([data-passe~="tva"]) .sc-compta__tva .sc-case,
.sc[data-sc-pret]:not([data-passe~="fec"]) .sc-compta__fec .sc-case { background: transparent; box-shadow: inset 0 0 0 1.5px #B8C1D1; color: transparent !important; }
.sc[data-sc-pret]:not([data-passe~="ventes"]) .sc-compta__ventes .sc-piece__action, .sc[data-sc-pret]:not([data-passe~="achats"]) .sc-compta__achats .sc-piece__action,
.sc[data-sc-pret]:not([data-passe~="police"]) .sc-compta__police .sc-piece__action, .sc[data-sc-pret]:not([data-passe~="tva"]) .sc-compta__tva .sc-piece__action,
.sc[data-sc-pret]:not([data-passe~="fec"]) .sc-compta__fec .sc-piece__action { opacity: 0; }
.sc-acces { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #EEF4FE; color: var(--sc-lien); font-size: 12.5px; transition: opacity 0.45s var(--sc-ease), transform 0.55s var(--sc-ease); }
.sc-acces b { color: var(--sc-lien); }
.sc[data-sc-pret]:not([data-passe~="acces"]) .sc-acces { opacity: 0; transform: translateY(6px); }

/* ── Administratif ──────────────────────────────────────────────────── */
.sc-registre { display: grid; margin: 0; padding: 0; list-style: none; }
.sc-reg { display: grid; grid-template-columns: 44px 62px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 9px 0; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-reg__num { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--sc-encre); }
.sc-reg__mvt { justify-self: start; padding: 2px 8px; border-radius: 6px; background: #F1F3F7; font-size: 12px; font-weight: 600; color: #3A4560; }
.sc-reg__veh { display: grid; gap: 1px; min-width: 0; }
.sc-reg__veh b, .sc-reg__veh small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-reg--nouveau { display: grid; transition: opacity 0.5s var(--sc-ease), transform 0.6s var(--sc-ease), background-color 1.2s var(--sc-ease); border-radius: 8px; }
.sc[data-sc-pret][data-passe~="inscrit"] .sc-reg--nouveau { background: #F3F7FE; }
.sc[data-sc-pret]:not([data-passe~="inscrit"]) .sc-reg--nouveau { opacity: 0; transform: translateY(-10px); }
.sc-reg__note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12.5px; color: var(--sc-doux); }
.sc-cerfa { padding: 18px; }
.sc-cerfa__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; box-shadow: inset 0 -1px 0 var(--sc-trait); }
.sc-cerfa__tete > span:first-child { display: grid; gap: 2px; }
.sc-cerfa__champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.sc-cerfa__champs > div { display: grid; gap: 4px; min-width: 0; }
.sc-cerfa__champs dt { font-size: 11.5px; color: var(--sc-doux); }
.sc-cerfa__champs dd { margin: 0; min-height: 34px; padding: 7px 10px; border-radius: 8px; background: var(--sc-fond); box-shadow: inset 0 -1.5px 0 #CBD3E0; color: #1F3E8C; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; clip-path: inset(0 0 0 0); transition: clip-path 0.5s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="c0"]) .sc-cerfa__c0 dd, .sc[data-sc-pret]:not([data-passe~="c1"]) .sc-cerfa__c1 dd, .sc[data-sc-pret]:not([data-passe~="c2"]) .sc-cerfa__c2 dd,
.sc[data-sc-pret]:not([data-passe~="c3"]) .sc-cerfa__c3 dd, .sc[data-sc-pret]:not([data-passe~="c4"]) .sc-cerfa__c4 dd, .sc[data-sc-pret]:not([data-passe~="c5"]) .sc-cerfa__c5 dd { clip-path: inset(0 100% 0 0); }
.sc-cerfa__pied { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--sc-doux); transition: opacity 0.4s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="pret"]) .sc-cerfa__pied { opacity: 0; }
@container (max-width: 379px) { .sc-cerfa__champs { grid-template-columns: minmax(0, 1fr); } }

/* La vente atomique : le geste, puis tout se coche ensemble. */
.sc-operation__geste { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 12.5px; }
.sc-operation > li { grid-template-columns: 18px minmax(0, 1fr); }
.sc-operation .sc-case { background: var(--sc-vert); box-shadow: none; color: #FFFFFF !important; transition: background-color 0.3s var(--sc-ease) calc(var(--i) * 60ms), box-shadow 0.3s var(--sc-ease), color 0.3s; }
.sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-operation .sc-case { background: transparent; box-shadow: inset 0 0 0 1.5px #B8C1D1; color: transparent !important; }
.sc-bascule--vendu > :first-child { visibility: hidden; opacity: 0; }
.sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-bascule--vendu > :first-child { visibility: visible; opacity: 1; }
.sc[data-sc-pret]:not([data-passe~="vendu"]) .sc-bascule--vendu > :last-child { visibility: hidden; opacity: 0; }
/* L'écriture figée : on tente de la modifier, elle refuse. */
.sc-ecriture__modifier { transition: transform 0.2s; }
.sc[data-sc-pret][data-passe~="essai"]:not([data-passe~="refus"]) .sc-ecriture__modifier { animation: sc-appui 0.5s var(--sc-ease); }
.sc[data-sc-pret][data-passe~="refus"] .sc-ecriture__modifier { animation: sc-refus 0.42s var(--sc-ease); opacity: 0.4; }
@keyframes sc-refus { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sc-ecriture__refus { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #F1F3F7; color: #3A4560; font-size: 12.5px; font-weight: 600; transition: opacity 0.4s var(--sc-ease), transform 0.5s var(--sc-ease); }
.sc[data-sc-pret]:not([data-passe~="refus"]) .sc-ecriture__refus { opacity: 0; transform: translateY(6px); }
.sc-taches-auto__note { margin: 0 0 6px; }

/* ── Métiers ────────────────────────────────────────────────────────── */
.sc-regime { margin: 0 0 8px; }
.sc[data-sc-pret]:not([data-passe~="registre"]) .sc-suivi__registre .sc-suivi__point,
.sc[data-sc-pret]:not([data-passe~="contrat"]) .sc-suivi__contrat .sc-suivi__point,
.sc[data-sc-pret]:not([data-passe~="vente"]) .sc-suivi__vente .sc-suivi__point,
.sc[data-sc-pret]:not([data-passe~="trouve"]) .sc-suivi__trouve .sc-suivi__point,
.sc[data-sc-pret]:not([data-passe~="realise"]) .sc-suivi__realise .sc-suivi__point { background: #FFFFFF; color: var(--sc-pale); box-shadow: inset 0 0 0 1.5px #CBD3E0; }
.sc-cycle--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc[data-sc-pret]:not([data-passe~="signe"]) .sc-cycle__signe > span, .sc[data-sc-pret]:not([data-passe~="envente"]) .sc-cycle__vente > span, .sc--depot-contrat .sc-cycle__vendu > span { background: #D5DCE7; }
.sc[data-sc-pret]:not([data-passe~="envente"]) .sc-cycle__signe::after, .sc--depot-contrat .sc-cycle__vente::after { background: #D5DCE7; }
.sc--depot-contrat .sc-cycle__vendu { color: var(--sc-doux); font-weight: 400; }
.sc--depot-contrat .sc-cycle__vente { color: var(--sc-encre); font-weight: 600; }
.sc-mandats { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-mandat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--sc-fond); }
.sc-mandat__type { font-size: 11.5px; font-weight: 600; color: var(--sc-lien); }
.sc-mandat--achat .sc-mandat__type { color: var(--sc-vert); }
.sc-mandat small { text-wrap: pretty; }
.sc-mandat__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 6px; font-size: 12px; color: var(--sc-doux); }
.sc-mandat__pied b { font-size: 13px; }
.sc-mandats__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; padding-top: 10px; box-shadow: inset 0 1px 0 var(--sc-trait); font-weight: 600; color: var(--sc-encre); }
.sc-mandats__total b { font-size: 17px; }
.sc-commission { display: inline-grid; margin: 4px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--sc-vert-fond); color: var(--sc-vert); font-weight: 600; }
.sc-commission > span { grid-area: 1 / 1; }
.sc[data-sc-pret]:not([data-passe~="realise"]) .sc-commission { background: #F1F3F7; color: #3A4560; }
.sc[data-sc-pret]:not([data-passe~="realise"]) .sc-commission .sc-avant { visibility: visible; opacity: 1; }
.sc[data-sc-pret]:not([data-passe~="realise"]) .sc-commission .sc-apres { visibility: hidden; opacity: 0; }

/* Les petits écrans des bénéfices : verdict et jauge sur navy. */
.sc-verdict-mini { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; color: #FFFFFF; font-size: 14px; }
.sc-verdict-mini b { color: #FFFFFF; font-size: 18px; }
.sc-mini .sc-verdict--go { background: rgba(95, 211, 154, 0.16); color: #5FD39A; }
.sc-mini .sc-jauge { margin: 10px 0 4px; }

/* ── La vitrine : des cartes d'écran posées autour du téléphone ─────── */
.sc-vitrine__carte { position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: 12px; width: 250px; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; box-shadow: var(--sc-ombre); animation: sc-vitrine 0.9s var(--sc-ease) both; animation-delay: calc(0.35s + var(--i) * 0.16s); }
@keyframes sc-vitrine { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.sc-vitrine__carte--1 { left: 3%; top: 12%; }
.sc-vitrine__carte--2 { left: 8%; top: 52%; }
.sc-vitrine__carte--3 { right: 3%; top: 18%; }
.sc-vitrine__carte--4 { right: 9%; top: 58%; }
.sc-vitrine__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #EEF4FE; color: var(--sc-lien); }
.sc-vitrine__ic--vert { background: var(--sc-vert-fond); color: var(--sc-vert); }
.sc-vitrine__ic .sc-ic { width: 18px; height: 18px; }
.sc-vitrine__txt { display: grid; gap: 1px; min-width: 0; }
.sc-vitrine__txt b { font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; }
.sc-vitrine__txt .sc-jauge { margin-top: 6px; height: 6px; }
@media (max-width: 1023px) { .sc-vitrine__carte { width: 220px; } .sc-vitrine__carte--1 { left: 0; } .sc-vitrine__carte--2 { left: 2%; } .sc-vitrine__carte--3 { right: 0; } .sc-vitrine__carte--4 { right: 2%; } }
@media (max-width: 767px) {
  .sc-vitrine__carte { position: relative; inset: auto; width: auto; padding: 12px; gap: 10px; }
  .sc-vitrine__carte--3, .sc-vitrine__carte--4 { display: none; }
  .sc-vitrine__ic { width: 32px; height: 32px; }
  .sc-vitrine__txt b { font-size: 15px; }
}

/* ══ L'APPLICATION MOBILE, EN HTML (scènes « tel-… », 27/10/2026) ══════════════════
   Le téléphone des pages de fonctionnalités : l'écran réel de l'application, écrit en
   HTML pour se lire à toutes les tailles (outils/pages/scenes-telephone.mjs). Matière V3
   de l'app (impra-app, src/theme/tokens.ts) : toile perle, cartes blanches au filet de
   6 %, encre navy qui décide, Schibsted Grotesk, Geist Mono pour surtitres et plaques. */
.sc--tel { display: grid; justify-items: center; }
.sct {
  --tw: 300px; --sct-encre: #0F172E; --sct-doux: #5E6A80; --sct-pale: #98A2B3; --sct-filet: rgba(15, 23, 46, 0.06); --sct-bord: #DCE3F0;
  --sct-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  position: relative; width: var(--tw); max-width: 100%; height: calc(var(--tw) * 2.04); padding: 8px; border-radius: 46px; background: #0B0F1A;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 3px #1B2131, 0 0 0 1px rgba(11, 13, 24, 0.08), 0 2px 4px rgba(11, 13, 24, 0.16), 0 30px 60px -26px rgba(11, 13, 24, 0.55), 0 70px 100px -60px rgba(29, 52, 99, 0.45);
}
@media (min-width: 1024px) { .sct { --tw: 318px; } }
@media (max-width: 767px) { .sct { --tw: min(320px, calc(100vw - 40px)); } }   /* au téléphone, tout l'espace utile : les noms tiennent */
.sct__ecran {
  position: relative; height: 100%; overflow: hidden; border-radius: 38px; background: #F5F7FB; isolation: isolate;
  font-family: "Schibsted Grotesk", "Inter", system-ui, sans-serif; font-size: 13px; line-height: 1.35; color: var(--sct-encre);
  /* Pas les réglages d'Inter des scènes du bureau : en Schibsted Grotesk, les chiffres tabulaires
     élargissent aussi la virgule et le point (« Yanis , »). */
  font-feature-settings: normal; font-variant-numeric: normal; -webkit-font-smoothing: antialiased;
}
/* Les blocs de texte des cartes : une colonne bornée, jamais élargie par un texte insécable. */
.sct :is(.sct-af__id, .sct-vh__corps, .sct-tache__txt, .sct-pr__txt, .sct-frise__txt, .sct-af__montants) { grid-template-columns: minmax(0, 1fr); }
.sct__ecran::after { content: ""; position: absolute; z-index: 6; left: 50%; bottom: 6px; width: 104px; height: 4px; border-radius: 4px; background: var(--sct-encre); transform: translateX(-50%); }
.sct__ilot { position: absolute; z-index: 7; left: 50%; top: 9px; width: 84px; height: 24px; border-radius: 999px; background: #0B0F1A; transform: translateX(-50%); }
.sct__statut {
  position: absolute; z-index: 5; inset: 0 0 auto; height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 30px;
  background: linear-gradient(#F5F7FB 72%, rgba(245, 247, 251, 0)); font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
}
.sct__icones { display: inline-flex; align-items: center; gap: 4px; }
.sct__icones svg { display: block; width: auto; height: 10px; }
.sct__icones svg:last-child { height: 11px; }
.sct__app { position: absolute; inset: 42px 0 0; padding: 2px 14px 84px; overflow: hidden; }
.sct-ic { display: block; flex: none; width: 16px; height: 16px; }
.sct p { margin: 0; }

/* La barre d'onglets et le [+] central (impra-tab-bar). */
.sct-onglets { position: absolute; z-index: 4; inset: auto 0 0; height: 72px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; padding: 8px 4px 0; background: rgba(255, 255, 255, 0.94); box-shadow: 0 -1px 0 var(--sct-filet); }
.sct-onglet { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; line-height: 13px; font-weight: 500; color: var(--sct-doux); }
.sct-onglet .sct-ic { width: 20px; height: 20px; box-sizing: content-box; padding: 3px 12px; border-radius: 999px; }
.sct-onglet--actif { color: var(--sct-encre); font-weight: 600; }
.sct-onglet--actif .sct-ic { background: #E9EDF5; }
.sct-fab { justify-self: center; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -12px; border-radius: 50%; background: var(--sct-encre); color: #F4F7FA; box-shadow: 0 10px 20px -8px rgba(15, 23, 46, 0.6); }
.sct-fab .sct-ic { width: 22px; height: 22px; stroke-width: 2; }

/* En-tête d'écran, surtitre, titre, recherche. */
.sct-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; margin: 0 0 4px; }
.sct-tete__droite { display: inline-flex; align-items: center; gap: 8px; }
.sct-retour { display: inline-flex; align-items: center; gap: 1px; font-size: 14.5px; font-weight: 500; }
.sct-retour .sct-ic { width: 18px; height: 18px; margin-left: -4px; }
.sct-tete__titre { margin: 0 auto 0 14px; font-size: 15px; font-weight: 600; }
.sct-rond { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 1px var(--sct-filet), 0 1px 2px rgba(15, 23, 46, 0.05); color: var(--sct-encre); }
.sct-rond .sct-ic { width: 17px; height: 17px; }
.sct-surtitre, .sct-groupe, .sct-date, .sct-leviers > span, .sct-jour__titre, .sct-bande__surtitre, .sct-priorite__surtitre { font-family: var(--sct-mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.sct-surtitre { font-size: 11px; line-height: 15px; color: var(--sct-doux); text-wrap: balance; }
.sct-titre { margin: 2px 0 12px !important; font-size: 27px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.sct-recherche { display: flex; gap: 8px; margin: 0 0 10px; }
.sct-champ { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 13px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--sct-filet); color: #667085; white-space: nowrap; overflow: hidden; }
.sct-champ .sct-ic { color: var(--sct-doux); }
.sct-recherche .sct-rond { width: 40px; height: 40px; }

/* Les vues : de vrais boutons, comme au bureau ; la ligne défile. */
.sct-puces { display: flex; gap: 6px; margin: 0 -14px 12px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.sct-puces::-webkit-scrollbar { display: none; }
.sct-puces { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.sct-puce {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--sct-bord);
  color: var(--sct-encre); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.25s var(--sc-ease), color 0.25s var(--sc-ease);
}
.sct-puce span { font-size: 11px; color: var(--sct-doux); transition: color 0.25s var(--sc-ease); }
.sct-puce[aria-pressed="true"] { background: var(--sct-encre); box-shadow: none; color: #F4F7FA; }
.sct-puce[aria-pressed="true"] span { color: rgba(244, 247, 250, 0.72); }
.sct-puce:focus-visible, .sct-etape:focus-visible, .sct-jour:focus-visible { outline: 2px solid var(--sc-bleu); outline-offset: 2px; }

/* Cartes et listes. */
.sct-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }   /* une colonne qui ne s'élargit jamais au texte insécable */
.sct-carte { border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15, 23, 46, 0.05), 0 1px 2px rgba(15, 23, 46, 0.04), 0 10px 22px -14px rgba(15, 23, 46, 0.16); }
.sct-plaque { display: inline-flex; align-items: stretch; flex: none; height: 18px; overflow: hidden; padding-right: 5px; border-radius: 4px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #C4CDDC; font-family: var(--sct-mono); font-size: 10.5px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; color: var(--sct-encre); white-space: nowrap; vertical-align: middle; }
.sct-plaque > span { display: grid; place-items: end center; width: 9px; margin-right: 5px; padding-bottom: 1px; background: #124C9C; color: #FFFFFF; font-family: "Inter", sans-serif; font-size: 6px; line-height: 1; letter-spacing: 0; }

/* Le stock : photo, nom, pièce qui manque, prix, plaque, âge. */
.sct-vh { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; }
.sct-vh .sc-photo { width: 86px; height: 68px; aspect-ratio: auto; border-radius: 12px; background: #EEF0F3; }
.sct-sans { display: grid; place-items: center; align-content: center; gap: 2px; color: #A3ACBC; }
.sct-sans svg { width: 66%; height: auto; }
.sct-sans small { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; line-height: 12px; color: var(--sct-doux); }
.sct-sans small .sct-ic { width: 11px; height: 11px; }
.sct-vh__corps { display: grid; gap: 1px; min-width: 0; }
.sct-vh__nom { overflow: hidden; font-size: 14.5px; line-height: 19px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sct-vh__alerte, .sct-vh__etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: #B42536; }
.sct-vh__alerte::before { content: ""; flex: none; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }
.sct-vh__alerte--ambre { color: #8F5A0B; }
.sct-vh__etat { color: var(--sct-doux); font-weight: 400; }
.sct-vh__sous { font-size: 12px; line-height: 16px; color: var(--sct-doux); white-space: nowrap; }
.sct-vh__etat::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sct-pale); }
.sct-vh__prix { margin-top: 3px; font-size: 15.5px; line-height: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sct-vh__pied { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.sct-age { font-size: 12px; color: var(--sct-doux); white-space: nowrap; }
.sct-age--hors { color: #B42536; font-weight: 600; }

/* Le sourcing : liste ou carte, les étapes, les affaires. */
.sct-segment { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 10px; padding: 3px; border-radius: 12px; background: #E9EDF5; }
.sct-segment > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--sct-doux); }
.sct-segment > span .sct-ic { width: 14px; height: 14px; }
.sct-segment > .sct-segment--actif { background: #FFFFFF; color: var(--sct-encre); box-shadow: 0 1px 2px rgba(15, 23, 46, 0.08); }
.sct-segment--droite { width: 132px; margin-left: auto; }
.sct-segment--droite > span { height: 28px; }
.sct-etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0 0 10px; padding: 4px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--sct-filet); }
.sct-etape { display: grid; justify-items: center; padding: 6px 2px 5px; border: 0; border-radius: 12px; background: none; color: var(--sct-encre); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.25s var(--sc-ease), box-shadow 0.25s var(--sc-ease); }
.sct-etape::before { content: ""; width: 6px; height: 6px; margin-bottom: 3px; border-radius: 50%; background: currentColor; }
.sct-etape--repere::before { color: #1F74E7; } .sct-etape--evaluer::before { color: #C77D12; } .sct-etape--go::before { color: #1E9E61; } .sct-etape--ecarte::before { color: var(--sct-pale); }
.sct-etape b { font-size: 18px; line-height: 22px; font-weight: 600; }
.sct-etape span { font-size: 11px; line-height: 14px; color: var(--sct-doux); white-space: nowrap; }
.sct-etape[aria-pressed="true"] { background: #F5F9FF; box-shadow: inset 0 0 0 1px #DCEBFF; }
.sct-etape[aria-pressed="true"] b { color: #155FC4; }
.sct-af { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 12px 0; }   /* sans colonne bornée, le lieu insécable élargissait la carte */
.sct-af__tete { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; }
.sct-affaire__img { display: grid; place-items: center; height: 46px; border-radius: 12px; background: #EEF0F3; color: #8E99AC; }
.sct-affaire__img svg { width: 82%; height: auto; }
.sct-af__id { display: grid; gap: 1px; min-width: 0; }
.sct-af__ligne { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sct-af__ligne b { overflow: hidden; font-size: 13.5px; line-height: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sct-af__meta, .sct-af__lieu { overflow: hidden; font-size: 12px; line-height: 16px; color: var(--sct-doux); text-overflow: ellipsis; white-space: nowrap; }
.sct-af__lieu { display: flex; align-items: center; gap: 3px; }
.sct-af__lieu .sct-ic { width: 12px; height: 12px; color: #155FC4; }
.sct-af__pied { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 0 10px; box-shadow: inset 0 1px 0 var(--sct-filet); }
.sct-af__montants { display: grid; min-width: 0; }
.sct-af__prix { font-size: 15px; line-height: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.sct-af__marge { font-size: 12px; line-height: 15px; color: #157A4A; white-space: nowrap; }
.sct-af__marge b { font-weight: 600; }
.sct-bouton { display: inline-flex; align-items: center; gap: 4px; height: 30px; margin-left: auto; padding: 0 13px; border-radius: 999px; background: var(--sct-encre); color: #F4F7FA; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sct-bouton .sct-ic { width: 14px; height: 14px; }
.sct-tete .sct-bouton { margin-left: 0; height: 34px; }
.sct-bouton--contour { background: #FFFFFF; color: var(--sct-encre); box-shadow: inset 0 0 0 1px var(--sct-bord); }
.sct-bouton--clair { gap: 8px; padding: 0 3px 0 13px; background: #FFFFFF; color: var(--sct-encre); }
.sct-bouton__rond { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sct-encre); color: #FFFFFF; }
.sct-bouton__rond .sct-ic { width: 12px; height: 12px; }

/* Simuler un achat : la bande de verdict d'encre, les leviers. */
.sct-bande, .sct-priorite { border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, #1C2A44 0%, #0F172E 55%, #0C1326 100%); color: #F4F7FA; box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.06), 0 24px 48px -24px rgba(15, 23, 46, 0.45); }
.sct-bande { margin: 2px 0 12px; padding: 14px 14px 12px; }
.sct-bande__surtitre { font-size: 10px; line-height: 14px; letter-spacing: 0.1em; color: rgba(244, 247, 250, 0.56); }
.sct-bande__mot { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px !important; font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.sct-bande__mot .sc-apres { display: inline-flex; align-items: center; gap: 6px; color: #5FD39A; }
.sct-bande__mot .sct-ic { width: 22px; height: 22px; stroke-width: 2.4; }
.sct-bande__phrase { font-size: 12px; line-height: 16px; color: rgba(244, 247, 250, 0.72); }
.sct-bande__chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 0; padding-top: 9px; box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.1); }
.sct-bande__chiffres > div + div { padding-left: 9px; box-shadow: inset 1px 0 0 rgba(244, 247, 250, 0.1); }
.sct-bande__chiffres dt { font-size: 11px; line-height: 14px; color: rgba(244, 247, 250, 0.56); }
.sct-bande__chiffres dd { margin: 2px 0 0; font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.sct-vehicule { margin: 0 0 10px !important; padding: 10px 12px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--sct-filet); font-size: 13px; }
.sct-leviers { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 0 6px !important; }
.sct-leviers > span { font-size: 10.5px; color: var(--sct-doux); }
.sct-leviers small { font-size: 11px; color: var(--sct-doux); }
.sct-levier { margin: 0 0 8px; }
.sct-levier__nom { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; }
.sct-champ-chiffre { display: flex; align-items: center; height: 42px; padding: 0 6px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--sct-bord); }
.sct-champ-chiffre b { flex: 1; padding-right: 10px; font-size: 17px; font-weight: 600; text-align: right; }
.sct-pm { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F0F3F8; color: #475467; font-size: 17px; line-height: 1; }
.sct-frais { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--sct-filet); }
.sct-frais > span { display: grid; }
.sct-frais small { font-size: 11.5px; color: var(--sct-doux); }
/* Le verdict se calcule devant vous : « en attente », la saisie, le calcul, puis GO. */
.sc--tel-calcul .sc-avant, .sc--tel-calcul .sc-apres { visibility: visible; opacity: 1; transition: none; }
.sc--tel-calcul .sc-avant { display: none; }
.sc--tel-calcul[data-sc-pret]:not([data-passe~="saisie"]) .sct-levier .sc-avant,
.sc--tel-calcul[data-sc-pret]:not([data-passe~="verdict"]) .sct-bande .sc-avant { display: inline; }
.sc--tel-calcul[data-sc-pret]:not([data-passe~="saisie"]) .sct-levier .sc-apres,
.sc--tel-calcul[data-sc-pret]:not([data-passe~="verdict"]) .sct-bande .sc-apres { display: none; }
.sc--tel-calcul[data-sc-pret]:not([data-passe~="saisie"]) .sct-levier b { color: var(--sct-pale); }
.sc--tel-calcul[data-sc-pret][data-passe~="saisie"] .sct-levier .sc-apres { animation: sc-maj 0.9s var(--sc-ease); }
.sc--tel-calcul[data-sc-pret][data-passe~="calcul"]:not([data-passe~="verdict"]) .sct-bande { animation: sct-calcul 1s ease-in-out infinite; }
.sc--tel-calcul[data-sc-pret][data-passe~="verdict"] .sct-bande .sc-apres { animation: sct-verdict 0.7s var(--sc-ease) both; }
@keyframes sct-calcul { 50% { box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.06), 0 0 0 4px rgba(77, 148, 245, 0.18), 0 24px 48px -24px rgba(15, 23, 46, 0.45); } }
@keyframes sct-verdict { from { opacity: 0; transform: translateY(6px); } }

/* À faire : la date, les groupes par urgence, la tâche et sa flèche. */
.sct-groupe { display: flex; align-items: center; gap: 5px; margin: 12px 0 6px !important; font-size: 10.5px; line-height: 14px; color: #475467; }
.sct-groupe span { color: var(--sct-pale); }
.sct-groupe .sct-ic { width: 12px; height: 12px; }
.sct-groupe--retard { color: #B42536; }
.sct-groupe em { margin-left: auto; font-family: "Schibsted Grotesk", sans-serif; font-size: 11px; font-style: normal; letter-spacing: 0; text-transform: none; color: #B42536; }
.sct-puces + .sct-bloc .sct-groupe { margin-top: 2px !important; }
.sct-taches { margin: 0; padding: 0; overflow: hidden; list-style: none; }
.sct-tache { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 10px; }
.sct-tache + .sct-tache { box-shadow: inset 0 1px 0 var(--sct-filet); }
.sct-tache__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #EAF2FF; color: #155FC4; }
.sct-tache--retard .sct-tache__ic { background: #FFF0F2; color: #B42536; }
.sct-tache__txt { display: grid; gap: 2px; min-width: 0; }
.sct-tache__txt b { font-size: 13.5px; line-height: 17px; font-weight: 600; text-wrap: pretty; }
.sct-tache__txt small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; line-height: 15px; color: var(--sct-doux); }
.sct-tache__txt small .sct-ic { width: 11px; height: 11px; }
.sct-tache--retard .sct-tache__txt small { color: #B42536; }
.sct-fleche { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sct-bord); }
.sct-fleche .sct-ic { width: 14px; height: 14px; }

/* Prospects : les compteurs, l'avatar, l'appel d'un geste. */
.sct-pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px !important; }
.sct-pastilles > span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #E2E7F0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.sct-pastilles > span .sct-ic { width: 12px; height: 12px; color: var(--sct-doux); }
.sct-pastilles > .sct-pastilles--retard, .sct-pastilles > .sct-pastilles--bloque { color: #B42536; }
.sct-pastilles--retard::before, .sct-pastilles--bloque::before { content: ""; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }
.sct-pastilles > .sct-pastilles--encre { background: var(--sct-encre); box-shadow: none; color: #F4F7FA; }
.sct-pr { display: grid; grid-template-columns: 38px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 10px 12px; }
.sct-pr__av { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #F0F3F8; font-size: 13px; font-weight: 600; }
.sct-pr__av--point::after { content: ""; position: absolute; top: 0; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: #DE3D4C; box-shadow: 0 0 0 2px #FFFFFF; }
.sct-pr__txt { display: grid; min-width: 0; }
.sct-pr__txt b { font-size: 14px; line-height: 18px; font-weight: 600; }
.sct-pr__txt small { overflow: hidden; font-size: 11.5px; line-height: 15px; color: var(--sct-doux); text-overflow: ellipsis; white-space: nowrap; }
.sct-pr__txt .sct-pr__quand { color: var(--sct-encre); }

/* Calendrier : la semaine, la journée sur une frise. */
.sct-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin: 0 0 12px; }
.sct-jour { display: grid; justify-items: center; gap: 1px; padding: 6px 0; border: 0; border-radius: 14px; background: none; color: var(--sct-encre); font: inherit; -webkit-tap-highlight-color: transparent; transition: background-color 0.25s var(--sc-ease), color 0.25s var(--sc-ease); }
button.sct-jour { cursor: pointer; }
.sct-jour small { font-family: var(--sct-mono); font-size: 9.5px; line-height: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sct-doux); }
.sct-jour b { font-size: 17px; line-height: 21px; font-weight: 600; }
.sct-jour[aria-pressed="true"] { background: var(--sct-encre); color: #F4F7FA; }
.sct-jour[aria-pressed="true"] small { color: rgba(244, 247, 250, 0.7); }
.sct-jour__titre { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px !important; font-size: 10px; line-height: 14px; letter-spacing: 0.06em; color: #155FC4; white-space: nowrap; }
.sct-jour__titre span { color: var(--sct-doux); }
.sct-frise { margin: 0; padding: 4px 12px; list-style: none; border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15, 23, 46, 0.05), 0 10px 22px -14px rgba(15, 23, 46, 0.16); }
.sct-frise li { display: grid; grid-template-columns: 34px 26px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 0; }
.sct-frise li + li { box-shadow: inset 0 1px 0 var(--sct-filet); }
.sct-frise__h { padding-top: 5px; font-family: var(--sct-mono); font-size: 11px; line-height: 14px; color: #475467; }
.sct-frise__pt { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sct-bord); color: var(--sct-doux); }
.sct-frise__pt .sct-ic { width: 13px; height: 13px; }
.sct-frise__txt { display: grid; min-width: 0; }
.sct-frise__txt b { font-size: 13px; line-height: 17px; font-weight: 600; text-wrap: pretty; }
.sct-frise__txt small { font-size: 11.5px; line-height: 15px; color: var(--sct-doux); }

/* L'accueil : la journée, la plaque, la priorité n° 1. */
.sct-date { font-size: 11px; color: var(--sct-doux); }
.sct-rond--cloche { position: relative; }
.sct-rond--cloche i { position: absolute; top: -4px; right: -5px; min-width: 18px; height: 16px; padding: 0 3px; border-radius: 999px; background: #DE3D4C; color: #FFFFFF; font-size: 9px; line-height: 16px; font-style: normal; font-weight: 700; text-align: center; }
.sct-salut { display: grid; margin: 2px 0 10px !important; font-size: 23px; line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
.sct-salut span { color: var(--sct-doux); }
.sct-plaque-champ { display: flex; gap: 8px; margin: 0 0 4px; }
.sct-plaque-champ .sct-champ { height: 48px; border-radius: 16px; color: var(--sct-encre); }
.sct-plaque-champ .sct-champ > span { display: grid; line-height: 1.15; }
.sct-plaque-champ b { font-size: 13.5px; font-weight: 600; }
.sct-plaque-champ small { font-family: var(--sct-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sct-pale); }
.sct-plaque-champ .sct-rond { width: 48px; height: 48px; flex: none; }
.sct-priorite { margin: 0 0 10px; padding: 14px; }
.sct-priorite__surtitre { display: flex; align-items: center; gap: 5px; font-size: 10px; line-height: 14px; letter-spacing: 0.1em; color: rgba(244, 247, 250, 0.6); }
.sct-priorite__surtitre .sct-ic { width: 12px; height: 12px; }
.sct-priorite__titre { margin: 6px 0 2px !important; font-size: 18px; line-height: 1.18; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.sct-priorite__texte { font-size: 12px; color: rgba(244, 247, 250, 0.72); }
.sct-priorite__pied { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 0 !important; padding-top: 10px; box-shadow: inset 0 1px 0 rgba(244, 247, 250, 0.1); font-size: 12px; }
.sct-priorite__pied > span:first-child::before { content: "◆ "; font-size: 8px; vertical-align: 2px; }
.sct-priorite .sct-bouton { margin-left: 0; }

/* Le mouvement : la liste arrive, une vue en remplace une autre, sans rien déplacer autour. */
.sc--tel [data-sc-tags][data-cache] { display: none !important; }
.sc--tel[data-sc-pret]:not([data-passe~="arrivee"]) [data-sc-tags] { opacity: 0; }
.sc--tel[data-passe~="arrivee"] [data-sc-tags]:not([data-cache]) { animation: sct-entree 0.55s var(--sc-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes sct-entree { from { opacity: 0; transform: translateY(10px); } }
.sc--tel-accueil[data-sc-pret]:not([data-passe~="priorite"]) .sct-priorite { opacity: 0; transform: translateY(14px) scale(0.98); }
.sc--tel-accueil .sct-priorite { transition: opacity 0.5s var(--sc-ease), transform 0.7s var(--sc-ease); }

/* ── Mouvement réduit : aucun trajet, l'état seul ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sc, .sc *, .sc *::before, .sc *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .p-benefice:not(.est-vu) .sc-barres__b, .js .p-benefice:not(.est-vu) .sc-mini--marge .sc-barre-marge span { transform: none; }
}
