/* ══════════════════════════════════════════
   « Signaler une erreur » — fiches joueur, équipe, staff, arbitre, président, match
   Rendu PHP : wp-content/plugins/its-rugby-core/inc/its-report-error.php
   Feuille exclue de RUCSS (servie telle quelle).
══════════════════════════════════════════ */

.its-report-err {
  max-width: 1200px;
  margin: 12px auto;
  padding: 0 24px;
  font-family: 'Noto Sans', sans-serif;
}

/* ── Dans le hero, à côté de « Suivre » (12/10/2026) ──
   Le JS pose aussi la classe its-page-follow-btn : sur les fiches refondues,
   les règles de « Suivre » (itsrugby-fiche-d.css, plus spécifiques) s'appliquent
   telles quelles. Ci-dessous, le même habillage que its-social-pane.css pour
   l'ancien hero, où cette feuille n'est chargée qu'avec « Suivre » (connectés).
   :where() garde la spécificité à celle de .its-page-follow-btn. */
.its-page-follow-btn:where(.its-report-err__btn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Gabarit des étiquettes du hero (.comp-chip : 10px, 3px 10px), plus
     discret que « Suivre » (Félix 12/10 : « un peu gros le bouton »). */
  padding: 4px 10px;
  margin-top: 8px;
  background: transparent;
  color: var(--vanilla, #F2E5D2);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing:0;
  text-transform:none;
  text-decoration: none;
  border: 1px solid rgba(242, 229, 210, .45);
  border-radius: 0;
  cursor: pointer;
  line-height: 1;
  align-self: flex-start;
  transition: background .15s, border-color .15s;
}
.its-page-follow-btn:where(.its-report-err__btn):hover,
.its-page-follow-btn:where(.its-report-err__btn):focus-visible {
  background: rgba(242, 229, 210, .1);
  border-color: var(--vanilla, #F2E5D2);
  color: var(--vanilla, #F2E5D2);
  outline: none;
}
/* Ancien hero en colonne : « Suivre » et « Signaler » sur une même ligne. */
.its-report-err-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.its-report-err-row > .its-page-follow-btn,
.its-report-err-row > .its-agent-pf-btn { margin-top: 0; align-self: center; }

/* ── Match : dans la ligne du statut ── */
.match-top-row > .its-report-err__btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: transparent;
  color: var(--vanilla, #F2E5D2);
  border: 1px solid rgba(242, 229, 210, .45);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing:0;
  text-transform:none;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.match-top-row > .its-report-err__btn:hover,
.match-top-row > .its-report-err__btn:focus-visible {
  background: rgba(242, 229, 210, .1);
  border-color: var(--vanilla, #F2E5D2);
  outline: none;
}

/* ── Repli hors hero (gabarit inattendu) : fond clair ── */
.its-report-err .its-report-err__btn {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--teal, #1C3D34);
  border: 1px solid var(--teal, #1C3D34);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* ── Fenêtre (membres connectés) ── */
.its-report-err-dialog {
  /* Le reset global du site met les marges à 0 : sans ce margin:auto, la
     fenêtre modale (position fixe, inset 0) se colle en haut à gauche. */
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 32px));
  height: fit-content;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--teal, #1C3D34);
  background: var(--vanilla, #F2E5D2);
  color: var(--teal, #1C3D34);
}
.its-report-err-dialog::backdrop { background: rgba(28, 61, 52, .55); }
.its-report-err-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.its-report-err-form__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.its-report-err-form__intro { margin: 0 0 6px; color: var(--muted, #6B6B6B); }
.its-report-err-form__label { margin-top: 6px; font-weight: 600; }
.its-report-err-form select,
.its-report-err-form textarea,
.its-report-err-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--vanilla-d, #E8D8C0);
  background: #FBF6EE;
  color: var(--ink, #1A1A1A);
  font: inherit;
}
.its-report-err-form select:focus,
.its-report-err-form textarea:focus,
.its-report-err-form input[type="text"]:focus {
  outline: none;
  border-color: var(--teal, #1C3D34);
  box-shadow: 0 0 0 3px rgba(28, 61, 52, .18);
}
.its-report-err-form textarea { resize: vertical; min-height: 96px; }
.its-report-err-form__msg { margin: 4px 0 0; min-height: 1.5em; font-weight: 600; }
.its-report-err-form__msg.is-ok { color: var(--teal, #1C3D34); }
.its-report-err-form__msg.is-err { color: var(--red, #C0392B); }
.its-report-err-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.its-report-err-form__cancel,
.its-report-err-form__send {
  padding: 9px 18px;
  border: 1px solid var(--teal, #1C3D34);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.its-report-err-form__cancel { background: transparent; color: var(--teal, #1C3D34); }
.its-report-err-form__send { background: var(--teal, #1C3D34); color: var(--vanilla, #F2E5D2); }
.its-report-err-form__send:hover { background: var(--teal-dk, #172713); }
.its-report-err-form__send:disabled { opacity: .6; cursor: wait; }

@media (max-width: 600px) {
  .its-report-err { padding: 0 16px; }
  .its-report-err-form { padding: 18px 16px; }
  .its-report-err-form__actions { flex-direction: column-reverse; }
  .its-report-err-form__cancel,
  .its-report-err-form__send { width: 100%; }
}

/* Croix de fermeture en haut à droite (Félix 13/10). */
.its-report-err-dialog__x { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--teal, #1C3D34); cursor: pointer; }
.its-report-err-dialog__x:hover, .its-report-err-dialog__x:focus-visible { background: rgba(28, 61, 52, .08); }
.its-report-err-dialog .its-report-err-form__title { padding-right: 40px; }
