/* HERO · centré : étiquette, titre, phrase, un bouton, trois points cochés ; le produit en grand en dessous */
.hero { text-align: center; padding: 84px 16px 0; overflow: hidden; }
.hero .tag { margin-bottom: 18px; }
.hero__sub { margin: 18px auto 26px; max-width: 34rem; color: var(--soft); font-size: 17px; }
/* icônes Phosphor (phosphoricons.com, licence MIT) : coche et triangle d'alerte des statuts */

/* le produit : des documents traités par nos agents, superposés ; mêmes réglages que la facture d'Acctual */
.stack { position: relative; width: min(760px, 92vw); height: 430px; margin: 72px auto 0; }
.doc { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(21, 20, 27, .25); }
.doc--back1 { width: 62%; height: 300px; left: -6%; top: 64px; transform: rotate(-4deg); z-index: 1; }
.doc--back2 { width: 58%; height: 320px; right: -16%; top: 28px; transform: rotate(5deg); z-index: 1; }
.doc--front { left: 6%; right: 6%; top: 0; z-index: 2; padding-bottom: 8px; }
.lab { font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #999; }
.doc__head { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; }
.doc__num { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.doc__cols { display: grid; grid-template-columns: 1fr 1fr; text-align: left; border-bottom: 1px solid var(--line); }
.doc__cols > div { padding: 18px 24px; }
.doc__cols > div + div { border-left: 1px solid var(--line); }
.who { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.who b { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: 0; color: #0F0F0F; }
.who small { color: #666; font-size: 14px; }
.dot--bleu { background: var(--bleu); }
.dot--violet { background: var(--violet); }
.dot { display: block; width: 26px; height: 26px; border-radius: 50%; margin-top: 10px; }
.rows { padding: 6px 24px 0; text-align: left; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.st { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.st--warn { color: #9C6B05; }
.st--warn::before { width: 13px; height: 13px; background: var(--warn); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72M120 104a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0Zm8 88a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='black' d='M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72M120 104a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0Zm8 88a12 12 0 1 1 12-12a12 12 0 0 1-12 12'/%3E%3C/svg%3E"); }
.ghost { padding: 18px 24px; text-align: left; }
.ghost .lab + p { font-size: 14px; font-weight: 600; margin-top: 2px; }
/* les documents de fond : leur contenu est calé sur le bord qui dépasse, avec quelques lignes grises comme du texte */
.doc--back2 .ghost { text-align: right; }
.ghost__lines { margin-top: 18px; display: grid; gap: 10px; }
.ghost__lines i { display: block; height: 7px; border-radius: 4px; background: #ECEDF2; width: 70%; }
.ghost__lines i:nth-child(2) { width: 52%; }
.ghost__lines i:nth-child(3) { width: 64%; }
.ghost__lines i:nth-child(4) { width: 40%; }
.doc--back2 .ghost__lines i { margin-left: auto; }

@media (max-width: 760px) {
  /* même composition que sur ordinateur, réduite et centrée : l'ordinateur en haut à droite, le trombone sur le haut
     de la facture, les deux documents de fond qui dépassent au-dessus pour qu'on lise leur titre */
  .hero { padding: 76px 16px 0; }
  .hero__sub { margin: 16px auto 26px; font-size: 16px; }
  .hero .pill--lg { display: flex; width: 100%; }
  .stack { width: 100%; height: 520px; margin: 40px 0 0; }
  .doc--front { left: 4%; right: 4%; top: 64px; width: auto; }
  /* les documents de fond restent lisibles mais en retrait : plus petits, gris clair, ils dépassent à peine */
  .doc--back1 { display: block; width: 60%; height: 260px; left: 1%; top: 22px; transform: rotate(-3deg); }
  .doc--back2 { display: block; width: 60%; height: 260px; right: 1%; left: auto; top: 18px; transform: rotate(3deg); }
  .ghost { padding: 9px 12px; }
  .ghost .lab { font-size: 9px; color: #C3C2CB; }
  .ghost .lab + p { font-size: 11px; color: #ADACB7; margin-top: 0; }
  .ghost__lines { display: none; }
  .doc__head, .doc__cols > div { padding: 14px 14px; }
  .rows { padding: 2px 14px 0; }
  .row { font-size: 12.5px; padding: 9px 0; gap: 8px; }
  .st { font-size: 12.5px; gap: 5px; }
  .who { margin-top: 8px; }
  .who b { font-size: 16px; }
  .who small { font-size: 12px; }
  .dot { width: 20px; height: 20px; margin-top: 8px; }
}

/* le contrôle en direct : chaque ligne passe de « Vérification… » à son résultat */
.st { transition: color 300ms ease; }
.st.is-pending { color: var(--soft); }
.st.is-pending::before { -webkit-mask: none; mask: none; border-radius: 50%; background: transparent; border: 2px solid #CFCED8; border-top-color: var(--violet); animation: spin 700ms linear infinite; box-sizing: border-box; width: 11px; height: 11px; }
.st.is-done { animation: pop 420ms var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.9); opacity: .4; } 100% { transform: none; opacity: 1; } }
.row.is-flash { background: linear-gradient(90deg, transparent, rgba(108, 75, 196, .06), transparent); }
@media (prefers-reduced-motion: reduce) { .st.is-pending::before { animation: none; } .st.is-done { animation: none; } }
/* l'étiquette fait partie du titre (référencement) mais garde sa ligne et son style */
.hero h1 .tag { display: flex; width: fit-content; margin: 0 auto 18px; line-height: 1.4; }

/* objets de bureau vus du dessus, aux coins de l'écran et coupés par le bord, comme chez Acctual.
   L'ombre est portée par le cadre (qui ne tourne pas) : elle part toujours vers le bas à droite, lumière en haut à gauche. */
.hero { position: relative; overflow: visible; overflow-x: clip; }
.hero > *:not(.obj) { position: relative; z-index: 1; }
.obj { position: absolute; z-index: 0; pointer-events: none; will-change: transform;
  filter: drop-shadow(10px 16px 14px rgba(21, 20, 27, .14)) drop-shadow(2px 3px 2px rgba(21, 20, 27, .12)); }
.obj img { display: block; width: 100%; height: auto; }
.obj--laptop { width: 36vw; max-width: 540px; right: -25vw; top: -130px; }
.obj--laptop img { rotate: 30deg; }
/* fil fin : une ombre courte et nette, comme un vrai trombone posé sur le bureau */
.obj--trombone { width: 96px; left: 5vw; top: 430px; filter: drop-shadow(3px 5px 2px rgba(21, 20, 27, .28)) drop-shadow(8px 12px 10px rgba(21, 20, 27, .12)); }
@media (max-width: 760px) {
  /* comme Acctual sur téléphone : une tranche de l'ordinateur le long du bord droit, le trombone dans le coin haut gauche */
  .obj--laptop { width: 260px; right: -206px; top: -58px; }
  .obj--trombone { width: 44px; left: -10px; top: 6px; }
}
/* titre long : deux lignes équilibrées, loin des objets des coins */
.hero h1 { max-width: 16em; margin-inline: auto; text-wrap: balance; }
