/* ============================================================
   ECRIRE.CSS — Styles spécifiques au jeu Écrire
   ------------------------------------------------------------
   Ce fichier définit :
   - La carte affichant le verset à retaper
   - La zone de saisie (textarea)
   - La barre chrono + boutons d'action
   - Le bloc du verset original (caché par défaut)

   Doit être chargé APRÈS base.css, composants.css et nav.css.
   ============================================================ */

/* ------------------------------------------------------------
   1. CARTE DU VERSET À RETAPER
   ------------------------------------------------------------ */
.ecrire-verset {
  background: linear-gradient(160deg, var(--gold-soft), var(--bg-soft));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  animation: fadeUp .5s ease both .1s;
}

.ecrire-verset-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.ecrire-verset-texte {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

/* ------------------------------------------------------------
   2. ZONE DE SAISIE (textarea)
   ------------------------------------------------------------ */
.ecrire-saisie {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: all .25s;
  font-weight: 500;
  margin-bottom: .75rem;
  outline: none;
}

.ecrire-saisie::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.ecrire-saisie:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.ecrire-saisie:disabled {
  opacity: .55;
  cursor: not-allowed;
  resize: none;
}

/* ------------------------------------------------------------
   3. BARRE CHRONO + BOUTONS
   ------------------------------------------------------------ */
.ecrire-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.ecrire-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   4. BLOC DU VERSET ORIGINAL
   ------------------------------------------------------------ */
.ecrire-verset-original {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-soft);
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold);
  animation: fadeUp .3s ease both;
}

/* ------------------------------------------------------------
   5. RESPONSIVE — ajustements sur très petit écran
   ------------------------------------------------------------ */
@media (max-width: 400px) {
  .ecrire-verset {
    padding: 1.25rem 1rem;
  }

  .ecrire-actions {
    width: 100%;
  }

  .ecrire-actions .btn {
    flex: 1;
  }
}