* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

:root {
    --green:#97ed27;
    --Noir:#121519;
    --blue:#162b47;
    --gray:#7a8f89;
    --yellow:#ffd36e;

    --fond: #0d1024;
    --carte: #171b35;
    --carte-2: #20264a;
    --texte: #f4f1ff;
    --muted: #b8b3d9;
    --accent: #ffd36e;
    --accent-2: #9ad7ff;
    --rose: #ff9ed8;
    --ligne: rgba(255,255,255,0.12);
    }
body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  background: #121519 url(http://dl9.glitter-graphics.net/pub/231/231839jm35be5swg.gif);
  display: flex;
  justify-content: center;
  letter-spacing: 1px;
  text-shadow: 0 0 1px;
  color: #ffffff;
  padding: 8px 0;
  line-height: 23px;
}

.back-btn {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: #162b47;
  border: 1px solid #abeba5;
  color: #ffffff;
  text-decoration: none;
  font: 16px "MS Gothic", "Courier New", monospace;
}

.back-btn:hover {
  background: #abeba5;
  color: #121519;
}
.container {
  width: 1200px;
  max-width: 97%;
  background-color: #121519;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  border: 1px dashed #ffffff;
}

.centercontent {
  flex: 1;
  min-width: 0;
  background-color: #121519;
  padding-top: 9px;
}

.mainbox {
  width: 100%;
  background-color: #162b47;
  padding: 1.25em 1.5em 1.5em 1.5em;
  text-align: justify;
  margin-bottom: 8px;
  border-radius: 4px;
}

.mouton-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

h1 {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 4px;
  padding-top: 2px;
  font: 40px 'MS Gothic', 'Courier New', Arial;
  text-align: center;
  padding-left: 5px;
  color: #ffffff;
}

p {
  margin: 8px 0 0;
  font-size: 14px;
  font-family:'Courier New', Courier, monospace;
}

.preview-card,
.controls {
  border: 3px solid white;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
}

.controls {
  color: #121519;
}

.stage {
  position: sticky;
  top: 20px;
  height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 25px;
  background:
    radial-gradient(circle at 82% 15%, #ffd951 0 42px, transparent 44px),
    linear-gradient(#7fd7ff 0%, #e4f9ff 58%, #79c95f 58%);
}

.sheep {
  position: relative;
  width: min(400px, 90%);
  aspect-ratio: 310 / 380;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hidden {
  display: none;
}

.controls {
  max-height: 640px;
  overflow: auto;
  padding: 22px;
}

.controls h2 {
  margin: 0 0 16px;
  text-align: center;
}

label {
  display: block;
  margin: 13px 0 7px;
  font-weight: bold;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  padding: 10px;
  border: 2px solid #d9e8ff;
  border-radius: 14px;
  background: white;
  font-weight: bold;
}

input[type="range"] {
  accent-color: #4ea545;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px;
  border-radius: 14px;
  background: #f4fbff;
}

.checkline label {
  margin: 0;
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 15px 18px;
  border: none;
  border-radius: 999px;
  background: #2d2929;
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  transform: scale(1.03);
  background: #4ea545;
}

@media (max-width: 700px) {
  .mouton-layout {
    grid-template-columns: 1fr;
  }
}