/* ============================================================
   Les Ouvreuses — Tableau de bord — Design system
   ============================================================
   Palette dashboard (distincte du site vitrine) : brass, cream, ink.
   Typographie cible : Chance Medium (titres) / Avenir Book (texte) —
   polices commerciales non disponibles ici ; remplacees provisoirement
   par des equivalents Google Fonts (voir commentaire plus bas).
   Motif recurrent : ticket-stub / programme de salle (notch, pointilles).
*/

:root {
  --brass: #B8956A;
  --brass-deep: #8f6f4d;
  --cream: #F5F2EB;
  --cream-deep: #ece6d8;
  --ink: #002122;
  --ink-mute: #4a5f5f;
  --white: #ffffff;
  --danger: #b3352c;
  --success: #3a6b52;

  /* TODO Pierre : remplacer par 'Chance Medium' si vous fournissez les
     fichiers .woff2 (licence commerciale, non substituable via CDN).
     Fraunces est un remplacement provisoire de tonalite proche. */
  --font-display: 'Fraunces', serif;
  /* TODO Pierre : remplacer par 'Avenir Book' si disponible en .woff2.
     Mulish est un remplacement provisoire de tonalite proche. */
  --font-body: 'Mulish', sans-serif;

  --radius: 6px;
  --shadow-card: 0 2px 12px rgba(0,33,34,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- Motif ticket-stub ---------- */
.notch-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  position: relative;
}
.notch-tag::before, .notch-tag::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--cream);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
}
.notch-tag::before { left: -5px; }
.notch-tag::after { right: -5px; }

.perforated {
  border-top: 1px dashed var(--brass-deep);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #013335; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cartes ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

/* ---------- Champs de formulaire ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-error-msg {
  background: rgba(179,53,44,0.08);
  border: 1px solid rgba(179,53,44,0.3);
  color: var(--danger);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-error-msg.visible { display: block; }
