/* Charte ClimbingFish. Aucune police externe : Montserrat si installee sur le poste, sinon police
   systeme. Pour la servir depuis ce site, voir DEPOT.md (fichier montserrat.woff2 + @font-face). */

:root {
  --electric-blue: #0099ff;
  --light-blue: #00d4ff;
  --dark-blue: #0066cc;
  --night-blue: #1b2a41;
  --white: #ffffff;
  --gray-100: #f1f4f8;
  --gray-200: #e2e8f0;
  --gray-600: #52627a;
  --red: #c62828;
  --green: #1b8a5a;
  --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #0066cc 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--night-blue);
  color: var(--night-blue);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand img { border-radius: 10px; }
.brand-name { margin: 0; font-weight: 700; font-size: 1.05rem; }
.brand-sub { margin: 0; font-size: 0.8rem; color: var(--electric-blue); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

h1 { font-size: 1.3rem; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.muted { color: var(--gray-600); }
.small { font-size: 0.82rem; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  resize: vertical;
}
textarea:focus { outline: 2px solid var(--electric-blue); border-color: transparent; }

.or { text-align: center; color: var(--gray-600); font-size: 0.85rem; margin: 10px 0; }

.dropzone {
  display: block;
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  color: var(--gray-600);
  font-weight: 500;
  cursor: pointer;
  background: #fafcff;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus, .dropzone.over { border-color: var(--electric-blue); background: #f0f8ff; outline: none; }
.dropzone.has-file { border-style: solid; border-color: var(--electric-blue); color: var(--night-blue); }
.dropzone input { display: none; }

button {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: var(--electric-blue);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--dark-blue); }
button:disabled { background: var(--gray-200); color: var(--gray-600); cursor: not-allowed; }

.progress { height: 8px; margin-top: 14px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: var(--gradient-brand); transition: width 0.2s; }

.ok-badge {
  width: 52px; height: 52px; margin: 4px 0 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecea;
  color: var(--red);
  font-size: 0.9rem;
}

footer { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--gray-200); }
footer p { margin: 0; font-size: 0.78rem; color: var(--gray-600); }
