/* ══════════════════════════════════════════════════════
   forms.css – Champs de saisie, zones d'upload,
   sélecteur de mode, bouton analyser, onglets, captures
   ══════════════════════════════════════════════════════ */

/* ── Champs texte ───────────────────────────────────── */
label {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}
textarea {
  width: 100%;
  min-height: 160px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem;
  font-family: var(--font);
  font-size: 0.97rem;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 0.2s;
  background: var(--gray-lt);
  color: var(--text);
}
textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: #fff;
}
textarea::placeholder {
  color: #9ca3af;
}

/* ── Zone d'upload image ────────────────────────────── */
.upzone {
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--gray-lt);
  transition: all 0.25s;
  margin-bottom: 1rem;
}
.upzone:hover,
.upzone.drag {
  background: var(--pink-xlt);
  border-color: var(--pink);
  border-style: solid;
}
.upzone-ico {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--pink-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  color: var(--pink);
}
.upzone-ico svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}
.upzone p {
  font-size: 0.97rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.28rem;
}
.upzone small {
  font-size: 0.8rem;
  color: var(--gray);
}
#imgPrev {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--r-sm);
  margin: 0.85rem 0;
  display: none;
}

/* ── Sélecteur de mode ──────────────────────────────── */
.mode-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.mode-btn {
  flex: 1;
  min-width: 90px;
  padding: 0.65rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: #fff;
  color: var(--text-sub);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.mode-btn.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.mode-btn:hover:not(.on) {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── Bouton analyser ────────────────────────────────── */
.btn-a {
  width: 100%;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 5px 18px rgba(231, 39, 117, 0.3);
  transition: all 0.2s;
}
.btn-a svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.btn-a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 39, 117, 0.4);
}
.btn-a:active {
  transform: scale(0.98);
}
.btn-a:disabled {
  background: #d1d5db;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Onglets texte / capture ────────────────────────── */
.input-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.itab {
  flex: 1;
  padding: 0.68rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: #fff;
  color: var(--gray);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.itab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.itab.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.itab:hover:not(.on) {
  border-color: var(--pink);
  color: var(--pink);
}
.input-panel {
  display: none;
}
.input-panel.on {
  display: block;
}

/* ── Zone capture d'écran ───────────────────────────── */
.sczone {
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--gray-lt);
  transition: all 0.25s;
  margin-bottom: 0.5rem;
}
.sczone:hover,
.sczone.drag {
  background: var(--pink-xlt);
  border-color: var(--pink);
  border-style: solid;
}
.sczone-ico {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--pink-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7rem;
  color: var(--pink);
}
.sczone-ico svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}
.sczone p {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.22rem;
}
.sczone small {
  font-size: 0.8rem;
  color: var(--gray);
}
.sc-prev {
  max-width: 100%;
  max-height: 260px;
  border-radius: var(--r-sm);
  margin: 0.7rem 0;
  display: none;
  border: 1px solid var(--border);
}
.sc-hint {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--gray-lt);
  border-radius: 8px;
}
.sc-hint svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--pink);
}
