/* Kleared : ce qui change d'une maquette à l'autre (le reste est dans style.css). */

/* Le mot clé du titre en lime (sur l'aplat lime de « perte », il reste noir). */
.titre em { font-style: normal; color: var(--accent); }
.hero-perte .titre em { color: inherit; }

/* Maquette « declaration » : tout au centre, le champ de points autour. */
.hero-centre { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto 1fr; justify-items: center; text-align: center; padding-top: 96px; }
.hero-centre .titre { grid-column: 1; grid-row: 2; }
.hero-centre .hero-phrase { grid-column: 1; grid-row: 3; align-self: start; margin-top: 32px; padding: 0; max-width: 46ch; font-size: var(--step-lead); line-height: 1.45; }
.hero-centre .hero-action { grid-column: 1; grid-row: 4; justify-self: center; margin-top: 36px; }

/* Maquette « rapport » : le statut du compte, en vrai fragment d'interface, passe de suspendu à rétabli. */
.v-rapport .hero-rapport { grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto; column-gap: 24px; padding-top: 120px; }
.hero-rapport .hero-texte { grid-column: 1 / 7; grid-row: 2; align-self: end; }
.hero-rapport .titre { font-size: clamp(3rem, 0.8rem + 5vw, 5.5rem); }
.hero-rapport .hero-phrase { max-width: 38ch; margin-top: 28px; padding: 0; }
.hero-rapport .hero-action { margin-top: 32px; }
.statut { grid-column: 8 / 13; grid-row: 1 / 3; align-self: center; margin: 0; padding: 28px; border-radius: 24px; background: var(--surface); font: 500 1rem/1.35 var(--titre); }
.statut-tete { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.875rem; }
.statut-tete span:first-child { color: var(--ink); font-weight: 700; }
.statut-etat { display: grid; margin: 36px 0 28px; font: 700 clamp(2rem, 1.2rem + 2vw, 3rem)/1 var(--titre); letter-spacing: -0.03em; }
.statut-etat > span, .statut-lignes dd > span { grid-area: 1 / 1; transition: opacity 420ms var(--courbe), transform 420ms var(--courbe); }
.statut-lignes dd { display: grid; margin: 0; text-align: right; }
.statut .etat-apres { opacity: 0; transform: translateY(8px); }
.statut-etat .etat-apres { color: var(--accent); }
.statut.retabli .etat-avant { opacity: 0; transform: translateY(-8px); }
.statut.retabli .etat-apres { opacity: 1; transform: none; }
.statut-lignes { margin: 0; display: grid; gap: 4px; }
.statut-lignes div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); }
.statut-lignes dt { color: var(--muted); }
.statut-frise { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 28px 0 0; padding: 0; font-size: 0.8125rem; color: var(--muted); }
.statut-frise li { padding-top: 14px; position: relative; }
.statut-frise li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--surface-2); transition: background-color 360ms var(--courbe); }
.statut-frise li.fait { color: var(--ink); }
.statut-frise li.fait::before { background: var(--accent); }

/* Sur l'aplat lime, les points sont noirs. */
.hero-perte .champ { --allume: #0b0b0b; --eteint: #93c21f; }

/* Maquette « perte » : premier écran en aplat lime, le marchand calcule ce que lui coûte chaque jour bloqué. */
.v-perte .barre { color: var(--accent-ink); }
.v-perte .barre .liens a, .v-perte .barre .vers-audit { color: var(--accent-ink); }
.v-perte .barre .liens a, .v-perte .menu summary { opacity: 0.72; color: var(--accent-ink); }
.v-perte .menu[open] summary, .v-perte .menu summary:hover { opacity: 1; background: rgba(11, 11, 11, 0.08); }
.v-perte .barre .liens a:hover { opacity: 1; }
.v-perte .hero-perte { background: var(--accent); color: var(--accent-ink); grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto auto; column-gap: 24px; padding-top: 120px; }
.hero-perte .titre { grid-column: 1 / -1; grid-row: 1; align-self: end; font-size: clamp(3.25rem, 0.6rem + 8vw, 8.5rem); }
.hero-perte .hero-phrase { grid-column: 1 / 5; grid-row: 2; align-self: start; margin-top: 40px; color: var(--accent-ink); opacity: 0.8; max-width: 34ch; }
.calcul { grid-column: 6 / 13; grid-row: 2; margin-top: 40px; display: grid; gap: 12px; }
.calcul label { font: 500 1rem/1.3 var(--titre); }
.calcul-champ { display: flex; align-items: baseline; gap: 14px; }
.calcul input { width: 6.5ch; min-height: 72px; padding: 6px 20px; border: 0; border-radius: 20px; background: rgba(11, 11, 11, 0.09);
  font: 700 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--titre); color: var(--accent-ink); letter-spacing: -0.02em; -moz-appearance: textfield; }
.calcul input::-webkit-outer-spin-button, .calcul input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calcul input:focus { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.calcul-champ span { font: 500 1.125rem/1 var(--titre); }
.calcul-resultat { font: 500 var(--step-lead)/1.3 var(--titre); letter-spacing: -0.01em; max-width: 30ch; }
.calcul-resultat b { font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-perte .hero-action { grid-column: 6 / 13; grid-row: 3; margin-top: 28px; background: var(--accent-ink); color: var(--accent); }
.hero-perte .hero-action:hover { background: #262626; }
.v-perte .tri { background: var(--papier); }

@media (prefers-reduced-motion: reduce) {
  .statut-etat > span, .statut-lignes dd > span, .statut-frise li::before { transition: none; }
}

@media (max-width: 900px) {
  .hero-centre .hero-phrase { font-size: 1.0625rem; }
  .v-rapport .hero-rapport, .v-perte .hero-perte { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 96px; row-gap: 0; }
  .hero-rapport .hero-texte, .statut { grid-column: 1; grid-row: auto; }
  .hero-rapport .titre { font-size: 11.5vw; }
  .statut { margin-top: 40px; padding: 22px 18px; }
  .statut-tete { flex-direction: column; gap: 2px; }
  .hero-perte .titre, .hero-perte .hero-phrase, .calcul, .hero-perte .hero-action { grid-column: 1; grid-row: auto; }
  .hero-perte .titre { font-size: 11.5vw; margin-top: 18vh; }
  .hero-perte .hero-phrase { margin-top: 24px; }
  .calcul { margin-top: 32px; }
  .hero-perte .hero-action { width: 100%; }
}
