/* message-shredder — NOLAM
   Thème sombre sobre, hérité d'Anonyma (photo-metadata-cleaner).
   Aucune ressource externe (pas de fonts distantes, pas de CDN). */

:root {
  --bg: #0f1216;
  --bg-raised: #171c22;
  --bg-card: #1c232b;
  --border: #2a333d;
  --text: #e8ebee;
  --text-dim: #9aa5b0;
  --accent: #3ecf8e;
  --accent-dark: #2aa872;
  --high: #ff6b6b;
  --med: #ffb454;
  --low: #8fa3b8;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.header-badge {
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  margin: 1.2rem 0 0.8rem;
}

.lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 1.8rem;
}

.lead strong { color: var(--text); }

/* ---------- carte principale ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 0 1.2rem;
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
}

label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

textarea,
input[type="text"],
select {
  width: 100%;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

textarea:focus-visible,
input[type="text"]:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.form-row label {
  margin: 0;
}

.form-row select {
  width: auto;
}

.form-hint {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- boutons ---------- */
button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.65rem 1.3rem;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-primary {
  background: var(--accent);
  color: #08130d;
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--border);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* ---------- statuts & résultat ---------- */
.status {
  color: var(--med);
  min-height: 1.2em;
  font-size: 0.92rem;
  margin: 0.6rem 0 0;
}

.status.error {
  color: var(--high);
}

#result-panel {
  border-top: 1px solid var(--border);
  margin-top: 1.3rem;
  padding-top: 1.2rem;
}

.link-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.link-row input {
  flex: 1;
  font-size: 0.9rem;
}

.result-note {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0.9rem 0 0;
}

.warning-note {
  color: var(--med);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--med);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0 0 1.1rem;
}

.secret-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

/* ---------- bandeau preuve ---------- */
.proof-strip {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin: 0 0 2rem;
}

/* ---------- explications ---------- */
.explain h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.7rem;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
}

.steps li {
  margin: 0 0 0.7rem;
}

.steps strong,
.trust-list strong {
  color: var(--text);
}

.trust-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
}

.trust-list li {
  margin: 0 0 0.5rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.2rem;
  margin-top: 2rem;
}

/* ---------- responsive ---------- */
@media (max-width: 540px) {
  .header-badge { display: none; }
  .link-row { flex-direction: column; align-items: stretch; }
}
