/* ============================================================================
   Le récit : la journée d'un véhicule, puis la soustraction.
   HTML : partials/vitrine_journee.php et partials/vitrine_rentabilite.php
   ========================================================================== */

/* ---- Une journée --------------------------------------------------------- */

.jrn { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--lf-lin, #f6f5fa); }

.jrn__liste {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0;
  max-width: 38rem;
  position: relative;
}

/* Le trait qui relie les moments : la ligne GPS du fil conducteur, appliquée
   à une journée. Il part du premier point et s'arrête au dernier. */
.jrn__liste::before {
  content: '';
  position: absolute;
  left: 5.6rem;
  top: .9rem;
  bottom: 2.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--lf-magenta, #a5195b), rgba(165, 25, 91, .18));
}

.jrn__e {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem 1.6rem 1fr;
  align-items: start;
  gap: .6rem;
  padding: .7rem 0;
  animation: jrn-arrive .5s cubic-bezier(.2, .7, .3, 1) backwards;
  animation-delay: calc(var(--rang) * .12s);
}

@keyframes jrn-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.jrn__h {
  padding-top: .1rem;
  font-size: .92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lf-ardoise, #55516e);
  text-align: right;
}

.jrn__pt {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: .35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lf-brume, #8a86a3);
}

/* Les deux moments où de l'argent rentre portent la couleur de marque : ce
   sont eux qu'on doit repérer sans lire. */
.jrn__e--argent .jrn__pt { border-color: var(--lf-magenta, #a5195b); background: var(--lf-magenta, #a5195b); }
.jrn__e--fin    .jrn__pt { border-color: var(--lf-indigo, #2e2482); background: var(--lf-indigo, #2e2482); }

.jrn__c { display: flex; flex-direction: column; gap: .1rem; }
.jrn__c strong { font-size: 1rem; font-weight: 600; color: var(--lf-encre, #171529); }
.jrn__c small  { font-size: .84rem; color: var(--lf-ardoise, #55516e); }

.jrn__e--argent .jrn__c strong { color: var(--lf-magenta-sombre, #7d1244); }

.jrn__chute {
  max-width: 38rem;
  margin: clamp(1.5rem, 4vw, 2.2rem) auto 0;
  padding-left: 6.6rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--lf-encre, #171529);
}
.jrn__chute strong { color: var(--lf-magenta, #a5195b); font-weight: 800; }

@media (max-width: 560px) {
  .jrn__liste::before { left: 3.9rem; }
  .jrn__e { grid-template-columns: 3.2rem 1.4rem 1fr; }
  .jrn__h { font-size: .82rem; }
  .jrn__chute { padding-left: 0; text-align: center; }
}

/* ---- La soustraction ----------------------------------------------------- */

.rnt {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--lf-indigo-nuit, #14103c);
  color: #fff;
}

.rnt .vit__h2--clair span { display: block; color: var(--lf-magenta-vif, #c41f6d); }

.rnt__calcul {
  max-width: 34rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}

.rnt__veh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.rnt__plaque  { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.rnt__periode { font-size: .78rem; color: rgba(255, 255, 255, .6); }

.rnt__lignes { list-style: none; margin: 0; padding: 0; }

.rnt__l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
  animation: jrn-arrive .45s cubic-bezier(.2, .7, .3, 1) backwards;
  animation-delay: calc(var(--rang) * .14s);
}

.rnt__l strong {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}

.rnt__l--plus strong { color: #4ade80; }

.rnt__net {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .92rem;
  color: rgba(255, 255, 255, .8);
}

.rnt__net strong {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lf-magenta-vif, #c41f6d);
  font-variant-numeric: tabular-nums;
}

.rnt__phrase { margin: 1.1rem 0 0; font-size: .95rem; color: rgba(255, 255, 255, .85); }

.rnt__note {
  max-width: 40rem;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  font-size: .8rem;
  line-height: 1.65;
  text-align: center;
  color: rgba(255, 255, 255, .58);
}

@media (prefers-reduced-motion: reduce) {
  .jrn__e, .rnt__l { animation: none; }
}
