/* Paroisse Saint-Vincent de l’Hermitage — formulaires publics Enoria */

:root {
  --svh-rose: #ff0059;
  --svh-action: #d8004d;
  --svh-action-hover: #ad003e;
  --svh-bleu: #243b5a;
  --svh-texte: #2d3748;
  --svh-fond: #f7fafc;
  --svh-bordure: #dce4ed;
  --svh-champ: #8794a5;
  --svh-blanc: #fff;
  --svh-police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--svh-fond);
  color: var(--svh-texte);
  font-family: var(--svh-police);
}

body :is(.content-wrapper, .app-content) {
  background-color: var(--svh-fond);
}

body :is(h1, h2, h3, h4, h5, legend, .card-title, .form-section) {
  color: var(--svh-bleu);
  font-family: inherit;
  font-weight: 700;
}

body :is(.content-header-title, .form-section, form .card-title) {
  border-inline-start: 3px solid var(--svh-rose);
  padding-inline-start: .65rem;
}

body .card {
  border: 1px solid var(--svh-bordure);
  border-radius: .9rem;
  box-shadow: 0 .25rem 1rem rgb(36 59 90 / 7%);
}

body a:not(.btn):not(.nav-link) {
  color: var(--svh-action);
  text-underline-offset: .16em;
}

body a:not(.btn):not(.nav-link):hover {
  color: var(--svh-action-hover);
}

body form :is(label, .form-label) {
  font-weight: 600;
}

body form :is(.form-control, .form-select, select.custom-select,
    textarea, input[type="text"], input[type="email"], input[type="tel"],
    input[type="date"], input[type="number"]):not(:is([type="hidden"], .is-invalid, .is-valid, [aria-invalid="true"])) {
  border-color: var(--svh-champ);
  border-radius: .45rem;
}

body form :is(.form-control, .form-select, select.custom-select,
    textarea, input[type="text"], input[type="email"], input[type="tel"],
    input[type="date"], input[type="number"]):not(
      :is(:disabled, [readonly], .is-invalid, .is-valid, [aria-invalid="true"])
    ):focus {
  border-color: var(--svh-action);
  box-shadow: 0 0 0 3px rgb(216 0 77 / 16%);
}

body form input:is([type="checkbox"], [type="radio"]) {
  accent-color: var(--svh-action);
}

body form .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--svh-action);
  background-color: var(--svh-action);
}

body form .form-check-input:checked {
  border-color: var(--svh-action);
  background-color: var(--svh-action);
}

body form :is(.btn-primary, .btn-success, .valid-donation,
    button[type="submit"], input[type="submit"]):not(.btn-link) {
  --bs-btn-color: var(--svh-blanc);
  --bs-btn-bg: var(--svh-action);
  --bs-btn-border-color: var(--svh-action);
  --bs-btn-hover-color: var(--svh-blanc);
  --bs-btn-hover-bg: var(--svh-action-hover);
  --bs-btn-hover-border-color: var(--svh-action-hover);
  color: var(--svh-blanc);
  background-color: var(--svh-action);
  border-color: var(--svh-action);
  border-radius: .55rem;
  font-weight: 700;
  white-space: normal;
}

body form :is(.btn-primary, .btn-success, .valid-donation,
    button[type="submit"], input[type="submit"]):not(
      :is(.btn-link, :disabled, .disabled, [aria-disabled="true"])
    ):is(:hover, :active) {
  color: var(--svh-blanc);
  background-color: var(--svh-action-hover);
  border-color: var(--svh-action-hover);
}

body form :is(.btn-primary, .btn-success, .valid-donation,
    button[type="submit"], input[type="submit"]):is(
      :disabled, .disabled, [aria-disabled="true"]
    ) {
  opacity: .6;
}

body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--svh-bleu);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  body form :is(.form-control, .form-select, input, select, textarea, .btn) {
    font-size: 1rem;
  }
}
