:root {
  --olive: #65741A;
  --khaki: #C2D076;
  --cream: #FCFFA3;
  --pink-100: #FFE1EA;
  --pink-300: #FFA0FD;
  --pink-600: #E952DE;
}

@keyframes pop-in {
  0% {
    transform: scale(0.94);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes fade-up {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #FCFFA3;
  color: #65741A;
  font-family: comic-sans-ms, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.app-header {
  text-align: center;
  padding: 24px 16px 8px;
}
.app-header h1 {
  font-family: cc-zoinks, sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0 0 6px;
  font-size: 42px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}
.app-header .subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 700px;
  color: #E952DE;
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.main-layout {
  margin: 16px auto 24px;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 24px;
  width: min(1200px, 92%);
  margin: 16px auto 24px;
}

.left-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.info-card {
  background: #FFA0FD;
  border-radius: 16px;
  padding: 18px;
  min-height: 120px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
  animation: fade-up 0.5s ease both;
}
.info-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card .info-icon {
  font-size: 2.5rem;
  color: #FFE1EA;
  filter: drop-shadow(0 2px 4px rgba(194, 208, 118, 0.15));
  transition: transform 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}
.info-card:hover .info-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(252, 255, 163, 0.2));
}
.info-card .info-value {
  text-align: center;
  margin: 0;
  font-weight: bold;
  font-size: 18px;
}

.monster-card {
  background: #C2D076;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.08);
}

.monster-figure {
  width: 100%;
  max-width: 360px;
  background: #FFE1EA;
  border-radius: 14px;
  padding: 16px 16px 8px;
  text-align: center;
  animation: pop-in 0.4s ease both;
}
.monster-figure h2 {
  margin: 2px 0 8px;
  font-weight: bold;
  font-style: italic;
}
.monster-figure img {
  width: 100%;
  height: 320px;
  -o-object-fit: contain;
     object-fit: contain;
  animation: floaty 5s ease-in-out infinite;
}
.monster-figure .discoverer {
  opacity: 0.8;
  color: #E952DE;
  text-align: left;
  font-size: 12px;
}

#monster-decouvert {
  font-style: italic;
  font-weight: 700;
  margin-left: 30%;
  font-size: 18px;
}

.controls {
  align-self: start;
  display: grid;
  gap: 12px;
}

.search-panel {
  min-width: 0;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #E952DE;
  background: #FFE1EA;
  color: #65741A;
  font-weight: 600;
  font-size: 14px;
}

.search-results {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: #FFE1EA;
  border-radius: 14px;
  border: 2px solid #E952DE;
  max-height: 180px;
  overflow: auto;
  display: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
}
.search-results.visible {
  display: block;
}
.search-results li {
  padding: 6px 10px;
  cursor: pointer;
}
.search-results li:hover {
  background: #FFA0FD;
}

.monster-form {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: #FFE1EA;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 6px;
  font-size: 13px;
  overflow: hidden;
}
.monster-form .form-title {
  margin: 0 0 4px;
  font-weight: 700;
  text-align: center;
}
.monster-form label {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.monster-form input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #E952DE;
  background: #fff;
  font-size: 13px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-small {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 13px;
  justify-self: end;
}

.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  border-radius: 16px;
  background: #FFA0FD;
  color: #65741A;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}
.btn.primary {
  background: #FFA0FD;
}
.btn.success {
  background: #E952DE;
  color: white;
}

.control {
  display: grid;
  gap: 6px;
}
.control .label {
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.select, select, input[type=file] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #E952DE;
  background: #FFE1EA;
  color: #65741A;
  font-weight: 600;
}

.criteria {
  display: grid;
  gap: 10px;
}

.pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFA0FD;
  color: #65741A;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.pill span:last-child {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 4px 10px;
}

.helper {
  font-size: 14px;
  opacity: 0.8;
}

#message-confirmation {
  margin-top: 16px;
  padding: 12px 16px;
  background: #E952DE;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  animation: fade-up 0.4s ease both;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}
#message-confirmation #nom-monstre-ajoute {
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
}

.message-erreur {
  margin-top: 16px;
  padding: 12px 16px;
  background: #dc3545;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  animation: fade-up 0.4s ease both;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  border: 2px solid #c82333;
}

.app-footer {
  font-size: 18px;
  margin: 16px auto 32px;
  color: #fff;
}
.app-footer .container {
  padding: 0;
  background: #65741A;
  border-radius: 16px;
}
.app-footer .row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  padding: 18px 20px;
  margin: 0;
}
.app-footer .col {
  text-align: center;
  color: #FCFFA3;
}
.app-footer .right {
  text-align: right;
  color: #FFA0FD;
}

@media (max-width: 1020px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .left-info {
    grid-template-columns: 1fr 1fr;
  }
  .app-footer .row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-footer .right {
    text-align: center;
  }
}/*# sourceMappingURL=styles.css.map */