@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
/* Minimal reset compatible Tailwind */
:root {
  --mr-bg: #f8faf9;
  --mr-surface: #ffffff;
  --mr-surface-soft: #f2f7f5;
  --mr-text: #172033;
  --mr-muted: #5c667a;
  --mr-border: rgba(15, 23, 42, 0.08);
  --mr-primary: rgb(5 150 105 / 1);
  --mr-primary-dark: rgb(4 120 87 / 1);
  --mr-accent: #dbe6e2;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  margin: 0;
  color: var(--mr-text);
  background: var(--mr-bg);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.03em;
  color: var(--mr-text);
}

/* Légèrement stylise les liens pour cohérence */

a {
  cursor: pointer;
}

a:hover,
a:focus {
  outline-offset: 2px;
}

::selection {
  background: rgba(5, 150, 105, 0.16);
}

input[type="radio"],
input[type="checkbox"] {
  vertical-align: middle;
}

/* Labels pointer et user-select */

label {
  user-select: none;
}

button[type="submit"] {
  cursor: pointer !important;
}

input,
select,
textarea {
  outline: none !important;
  padding: 8px;
  width: 100%;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  position: relative;
  border-radius: 0.875rem;
}
input:focus::after,
select:focus::after,
textarea:focus::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  animation: slideIn 0.3s forwards;
  pointer-events: none;
}

input,
select,
textarea {
  position: relative;
}

input::after,
select::after,
textarea::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-color: #f97316;
  transition: width 0.3s ease;
  pointer-events: none;
}

input:focus::after,
select:focus::after,
textarea:focus::after {
  width: 100%;
}

input,
select,
textarea,
button {
  font: inherit;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 0;
  }
  to {
    width: 100%;
    left: 0;
  }
}
