/* ============================================================================
   Page DOSSIER (magnet « impayés ») — styles SPÉCIFIQUES. Le reste vient de
   styles.css (hero, tool-card, btn, loader, registre, modale, tokens…).
   Couleurs des feux : --green (🟢), --warn #A05A1A (🟡), --risk framboise (🔴).
   ============================================================================ */

/* -------------------- Zone de dépôt -------------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 30px 20px;
  border: 2px dashed #c6d0de;
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--green);
  background: var(--green-bg);
}
.dropzone--over {
  border-color: var(--green);
  background: var(--green-bg);
}
.dropzone__ic {
  width: 34px;
  height: 34px;
  color: var(--green);
}
.dropzone__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.dropzone__hint {
  font-size: 0.86rem;
  color: var(--steel);
  max-width: 34ch;
}
.dropzone__reject {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: var(--steel-d);
}
.dropzone__reject .ic {
  width: 16px;
  height: 16px;
  color: var(--steel);
  flex: 0 0 auto;
}

/* -------------------- Liste des fichiers déposés -------------------- */
.file-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.file-list:empty {
  margin: 0;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  animation: fadein 0.25s ease;
}
.file-row__ic {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--steel);
}
.file-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
.file-row__name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row__size {
  font-size: 0.76rem;
  color: var(--steel);
}
.file-row__type {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  padding: 7px 26px 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center / 15px;
  appearance: none;
  cursor: pointer;
}
.file-row__type:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16);
}
.file-row__del {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #f1f4f9;
  color: var(--steel-d);
  cursor: pointer;
}
.file-row__del:hover {
  background: var(--risk-bg);
  color: var(--risk);
}
.file-row__del .ic {
  width: 16px;
  height: 16px;
}

/* -------------------- Ligne de consentement -------------------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--steel-d);
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--green);
}
.consent strong {
  color: var(--ink);
}

.btn--lg[disabled] {
  opacity: 0.5;
}

/* ======================================================================
   FEU DE VÉRIFICATIONS — état de NOS contrôles, pas un jugement du document.
   ====================================================================== */
.verdict-card {
  border-radius: var(--radius);
  padding: 20px 20px;
  margin-bottom: 18px;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.verdict-card--green {
  background: var(--green-bg);
  border: 1px solid var(--green-line);
}
.verdict-card--amber {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
}
.verdict-card--red {
  background: var(--risk-bg);
  border: 1px solid #f0d3dd;
  border-left: 3px solid var(--risk);
  border-radius: 4px var(--radius) var(--radius) 4px;
}
.verdict-card--illisible {
  background: var(--paper);
  border: 1px solid var(--line);
}

.verdict-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.verdict-card__dot {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.verdict-card__dot .ic {
  width: 22px;
  height: 22px;
}
.verdict-card--green .verdict-card__dot {
  background: var(--green);
}
.verdict-card--amber .verdict-card__dot {
  background: var(--warn);
}
.verdict-card--red .verdict-card__dot {
  background: var(--risk);
}
.verdict-card--illisible .verdict-card__dot {
  background: var(--steel);
}
.verdict-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.verdict-card--green .verdict-card__title {
  color: var(--green);
}
.verdict-card--amber .verdict-card__title {
  color: var(--warn);
}
.verdict-card--red .verdict-card__title {
  color: var(--risk);
}
.verdict-card__summary {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.verdict-card__count {
  display: inline-block;
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 26, 46, 0.06);
  color: var(--steel-d);
}

/* ======================================================================
   TACT 1 — Le rapport se débloque à l'écran (carte sombre, comme subscribe).
   ====================================================================== */
.report-gate {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 22px;
  margin-top: 6px;
}
.report-gate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.report-gate__sub {
  color: var(--sub-dark);
  font-size: 0.94rem;
  margin: 0 0 14px;
}
.report-gate__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.report-gate__form input {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 1px solid #2b3a56;
  border-radius: 10px;
  background: var(--ink-soft);
  color: #fff;
}
.report-gate__form input::placeholder {
  color: #7f8ca6;
}
.report-gate__form input:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(47, 208, 143, 0.2);
}
.report-gate__fine {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #8b97ad;
}

/* ======================================================================
   RAPPORT — check-list (chaque ligne : vérification + résultat).
   ====================================================================== */
.checklist {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 4px 12px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.check-row:last-child {
  border-bottom: none;
}
.check-row__ic {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.check-row--ok .check-row__ic {
  color: var(--green);
}
.check-row--warn .check-row__ic {
  color: var(--warn);
}
.check-row--warn.check-row--strong .check-row__ic {
  color: var(--risk);
}
.check-row--na .check-row__ic,
.check-row--unknown .check-row__ic {
  color: var(--steel);
}
.check-row__label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.check-row__detail {
  grid-column: 2;
  font-size: 0.86rem;
  color: var(--steel-d);
  line-height: 1.4;
}
.check-row--warn .check-row__detail {
  color: var(--warn);
  font-weight: 500;
}
.check-row--warn.check-row--strong .check-row__detail {
  color: var(--risk);
}
.check-row--na,
.check-row--unknown {
  opacity: 0.7;
}

/* -------------------- Méthode : signature (au lieu d'une date) -------------------- */
.reg-row__note {
  color: var(--steel);
  font-size: 0.84rem;
  white-space: nowrap;
}

/* -------------------- Desktop -------------------- */
@media (min-width: 680px) {
  .report-gate__form {
    flex-wrap: nowrap;
  }
}
